i915: Fixed weird fence leak when I915_VBUF=true
authorJakob Bornecrantz <jakob@tungstengraphics.com>
Tue, 22 Apr 2008 20:23:22 +0000 (22:23 +0200)
committerJakob Bornecrantz <jakob@tungstengraphics.com>
Tue, 22 Apr 2008 20:23:22 +0000 (22:23 +0200)
src/gallium/winsys/dri/intel/intel_swapbuffers.c

index 923b5427714f6039a83385a175d0ccf4b3467533..f029dd6a90ddafa32f03cd1b029def3c4b32f493 100644 (file)
@@ -62,7 +62,7 @@ intelDisplaySurface(__DRIdrawablePrivate *dPriv,
    }
 
    if (intel->last_swap_fence) {
-      driFenceFinish(intel->last_swap_fence, DRM_FENCE_TYPE_EXE, TRUE);
+      driFenceFinish(intel->last_swap_fence, driFenceType(intel->last_swap_fence), GL_FALSE);
       driFenceUnReference(&intel->last_swap_fence);
       intel->last_swap_fence = NULL;
    }