wlroots/backend/drm
Diego Gomez 80e0c28588 backend/drm: default COLOR_RANGE to full instead of limited
When color_range is WLR_COLOR_RANGE_NONE (unspecified by the
compositor), default to full range instead of limited. NVIDIA's
DRM driver defaults to limited range (16-235) when COLOR_RANGE is
not explicitly set, causing a washed-out desktop on Wayland.

This is a no-op on Intel and AMD (which ignore COLOR_RANGE for
RGB per the DRM spec) but fixes NVIDIA's washed-out output.

An equivalent fix has been submitted to KWin:
https://invent.kde.org/plasma/kwin/-/merge_requests/9075

See https://github.com/NVIDIA/open-gpu-kernel-modules/discussions/1105
2026-04-11 09:47:54 -04:00
..
atomic.c backend/drm: default COLOR_RANGE to full instead of limited 2026-04-11 09:47:54 -04:00
backend.c treewide: make type-check helpers take const pointers 2026-03-06 16:04:21 +08:00
drm.c output/drm: don't use OUT_FENCE_PTR 2026-03-17 18:14:35 +00:00
fb.c backend/drm: add drm_fb_copy() 2024-03-04 11:25:33 +01:00
gen_pnpids.sh backend/drm: use libdisplay-info to parse EDID 2023-02-28 14:44:02 +00:00
legacy.c backend/drm: add support for color transforms 2025-06-16 09:06:10 +00:00
libliftoff.c output/drm: don't use OUT_FENCE_PTR 2026-03-17 18:14:35 +00:00
meson.build backend/drm: add support for color primaries 2025-06-18 00:07:58 +02:00
monitor.c backend/drm: drop wl_display argument 2024-01-25 15:05:36 +00:00
properties.c backend/drm: Add color_range/encoding properties 2026-03-17 16:32:30 +00:00
renderer.c backend/drm: log when creating multi-GPU renderer 2025-01-30 02:10:58 +00:00
util.c drm: save edid color characteristics in wlr_output 2025-11-06 10:29:12 +00:00