Revert "freedreno: Fix autotune regression since batch-cache rework."

This reverts commit b8c4ad378d.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13159>
This commit is contained in:
Rob Clark 2021-10-02 11:16:13 -07:00 committed by Marge Bot
parent 53917ab403
commit 93df18e889

View file

@ -341,6 +341,7 @@ batch_flush(struct fd_batch *batch) assert_dt
batch_flush_dependencies(batch);
batch_reset_resources(batch);
fd_bc_free_key(batch);
batch->flushed = true;
if (batch == batch->ctx->batch)
@ -353,9 +354,6 @@ batch_flush(struct fd_batch *batch) assert_dt
debug_assert(batch->reference.count > 0);
/* Must come after fd_gmem_render_tiles, since that uses the key. */
fd_bc_free_key(batch);
cleanup_submit(batch);
fd_batch_unlock_submit(batch);
}