From: Michel Dänzer Date: Thu, 28 Sep 2006 14:07:56 +0000 (+0000) Subject: i915: Handle DRM_VBLANK_SECONDARY when scheduling buffer swaps. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=941c8667394a3ea5b4793d988796e0f397390626;p=mesa.git i915: Handle DRM_VBLANK_SECONDARY when scheduling buffer swaps. --- diff --git a/src/mesa/drivers/dri/i915/intel_batchbuffer.c b/src/mesa/drivers/dri/i915/intel_batchbuffer.c index 8b1c1c5b980..865f15e79f5 100644 --- a/src/mesa/drivers/dri/i915/intel_batchbuffer.c +++ b/src/mesa/drivers/dri/i915/intel_batchbuffer.c @@ -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;