summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/iris
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2018-12-10 22:41:34 -0800
committerKenneth Graunke <[email protected]>2019-02-21 10:26:12 -0800
commit15822f33ad21b1df0d903b479cdb57de2bfa28fa (patch)
tree4a76edbb39350f90e4179c14961bf5dc478753d5 /src/gallium/drivers/iris
parent689b590069457c4dc35387626992368018211339 (diff)
iris: make surface states for CCS_D too
CCS_E can fall back to CCS_D with incompatible format views CCS_D is pretty useless without fast clears and we may as well use NONE, but we're surely going to hook those up at some point, so may as well just go ahead and do it now...
Diffstat (limited to 'src/gallium/drivers/iris')
-rw-r--r--src/gallium/drivers/iris/iris_resource.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/iris/iris_resource.c b/src/gallium/drivers/iris/iris_resource.c
index cce24b28729..ca09a70fc5b 100644
--- a/src/gallium/drivers/iris/iris_resource.c
+++ b/src/gallium/drivers/iris/iris_resource.c
@@ -572,7 +572,8 @@ iris_resource_create_with_modifiers(struct pipe_screen *pscreen,
} else if (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;
- else if (isl_format_supports_ccs_d(devinfo, res->surf.format))
+
+ if (isl_format_supports_ccs_d(devinfo, res->surf.format))
res->aux.possible_usages |= 1 << ISL_AUX_USAGE_CCS_D;
}
}