From: Marek Olšák Date: Sun, 9 Apr 2017 14:03:59 +0000 (+0200) Subject: st/mesa: invalidate the readpix cache in st_indirect_draw_vbo X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7cd6e2df65de9e2f0d77022a64c4e48ca2ebcb33;p=mesa.git st/mesa: invalidate the readpix cache in st_indirect_draw_vbo Cc: Reviewed-by: Ilia Mirkin Reviewed-by: Brian Paul --- diff --git a/src/mesa/state_tracker/st_draw.c b/src/mesa/state_tracker/st_draw.c index 561633cdaf0..8069f107880 100644 --- a/src/mesa/state_tracker/st_draw.c +++ b/src/mesa/state_tracker/st_draw.c @@ -274,6 +274,8 @@ st_indirect_draw_vbo(struct gl_context *ctx, assert(ctx->NewState == 0x0); assert(stride); + st_invalidate_readpix_cache(st); + /* Validate state. */ if ((st->dirty | ctx->NewDriverState) & ST_PIPELINE_RENDER_STATE_MASK || st->gfx_shaders_may_be_dirty) {