Commit de853627 authored by Nanley Chery's avatar Nanley Chery Committed by Marge Bot
Browse files

iris: Move STC case in get_copy_region_aux_settings



Combine the STC_CCS case with the HiZ cases.
Reviewed-by: Kenneth Graunke's avatarKenneth Graunke <kenneth@whitecape.org>
Part-of: <mesa/mesa!8262>
parent 28d37e0f
......@@ -603,19 +603,19 @@ get_copy_region_aux_settings(struct iris_context *ice,
case ISL_AUX_USAGE_HIZ:
case ISL_AUX_USAGE_HIZ_CCS:
case ISL_AUX_USAGE_HIZ_CCS_WT:
case ISL_AUX_USAGE_STC_CCS:
if (is_render_target) {
*out_aux_usage = res->aux.usage;
} else {
*out_aux_usage = iris_resource_texture_aux_usage(ice, res,
res->surf.format);
}
*out_clear_supported = (*out_aux_usage != ISL_AUX_USAGE_NONE);
*out_clear_supported = isl_aux_usage_has_fast_clears(*out_aux_usage);
break;
case ISL_AUX_USAGE_MCS:
case ISL_AUX_USAGE_MCS_CCS:
case ISL_AUX_USAGE_CCS_E:
case ISL_AUX_USAGE_GEN12_CCS_E:
case ISL_AUX_USAGE_STC_CCS:
*out_aux_usage = res->aux.usage;
*out_clear_supported = false;
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment