iris: don't use hiz for MSAA buffers

This commit is contained in:
Kenneth Graunke
2018-12-10 21:54:44 -08:00
parent 2cddc953cd
commit 92c310fd3f
+12 -9
View File
@@ -563,15 +563,18 @@ iris_resource_create_with_modifiers(struct pipe_screen *pscreen,
if (res->mod_info) {
res->aux.possible_usages |= 1 << res->mod_info->aux_usage;
} else if (has_depth) {
res->aux.possible_usages |= 1 << ISL_AUX_USAGE_HIZ;
} else if (supports_mcs(&res->surf)) {
res->aux.possible_usages |= 1 << ISL_AUX_USAGE_MCS;
} 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))
res->aux.possible_usages |= 1 << ISL_AUX_USAGE_CCS_D;
} else if (res->surf.samples > 1) {
if (supports_mcs(&res->surf))
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 (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))
res->aux.possible_usages |= 1 << ISL_AUX_USAGE_CCS_D;
}
}
// XXX: we don't actually do aux yet