summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2019-10-08 05:32:30 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2019-10-08 05:32:30 +0000
commitbf8a09e26fe8761b78e5c02d60c93c7b5c328241 (patch)
tree7ab1fd57c7c4545998e8ed3cd4deef5abc5fe87f /sys/dev/pci/drm
parent8f7154b704a7405752416c7a22d76695b2f06d1b (diff)
drm/amd/display: fix issue where 252-255 values are clipped
From Anthony Koo 24ba84ec00166e00f44735da6589d2508e60a561 in linux 4.19.y/4.19.78 1cbcfc975164f397b449efb17f59d81a703090db in mainline linux
Diffstat (limited to 'sys/dev/pci/drm')
-rw-r--r--sys/dev/pci/drm/amd/display/dc/dcn10/dcn10_cm_common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/amd/display/dc/dcn10/dcn10_cm_common.c b/sys/dev/pci/drm/amd/display/dc/dcn10/dcn10_cm_common.c
index 5d95a997fd9..f8904f73f57 100644
--- a/sys/dev/pci/drm/amd/display/dc/dcn10/dcn10_cm_common.c
+++ b/sys/dev/pci/drm/amd/display/dc/dcn10/dcn10_cm_common.c
@@ -292,9 +292,10 @@ bool cm_helper_translate_curve_to_hw_format(
seg_distr[7] = 4;
seg_distr[8] = 4;
seg_distr[9] = 4;
+ seg_distr[10] = 1;
region_start = -10;
- region_end = 0;
+ region_end = 1;
}
for (i = region_end - region_start; i < MAX_REGIONS_NUMBER ; i++)