mesa: Fix packing/unpacking of MESA_FORMAT_R5G6B5_UNORM
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 22 Aug 2014 20:39:23 +0000 (13:39 -0700)
committerIago Toral Quiroga <itoral@igalia.com>
Mon, 12 Jan 2015 10:20:27 +0000 (11:20 +0100)
commitec0bfba49668875462dfd75f4824f48018e82efe
tree2ff2261e86b7928f710977a2a61444621a090e6e
parent7d1b08ac44cf2531b0df39f52ead93ad216ea233
mesa: Fix packing/unpacking of MESA_FORMAT_R5G6B5_UNORM

Aparently, the packing/unpacking functions for these formats have differed
from the format description in formats.h.  Instead of fixing this, people
simply left a comment saying it was broken.  Let's actually fix it for
real.

v2 by Samuel Iglesias <siglesias@igalia.com>:
- Fix comment in formats.h

Signed-off-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/main/format_pack.c
src/mesa/main/format_unpack.c
src/mesa/main/formats.c
src/mesa/main/formats.h
src/mesa/main/texstore.c
src/mesa/swrast/s_texfetch_tmp.h