gallium: replace bswap_32 calls with util_bswap32
authorJonathan Gray <jsg@jsg.id.au>
Sun, 16 Jun 2013 15:11:01 +0000 (01:11 +1000)
committerMichel Dänzer <michel@daenzer.net>
Mon, 17 Jun 2013 15:22:28 +0000 (17:22 +0200)
commitebd68dd02998a8595cb10844c37a6b02dc3078a8
tree913aa00684f4ac5f41d073a9c55147ccee5535a9
parent7807763dd84ae381e208f74a0f4b7476b70ffbe8
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 <jsg@jsg.id.au>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/r600/r600_asm.c
src/gallium/drivers/r600/r600_shader.c
src/gallium/drivers/r600/r600_state_common.c
src/gallium/drivers/radeonsi/r600_buffer.c