mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-05 01:30:31 +01:00
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:
parent
93df18e889
commit
fbf324ee6c
1 changed files with 18 additions and 0 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue