aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/r600_hw_context_priv.h
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2012-01-30 08:39:32 +0100
committerMarek Olšák <[email protected]>2012-01-31 23:12:30 +0100
commit74027a9ba250f07a77ee40e105c50c27e4fc3bc0 (patch)
treec9d8d891a489591f3d16caf1bf5010c7efcc2610 /src/gallium/drivers/r600/r600_hw_context_priv.h
parent4fd97b46a071a8dcec6ec6658dfc835e08f4e2c6 (diff)
r600g: remove dead code for tracking relocations
Diffstat (limited to 'src/gallium/drivers/r600/r600_hw_context_priv.h')
-rw-r--r--src/gallium/drivers/r600/r600_hw_context_priv.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/gallium/drivers/r600/r600_hw_context_priv.h b/src/gallium/drivers/r600/r600_hw_context_priv.h
index 79fa57b8c81..55df6e991b7 100644
--- a/src/gallium/drivers/r600/r600_hw_context_priv.h
+++ b/src/gallium/drivers/r600/r600_hw_context_priv.h
@@ -74,16 +74,8 @@ void evergreen_set_streamout_enable(struct r600_context *ctx, unsigned buffer_en
static INLINE unsigned r600_context_bo_reloc(struct r600_context *ctx, struct r600_resource *rbo,
enum radeon_bo_usage usage)
{
- unsigned reloc_index;
-
assert(usage);
-
- reloc_index = ctx->ws->cs_add_reloc(ctx->cs, rbo->cs_buf, usage, rbo->domains);
- if (reloc_index >= ctx->creloc)
- ctx->creloc = reloc_index+1;
-
- pipe_resource_reference((struct pipe_resource**)&ctx->bo[reloc_index], &rbo->b.b.b);
- return reloc_index * 4;
+ return ctx->ws->cs_add_reloc(ctx->cs, rbo->cs_buf, usage, rbo->domains) * 4;
}
#endif