r600g: don't mark unused atom dirty
authorGrazvydas Ignotas <notasas@gmail.com>
Sun, 9 Aug 2015 21:42:34 +0000 (00:42 +0300)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 11 Aug 2015 12:46:54 +0000 (14:46 +0200)
On evergreen config_state is not used, so don't mark it dirty.

Signed-off-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/r600/r600_hw_context.c

index d67fdfd41062e283d6a45a4b287956f757a7a765..c048a713099e23a9c85e8bcc15ee715977935f9e 100644 (file)
@@ -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);