]> git.itanic.dy.fi Git - linux-stable/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Oct 2019 16:56:41 +0000 (18:56 +0200)
commit24ba84ec00166e00f44735da6589d2508e60a561
treeb8396583d313b64529d79d6cd75bf8b0db65b1b4
parentefb0e1e3d0e148d03e3214d84ddce99c74bbedda
drm/amd/display: fix issue where 252-255 values are clipped

[ Upstream commit 1cbcfc975164f397b449efb17f59d81a703090db ]

[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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_cm_common.c