diff options
author | Tom Stellard <[email protected]> | 2014-12-09 20:03:50 -0500 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2015-01-20 09:55:43 -0500 |
commit | dfdaf3eb7edac939f5d1a32db2968944852b28fa (patch) | |
tree | 513e8d60659b1c2309baefc5167d4fdc324e67b5 /src/gallium/drivers/radeonsi | |
parent | 5667aa58c49221a919526db08aab7da5bd2b3a5d (diff) |
radeon: Teach radeon_elf_read() how to parse reloc information v3
v2:
- Use strdup for copying reloc names.
- Free reloc memory.
v3:
- Add free_relocs parameter to radeon_shader_binary_free_members()
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_compute.c | 2 | ||||
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeonsi/si_compute.c b/src/gallium/drivers/radeonsi/si_compute.c index f911e1f7620..20fec84ed77 100644 --- a/src/gallium/drivers/radeonsi/si_compute.c +++ b/src/gallium/drivers/radeonsi/si_compute.c @@ -439,7 +439,7 @@ static void si_delete_compute_state(struct pipe_context *ctx, void* state){ pipe_resource_reference( (struct pipe_resource **)&program->input_buffer, NULL); - radeon_shader_binary_free_members(&program->binary); + radeon_shader_binary_free_members(&program->binary, true); FREE(program); } diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index a891bc651d7..81cb2ef31bb 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -2621,7 +2621,7 @@ int si_compile_llvm(struct si_screen *sscreen, struct si_shader *shader, return r; } r = si_shader_binary_read(sscreen, shader, &binary); - radeon_shader_binary_free_members(&binary); + radeon_shader_binary_free_members(&binary, true); return r; } |