diff options
author | Kristian Høgsberg <krh@redhat.com> | 2008-08-08 15:36:35 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@redhat.com> | 2008-08-29 14:31:02 -0400 |
commit | fd6a9ca5b59a868260eb91272091ea6169091737 (patch) | |
tree | 32749adb38721a55db7165dc155a72962396a90d /src/i830_accel.c | |
parent | 6404ac178bf2c32a715a66e7fd6ab0184a05af36 (diff) |
Add DRI2 support.
Diffstat (limited to 'src/i830_accel.c')
-rw-r--r-- | src/i830_accel.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/i830_accel.c b/src/i830_accel.c index 386e653f..4059121f 100644 --- a/src/i830_accel.c +++ b/src/i830_accel.c @@ -138,7 +138,7 @@ I830WaitLpRing(ScrnInfoPtr pScrn, int n, int timeout_millis) i830_dump_error_state(pScrn); ErrorF("space: %d wanted %d\n", ring->space, n); #ifdef XF86DRI - if (pI830->directRenderingEnabled) { + if (pI830->directRenderingType == DRI_XF86DRI) { DRIUnlock(screenInfo.screens[pScrn->scrnIndex]); DRICloseScreen(screenInfo.screens[pScrn->scrnIndex]); } @@ -183,7 +183,7 @@ I830Sync(ScrnInfoPtr pScrn) #ifdef XF86DRI /* VT switching tries to do this. */ - if (!pI830->LockHeld && pI830->directRenderingEnabled) { + if (!pI830->LockHeld && pI830->directRenderingType == DRI_XF86DRI) { return; } #endif @@ -194,7 +194,7 @@ I830Sync(ScrnInfoPtr pScrn) intel_batch_flush(pScrn); - if (pI830->directRenderingEnabled) { + if (pI830->directRenderingType > DRI_NONE) { struct drm_i915_irq_emit emit; struct drm_i915_irq_wait wait; int ret; |