From a0222d4142a9a3a93ca13dfb761393e5fb2dfe47 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Sat, 17 Dec 2022 16:27:29 +0000 Subject: [PATCH] layer: Log swapchain format --- layer/VkLayer_FROG_gamescope_wsi.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/layer/VkLayer_FROG_gamescope_wsi.cpp b/layer/VkLayer_FROG_gamescope_wsi.cpp index ad9d226..3a16be2 100644 --- a/layer/VkLayer_FROG_gamescope_wsi.cpp +++ b/layer/VkLayer_FROG_gamescope_wsi.cpp @@ -443,8 +443,10 @@ namespace GamescopeWSILayer { // Force the colorspace to sRGB before sending to the driver. swapchainInfo.imageColorSpace = VK_COLOR_SPACE_SRGB_NONLINEAR_KHR; - fprintf(stderr, "[Gamescope WSI] Creating swapchain for wl_surface for xid: 0x%0x - colorspace: %s\n", - gamescopeSurface->window, vkroots::helpers::enumString(pCreateInfo->imageColorSpace)); + fprintf(stderr, "[Gamescope WSI] Creating swapchain for xid: 0x%0x - format: %s - colorspace: %s\n", + gamescopeSurface->window, + vkroots::helpers::enumString(pCreateInfo->imageFormat), + vkroots::helpers::enumString(pCreateInfo->imageColorSpace)); } VkResult result = pDispatch->CreateSwapchainKHR(device, &swapchainInfo, pAllocator, pSwapchain);