mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
radv/rt: fix memory leak in lower_rt_instructions_monolithic()
Found with ASAN.
Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37844>
(cherry picked from commit 876e6a3bfe)
This commit is contained in:
parent
649cd492e5
commit
8b8fdc5ae7
2 changed files with 3 additions and 1 deletions
|
|
@ -1394,7 +1394,7 @@
|
|||
"description": "radv/rt: fix memory leak in lower_rt_instructions_monolithic()",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -1868,6 +1868,8 @@ lower_rt_instructions_monolithic(nir_shader *shader, struct radv_device *device,
|
|||
hit_attribs[i] = nir_local_variable_create(impl, glsl_uint_type(), "ahit_attrib");
|
||||
|
||||
lower_hit_attribs(shader, hit_attribs, 0);
|
||||
|
||||
STACK_ARRAY_FINISH(hit_attribs);
|
||||
}
|
||||
|
||||
/** Select the next shader based on priorities:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue