From acbb71966f1925bab9b3592c94d5f6dc58b64696 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Mon, 2 Jan 2023 06:41:16 +0000 Subject: [PATCH] layer: Enable VK_KHR_xcb_surface extension Needed for fallback surface. --- layer/VkLayer_FROG_gamescope_wsi.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/layer/VkLayer_FROG_gamescope_wsi.cpp b/layer/VkLayer_FROG_gamescope_wsi.cpp index 9cbee71..8859d2a 100644 --- a/layer/VkLayer_FROG_gamescope_wsi.cpp +++ b/layer/VkLayer_FROG_gamescope_wsi.cpp @@ -112,6 +112,9 @@ namespace GamescopeWSILayer { if (!contains(enabledExts, VK_KHR_WAYLAND_SURFACE_EXTENSION_NAME)) enabledExts.push_back(VK_KHR_WAYLAND_SURFACE_EXTENSION_NAME); + if (!contains(enabledExts, VK_KHR_XCB_SURFACE_EXTENSION_NAME)) + enabledExts.push_back(VK_KHR_XCB_SURFACE_EXTENSION_NAME); + VkInstanceCreateInfo createInfo = *pCreateInfo; createInfo.enabledExtensionCount = uint32_t(enabledExts.size()); createInfo.ppEnabledExtensionNames = enabledExts.data();