mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 17:48:10 +02:00
i915: Fix wait for scheduled swap on secondary display.
This commit is contained in:
parent
7fa99ed3d8
commit
46929c93d8
1 changed files with 5 additions and 0 deletions
|
|
@ -34,6 +34,7 @@
|
|||
#include "drm.h"
|
||||
#include "mm.h"
|
||||
#include "texmem.h"
|
||||
#include "vblank.h"
|
||||
|
||||
#include "intel_screen.h"
|
||||
#include "i915_drm.h"
|
||||
|
|
@ -326,6 +327,10 @@ do { \
|
|||
if ((intel)->swap_scheduled) { \
|
||||
drmVBlank vbl; \
|
||||
vbl.request.type = DRM_VBLANK_ABSOLUTE; \
|
||||
if ((intel)->vblank_flags & \
|
||||
VBLANK_FLAG_SECONDARY) { \
|
||||
vbl.request.type |= DRM_VBLANK_SECONDARY; \
|
||||
} \
|
||||
vbl.request.sequence = (intel)->vbl_seq; \
|
||||
drmWaitVBlank((intel)->driFd, &vbl); \
|
||||
(intel)->swap_scheduled = 0; \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue