mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
radv: remove never reached free() when compiling shaders
binary_out is never NULL and binaries are freed from the pipeline after they are added to the cache. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13690>
This commit is contained in:
parent
fc2cc39a0f
commit
dd66de6017
1 changed files with 1 additions and 5 deletions
|
|
@ -1846,11 +1846,7 @@ shader_compile(struct radv_device *device, struct vk_shader_module *module,
|
|||
/* Copy the shader binary configuration to store it in the cache. */
|
||||
memcpy(&binary->config, &shader->config, sizeof(binary->config));
|
||||
|
||||
if (binary_out)
|
||||
*binary_out = binary;
|
||||
else
|
||||
free(binary);
|
||||
|
||||
*binary_out = binary;
|
||||
return shader;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue