From 5549cb921d1917835f2fb6c1f25449641dab039d Mon Sep 17 00:00:00 2001 From: Nanley Chery Date: Wed, 5 Jun 2024 18:55:14 -0400 Subject: [PATCH] Revert "anv: turn off non zero fast clears for CCS_E" This reverts commit 25a232238f40bf2776f224b8bc2df318b54e982e. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11110 Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11325 Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/vulkan/anv_image.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c index 845e47ea305..9465231cc35 100644 --- a/src/intel/vulkan/anv_image.c +++ b/src/intel/vulkan/anv_image.c @@ -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