From: Grazvydas Ignotas Date: Sun, 9 Aug 2015 21:42:34 +0000 (+0300) Subject: r600g: don't mark unused atom dirty X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c58534c1384dc63bb1b13eb37c06bdb4652c13ff;p=mesa.git 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 --- diff --git a/src/gallium/drivers/r600/r600_hw_context.c b/src/gallium/drivers/r600/r600_hw_context.c index d67fdfd4106..c048a713099 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);