Tear down batchbuffers unconditionally on LeaveVT

Even if KMS is enabled we should do this, to avoid running batches that
depend on other state we tear down in LeaveVT.
This commit is contained in:
Jesse Barnes 2009-01-21 09:01:05 -08:00
parent b6f3ce32e2
commit 131b414feb
1 changed files with 2 additions and 1 deletions

View File

@ -3581,7 +3581,6 @@ I830LeaveVT(int scrnIndex, int flags)
*/
if (!pI830->memory_manager)
intel_bufmgr_fake_evict_all(pI830->bufmgr);
intel_batch_teardown(pScrn);
if (!pI830->memory_manager)
i830_stop_ring(pScrn, TRUE);
@ -3592,6 +3591,8 @@ I830LeaveVT(int scrnIndex, int flags)
}
}
intel_batch_teardown(pScrn);
if (I830IsPrimary(pScrn))
i830_unbind_all_memory(pScrn);