[Mesa-dev] [PATCH 3/7] st/mesa: invalidate the readpix cache in st_indirect_draw_vbo

Marek Olšák maraeo at gmail.com
Fri Apr 14 15:07:10 UTC 2017


From: Marek Olšák <marek.olsak at amd.com>

Cc: <mesa-stable at lists.freedesktop.org>
---
 src/mesa/state_tracker/st_draw.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/mesa/state_tracker/st_draw.c b/src/mesa/state_tracker/st_draw.c
index a781209..dd374ae 100644
--- a/src/mesa/state_tracker/st_draw.c
+++ b/src/mesa/state_tracker/st_draw.c
@@ -265,20 +265,22 @@ st_indirect_draw_vbo(struct gl_context *ctx,
                      GLsizeiptr indirect_params_offset,
                      const struct _mesa_index_buffer *ib)
 {
    struct st_context *st = st_context(ctx);
    struct pipe_draw_info info;
 
    /* Mesa core state should have been validated already */
    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) {
       st_validate_state(st, ST_PIPELINE_RENDER);
    }
 
    if (st->vertex_array_out_of_memory) {
       return;
    }
 
-- 
2.7.4



More information about the mesa-dev mailing list