gallium/radeon: fix saving multi-part command streams
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 18 Aug 2017 18:28:02 +0000 (20:28 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 23 Aug 2017 11:54:09 +0000 (13:54 +0200)
Use the correct type to fix pointer arithmetic.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeon/r600_pipe_common.c

index 37c12dea3740d781a4959aea248b4d654e5ee3e0..7226fc21a044e4b246e87d42d8bc7202cc8d9a0e 100644 (file)
@@ -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. */