layer: Log swapchain format

This commit is contained in:
Joshua Ashton 2022-12-17 16:27:29 +00:00 committed by Joshie
parent 29d5f8d3f9
commit a0222d4142

View file

@ -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);