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>
This commit is contained in:
committed by
Marge Bot
parent
ddef2c1559
commit
876e6a3bfe
@@ -1914,6 +1914,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:
|
||||
|
||||
Reference in New Issue
Block a user