sna: Remember to decouple the fb on closing

... so that we actually attach a new one after regen!

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2011-06-10 11:27:04 +01:00
parent b6192ce95a
commit cfde920a2e
2 changed files with 1 additions and 1 deletions

View File

@ -1846,4 +1846,3 @@ sna_wait_for_scanline(struct sna *sna, PixmapPtr pixmap,
kgem_advance_batch(&sna->kgem, 5);
return true;
}

View File

@ -763,6 +763,7 @@ static Bool sna_close_screen(int scrnIndex, ScreenPtr screen)
sna->directRenderingOpen = FALSE;
}
sna_mode_remove_fb(sna);
xf86GARTCloseScreen(scrnIndex);
scrn->vtSema = FALSE;