mesa/src/vulkan/wsi
Mario Kleiner 19dc09aded wsi/display: Accept 0 nits for HDR light level properties for "undefined"
CTA-861-G section 6.9.1 Static Metadata Type 1 declares that zero values
for different groups of HDR Metadata properties are allowed, including
zero nits values for max display mastering luminance, max content light
level, max frame-average light level and min display mastering luminance.

A zero value is meant to be treated by the video sink as "undefined" /
"unknown", and handled accordingly. This is common for dynamically
generated visual content.

Therefore don't assert on some minimum nits level > 0, but only check for
a non-negative level.

Fixes: b4176393a0 ("wsi/display: Implement VK_EXT_hdr_metadata on KHR_display swapchain")
Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
Reviewed-by: Autumn Ashton <misyl@froggi.es>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37880>
2025-11-07 09:50:40 +00:00
..
meson.build x11: Add an x11_xlib_display_is_thread_safe() helper 2025-07-16 01:32:56 +00:00
wsi_common.c mesa: replace most occurrences of getenv() with os_get_option() 2025-11-06 04:36:13 +00:00
wsi_common.h wsi/metal: Backend addition for drivers built on top of Metal 2025-10-13 20:17:17 +00:00
wsi_common_display.c wsi/display: Accept 0 nits for HDR light level properties for "undefined" 2025-11-07 09:50:40 +00:00
wsi_common_display.h vulkan/wsi/display: Wrap wsi_display_fence in a vk_sync 2021-11-16 10:54:27 -06:00
wsi_common_drm.c wsi: Fix the flagging of dma_buf_sync_file for the amdgpu workaround. 2025-10-20 03:58:47 +00:00
wsi_common_drm.h vk/wsi: C++-proof wsi_common_drm.h 2023-03-24 15:49:25 +00:00
wsi_common_headless.c vulkan/wsi/headless: clean up headless wsi device and headers 2025-08-10 07:16:46 +00:00
wsi_common_metal.c wsi/metal: Backend addition for drivers built on top of Metal 2025-10-13 20:17:17 +00:00
wsi_common_metal_layer.h wsi/metal: Disable reference counting 2025-10-13 20:17:16 +00:00
wsi_common_metal_layer.m docs: update/fix vk spec urls 2025-10-22 09:23:34 +02:00
wsi_common_private.h Revert "wsi: Implements scaling controls for DRI3 presentation." 2025-10-16 09:41:00 +00:00
wsi_common_queue.h vulkan/wsi/queue: Use mtx_t and u_cnd_monotonic 2024-07-08 22:09:06 +00:00
wsi_common_wayland.c treewide: use UTIL_DYNARRAY_INIT 2025-11-04 13:39:48 +00:00
wsi_common_win32.cpp vulkan/wsi: Support alpha swapchains on win32 2024-11-13 04:26:46 +00:00
wsi_common_x11.c Revert "wsi: Implements scaling controls for DRI3 presentation." 2025-10-16 09:41:00 +00:00