diff options
author | Christian König <[email protected]> | 2012-07-24 18:47:19 +0200 |
---|---|---|
committer | Christian König <[email protected]> | 2012-07-30 14:44:38 +0200 |
commit | fe41287ffa8cb35421cadfb16d4cc27c5fcb8b76 (patch) | |
tree | 216c973432d57a84baaf285b50f84bf2364a06bf /src/gallium/drivers/radeonsi/radeonsi_pm4.c | |
parent | dcf8754cce1af09547a5976a74ba807bc6f2657c (diff) |
radeonsi: rename r600_resource to si_resource
Also split it into seperate header and add
some helper functions.
Signed-off-by: Christian König <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/radeonsi_pm4.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/radeonsi_pm4.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gallium/drivers/radeonsi/radeonsi_pm4.c b/src/gallium/drivers/radeonsi/radeonsi_pm4.c index 488e1ccfd34..0aad78fdcb4 100644 --- a/src/gallium/drivers/radeonsi/radeonsi_pm4.c +++ b/src/gallium/drivers/radeonsi/radeonsi_pm4.c @@ -69,14 +69,13 @@ void si_pm4_set_reg(struct si_pm4_state *state, unsigned reg, uint32_t val) } void si_pm4_add_bo(struct si_pm4_state *state, - struct r600_resource *bo, + struct si_resource *bo, enum radeon_bo_usage usage) { unsigned idx = state->nbo++; assert(idx < SI_PM4_MAX_BO); - pipe_resource_reference((struct pipe_resource**)&state->bo[idx], - (struct pipe_resource*)bo); + si_resource_reference(&state->bo[idx], bo); state->bo_usage[idx] = usage; } @@ -120,8 +119,7 @@ void si_pm4_free_state(struct r600_context *rctx, } for (int i = 0; i < state->nbo; ++i) { - pipe_resource_reference((struct pipe_resource**)&state->bo[idx], - NULL); + si_resource_reference(&state->bo[idx], NULL); } FREE(state); } |