summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorMichel Dänzer <[email protected]>2006-09-29 10:22:54 +0000
committerMichel Dänzer <[email protected]>2006-09-29 10:22:54 +0000
commit46929c93d8c3b1a9682c24b3f3f6d6ed1878e422 (patch)
treec47276d1e2c4c7dd30220b49b43e6710ab4c881a /src/mesa/drivers
parent7fa99ed3d825707fd0a6abdd690abb9e6af5ba9d (diff)
i915: Fix wait for scheduled swap on secondary display.
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/i915/intel_context.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i915/intel_context.h b/src/mesa/drivers/dri/i915/intel_context.h
index 6cd6272053f..05195e76d65 100644
--- a/src/mesa/drivers/dri/i915/intel_context.h
+++ b/src/mesa/drivers/dri/i915/intel_context.h
@@ -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; \