summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHenri Verbeet <[email protected]>2010-12-05 18:42:43 +0100
committerHenri Verbeet <[email protected]>2010-12-05 18:44:44 +0100
commit308cfb80f553cf76069e2d75023a44d3b933a399 (patch)
treedb6a07e49f3641466f0e9e05d6d98c5c229722f6 /src
parentc0c929cdac75a9a0077d74c87b525b65f0a3b6c8 (diff)
r600g: Cleanup block bo references in r600_context_fini().
Diffstat (limited to 'src')
-rw-r--r--src/gallium/winsys/r600/drm/r600_hw_context.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/winsys/r600/drm/r600_hw_context.c b/src/gallium/winsys/r600/drm/r600_hw_context.c
index de228918953..50b7e6d8b2c 100644
--- a/src/gallium/winsys/r600/drm/r600_hw_context.c
+++ b/src/gallium/winsys/r600/drm/r600_hw_context.c
@@ -618,6 +618,9 @@ void r600_context_fini(struct r600_context *ctx)
range = &ctx->range[CTX_RANGE_ID(ctx, offset)];
range->blocks[CTX_BLOCK_ID(ctx, offset)] = NULL;
}
+ for (int k = 1; k <= block->nbo; k++) {
+ r600_bo_reference(ctx->radeon, &block->reloc[k].bo, NULL);
+ }
free(block);
}
}