radeonsi: merge si_pm4_free_state_simple() into si_pm4_free_state()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
Samuel Pitoiset 2017-05-30 18:53:14 +02:00
parent d8debc6aad
commit d90a6c2f23
2 changed files with 2 additions and 8 deletions

View File

@ -110,12 +110,6 @@ void si_pm4_clear_state(struct si_pm4_state *state)
state->ndw = 0;
}
void si_pm4_free_state_simple(struct si_pm4_state *state)
{
si_pm4_clear_state(state);
FREE(state);
}
void si_pm4_free_state(struct si_context *sctx,
struct si_pm4_state *state,
unsigned idx)
@ -127,7 +121,8 @@ void si_pm4_free_state(struct si_context *sctx,
sctx->emitted.array[idx] = NULL;
}
si_pm4_free_state_simple(state);
si_pm4_clear_state(state);
FREE(state);
}
void si_pm4_emit(struct si_context *sctx, struct si_pm4_state *state)

View File

@ -72,7 +72,6 @@ void si_pm4_upload_indirect_buffer(struct si_context *sctx,
struct si_pm4_state *state);
void si_pm4_clear_state(struct si_pm4_state *state);
void si_pm4_free_state_simple(struct si_pm4_state *state);
void si_pm4_free_state(struct si_context *sctx,
struct si_pm4_state *state,
unsigned idx);