summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/r600_state.c
diff options
context:
space:
mode:
authorTilman Sauerbeck <[email protected]>2010-10-23 13:33:18 +0200
committerDave Airlie <[email protected]>2010-10-24 12:55:18 +1000
commitccb9be105602edaaff196046e324c8cb4a12fe0a (patch)
tree86fcdc69d602f64938471a513be399a781fa1f10 /src/gallium/drivers/r600/r600_state.c
parent9612b482e2c8e994709bcaab79185224b4d76670 (diff)
r600g: Added r600_pipe_shader_destroy().
Not yet complete. Signed-off-by: Tilman Sauerbeck <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
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);
}