Revert "anv: turn off non zero fast clears for CCS_E"

This reverts commit 25a232238f.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11110
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11325
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31374>
This commit is contained in:
Nanley Chery
2024-06-05 18:55:14 -04:00
committed by Marge Bot
parent 3e62401df3
commit 5549cb921d

View File

@@ -388,14 +388,6 @@ can_fast_clear_with_non_zero_color(const struct intel_device_info *devinfo,
if (image->planes[plane].aux_usage == ISL_AUX_USAGE_FCV_CCS_E)
return false;
/* Turning on non zero fast clears for CCS_E introduces a performance
* regression for games such as F1 22 and RDR2 by introducing additional
* partial resolves. Let's turn non zero fast clears back off till we can
* fix performance.
*/
if (image->planes[plane].aux_usage == ISL_AUX_USAGE_CCS_E &&
devinfo->ver >= 12)
return false;
/* Generally, enabling non-zero fast-clears is dependent on knowing which
* formats will be used with the surface. So, disable them if we lack this