Mesa (main): crocus: fix batch state bo leak

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jun 23 05:41:53 UTC 2021


Module: Mesa
Branch: main
Commit: 29d272f144ba800933af656717ed57adaa5e6510
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=29d272f144ba800933af656717ed57adaa5e6510

Author: Dave Airlie <airlied at redhat.com>
Date:   Wed Jun 23 12:57:13 2021 +1000

crocus: fix batch state bo leak

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11547>

---

 src/gallium/drivers/crocus/crocus_batch.c | 1 +
 1 file changed, 1 insertion(+)

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;



More information about the mesa-commit mailing list