Don't try to do anything for I830Sync when VT switched.

Fixes a crash with fake bufmgr and UXA.
This commit is contained in:
Eric Anholt 2009-04-27 11:18:07 -07:00
parent 9748aa5594
commit e55d943126
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ I830Sync(ScrnInfoPtr pScrn)
if (I810_DEBUG & (DEBUG_VERBOSE_ACCEL | DEBUG_VERBOSE_SYNC))
ErrorF("I830Sync\n");
if (pI830->accel == ACCEL_NONE)
if (pI830->accel == ACCEL_NONE || !pScrn->vtSema || !pI830->batch_bo)
return;
#ifdef XF86DRI