anv: Disable fast clear when surface width is 16k

HSD 16023071695 description mentions we need to extend
WA_16021232440 to cover the case when surface width is 16k.

BSpec: 57340

Signed-off-by: Aditya Swarup <aditya.swarup@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34838>
This commit is contained in:
Aditya Swarup 2025-05-06 07:48:12 -07:00
parent 8edee1e25b
commit 6528d267ef

View file

@ -3548,9 +3548,12 @@ anv_can_fast_clear_color(const struct anv_cmd_buffer *cmd_buffer,
return false;
}
/* Wa_16021232440: Disable fast clear when height is 16k */
/* Wa_16021232440, HSD_16023071695: Disable fast clear when height
* or width is 16k
* */
if (intel_needs_workaround(cmd_buffer->device->info, 16021232440) &&
image->vk.extent.height == 16 * 1024) {
(image->vk.extent.height == 16 * 1024 ||
image->vk.extent.width == 16 * 1024)) {
return false;
}