mesa: add glformats integer type/format detection routines
authorJordan Justen <jordan.l.justen@intel.com>
Mon, 25 Jun 2012 17:52:39 +0000 (10:52 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Sat, 21 Jul 2012 23:49:42 +0000 (16:49 -0700)
commit9ad8f431b2a47060bf05517246ab0fa8d249c800
tree579bb10a4bd1f1827ff4b38242f1b25d4e01fca0
parente2e7b467d8a6567437823767af74004a396f1c82
mesa: add glformats integer type/format detection routines

_mesa_is_integer_format is moved to formats.c and renamed
as _mesa_is_enum_format_integer.

_mesa_is_format_unsigned, _mesa_is_type_integer,
_mesa_is_type_unsigned, and _mesa_is_enum_format_or_type_integer
are added.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
13 files changed:
src/mesa/SConscript
src/mesa/main/drawpix.c
src/mesa/main/formats.c
src/mesa/main/formats.h
src/mesa/main/glformats.c [new file with mode: 0644]
src/mesa/main/glformats.h [new file with mode: 0644]
src/mesa/main/image.c
src/mesa/main/image.h
src/mesa/main/pack.c
src/mesa/main/readpix.c
src/mesa/main/teximage.c
src/mesa/sources.mak
src/mesa/state_tracker/st_cb_drawpixels.c