summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-07-11 22:23:55 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-07-11 22:23:55 +0100
commit4422b1854209a2cdf023c1fbc60834fde2fbc0c7 (patch)
tree43fdb70e972091bd3bc805f814f21f2fd51a7127
parente0523ade28fa0da00d0bd70d8b22d53ed4e49f73 (diff)
sna: Use a stricter test for determining CRTC off before updating the cursor
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_display.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index ba1a4838..18d70e88 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) {