summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2018-04-01 14:52:42 -0400
committerMarek Olšák <[email protected]>2018-04-05 15:34:58 -0400
commit426ef367f3a3710da022ee76a4f605aad88aea3f (patch)
tree99b5608b866b3b0bfa4d95dc300d2da371dccded /src/gallium/drivers
parentc0987d8adf0914c61e9cd011071a4e4a4c4a1d9b (diff)
radeonsi: add_to_buffer_list functions can return void
Acked-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/radeon/r600_cs.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/gallium/drivers/radeon/r600_cs.h b/src/gallium/drivers/radeon/r600_cs.h
index 89d6c7c16a1..c46fad6f6be 100644
--- a/src/gallium/drivers/radeon/r600_cs.h
+++ b/src/gallium/drivers/radeon/r600_cs.h
@@ -64,17 +64,17 @@ radeon_cs_memory_below_limit(struct si_screen *screen,
* The buffer list becomes empty after every context flush and must be
* rebuilt.
*/
-static inline unsigned radeon_add_to_buffer_list(struct r600_common_context *rctx,
- struct r600_ring *ring,
- struct r600_resource *rbo,
- enum radeon_bo_usage usage,
- enum radeon_bo_priority priority)
+static inline void radeon_add_to_buffer_list(struct r600_common_context *rctx,
+ struct r600_ring *ring,
+ struct r600_resource *rbo,
+ enum radeon_bo_usage usage,
+ enum radeon_bo_priority priority)
{
assert(usage);
- return rctx->ws->cs_add_buffer(
+ rctx->ws->cs_add_buffer(
ring->cs, rbo->buf,
(enum radeon_bo_usage)(usage | RADEON_USAGE_SYNCHRONIZED),
- rbo->domains, priority) * 4;
+ rbo->domains, priority);
}
/**
@@ -94,7 +94,7 @@ static inline unsigned radeon_add_to_buffer_list(struct r600_common_context *rct
* - if shader resource "enabled_mask" is not up-to-date or there is
* a different constraint disallowing a context flush
*/
-static inline unsigned
+static inline void
radeon_add_to_buffer_list_check_mem(struct r600_common_context *rctx,
struct r600_ring *ring,
struct r600_resource *rbo,
@@ -108,7 +108,7 @@ radeon_add_to_buffer_list_check_mem(struct r600_common_context *rctx,
rctx->gtt + rbo->gart_usage))
ring->flush(rctx, PIPE_FLUSH_ASYNC, NULL);
- return radeon_add_to_buffer_list(rctx, ring, rbo, usage, priority);
+ radeon_add_to_buffer_list(rctx, ring, rbo, usage, priority);
}
static inline void radeon_set_config_reg_seq(struct radeon_winsys_cs *cs, unsigned reg, unsigned num)