From 4422b1854209a2cdf023c1fbc60834fde2fbc0c7 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 11 Jul 2014 22:23:55 +0100 Subject: [PATCH] sna: Use a stricter test for determining CRTC off before updating the cursor Signed-off-by: Chris Wilson --- src/sna/sna_display.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c index ba1a483..18d70e8 100644 --- a/src/sna/sna_display.c +++ b/src/sna/sna_display.c @@ -4328,7 +4328,7 @@ sna_show_cursors(ScrnInfoPtr scrn) struct sna_cursor *cursor; assert(sna_crtc != NULL); - if (!crtc->enabled) + if (sna_crtc->bo == NULL) continue; if (!crtc->cursor_in_range) @@ -4479,7 +4479,7 @@ sna_set_cursor_position(ScrnInfoPtr scrn, int x, int y) arg.crtc_id = sna_crtc->id; arg.handle = 0; - if (!crtc->enabled) + if (sna_crtc->bo == NULL) goto disable; if (crtc->transform_in_use) { -- 2.7.4