r600g: Cleanup fetch shader resources in r600_pipe_shader_destroy().

This commit is contained in:
Henri Verbeet 2010-12-05 18:42:43 +01:00
parent 308cfb80f5
commit 4409435614
1 changed files with 5 additions and 0 deletions

View File

@ -361,6 +361,11 @@ r600_pipe_shader_destroy(struct pipe_context *ctx, struct r600_pipe_shader *shad
{
struct r600_pipe_context *rctx = (struct r600_pipe_context *)ctx;
if (shader->shader.processor_type == TGSI_PROCESSOR_VERTEX) {
r600_bo_reference(rctx->radeon, &shader->bo_fetch, NULL);
r600_bc_clear(&shader->shader.bc_fetch);
}
r600_bo_reference(rctx->radeon, &shader->bo, NULL);
r600_bc_clear(&shader->shader.bc);