]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: Fix divide by zero in CURSOR_DST_X_OFFSET calculation
authorGeorge Shen <george.shen@amd.com>
Sat, 15 Jun 2024 01:13:43 +0000 (21:13 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 1 Jul 2024 20:06:53 +0000 (16:06 -0400)
commitac01f6ad710c41c8c2cfab24be8bb71586bf8c44
treead75898e64debb6a2cca362bd2a54fb2a19e767b
parenteb6dfbb7a9c67c7d9bcdb9f9b9131270e2144e3d
drm/amd/display: Fix divide by zero in CURSOR_DST_X_OFFSET calculation

[Why]
Certain situations cause pipes to have a recout of 0, such as when the
dst_rect lies completely outside of a given ODM slice.

[How]
Skip calculation that transforms cursor coordinates to viewport space.

Reviewed-by: Alvin Lee <alvin.lee2@amd.com>
Signed-off-by: Jerry Zuo <jerry.zuo@amd.com>
Signed-off-by: George Shen <george.shen@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/hubp/dcn401/dcn401_hubp.c