From: Marek Olšák Date: Sat, 26 Jan 2013 13:50:36 +0000 (+0100) Subject: r600g: fix compile warnings in r600_cp_dma_copy_buffer on 32-bit gcc X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=edc38330da7cc9f87c94d8873f4d2244fc422807;p=mesa.git r600g: fix compile warnings in r600_cp_dma_copy_buffer on 32-bit gcc --- diff --git a/src/gallium/drivers/r600/r600.h b/src/gallium/drivers/r600/r600.h index 06e914f4538..2734594987e 100644 --- a/src/gallium/drivers/r600/r600.h +++ b/src/gallium/drivers/r600/r600.h @@ -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); diff --git a/src/gallium/drivers/r600/r600_hw_context.c b/src/gallium/drivers/r600/r600_hw_context.c index e13b502b517..723a61f98ef 100644 --- a/src/gallium/drivers/r600/r600_hw_context.c +++ b/src/gallium/drivers/r600/r600_hw_context.c @@ -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;