i915tex: Set intel_fb->vbl_waited to current instead of what we aimed for.
authorMichel Dänzer <michel@tungstengraphics.com>
Fri, 9 Mar 2007 18:56:55 +0000 (19:56 +0100)
committerMichel Dänzer <michel@tungstengraphics.com>
Fri, 9 Mar 2007 18:56:55 +0000 (19:56 +0100)
src/mesa/drivers/dri/i915tex/intel_context.c

index b8515fe9b848612f1082ac837d9b08a1d65916c0..5c2cdf0c7d620cfc7d10ace992b15fcbc9472f99 100644 (file)
@@ -730,7 +730,7 @@ void LOCK_HARDWARE( struct intel_context *intel )
 
        vbl.request.sequence = intel_rb->vbl_pending;
        drmWaitVBlank(intel->driFd, &vbl);
-       intel_fb->vbl_waited = intel_rb->vbl_pending;
+       intel_fb->vbl_waited = vbl.reply.sequence;
     }
 
     DRM_CAS(intel->driHwLock, intel->hHWContext,