Block in kernel waiting for fence
authorKeith Packard <keithp@keithp.com>
Wed, 12 Dec 2007 04:27:13 +0000 (20:27 -0800)
committerKeith Packard <keithp@keithp.com>
Wed, 12 Dec 2007 04:27:42 +0000 (20:27 -0800)
src/mesa/drivers/dri/intel/intel_bufmgr_ttm.c

index ab52efca372faff008c01cf42e10e3f6cf72e047..e1c56afe5b5bc0cf3a332b4fce16832baf7cbdb6 100644 (file)
@@ -754,7 +754,7 @@ dri_ttm_fence_wait(dri_fence *fence)
     int ret;
 
     _glthread_LOCK_MUTEX(bufmgr_ttm->mutex);
-    ret = drmFenceWait(bufmgr_ttm->fd, 0, &fence_ttm->drm_fence, 0);
+    ret = drmFenceWait(bufmgr_ttm->fd, DRM_FENCE_FLAG_WAIT_LAZY, &fence_ttm->drm_fence, 0);
     _glthread_UNLOCK_MUTEX(bufmgr_ttm->mutex);
     if (ret != 0) {
        _mesa_printf("%s:%d: Error %d waiting for fence %s.\n",