mesa/swrast: fix GL_TEXTURE_2D_ARRAY texture fetches for latc/rgtc formats
authorBrian Paul <brianp@vmware.com>
Thu, 23 Aug 2012 03:22:00 +0000 (21:22 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 24 Aug 2012 12:18:41 +0000 (06:18 -0600)
commitd78b44c2651b45c337dda71b17351beb41eb9c14
tree646da5be94f7026494ec1c589acfe178cefaa1cd
parentfe2cc65fbb37bca40ff215a3709dacbcd317350c
mesa/swrast: fix GL_TEXTURE_2D_ARRAY texture fetches for latc/rgtc formats

Fix-up the texel fetch functions so that they handle 3D coords (as used for
array textures) and remove the "f_2d" part from their names.

Helps fix swrast crashes in piglit's copyteximage test.  More to come.
src/mesa/main/texcompress.c
src/mesa/main/texcompress_rgtc.c
src/mesa/main/texcompress_rgtc.h
src/mesa/swrast/s_texfetch.c