gallium: remove flags from the flush function
[mesa.git] / src / gallium / state_trackers / xorg / xorg_dri2.c
index edd988f4e0926f2605bdbdda1281d074199f509f..6f2c52eabb66cb01f711bf2c1ad0b2a7ac68f3ec 100644 (file)
@@ -336,7 +336,7 @@ dri2_copy_region(DrawablePtr pDraw, RegionPtr pRegion,
        /* pixmap glXWaitX */
        if (pSrcBuffer->attachment == DRI2BufferFrontLeft &&
            pDestBuffer->attachment == DRI2BufferFakeFrontLeft) {
-           ms->ctx->flush(ms->ctx, PIPE_FLUSH_SWAPBUFFERS, NULL);
+           ms->ctx->flush(ms->ctx, NULL);
            return;
        }
        /* pixmap glXWaitGL */
@@ -389,7 +389,7 @@ dri2_copy_region(DrawablePtr pDraw, RegionPtr pRegion,
 
     FreeScratchGC(gc);
 
-    ms->ctx->flush(ms->ctx, PIPE_FLUSH_SWAPBUFFERS,
+    ms->ctx->flush(ms->ctx,
                   (pDestBuffer->attachment == DRI2BufferFrontLeft
                    && ms->swapThrottling) ?
                   &dst_priv->fence : NULL);