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:
parent
b6f3ce32e2
commit
131b414feb
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue