Skip to content

Commit d74c67d

Browse files
Michel Dänzeralexdeucher
authored andcommitted
drm/radeon: Use mode h/vdisplay fields to hide out of bounds HW cursor
The crtc_h/vdisplay fields may not match the CRTC viewport dimensions with special modes such as interlaced ones. Fixes the HW cursor disappearing in the bottom half of the screen with interlaced modes. Fixes: 6b16cf7 ("drm/radeon: Hide the HW cursor while it's out of bounds") Cc: [email protected] Reported-by: Ashutosh Kumar <[email protected]> Tested-by: Sonny Jiang <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Michel Dänzer <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 697d3a2 commit d74c67d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/gpu/drm/radeon/radeon_cursor.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@ static int radeon_cursor_move_locked(struct drm_crtc *crtc, int x, int y)
205205
}
206206

207207
if (x <= (crtc->x - w) || y <= (crtc->y - radeon_crtc->cursor_height) ||
208-
x >= (crtc->x + crtc->mode.crtc_hdisplay) ||
209-
y >= (crtc->y + crtc->mode.crtc_vdisplay))
208+
x >= (crtc->x + crtc->mode.hdisplay) ||
209+
y >= (crtc->y + crtc->mode.vdisplay))
210210
goto out_of_bounds;
211211

212212
x += xorigin;

0 commit comments

Comments
 (0)