i915: Handle DRM_VBLANK_SECONDARY when scheduling buffer swaps.
authorMichel Dänzer <michel@daenzer.net>
Thu, 28 Sep 2006 14:07:56 +0000 (14:07 +0000)
committerMichel Dänzer <michel@daenzer.net>
Thu, 28 Sep 2006 14:07:56 +0000 (14:07 +0000)
src/mesa/drivers/dri/i915/intel_batchbuffer.c

index 8b1c1c5b9802f42086a4428c70e8b1b4df897f67..865f15e79f552fd202e0389f4c6c673afc7ead26 100644 (file)
@@ -402,6 +402,10 @@ void intelCopyBuffer( const __DRIdrawablePrivate *dPriv,
         goto noschedule;
       }
 
+      if ( intel->vblank_flags & VBLANK_FLAG_SECONDARY ) {
+        swap.seqtype |= DRM_VBLANK_SECONDARY;
+      }
+
       if (!drmCommandWriteRead(intel->driFd, DRM_I915_VBLANK_SWAP, &swap,
                               sizeof(swap))) {
         intel->swap_scheduled = 1;