Open sixones opened 2 months ago
(expecting
33: VK_FORMAT_B8G8R8A8_UNORM VK_COLOR_SPACE_HDR10_ST2084_EXT
)
@haasn: Are you willing to support 8-bit HDR output? Currently such configuration is not supported https://code.videolan.org/videolan/libplacebo/-/blob/e4e096be9512103381dd9c15f8c9a2669edf22c8/src/vulkan/swapchain.c#L181-189
Most mobile devices only support 8bit HDR, not 10bit.
Since a 10bit configuration isn't available, could the 16bit configuration be picked instead for HDR? Unsure if it's possible for us to influence the configuration that is picked from a code change or via an external option?
Since a 10bit configuration isn't available, could the 16bit configuration
16-bit is picked by default for HDR. Neither VK_FORMAT_R16G16B16_UNORM
nor VK_FORMAT_R16G16B16A16_UNORM
is available on your platform.
Is there a reason it can't use the float version VK_FORMAT_R16G16B16A16_SFLOAT
?
As the title says a non-HDR Vulkan configuration is selected when playing HDR videos, we are not 100% sure if this configuration is still valid, but we are expecting the HDR10 colorspace extension to of been used rather than the pass-through colorspace extension.
Important Information
Reproduction steps
Playing a video with HDR using GPU-Next via Vulkan context on tvOS or iOS.
Expected behavior
Libplacebo / MPV select's a Vulkan configuration that supports HDR (expecting
33: VK_FORMAT_B8G8R8A8_UNORM VK_COLOR_SPACE_HDR10_ST2084_EXT
) and playback of HDR colours are correct.Actual behavior
Non HDR configuration is selected, which leads to incorrect HDR colours.
Log file
Vulkan configurations that are detected as available from the logs below;