st/dri2: Flush FRAME instead of RENDER_CACHE on buffer invalidation.
authorFrancisco Jerez <currojerez@riseup.net>
Tue, 16 Feb 2010 17:17:11 +0000 (18:17 +0100)
committerFrancisco Jerez <currojerez@riseup.net>
Wed, 17 Feb 2010 22:15:48 +0000 (23:15 +0100)
src/gallium/state_trackers/dri/dri_drawable.c

index 4d7596a831abd92e143e7d0f4af447dea07fad48..195ae7b8bc2eeee3042e2f584221aaa59885e748 100644 (file)
@@ -288,11 +288,11 @@ dri_update_buffer(struct pipe_screen *screen, void *context_private)
        ctx->r_stamp == *ctx->rPriv->pStamp)
       return;
 
+   st_flush(ctx->st, PIPE_FLUSH_FRAME, NULL);
+
    ctx->d_stamp = *ctx->dPriv->pStamp;
    ctx->r_stamp = *ctx->rPriv->pStamp;
 
-   st_flush(ctx->st, PIPE_FLUSH_RENDER_CACHE, NULL);
-
    /* Ask the X server for new renderbuffers. */
    dri_get_buffers(ctx->dPriv);
    if (ctx->dPriv != ctx->rPriv)