From 360f1032d2a19e9ca1e015baa2bea839a0f1b0fc Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 26 Jan 2021 16:41:37 -0500 Subject: [PATCH] zink: disable push descriptors on amd I'm told this is bad for perf Reviewed-by: Dave Airlie Part-of: --- src/gallium/drivers/zink/zink_screen.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gallium/drivers/zink/zink_screen.c b/src/gallium/drivers/zink/zink_screen.c index 1c8e6db5dc0..3457a5bde8d 100644 --- a/src/gallium/drivers/zink/zink_screen.c +++ b/src/gallium/drivers/zink/zink_screen.c @@ -1630,6 +1630,11 @@ zink_internal_create_screen(const struct pipe_screen_config *config) if (!screen->dev) goto fail; + if (screen->info.driver_props.driverID == VK_DRIVER_ID_MESA_RADV || + screen->info.driver_props.driverID == VK_DRIVER_ID_AMD_OPEN_SOURCE || + screen->info.driver_props.driverID == VK_DRIVER_ID_AMD_PROPRIETARY) + /* this has bad perf on AMD */ + screen->info.have_KHR_push_descriptor = false; if (!load_device_extensions(screen)) goto fail;