Skip to content
Snippets Groups Projects
Commit 273b9a1c authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig Committed by Eric Engestrom
Browse files

panfrost: Fix fence leak


When overwriting the writer, we need to release the old reference.

Signed-off-by: default avatarAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: default avatarBoris Brezillon <boris.brezillon@collabora.com>
Fixes: 2dad9fde ("panfrost: Start tracking inter-batch dependencies")
Cc: mesa-stable
Part-of: <mesa/mesa!5859>
(cherry picked from commit 20dd3702)
parent fd3caf58
No related branches found
No related tags found
No related merge requests found
......@@ -3433,7 +3433,7 @@
"description": "panfrost: Fix fence leak",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"master_sha": null,
"because_sha": "2dad9fde505c7d8e97f57f4a5a3f495f902f94f2"
},
......
......@@ -453,6 +453,9 @@ panfrost_batch_update_bo_access(struct panfrost_batch *batch,
}
panfrost_batch_fence_reference(batch->out_sync);
if (access->writer)
panfrost_batch_fence_unreference(access->writer);
/* We now are the new writer. */
access->writer = batch->out_sync;
access->type = access_type;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment