OSDN Git Service

In gl_texture_image, replace ImageStride with an ImageOffsets array.
authorBrian Paul <brian.paul@tungstengraphics.com>
Sat, 20 May 2006 16:19:48 +0000 (16:19 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Sat, 20 May 2006 16:19:48 +0000 (16:19 +0000)
commitb0b6d1abe5c7e629baebd4bf3d3ee3b17ba6ff08
treeebac2d5b8cf7d29a38beb6bc7854b5f67a8b9524
parent226d0187b530482684f3a0dddd0934bd015eb986
In gl_texture_image, replace ImageStride with an ImageOffsets array.
Some hardware lays out 3D mipmaps in a manner that can't be expressed
with a simple image stride.
The ImageOffsets array is allocated and initialized to typical defaults
in the _mesa_init_teximage_fields() function.  If needed, a driver will
then have to replace these offsets.
TexStore and TexelFetch routines updated to use offsets array.
src/mesa/drivers/dri/savage/savagetex.c
src/mesa/drivers/dri/tdfx/tdfx_tex.c
src/mesa/drivers/dri/unichrome/via_tex.c
src/mesa/main/mtypes.h
src/mesa/main/texcompress_fxt1.c
src/mesa/main/texcompress_s3tc.c
src/mesa/main/texformat_tmp.h
src/mesa/main/teximage.c
src/mesa/main/texstore.c
src/mesa/main/texstore.h