From 941c8667394a3ea5b4793d988796e0f397390626 Mon Sep 17 00:00:00 2001 From: Michel Dänzer Date: Thu, 28 Sep 2006 14:07:56 +0000 Subject: i915: Handle DRM_VBLANK_SECONDARY when scheduling buffer swaps. --- src/mesa/drivers/dri/i915/intel_batchbuffer.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mesa/drivers/dri/i915/intel_batchbuffer.c') 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; -- cgit v1.2.3