summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlvin Lee <alvin.lee2@amd.com>2024-07-03 18:36:34 +0300
committerAlex Deucher <alexander.deucher@amd.com>2024-07-24 00:07:12 +0300
commit4e8eac98046446d99cbbed740f0767204b839f3f (patch)
tree229cf81f9b68199d5cbc95b1f81e6aa5731f3d11 /scripts
parent39d496d4721ba509647a70041f38d82b03c74680 (diff)
downloadlinux-4e8eac98046446d99cbbed740f0767204b839f3f.tar.xz
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>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions