From 46929c93d8c3b1a9682c24b3f3f6d6ed1878e422 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Fri, 29 Sep 2006 10:22:54 +0000 Subject: i915: Fix wait for scheduled swap on secondary display. --- src/mesa/drivers/dri/i915/intel_context.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/mesa') diff --git a/src/mesa/drivers/dri/i915/intel_context.h b/src/mesa/drivers/dri/i915/intel_context.h index 6cd6272053..05195e76d6 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; \ -- cgit v1.2.3