libplacebo icon indicating copy to clipboard operation
libplacebo copied to clipboard

Swapchain error when attempting to Create swapchain for id: 5 - format: VK_FORMAT_A2B10G10R10_UNORM_PACK32 - colorspace: VK_COLOR_SPACE_HDR10_ST2084_EXT

Open Erfboom opened this issue 10 months ago • 0 comments

Using Intel UHD630 on Plasma6 wayland , the following command ENABLE_HDR_WSI=1 mpv --vo=gpu-next --target-colorspace-hint --gpu-api=vulkan my/hdr/movie.mkv results in

Error:

[HDR Layer] Creating swapchain for id: 5 - format: VK_FORMAT_A2B10G10R10_UNORM_PACK32 - colorspace: VK_COLOR_SPACE_HDR10_ST2084_EXT [HDR Layer] Refusing to make swapchain (unsupported VkFormat) for id: 5 - format: VK_FORMAT_A2B10G10R10_UNORM_PACK32 - colorspace: VK_COLOR_SPACE_HDR10_ST2084_EXT [vo/gpu-next/libplacebo] vk->CreateSwapchainKHR(...): VK_ERROR_INITIALIZATION_FAILED (../src/vulkan/swapchain.c:620) [vo/gpu-next/libplacebo] Failed (re)creating swapchain!

If I drop Enable_HDR_WSI=1 I believe it's being tonemapped as I can see the colors correctly. If I add --target-trc=srgb to the above command, it works but that's because I'm telling mpv how to tonemap, I think...

The same issue happens in Moonlight-Qt with a custom built version that uses libplacebo as a backend.

Erfboom avatar Mar 31 '24 03:03 Erfboom