diff options
author | Kenneth Graunke <[email protected]> | 2018-12-11 00:43:05 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:12 -0800 |
commit | f3f7d45a633b9395721305d7ec544827b5ef6926 (patch) | |
tree | 5b79004e96ae1a8ae3874cde4cea0dc7418f61de /src/gallium/drivers/iris | |
parent | 4634b754f441935064685c5fc9c4bd4184886370 (diff) |
iris: Allow disabling aux via INTEL_DEBUG options
Diffstat (limited to 'src/gallium/drivers/iris')
-rw-r--r-- | src/gallium/drivers/iris/iris_resource.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/drivers/iris/iris_resource.c b/src/gallium/drivers/iris/iris_resource.c index ca09a70fc5b..9c7420f2b4c 100644 --- a/src/gallium/drivers/iris/iris_resource.c +++ b/src/gallium/drivers/iris/iris_resource.c @@ -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; |