sna: Use a stricter test for determining CRTC off before updating the cursor

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2014-07-11 22:23:55 +01:00
parent e0523ade28
commit 4422b18542
1 changed files with 2 additions and 2 deletions

View File

@ -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) {