From d07127971002036bed7ce7b952f83ad3a4449f7d Mon Sep 17 00:00:00 2001 From: Hans-Kristian Arntzen Date: Mon, 24 Oct 2022 13:43:37 +0200 Subject: [PATCH] driconf: Add DRI configuration for exposing VK_KHR_present_wait. These extensions are flawed and do not support the concept of per-surface queries. For the time being we cannot guarantee that we are able to implement it on all surfaces, but the feature is useful enough to make available as an opt-in feature for the time being, so hide it behind an driconf until we have a better mechanism in place. Signed-off-by: Hans-Kristian Arntzen Reviewed-by: Joshua Ashton Part-of: --- src/util/driconf.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/util/driconf.h b/src/util/driconf.h index 8251251dab8..8fb89cacdb7 100644 --- a/src/util/driconf.h +++ b/src/util/driconf.h @@ -380,6 +380,10 @@ DRI_CONF_OPT_B(vk_x11_ensure_min_image_count, def, \ "Force the X11 WSI to create at least the number of image specified by the driver in VkSurfaceCapabilitiesKHR::minImageCount") +#define DRI_CONF_VK_KHR_PRESENT_WAIT(def) \ + DRI_CONF_OPT_B(vk_khr_present_wait, def, \ + "Expose VK_KHR_present_wait and id extensions despite them not being implemented for all supported surface types") + #define DRI_CONF_VK_XWAYLAND_WAIT_READY(def) \ DRI_CONF_OPT_B(vk_xwayland_wait_ready, def, \ "Wait for fences before submitting buffers to Xwayland")