diff options
author | Pauli Nieminen <[email protected]> | 2009-08-25 21:46:32 +0300 |
---|---|---|
committer | Pauli Nieminen <[email protected]> | 2009-08-25 22:16:19 +0300 |
commit | 5d10890795d9bddc8cafc4afb19cacf164d6e667 (patch) | |
tree | 7108889e3fad47eb3d54d071365d53b8bf03c4b6 /src/mesa/drivers/dri/radeon | |
parent | 87f83e193a21d7e4703664504734edd1e71920a4 (diff) |
radeon/r600: Fix remaining warnings when building 64 bit binary.
Diffstat (limited to 'src/mesa/drivers/dri/radeon')
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_cmdbuf.h | 7 | ||||
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_dma.c | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_cmdbuf.h b/src/mesa/drivers/dri/radeon/radeon_cmdbuf.h index 410df4d665c..6fcd1ce7ca6 100644 --- a/src/mesa/drivers/dri/radeon/radeon_cmdbuf.h +++ b/src/mesa/drivers/dri/radeon/radeon_cmdbuf.h @@ -54,11 +54,12 @@ void rcommonBeginBatch(radeonContextPtr rmesa, */ #define OUT_BATCH_RELOC(data, bo, offset, rd, wd, flags) \ do { \ - if (0 && offset) { \ + int __offset = (offset); \ + if (0 && __offset) { \ fprintf(stderr, "(%s:%s:%d) offset : %d\n", \ - __FILE__, __FUNCTION__, __LINE__, offset); \ + __FILE__, __FUNCTION__, __LINE__, __offset); \ } \ - radeon_cs_write_dword(b_l_rmesa->cmdbuf.cs, offset); \ + radeon_cs_write_dword(b_l_rmesa->cmdbuf.cs, __offset); \ radeon_cs_write_reloc(b_l_rmesa->cmdbuf.cs, \ bo, rd, wd, flags); \ if (!b_l_rmesa->radeonScreen->kernel_mm) \ diff --git a/src/mesa/drivers/dri/radeon/radeon_dma.c b/src/mesa/drivers/dri/radeon/radeon_dma.c index f15013c33b1..51f764cf473 100644 --- a/src/mesa/drivers/dri/radeon/radeon_dma.c +++ b/src/mesa/drivers/dri/radeon/radeon_dma.c @@ -333,7 +333,7 @@ void radeonReleaseDmaRegions(radeonContextPtr rmesa) foreach(dma_bo, &rmesa->dma.reserved) ++reserved; - fprintf(stderr, "%s: free %u, wait %u, reserved %u, minimum_size: %u\n", + fprintf(stderr, "%s: free %zu, wait %zu, reserved %zu, minimum_size: %zu\n", __FUNCTION__, free, wait, reserved, rmesa->dma.minimum_size); } |