From 0f0cfd88d7e6ece3ca6456df692f0055bde94be7 Mon Sep 17 00:00:00 2001 From: Tom Anderson Date: Thu, 6 Mar 2025 11:57:39 -0800 Subject: [PATCH] GN build: Define VK_USE_PLATFORM_XLIB_KHR This is required to define vkCreateXlibSurfaceKHR, which is required by GTK4. Depends on Dawn CL: https://dawn-review.googlesource.com/c/dawn/+/229494 Needed to fix this Chromium issue: https://g-issues.chromium.org/issues/345261080 --- BUILD.gn | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/BUILD.gn b/BUILD.gn index 7ec9577..11f1161 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -13,7 +13,10 @@ config("vulkan_headers_config") { defines += [ "VK_USE_PLATFORM_WIN32_KHR" ] } if (defined(vulkan_use_x11) && vulkan_use_x11) { - defines += [ "VK_USE_PLATFORM_XCB_KHR" ] + defines += [ + "VK_USE_PLATFORM_XCB_KHR", + "VK_USE_PLATFORM_XLIB_KHR", + ] } if (defined(vulkan_use_wayland) && vulkan_use_wayland) { defines += [ "VK_USE_PLATFORM_WAYLAND_KHR" ]