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...
This commit is contained in:
Kenneth Graunke 2018-12-10 22:41:34 -08:00
parent 689b590069
commit 15822f33ad
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}
}