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:
Samuel Pitoiset 2021-11-05 13:30:44 +01:00 committed by Marge Bot
parent fc2cc39a0f
commit dd66de6017

View file

@ -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;
}