Module: Mesa
Branch: master
Commit: c58534c1384dc63bb1b13eb37c06bdb4652c13ff
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=c58534c1384dc63bb1b13eb37c06bdb4652c13ff

Author: Grazvydas Ignotas <nota...@gmail.com>
Date:   Mon Aug 10 00:42:34 2015 +0300

r600g: don't mark unused atom dirty

On evergreen config_state is not used, so don't mark it dirty.

Signed-off-by: Marek Olšák <marek.ol...@amd.com>

---

 src/gallium/drivers/r600/r600_hw_context.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/r600/r600_hw_context.c 
b/src/gallium/drivers/r600/r600_hw_context.c
index d67fdfd..c048a71 100644
--- a/src/gallium/drivers/r600/r600_hw_context.c
+++ b/src/gallium/drivers/r600/r600_hw_context.c
@@ -312,7 +312,9 @@ void r600_begin_new_cs(struct r600_context *ctx)
                r600_mark_atom_dirty(ctx, &ctx->scissor[i].atom);
                r600_mark_atom_dirty(ctx, &ctx->viewport[i].atom);
        }
-       r600_mark_atom_dirty(ctx, &ctx->config_state.atom);
+       if (ctx->b.chip_class < EVERGREEN) {
+               r600_mark_atom_dirty(ctx, &ctx->config_state.atom);
+       }
        r600_mark_atom_dirty(ctx, &ctx->stencil_ref.atom);
        r600_mark_atom_dirty(ctx, &ctx->vertex_fetch_shader.atom);
        r600_mark_atom_dirty(ctx, &ctx->export_shader.atom);

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to