Revert "freedreno: Remove dead fd_batch_reset()."

This reverts commit 63cc1fe71f.

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

View file

@ -287,6 +287,24 @@ batch_reset_resources(struct fd_batch *batch)
batch->bos = NULL;
}
static void
batch_reset(struct fd_batch *batch) assert_dt
{
DBG("%p", batch);
batch_reset_dependencies(batch);
batch_reset_resources(batch);
batch_fini(batch);
batch_init(batch);
}
void
fd_batch_reset(struct fd_batch *batch)
{
if (batch->needs_flush)
batch_reset(batch);
}
void
__fd_batch_destroy(struct fd_batch *batch)
{