mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
radv/rt: Fix memory leak when compiling libraries
Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29579>
This commit is contained in:
parent
c452a4d1cc
commit
f1742d36f3
1 changed files with 4 additions and 2 deletions
|
|
@ -666,8 +666,10 @@ radv_rt_compile_shaders(struct radv_device *device, struct vk_pipeline_cache *ca
|
|||
* shaders.
|
||||
*/
|
||||
bool traversal_needed = !library && (!monolithic || raygen_imported);
|
||||
if (!traversal_needed)
|
||||
return VK_SUCCESS;
|
||||
if (!traversal_needed) {
|
||||
result = VK_SUCCESS;
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
struct radv_ray_tracing_stage_info traversal_info = {
|
||||
.set_flags = 0xFFFFFFFF,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue