summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/r600_shader.c
diff options
context:
space:
mode:
authorTilman Sauerbeck <[email protected]>2010-10-23 13:33:22 +0200
committerDave Airlie <[email protected]>2010-10-24 12:56:35 +1000
commitf4a2c62af56ce10e43688e8283f8defeb05cef1a (patch)
tree6c841fc57aaf1b05f58f9ad372433d91063f942b /src/gallium/drivers/r600/r600_shader.c
parentccb9be105602edaaff196046e324c8cb4a12fe0a (diff)
r600g: Also clear bc data when we're destroying a shader.
[airlied: remove unused vars] Signed-off-by: Tilman Sauerbeck <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/r600_shader.c')
-rw-r--r--src/gallium/drivers/r600/r600_shader.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c
index a4e052c23a3..4106587398b 100644
--- a/src/gallium/drivers/r600/r600_shader.c
+++ b/src/gallium/drivers/r600/r600_shader.c
@@ -342,10 +342,11 @@ void
r600_pipe_shader_destroy(struct pipe_context *ctx, struct r600_pipe_shader *shader)
{
struct r600_pipe_context *rctx = (struct r600_pipe_context *)ctx;
- struct r600_bc_cf *cf, *next_cf;
r600_bo_reference(rctx->radeon, &shader->bo, NULL);
+ r600_bc_clear(&shader->shader.bc);
+
/* FIXME: is there more stuff to free? */
}