Skip to content

Commit 1cbcfc9

Browse files
anthony-koo2alexdeucher
authored andcommitted
drm/amd/display: fix issue where 252-255 values are clipped
[Why] When endpoint is at the boundary of a region, such as at 2^0=1 we find that the last segment has a sharp slope and some points are clipped at the top. [How] If end point is 1, which is exactly at the 2^0 region boundary, we need to program an additional region beyond this point. Signed-off-by: Anthony Koo <Anthony.Koo@amd.com> Reviewed-by: Aric Cyr <Aric.Cyr@amd.com> Acked-by: Leo Li <sunpeng.li@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent ac42fd6 commit 1cbcfc9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpu/drm/amd/display/dc/dcn10/dcn10_cm_common.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,10 @@ bool cm_helper_translate_curve_to_hw_format(
357357
seg_distr[7] = 4;
358358
seg_distr[8] = 4;
359359
seg_distr[9] = 4;
360+
seg_distr[10] = 1;
360361

361362
region_start = -10;
362-
region_end = 0;
363+
region_end = 1;
363364
}
364365

365366
for (i = region_end - region_start; i < MAX_REGIONS_NUMBER ; i++)

0 commit comments

Comments
 (0)