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:
Chris Wilson 2015-03-12 14:27:59 +00:00
parent 341654dc27
commit 56ebdb7d95
1 changed files with 3 additions and 0 deletions

View File

@ -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;