i915: Handle DRM_VBLANK_SECONDARY when scheduling buffer swaps.

This commit is contained in:
Michel Dänzer
2006-09-28 14:07:56 +00:00
parent c2f1a1857e
commit 941c866739

View 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;