From 56ebdb7d95a9da8fb66ae82d3f546d15bd89b5a6 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 12 Mar 2015 14:27:59 +0000 Subject: [PATCH] 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 --- src/sna/sna_display.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c index 5e800eca..a836b61e 100644 --- a/src/sna/sna_display.c +++ b/src/sna/sna_display.c @@ -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;