Module: Mesa Branch: master Commit: de853627c7ff3811f712638c2f60db9c097e2232 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=de853627c7ff3811f712638c2f60db9c097e2232
Author: Nanley Chery <[email protected]> Date: Mon Dec 28 10:27:13 2020 -0800 iris: Move STC case in get_copy_region_aux_settings Combine the STC_CCS case with the HiZ cases. Reviewed-by: Kenneth Graunke <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8262> --- src/gallium/drivers/iris/iris_blit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/iris/iris_blit.c b/src/gallium/drivers/iris/iris_blit.c index 06684fae827..0d6a35827ca 100644 --- a/src/gallium/drivers/iris/iris_blit.c +++ b/src/gallium/drivers/iris/iris_blit.c @@ -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; _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
