radv: free NIR shaders when creating linked shaders with ESO
This was leaking memory too. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27715>
This commit is contained in:
committed by
Marge Bot
parent
77f036d574
commit
59b0f7b6b7
@@ -530,6 +530,8 @@ radv_shader_object_create_linked(VkDevice _device, uint32_t createInfoCount, con
|
||||
shader_obj->gs.copy_binary = gs_copy_binary;
|
||||
}
|
||||
|
||||
ralloc_free(stages[s].nir);
|
||||
|
||||
pShaders[i] = radv_shader_object_to_handle(shader_obj);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user