summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_compute.c
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2015-01-14 10:01:29 -0500
committerTom Stellard <[email protected]>2015-01-20 09:55:43 -0500
commit5667aa58c49221a919526db08aab7da5bd2b3a5d (patch)
tree52522eb92a2eca84b2e12a9023ddae75c7d3a847 /src/gallium/drivers/radeonsi/si_compute.c
parentc4fd0c9052dd391d6f2e9bb8e6da209dfc7ef35b (diff)
radeon: Add a helper function for freeing members of radeon_shader_binary
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_compute.c')
-rw-r--r--src/gallium/drivers/radeonsi/si_compute.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gallium/drivers/radeonsi/si_compute.c b/src/gallium/drivers/radeonsi/si_compute.c
index 4b335bbf2fb..f911e1f7620 100644
--- a/src/gallium/drivers/radeonsi/si_compute.c
+++ b/src/gallium/drivers/radeonsi/si_compute.c
@@ -439,9 +439,7 @@ static void si_delete_compute_state(struct pipe_context *ctx, void* state){
pipe_resource_reference(
(struct pipe_resource **)&program->input_buffer, NULL);
- FREE(program->binary.code);
- FREE(program->binary.config);
- FREE(program->binary.rodata);
+ radeon_shader_binary_free_members(&program->binary);
FREE(program);
}