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:
parent
e0523ade28
commit
4422b18542
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue