From ac863b8b1562bea81df137a4fbc3e2f88682b916 Mon Sep 17 00:00:00 2001 From: Aditya Swarup Date: Tue, 6 May 2025 07:51:29 -0700 Subject: [PATCH] iris: Disable fast clear when surface width is 16k MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Tapani Pälli Part-of: --- src/gallium/drivers/iris/iris_clear.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/iris/iris_clear.c b/src/gallium/drivers/iris/iris_clear.c index 27b97f4c68c..7e9d5762dd1 100644 --- a/src/gallium/drivers/iris/iris_clear.c +++ b/src/gallium/drivers/iris/iris_clear.c @@ -157,9 +157,12 @@ can_fast_clear_color(struct iris_context *ice, 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(devinfo, 16021232440) && - res->surf.logical_level0_px.h == 16 * 1024) { + (res->surf.logical_level0_px.h == 16 * 1024 || + res->surf.logical_level0_px.w == 16 * 1024)) { return false; }