radeonsi: remove useless variable si_context::pm4_dirty_cdwords

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
This commit is contained in:
Marek Olšák 2014-12-07 15:58:46 +01:00
parent e90bae4376
commit c6546cfb03
3 changed files with 1 additions and 11 deletions

View File

@ -43,7 +43,7 @@ void si_need_cs_space(struct si_context *ctx, unsigned num_dw,
}
/* The number of dwords all the dirty states would take. */
num_dw += ctx->pm4_dirty_cdwords;
num_dw += si_pm4_dirty_dw(ctx);
/* The upper-bound of how much a draw command would take. */
num_dw += SI_MAX_DRAW_CS_DWORDS;
@ -131,8 +131,6 @@ void si_context_gfx_flush(void *context, unsigned flags,
void si_begin_new_cs(struct si_context *ctx)
{
ctx->pm4_dirty_cdwords = 0;
/* Flush read caches at the beginning of CS. */
ctx->b.flags |= R600_CONTEXT_INV_TEX_CACHE |
R600_CONTEXT_INV_CONST_CACHE |

View File

@ -137,10 +137,6 @@ struct si_context {
unsigned default_ps_gprs, default_vs_gprs;
/* Below are variables from the old r600_context.
*/
unsigned pm4_dirty_cdwords;
/* Vertex and index buffers. */
bool vertex_buffers_dirty;
struct pipe_index_buffer index_buffer;

View File

@ -1016,8 +1016,6 @@ void si_draw_vbo(struct pipe_context *ctx, const struct pipe_draw_info *info)
if (!si_update_draw_info_state(sctx, info, &ib))
return;
sctx->pm4_dirty_cdwords += si_pm4_dirty_dw(sctx);
/* Check flush flags. */
if (sctx->b.flags)
sctx->atoms.s.cache_flush->dirty = true;
@ -1033,8 +1031,6 @@ void si_draw_vbo(struct pipe_context *ctx, const struct pipe_draw_info *info)
}
si_pm4_emit_dirty(sctx);
sctx->pm4_dirty_cdwords = 0;
si_emit_draw_packets(sctx, info, &ib);
#if SI_TRACE_CS