mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-13 08:22:16 -04:00
Merge branch 'fix/nvidia-color-range-full-rgb' into 'master'
backend/drm: set COLOR_RANGE to full for RGB planes See merge request wlroots/wlroots!5336
This commit is contained in:
commit
9850250547
1 changed files with 4 additions and 1 deletions
|
|
@ -511,10 +511,13 @@ static void set_color_encoding_and_range(struct atomic *atom,
|
|||
|
||||
uint32_t color_range;
|
||||
switch (range) {
|
||||
case WLR_COLOR_RANGE_NONE:
|
||||
case WLR_COLOR_RANGE_LIMITED:
|
||||
color_range = WLR_DRM_COLOR_YCBCR_LIMITED_RANGE;
|
||||
break;
|
||||
case WLR_COLOR_RANGE_NONE:
|
||||
// Workaround for the proprietary NVIDIA driver, which defaults to
|
||||
// limited range when COLOR_RANGE is not set, even for RGB content.
|
||||
// See https://github.com/NVIDIA/open-gpu-kernel-modules/discussions/1105
|
||||
case WLR_COLOR_RANGE_FULL:
|
||||
color_range = WLR_DRM_COLOR_YCBCR_FULL_RANGE;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue