intel_winsys: Disable scheduled buffer swaps for now.
authorMichel Dänzer <michel@tungstengraphics.com>
Tue, 18 Sep 2007 20:50:31 +0000 (21:50 +0100)
committerMichel Dänzer <michel@tungstengraphics.com>
Tue, 18 Sep 2007 20:50:31 +0000 (21:50 +0100)
They don't work with private back buffers yet.

This gets vsync working.

src/mesa/drivers/dri/intel_winsys/intel_swapbuffers.c

index d9adcd3a62379926838b188862bf0abe8a2a0ff1..48c1f68d9c330a69ba52950f1fc681ada1f1e6c3 100644 (file)
@@ -496,7 +496,8 @@ intelScheduleSwap(const __DRIdrawablePrivate * dPriv, GLboolean *missed_target)
    drm_i915_vblank_swap_t swap;
    GLboolean ret;
 
-   if (!intel_fb->vblank_flags ||
+   /* XXX: Scheduled buffer swaps don't work with private back buffers yet */
+   if (1 || !intel_fb->vblank_flags ||
        (intel_fb->vblank_flags & VBLANK_FLAG_NO_IRQ) ||
        intelScreen->drmMinor < (intel_fb->pf_active ? 9 : 6))
       return GL_FALSE;