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/r600/r600_asm.c | |
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/r600/r600_asm.c')
-rw-r--r-- | src/gallium/drivers/r600/r600_asm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/r600/r600_asm.c b/src/gallium/drivers/r600/r600_asm.c index 08fe24e8680..b8eedae457b 100644 --- a/src/gallium/drivers/r600/r600_asm.c +++ b/src/gallium/drivers/r600/r600_asm.c @@ -27,9 +27,9 @@ #include "r600d.h" #include <errno.h> -#include <byteswap.h> #include "util/u_dump.h" #include "util/u_memory.h" +#include "util/u_math.h" #include "pipe/p_shader_tokens.h" #include "sb/sb_public.h" @@ -2419,7 +2419,7 @@ void *r600_create_vertex_fetch_shader(struct pipe_context *ctx, if (R600_BIG_ENDIAN) { for (i = 0; i < fs_size / 4; ++i) { - bytecode[i] = bswap_32(bc.bytecode[i]); + bytecode[i] = util_bswap32(bc.bytecode[i]); } } else { memcpy(bytecode, bc.bytecode, fs_size); |