gallium: Use util_cpu_to_le{16,32} in many more places.
authorMatt Turner <mattst88@gmail.com>
Sat, 21 Feb 2015 03:46:21 +0000 (19:46 -0800)
committerMatt Turner <mattst88@gmail.com>
Mon, 23 Feb 2015 18:41:22 +0000 (10:41 -0800)
commit14ded5ee61b2dfc23878c4a6f38021b15bd0a2fc
treec18fe35996ccfe416e558683075479876537830d
parent3492e88090d2d0c0bfbc934963b8772b45fc8880
gallium: Use util_cpu_to_le{16,32} in many more places.

... and util_le{16,32}_to_cpu. I think I've used the right ones for
describing the actual operation performed (even though they're both just
"byte-swap this if I'm on big-endian").

The Linux Kernel has typedefs __le32/__be32 and friends that static
analysis tools can use to check that byte-orderings are correct. It
might be interesting to apply that here as well.

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/translate/translate_generic.c
src/gallium/auxiliary/util/u_format_other.c
src/gallium/auxiliary/util/u_format_yuv.c
src/gallium/auxiliary/util/u_format_zs.c
src/gallium/auxiliary/vl/vl_vlc.h