diff options
author | Tilman Sauerbeck <[email protected]> | 2010-10-23 13:33:18 +0200 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2010-10-24 12:55:18 +1000 |
commit | ccb9be105602edaaff196046e324c8cb4a12fe0a (patch) | |
tree | 86fcdc69d602f64938471a513be399a781fa1f10 /src/gallium/drivers/r600/r600_shader.c | |
parent | 9612b482e2c8e994709bcaab79185224b4d76670 (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_shader.c')
-rw-r--r-- | src/gallium/drivers/r600/r600_shader.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c index 0dd416c0d83..a4e052c23a3 100644 --- a/src/gallium/drivers/r600/r600_shader.c +++ b/src/gallium/drivers/r600/r600_shader.c @@ -338,6 +338,17 @@ int r600_pipe_shader_create(struct pipe_context *ctx, struct r600_pipe_shader *s return 0; } +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); + + /* FIXME: is there more stuff to free? */ +} + /* * tgsi -> r600 shader */ |