anv: Disable fast clear when surface height is 16k

As suggested in WA_16021232440: Disable fast clear when surface height
equals 16k.

Signed-off-by: Aditya Swarup <aditya.swarup@intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29182>
This commit is contained in:
Aditya Swarup
2024-08-02 13:36:28 -07:00
committed by Marge Bot
parent 0f821c1e2f
commit ae85f59645

View File

@@ -350,6 +350,12 @@ anv_can_fast_clear_color_view(struct anv_device *device,
iview->planes[0].isl.format))
return false;
/* Wa_16021232440: Disable fast clear when height is 16k */
if (intel_needs_workaround(device->info, 16021232440) &&
iview->vk.extent.height == 16 * 1024) {
return false;
}
return true;
}