From efd47c3012903768019545a49d72361652e07946 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Tue, 20 Dec 2022 10:43:29 +0000 Subject: [PATCH] layer: Expose scRGB surface format --- layer/VkLayer_FROG_gamescope_wsi.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layer/VkLayer_FROG_gamescope_wsi.cpp b/layer/VkLayer_FROG_gamescope_wsi.cpp index 4f6f57f..4bb5aef 100644 --- a/layer/VkLayer_FROG_gamescope_wsi.cpp +++ b/layer/VkLayer_FROG_gamescope_wsi.cpp @@ -152,9 +152,10 @@ namespace GamescopeWSILayer { return CreateGamescopeSurface(pDispatch, gamescopeInstance, instance, XGetXCBConnection(pCreateInfo->dpy), xcb_window_t(pCreateInfo->window), pAllocator, pSurface); } - static constexpr std::array s_ExtraSurfaceFormat2s = {{ + static constexpr std::array s_ExtraSurfaceFormat2s = {{ { .surfaceFormat = { VK_FORMAT_A2B10G10R10_UNORM_PACK32, VK_COLOR_SPACE_HDR10_ST2084_EXT, } }, { .surfaceFormat = { VK_FORMAT_A2R10G10B10_UNORM_PACK32, VK_COLOR_SPACE_HDR10_ST2084_EXT, } }, + { .surfaceFormat = { VK_FORMAT_R16G16B16A16_SFLOAT, VK_COLOR_SPACE_EXTENDED_SRGB_NONLINEAR_EXT, } }, }}; static constexpr auto s_ExtraSurfaceFormats = []() {