From 0d9d45db4e1b6d00747bf635ba3222146a899468 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Mon, 10 Nov 2025 11:38:15 +0100 Subject: [PATCH] radv: add vk_wsi_disable_unordered_submits and enable for GTK GTK is missing a semaphore between QueueSubmit() and QueuePresent() causing the WSI submit to be "unordered" and to immediately signal the semaphores (because it's missing a wait semaphore in QueuePresent()). The workaround is to disable unordered WSI submits until GTK fixes it properly. Cc: "25.3" Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/14087 Signed-off-by: Samuel Pitoiset Part-of: --- src/amd/vulkan/radv_instance.c | 1 + src/util/00-radv-defaults.conf | 4 ++++ src/util/driconf.h | 4 ++++ src/vulkan/wsi/wsi_common.c | 9 ++++++++- src/vulkan/wsi/wsi_common.h | 2 ++ 5 files changed, 19 insertions(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_instance.c b/src/amd/vulkan/radv_instance.c index 9dc4eab67fd..09837b86b88 100644 --- a/src/amd/vulkan/radv_instance.c +++ b/src/amd/vulkan/radv_instance.c @@ -169,6 +169,7 @@ static const driOptionDescription radv_dri_options[] = { DRI_CONF_VK_LOWER_TERMINATE_TO_DISCARD(false) DRI_CONF_VK_WSI_FORCE_BGRA8_UNORM_FIRST(false) DRI_CONF_VK_WSI_FORCE_SWAPCHAIN_TO_CURRENT_EXTENT(false) + DRI_CONF_VK_WSI_DISABLE_UNORDERED_SUBMITS(false) DRI_CONF_VK_X11_IGNORE_SUBOPTIMAL(false) DRI_CONF_VK_REQUIRE_ETC2(false) DRI_CONF_VK_REQUIRE_ASTC(false) diff --git a/src/util/00-radv-defaults.conf b/src/util/00-radv-defaults.conf index f64c11459d2..1a52db8a613 100644 --- a/src/util/00-radv-defaults.conf +++ b/src/util/00-radv-defaults.conf @@ -70,6 +70,10 @@ Application bugs worked around in this file: