Module: Mesa
Branch: master
Commit: 45d731fdf9e469011a071a101b510e5b1578215f
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=45d731fdf9e469011a071a101b510e5b1578215f

Author: Marek Olšák <[email protected]>
Date:   Mon Mar  5 15:17:42 2012 +0100

r600g: remove unused function r600_context_reg_bo

---

 src/gallium/drivers/r600/r600_hw_context.c      |   16 ----------------
 src/gallium/drivers/r600/r600_hw_context_priv.h |    1 -
 2 files changed, 0 insertions(+), 17 deletions(-)

diff --git a/src/gallium/drivers/r600/r600_hw_context.c 
b/src/gallium/drivers/r600/r600_hw_context.c
index 094b8fe..68b8a62 100644
--- a/src/gallium/drivers/r600/r600_hw_context.c
+++ b/src/gallium/drivers/r600/r600_hw_context.c
@@ -1065,22 +1065,6 @@ void r600_context_pipe_state_set_vs_sampler(struct 
r600_context *ctx, struct r60
        r600_context_pipe_state_set_sampler_border(ctx, state, offset);
 }
 
-struct r600_resource *r600_context_reg_bo(struct r600_context *ctx, unsigned 
offset)
-{
-       struct r600_range *range;
-       struct r600_block *block;
-       unsigned id;
-
-       range = &ctx->range[CTX_RANGE_ID(offset)];
-       block = range->blocks[CTX_BLOCK_ID(offset)];
-       offset -= block->start_offset;
-       id = block->pm4_bo_index[offset >> 2];
-       if (block->reloc[id].bo) {
-               return block->reloc[id].bo;
-       }
-       return NULL;
-}
-
 void r600_context_block_emit_dirty(struct r600_context *ctx, struct r600_block 
*block)
 {
        struct radeon_winsys_cs *cs = ctx->cs;
diff --git a/src/gallium/drivers/r600/r600_hw_context_priv.h 
b/src/gallium/drivers/r600/r600_hw_context_priv.h
index e9d8984..67aca97 100644
--- a/src/gallium/drivers/r600/r600_hw_context_priv.h
+++ b/src/gallium/drivers/r600/r600_hw_context_priv.h
@@ -52,7 +52,6 @@ struct r600_reg {
 /*
  * r600_hw_context.c
  */
-struct r600_resource *r600_context_reg_bo(struct r600_context *ctx, unsigned 
offset);
 int r600_context_add_block(struct r600_context *ctx, const struct r600_reg 
*reg, unsigned nreg,
                           unsigned opcode, unsigned offset_base);
 void r600_context_pipe_state_set_resource(struct r600_context *ctx, struct 
r600_pipe_resource_state *state, struct r600_block *block);

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to