sna: Disable hw cursor when random transforms are applied
Ideally, we would iterate over each CRTC and check that the transformed cursor is still valid for the HW plane and then remember to transform the cursor before displaying. Disabling the HW cursor if a non-native transform is the first step in correcting the display of said cursor. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
341654dc27
commit
56ebdb7d95
|
|
@ -5279,6 +5279,9 @@ sna_use_hw_cursor(ScreenPtr screen, CursorPtr cursor)
|
|||
sna->cursor.ref = NULL;
|
||||
}
|
||||
|
||||
if (sna->mode.rr_active)
|
||||
return FALSE;
|
||||
|
||||
sna->cursor.size = __cursor_size(cursor);
|
||||
if (sna->cursor.size > sna->cursor.max_size)
|
||||
return FALSE;
|
||||
|
|
|
|||
Loading…
Reference in New Issue