mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 14:18:07 +02:00
i915: Handle DRM_VBLANK_SECONDARY when scheduling buffer swaps.
This commit is contained in:
parent
c2f1a1857e
commit
941c866739
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue