summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2011-06-07 10:49:50 +1000
committerDave Airlie <[email protected]>2011-06-08 11:46:59 +1000
commitff298a66d7dffd0e91997a6af4cb3ffb3962f350 (patch)
treef5e6056ec92ac0a2c611798def496ea419360054 /src/gallium
parente21601e46efa3c17933f5abf079396ee3bdb4c45 (diff)
r600g: no need to drop the references here.
We drop them when we reference the new objects in the next line. Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/winsys/r600/drm/r600_hw_context.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/gallium/winsys/r600/drm/r600_hw_context.c b/src/gallium/winsys/r600/drm/r600_hw_context.c
index cd52eadbf5c..8d387c4e8f2 100644
--- a/src/gallium/winsys/r600/drm/r600_hw_context.c
+++ b/src/gallium/winsys/r600/drm/r600_hw_context.c
@@ -1098,8 +1098,6 @@ void r600_context_pipe_state_set_resource(struct r600_context *ctx, struct r600_
state->bo[1]->fence = ctx->radeon->fence;
}
} else {
- r600_bo_reference(ctx->radeon, &block->reloc[1].bo, NULL);
- r600_bo_reference(ctx->radeon, &block->reloc[2].bo, NULL);
if (is_vertex) {
/* VERTEX RESOURCE, we preted there is 2 bo to relocate so
* we have single case btw VERTEX & TEXTURE resource