gallium/radeon: remove unused radeon_shader_binary_free_* functions
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
@@ -195,22 +195,3 @@ const unsigned char *radeon_shader_binary_config_start(
|
||||
}
|
||||
return binary->config;
|
||||
}
|
||||
|
||||
void radeon_shader_binary_free_relocs(struct radeon_shader_reloc *relocs,
|
||||
unsigned reloc_count)
|
||||
{
|
||||
FREE(relocs);
|
||||
}
|
||||
|
||||
void radeon_shader_binary_free_members(struct radeon_shader_binary *binary,
|
||||
unsigned free_relocs)
|
||||
{
|
||||
FREE(binary->code);
|
||||
FREE(binary->config);
|
||||
FREE(binary->rodata);
|
||||
|
||||
if (free_relocs) {
|
||||
radeon_shader_binary_free_relocs(binary->relocs,
|
||||
binary->reloc_count);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,18 +47,4 @@ const unsigned char *radeon_shader_binary_config_start(
|
||||
const struct radeon_shader_binary *binary,
|
||||
uint64_t symbol_offset);
|
||||
|
||||
/**
|
||||
* Free all memory allocated for members of \p binary. This function does
|
||||
* not free \p binary.
|
||||
*
|
||||
* @param free_relocs If false, reolc information will not be freed.
|
||||
*/
|
||||
void radeon_shader_binary_free_members(struct radeon_shader_binary *binary,
|
||||
unsigned free_relocs);
|
||||
|
||||
/**
|
||||
* Free \p relocs and all member data.
|
||||
*/
|
||||
void radeon_shader_binary_free_relocs(struct radeon_shader_reloc *relocs,
|
||||
unsigned reloc_count);
|
||||
#endif /* RADEON_ELF_UTIL_H */
|
||||
|
||||
Reference in New Issue
Block a user