xf86-video-intel: src/sna/sna_display.c

Chris Wilson ickle at kemper.freedesktop.org
Thu Mar 12 07:30:32 PDT 2015


 src/sna/sna_display.c |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 56ebdb7d95a9da8fb66ae82d3f546d15bd89b5a6
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Thu Mar 12 14:27:59 2015 +0000

    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 at chris-wilson.co.uk>

diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index 5e800ec..a836b61 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;


More information about the xorg-commit mailing list