mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
pan/mdg: Free previous liveness
Before we drop the reference.
160 calls with 0B peak consumption from:
0xffffbd9d2fc3
in ??
pan_compute_liveness
at ../src/panfrost/util/pan_liveness.c:127
in /home/alyssa/rockchip_dri.so
mir_compute_liveness
at ../src/panfrost/midgard/midgard_liveness.c:55
in /home/alyssa/rockchip_dri.so
midgard_opt_dead_code_eliminate
at ../src/panfrost/midgard/midgard_opt_dce.c:118
in /home/alyssa/rockchip_dri.so
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Cc: mesa-stable
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6373>
(cherry picked from commit 8dd38e5a3e)
This commit is contained in:
parent
f41a82869f
commit
b4c5c7cbf5
2 changed files with 6 additions and 4 deletions
|
|
@ -553,7 +553,7 @@
|
|||
"description": "pan/mdg: Free previous liveness",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -120,11 +120,13 @@ pan_compute_liveness(
|
|||
_mesa_hash_pointer,
|
||||
_mesa_key_pointer_equal);
|
||||
|
||||
/* Allocate */
|
||||
/* Free any previous liveness, and allocate */
|
||||
|
||||
pan_free_liveness(blocks);
|
||||
|
||||
list_for_each_entry(pan_block, block, blocks, link) {
|
||||
block->live_in = rzalloc_array(NULL, uint16_t, temp_count);
|
||||
block->live_out = rzalloc_array(NULL, uint16_t, temp_count);
|
||||
block->live_in = rzalloc_array(block, uint16_t, temp_count);
|
||||
block->live_out = rzalloc_array(block, uint16_t, temp_count);
|
||||
}
|
||||
|
||||
/* Initialize the work list with the exit block */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue