summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/r600_state.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/r600/r600_state.c')
-rw-r--r--src/gallium/drivers/r600/r600_state.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/drivers/r600/r600_state.c b/src/gallium/drivers/r600/r600_state.c
index f5601a5effa..d496051948f 100644
--- a/src/gallium/drivers/r600/r600_state.c
+++ b/src/gallium/drivers/r600/r600_state.c
@@ -1095,7 +1095,8 @@ static void r600_delete_ps_shader(struct pipe_context *ctx, void *state)
if (rctx->ps_shader == shader) {
rctx->ps_shader = NULL;
}
- /* TODO proper delete */
+
+ r600_pipe_shader_destroy(ctx, shader);
free(shader);
}
@@ -1107,7 +1108,8 @@ static void r600_delete_vs_shader(struct pipe_context *ctx, void *state)
if (rctx->vs_shader == shader) {
rctx->vs_shader = NULL;
}
- /* TODO proper delete */
+
+ r600_pipe_shader_destroy(ctx, shader);
free(shader);
}