replace magic number 3 with DRM_FENCE_TYPE_EXE | DRM_I915_FENCE_TYPE_RW in driFenceFi...
authorBrian <brian.paul@tungstengraphics.com>
Wed, 7 Nov 2007 22:22:07 +0000 (15:22 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Wed, 7 Nov 2007 23:08:04 +0000 (16:08 -0700)
src/mesa/drivers/dri/intel_winsys/intel_batchbuffer.c

index 89d72c94483c9a20d9c16210fa9e4fc68e92e74c..784ed2210acebd38e7a5b43caa0d54b772762a8b 100644 (file)
@@ -151,7 +151,8 @@ intel_batchbuffer_free(struct intel_batchbuffer *batch)
 {
    if (batch->last_fence) {
       driFenceFinish(batch->last_fence,
-      DRM_FENCE_TYPE_EXE | DRM_I915_FENCE_TYPE_RW, GL_FALSE);
+                     DRM_FENCE_TYPE_EXE | DRM_I915_FENCE_TYPE_RW,
+                     GL_FALSE);
       driFenceUnReference(batch->last_fence);
       batch->last_fence = NULL;
    }
@@ -311,7 +312,9 @@ intel_batchbuffer_finish(struct intel_batchbuffer *batch)
 {
    struct _DriFenceObject *fence = intel_batchbuffer_flush(batch);
    driFenceReference(fence);
-   driFenceFinish(fence, 3, GL_FALSE);
+   driFenceFinish(fence,
+                  DRM_FENCE_TYPE_EXE | DRM_I915_FENCE_TYPE_RW,
+                  GL_FALSE);
    driFenceUnReference(fence);
 }