summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2021-06-23 12:57:13 +1000
committerMarge Bot <eric+marge@anholt.net>2021-06-23 05:31:59 +0000
commit29d272f144ba800933af656717ed57adaa5e6510 (patch)
treee7a8c578e500f7f2eed67f5a67b856419856225f /src
parent9027aae546d0674aee704b24bf4e78271c25cc06 (diff)
crocus: fix batch state bo leak
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11547>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/crocus/crocus_batch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/crocus/crocus_batch.c b/src/gallium/drivers/crocus/crocus_batch.c
index d2f9791a304..5c476808ef4 100644
--- a/src/gallium/drivers/crocus/crocus_batch.c
+++ b/src/gallium/drivers/crocus/crocus_batch.c
@@ -562,6 +562,7 @@ crocus_batch_free(struct crocus_batch *batch)
u_upload_destroy(batch->fine_fences.uploader);
crocus_bo_unreference(batch->command.bo);
+ crocus_bo_unreference(batch->state.bo);
batch->command.bo = NULL;
batch->command.map = NULL;
batch->command.map_next = NULL;