]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: Calculate ODM width using odm slice rect, not recout
authorAlvin Lee <alvin.lee2@amd.com>
Wed, 3 Jul 2024 15:36:34 +0000 (11:36 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 23 Jul 2024 21:07:12 +0000 (17:07 -0400)
commit4e8eac98046446d99cbbed740f0767204b839f3f
tree229cf81f9b68199d5cbc95b1f81e6aa5731f3d11
parent39d496d4721ba509647a70041f38d82b03c74680
drm/amd/display: Calculate ODM width using odm slice rect, not recout

[Description]
There are scenarios where ODM4:1 is used but the
surface is entirely outside of the first and last
ODM slice. In this case the recout.width for the
first and last slice is 0 because there's no overlap
with the surface and that ODM slice, but this causes
the x_pos for the cursor in this scenario to be
calculated incorrectly. Instead we should use the
ODM slice width instead of the recout width.

Reviewed-by: Nevenko Stupar <nevenko.stupar@amd.com>
Signed-off-by: Jerry Zuo <jerry.zuo@amd.com>
Signed-off-by: Alvin Lee <alvin.lee2@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c