mesa: Track a gl_format for the texture buffer format.
authorEric Anholt <eric@anholt.net>
Tue, 27 Mar 2012 17:29:04 +0000 (10:29 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 9 Apr 2012 21:34:44 +0000 (14:34 -0700)
commit664355f05b39303fa0995b72160c82f5bf50e95e
tree798002a9cd150b73123ceaa435fcdf4221715b1b
parentdcf42dbd066fe633c28afa36820da9e9430038df
mesa: Track a gl_format for the texture buffer format.

There was a function full of unused mappings from the GLenum to
datatype/comps, but that wasn't all the information a driver would
want, which includes the other fields that a gl_format has.  Given
that all the texture buffer formats were represented in gl_format,
just use that as our description.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/main/mtypes.h
src/mesa/main/teximage.c
src/mesa/main/texobj.c