mesa: fix packing/unpacking for MESA_FORMAT_A4R4G4B4_UNORM
authorBrian Paul <brianp@vmware.com>
Tue, 4 Mar 2014 16:10:00 +0000 (09:10 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 5 Mar 2014 23:06:54 +0000 (16:06 -0700)
commit48a9094b69db621c4b8a432adc63d6f4439ab3d1
treee895ee88a2b719f88bb2f9354c64c95704ac006c
parent171ec9585f214c2dff3cfc97acebf5286bb5001d
mesa: fix packing/unpacking for MESA_FORMAT_A4R4G4B4_UNORM

Spotted by Chia-I Wu.
v2: also fix unpack_ubyte_ARGB4444_REV()

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Chia-I Wu <olv@lunarg.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/main/format_pack.c
src/mesa/main/format_unpack.c
src/mesa/swrast/s_texfetch_tmp.h