aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r--src/gallium/drivers/radeonsi/si_shaderlib_tgsi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shaderlib_tgsi.c b/src/gallium/drivers/radeonsi/si_shaderlib_tgsi.c
index 91a23b1d7ed..8ff9ebda9ba 100644
--- a/src/gallium/drivers/radeonsi/si_shaderlib_tgsi.c
+++ b/src/gallium/drivers/radeonsi/si_shaderlib_tgsi.c
@@ -220,6 +220,8 @@ void *si_create_dma_compute_shader(struct pipe_context *ctx,
void *cs = ctx->create_compute_state(ctx, &state);
ureg_destroy(ureg);
+ ureg_free_tokens(state.prog);
+
free(values);
return cs;
}