From: Kenneth Graunke Date: Tue, 11 Dec 2018 06:41:34 +0000 (-0800) Subject: iris: make surface states for CCS_D too X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=15822f33ad21b1df0d903b479cdb57de2bfa28fa;p=mesa.git 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... --- 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; } }