iris: Allow disabling aux via INTEL_DEBUG options
This commit is contained in:
parent
4634b754f4
commit
f3f7d45a63
|
@ -568,8 +568,10 @@ iris_resource_create_with_modifiers(struct pipe_screen *pscreen,
|
|||
res->aux.possible_usages |= 1 << ISL_AUX_USAGE_MCS;
|
||||
} else {
|
||||
if (has_depth) {
|
||||
res->aux.possible_usages |= 1 << ISL_AUX_USAGE_HIZ;
|
||||
} else if (supports_ccs(devinfo, &res->surf)) {
|
||||
if (likely(!(INTEL_DEBUG & DEBUG_NO_HIZ)))
|
||||
res->aux.possible_usages |= 1 << ISL_AUX_USAGE_HIZ;
|
||||
} else if (likely(!(INTEL_DEBUG & DEBUG_NO_RBC)) &&
|
||||
supports_ccs(devinfo, &res->surf)) {
|
||||
if (isl_format_supports_ccs_e(devinfo, res->surf.format))
|
||||
res->aux.possible_usages |= 1 << ISL_AUX_USAGE_CCS_E;
|
||||
|
||||
|
|
Loading…
Reference in New Issue