mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 11:08:03 +02:00
panfrost: fix tiny sample_positions BO memory leak
Fixes a 4KB memory leak that happens once per-device creation.
Cc: mesa-stable
Signed-off-by: Italo Nicola <italonicola@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tested-by: Chris Healy healych@amazon.com
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21372>
(cherry picked from commit e787ddf298)
This commit is contained in:
parent
de40ab9921
commit
1690c1e041
2 changed files with 2 additions and 1 deletions
|
|
@ -544,7 +544,7 @@
|
|||
"description": "panfrost: fix tiny sample_positions BO memory leak",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -334,6 +334,7 @@ panfrost_close_device(struct panfrost_device *dev)
|
|||
if (dev->model) {
|
||||
pthread_mutex_destroy(&dev->submit_lock);
|
||||
panfrost_bo_unreference(dev->tiler_heap);
|
||||
panfrost_bo_unreference(dev->sample_positions);
|
||||
panfrost_bo_cache_evict_all(dev);
|
||||
pthread_mutex_destroy(&dev->bo_cache.lock);
|
||||
util_sparse_array_finish(&dev->bo_map);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue