summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolai Hähnle <nicolai.haehnle@amd.com>2017-08-18 20:28:02 +0200
committerNicolai Hähnle <nicolai.haehnle@amd.com>2017-08-23 13:54:09 +0200
commit83c5d12d9d7403c0943048139f7cafb93dcf4866 (patch)
tree14a988721637208af0cdf11eb4c0d7796465c9d2
parent8937ac9a1373096be0ac330844cdb0c08e762773 (diff)
gallium/radeon: fix saving multi-part command streams
Use the correct type to fix pointer arithmetic. Reviewed-by: Marek Olšák <marek.olsak@amd.com>
-rw-r--r--src/gallium/drivers/radeon/r600_pipe_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeon/r600_pipe_common.c b/src/gallium/drivers/radeon/r600_pipe_common.c
index 37c12dea37..7226fc21a0 100644
--- a/src/gallium/drivers/radeon/r600_pipe_common.c
+++ b/src/gallium/drivers/radeon/r600_pipe_common.c
@@ -495,7 +495,7 @@ static void r600_flush_dma_ring(void *ctx, unsigned flags,
void radeon_save_cs(struct radeon_winsys *ws, struct radeon_winsys_cs *cs,
struct radeon_saved_cs *saved, bool get_buffer_list)
{
- void *buf;
+ uint32_t *buf;
unsigned i;
/* Save the IB chunks. */