st/dri2: Flush FRAME instead of RENDER_CACHE on buffer invalidation.
This commit is contained in:
parent
f455ca6490
commit
52e3f0949d
|
@ -288,11 +288,11 @@ dri_update_buffer(struct pipe_screen *screen, void *context_private)
|
||||||
ctx->r_stamp == *ctx->rPriv->pStamp)
|
ctx->r_stamp == *ctx->rPriv->pStamp)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
st_flush(ctx->st, PIPE_FLUSH_FRAME, NULL);
|
||||||
|
|
||||||
ctx->d_stamp = *ctx->dPriv->pStamp;
|
ctx->d_stamp = *ctx->dPriv->pStamp;
|
||||||
ctx->r_stamp = *ctx->rPriv->pStamp;
|
ctx->r_stamp = *ctx->rPriv->pStamp;
|
||||||
|
|
||||||
st_flush(ctx->st, PIPE_FLUSH_RENDER_CACHE, NULL);
|
|
||||||
|
|
||||||
/* Ask the X server for new renderbuffers. */
|
/* Ask the X server for new renderbuffers. */
|
||||||
dri_get_buffers(ctx->dPriv);
|
dri_get_buffers(ctx->dPriv);
|
||||||
if (ctx->dPriv != ctx->rPriv)
|
if (ctx->dPriv != ctx->rPriv)
|
||||||
|
|
Loading…
Reference in New Issue