From 747913377f22b8c55b456612cc586f9eabc14ee4 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Fri, 22 Jul 2022 12:55:37 +0200 Subject: [PATCH] zink: fix EXT_color_write_enable check Checking for the extension isn't enough, we also need to check for the feature-bit. Fixes: 49a20e0981c ("zink: start a unified driver workarounds struct") Reviewed-by: Mike Blumenkrantz Part-of: --- src/gallium/drivers/zink/zink_screen.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_screen.c b/src/gallium/drivers/zink/zink_screen.c index b81052bedb0..25a734c611d 100644 --- a/src/gallium/drivers/zink/zink_screen.c +++ b/src/gallium/drivers/zink/zink_screen.c @@ -2079,7 +2079,11 @@ init_driver_workarounds(struct zink_screen *screen) default: break; } - screen->driver_workarounds.color_write_missing = !screen->info.have_EXT_color_write_enable; + + screen->driver_workarounds.color_write_missing = + !screen->info.have_EXT_color_write_enable || + !screen->info.cwrite_feats.colorWriteEnable; + screen->driver_workarounds.depth_clip_control_missing = !screen->info.have_EXT_depth_clip_control; if (screen->info.driver_props.driverID == VK_DRIVER_ID_AMD_PROPRIETARY) /* this completely breaks xfb somehow */