summaryrefslogtreecommitdiff
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorMichel Dänzer <michel@daenzer.net>2006-09-28 14:07:56 +0000
committerMichel Dänzer <michel@daenzer.net>2006-09-28 14:07:56 +0000
commit941c8667394a3ea5b4793d988796e0f397390626 (patch)
tree1bbced1ee2977c62aca60b734ceacb854ec6c589 /src/mesa/drivers
parentc2f1a1857e553f4d11fc0715bb586f69ac147df0 (diff)
i915: Handle DRM_VBLANK_SECONDARY when scheduling buffer swaps.
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/i915/intel_batchbuffer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i915/intel_batchbuffer.c b/src/mesa/drivers/dri/i915/intel_batchbuffer.c
index 8b1c1c5b98..865f15e79f 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;