gallium/util: use ui[4] instead of ui in union util_color
authorRoland Scheidegger <sroland@vmware.com>
Wed, 23 Apr 2014 18:00:03 +0000 (20:00 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Fri, 25 Apr 2014 17:29:30 +0000 (19:29 +0200)
commitfa4082320acaf0a1a22ae56144eef94b2997818d
tree3b18c83012d42ce24c248e23e4ee3cf239c6153c
parent2f65f61beac3a45fdf27bf25d7b13cd1fa2bbb8c
gallium/util: use ui[4] instead of ui in union util_color

util_color often merely represents a collection of bytes, however it is
inconvenient if those bytes can only be accessed as floats/doubles for int
formats exceeding 32bits.
(Note that since rgba8 formats use one uint, not 4 bytes, hence the byte and
short member were left as is.)
12 files changed:
src/gallium/auxiliary/util/u_pack_color.h
src/gallium/auxiliary/util/u_surface.c
src/gallium/drivers/freedreno/a2xx/fd2_draw.c
src/gallium/drivers/i915/i915_clear.c
src/gallium/drivers/i915/i915_surface.c
src/gallium/drivers/ilo/ilo_blitter_blt.c
src/gallium/drivers/nouveau/nv30/nv30_clear.c
src/gallium/drivers/r300/r300_blit.c
src/gallium/drivers/r300/r300_state.c
src/gallium/drivers/r300/r300_state_derived.c
src/gallium/drivers/svga/svga_pipe_clear.c
src/mesa/state_tracker/st_atom_pixeltransfer.c