diff options
author | Jonathan Gray <[email protected]> | 2013-06-17 01:11:01 +1000 |
---|---|---|
committer | Michel Dänzer <[email protected]> | 2013-06-17 17:22:28 +0200 |
commit | ebd68dd02998a8595cb10844c37a6b02dc3078a8 (patch) | |
tree | 913aa00684f4ac5f41d073a9c55147ccee5535a9 /src/gallium/drivers/radeonsi | |
parent | 7807763dd84ae381e208f74a0f4b7476b70ffbe8 (diff) |
gallium: replace bswap_32 calls with util_bswap32
byteswap.h and bswap_32 aren't portable, replace them with calls to
gallium's util_bswap32 as suggested by Mark Kettenis. Lets these files
build on OpenBSD.
Signed-off-by: Jonathan Gray <[email protected]>
Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r-- | src/gallium/drivers/radeonsi/r600_buffer.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gallium/drivers/radeonsi/r600_buffer.c b/src/gallium/drivers/radeonsi/r600_buffer.c index 3d295e8a967..2bc47c1e5b0 100644 --- a/src/gallium/drivers/radeonsi/r600_buffer.c +++ b/src/gallium/drivers/radeonsi/r600_buffer.c @@ -25,8 +25,6 @@ * Corbin Simpson <[email protected]> */ -#include <byteswap.h> - #include "pipe/p_screen.h" #include "util/u_format.h" #include "util/u_math.h" @@ -185,7 +183,7 @@ void r600_upload_const_buffer(struct r600_context *rctx, struct si_resource **rb } for (i = 0; i < size / 4; ++i) { - tmpPtr[i] = bswap_32(((uint32_t *)ptr)[i]); + tmpPtr[i] = util_bswap32(((uint32_t *)ptr)[i]); } u_upload_data(rctx->uploader, 0, size, tmpPtr, const_offset, |