diff options
author | Marek Olšák <[email protected]> | 2012-04-02 00:33:52 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-04-04 13:09:47 +0200 |
commit | a633d82ce352a69fd54a2b0e262a91f27f478119 (patch) | |
tree | 54705296276660699de08a2936c724446cf6fbc0 /src/gallium/drivers/r600/evergreen_state.c | |
parent | 68bbfc1afe210d82acfb14a78b0fd8c436a8f78c (diff) |
r600g: remove dead code after the rework
Reviewed-by: Alex Deucher <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/evergreen_state.c')
-rw-r--r-- | src/gallium/drivers/r600/evergreen_state.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/gallium/drivers/r600/evergreen_state.c b/src/gallium/drivers/r600/evergreen_state.c index e97f8e3a3b4..fc0cec939e2 100644 --- a/src/gallium/drivers/r600/evergreen_state.c +++ b/src/gallium/drivers/r600/evergreen_state.c @@ -2807,41 +2807,3 @@ void *evergreen_create_db_flush_dsa(struct r600_context *rctx) /* Don't set the 'is_flush' flag in r600_pipe_dsa, evergreen doesn't need it. */ return rstate; } - -void evergreen_pipe_init_buffer_resource(struct r600_context *rctx, - struct r600_pipe_resource_state *rstate) -{ - rstate->id = R600_PIPE_STATE_RESOURCE; - - rstate->val[0] = 0; - rstate->bo[0] = NULL; - rstate->val[1] = 0; - rstate->val[2] = S_030008_ENDIAN_SWAP(r600_endian_swap(32)); - rstate->val[3] = S_03000C_DST_SEL_X(V_03000C_SQ_SEL_X) | - S_03000C_DST_SEL_Y(V_03000C_SQ_SEL_Y) | - S_03000C_DST_SEL_Z(V_03000C_SQ_SEL_Z) | - S_03000C_DST_SEL_W(V_03000C_SQ_SEL_W); - rstate->val[4] = 0; - rstate->val[5] = 0; - rstate->val[6] = 0; - rstate->val[7] = 0xc0000000; -} - - -void evergreen_pipe_mod_buffer_resource(struct pipe_context *ctx, - struct r600_pipe_resource_state *rstate, - struct r600_resource *rbuffer, - unsigned offset, unsigned stride, - enum radeon_bo_usage usage) -{ - uint64_t va; - - va = r600_resource_va(ctx->screen, (void *)rbuffer); - rstate->bo[0] = rbuffer; - rstate->bo_usage[0] = usage; - rstate->val[0] = (offset + va) & 0xFFFFFFFFUL; - rstate->val[1] = rbuffer->buf->size - offset - 1; - rstate->val[2] = S_030008_ENDIAN_SWAP(r600_endian_swap(32)) | - S_030008_STRIDE(stride) | - (((va + offset) >> 32UL) & 0xFF); -} |