Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
}
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);
- }
-}
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 */