radeonsi: remove si_pm4_cleanup

All remaining pm4 state are created and destroyed by state trackers.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
This commit is contained in:
Marek Olšák 2015-08-30 14:39:54 +02:00
parent a9971e85d9
commit b89fa63d45
3 changed files with 0 additions and 10 deletions

View File

@ -72,8 +72,6 @@ static void si_destroy_context(struct pipe_context *context)
if (sctx->blitter)
util_blitter_destroy(sctx->blitter);
si_pm4_cleanup(sctx);
r600_common_context_cleanup(&sctx->b);
#if HAVE_LLVM >= 0x0306

View File

@ -153,10 +153,3 @@ void si_pm4_reset_emitted(struct si_context *sctx)
{
memset(&sctx->emitted, 0, sizeof(sctx->emitted));
}
void si_pm4_cleanup(struct si_context *sctx)
{
for (int i = 0; i < NUMBER_OF_STATES; ++i) {
si_pm4_free_state(sctx, sctx->queued.array[i], i);
}
}

View File

@ -75,6 +75,5 @@ void si_pm4_free_state(struct si_context *sctx,
void si_pm4_emit(struct si_context *sctx, struct si_pm4_state *state);
void si_pm4_emit_dirty(struct si_context *sctx);
void si_pm4_reset_emitted(struct si_context *sctx);
void si_pm4_cleanup(struct si_context *sctx);
#endif