diff options
-rw-r--r-- | src/gallium/drivers/r600/r600_shader.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c index c5969c798c5..f53124d1009 100644 --- a/src/gallium/drivers/r600/r600_shader.c +++ b/src/gallium/drivers/r600/r600_shader.c @@ -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); |