]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: fix recout calculation for left side clip
authorDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Mon, 26 Oct 2020 15:48:58 +0000 (11:48 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 2 Nov 2020 20:32:37 +0000 (15:32 -0500)
commit3f3a1f98165fd79132c6b296534e1c092b449ad7
treea0772ff973822a25f05b3d3ff74b33f87a7e4d61
parent45419491c757575fd2a34c893a43d99facac833e
drm/amd/display: fix recout calculation for left side clip

Recout calculation does not corrrectly handle plane
clip rect that extends beyond the left most border
of stream source rect. This change adds handling by
truncating the invisible clip rect.

Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Reviewed-by: Hersen Wu <hersenxs.wu@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_resource.c