i915tex: Also update intel_rb->vbl_pending when scheduled swap is not a flip.
authorMichel Dänzer <michel@tungstengraphics.com>
Wed, 28 Feb 2007 15:05:49 +0000 (16:05 +0100)
committerMichel Dänzer <michel@tungstengraphics.com>
Wed, 28 Feb 2007 15:05:49 +0000 (16:05 +0100)
src/mesa/drivers/dri/i915tex/intel_buffers.c

index 8054d98646bd3e31313c40a23b32d38f26f5904f..5eb2a8e5d094dc49e57a147b475d7648e130b244 100644 (file)
@@ -815,12 +815,12 @@ intelScheduleSwap(const __DRIdrawablePrivate * dPriv, GLboolean *missed_target)
       swap.sequence -= target;
       *missed_target = swap.sequence > 0 && swap.sequence <= (1 << 23);
 
-      if (swap.seqtype & DRM_VBLANK_FLIP) {
+      intel_get_renderbuffer(&intel_fb->Base, BUFFER_BACK_LEFT)->vbl_pending =
         intel_get_renderbuffer(&intel_fb->Base,
                                BUFFER_FRONT_LEFT)->vbl_pending =
-           intel_get_renderbuffer(&intel_fb->Base,
-                                  BUFFER_BACK_LEFT)->vbl_pending = intel_fb->vbl_seq;
+        intel_fb->vbl_seq;
 
+      if (swap.seqtype & DRM_VBLANK_FLIP) {
         intel_flip_renderbuffers(intel_fb);
         intel_draw_buffer(&intel->ctx, intel->ctx.DrawBuffer);
       }