]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/amd/display: fix issue where 252-255 values are clipped
authorAnthony Koo <Anthony.Koo@amd.com>
Fri, 12 Jul 2019 14:52:54 +0000 (10:52 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 15 Aug 2019 15:53:05 +0000 (10:53 -0500)
commit1cbcfc975164f397b449efb17f59d81a703090db
tree6faecc363458923e0a138df9617ca0ab0e57ecdd
parentac42fd639550b386c41d8f3f2dc657d96fde7235
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>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_cm_common.c