]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 18 Oct 2019 08:26:16 +0000 (04:26 -0400)
commitd955bf5baf907f13f3f9d0196303fb495cc420bf
tree2f27c1213682de246990986ed03c33d2c5d5d26c
parent91b602ddea1e18d4f9edc704f3e7093958945e45
drm/amd/display: fix issue where 252-255 values are clipped

BugLink: https://bugs.launchpad.net/bugs/1848047
[ 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>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_cm_common.c