r600g: fix compile warnings in r600_cp_dma_copy_buffer on 32-bit gcc
authorMarek Olšák <maraeo@gmail.com>
Sat, 26 Jan 2013 13:50:36 +0000 (14:50 +0100)
committerMarek Olšák <maraeo@gmail.com>
Sat, 26 Jan 2013 13:50:36 +0000 (14:50 +0100)
src/gallium/drivers/r600/r600.h
src/gallium/drivers/r600/r600_hw_context.c

index 06e914f4538dae78b691aad4676a7c30f1c84c18..2734594987e400d02ef99c4d9785a5dd225e2e7e 100644 (file)
@@ -172,8 +172,8 @@ void r600_context_streamout_end(struct r600_context *ctx);
 void r600_need_cs_space(struct r600_context *ctx, unsigned num_dw, boolean count_draw_in);
 void r600_context_block_emit_dirty(struct r600_context *ctx, struct r600_block *block, unsigned pkt_flags);
 void r600_cp_dma_copy_buffer(struct r600_context *rctx,
-                            struct pipe_resource *dst, unsigned long dst_offset,
-                            struct pipe_resource *src, unsigned long src_offset,
+                            struct pipe_resource *dst, uint64_t dst_offset,
+                            struct pipe_resource *src, uint64_t src_offset,
                             unsigned size);
 
 int evergreen_context_init(struct r600_context *ctx);
index e13b502b517ce2317b84bf44d91e8b69b0c2afec..723a61f98efc7fa1d4a79468db49cf2a37cc55f3 100644 (file)
@@ -1065,8 +1065,8 @@ void r600_context_streamout_end(struct r600_context *ctx)
 #define CP_DMA_MAX_BYTE_COUNT ((1 << 21) - 8)
 
 void r600_cp_dma_copy_buffer(struct r600_context *rctx,
-                            struct pipe_resource *dst, unsigned long dst_offset,
-                            struct pipe_resource *src, unsigned long src_offset,
+                            struct pipe_resource *dst, uint64_t dst_offset,
+                            struct pipe_resource *src, uint64_t src_offset,
                             unsigned size)
 {
        struct radeon_winsys_cs *cs = rctx->cs;