sna: Check that the scanout is still attached before waiting for scanline

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2011-06-12 20:13:26 +01:00
parent bb08e73c55
commit b881d1b16a
1 changed files with 3 additions and 1 deletions

View File

@ -1877,9 +1877,11 @@ sna_wait_for_scanline(struct sna *sna,
if (crtc == NULL) {
crtc = sna_covering_crtc(sna->scrn, clip, NULL, &crtc_box);
assert(crtc);
if (crtc == NULL)
return false;
} else
sna_crtc_box(crtc, &crtc_box);
assert(sna_crtc_on(crtc));
if (crtc->transform_in_use) {
box = *clip;