diff options
author | Michel Dänzer <[email protected]> | 2006-09-28 14:07:56 +0000 |
---|---|---|
committer | Michel Dänzer <[email protected]> | 2006-09-28 14:07:56 +0000 |
commit | 941c8667394a3ea5b4793d988796e0f397390626 (patch) | |
tree | 1bbced1ee2977c62aca60b734ceacb854ec6c589 /src/mesa/drivers/dri/i915/intel_batchbuffer.c | |
parent | c2f1a1857e553f4d11fc0715bb586f69ac147df0 (diff) |
i915: Handle DRM_VBLANK_SECONDARY when scheduling buffer swaps.
Diffstat (limited to 'src/mesa/drivers/dri/i915/intel_batchbuffer.c')
-rw-r--r-- | src/mesa/drivers/dri/i915/intel_batchbuffer.c | 4 |
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 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; |