mesa: get rid of imageOffsets arrays in texstore code
authorBrian Paul <brianp@vmware.com>
Wed, 5 Oct 2011 00:26:39 +0000 (18:26 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 6 Oct 2011 03:06:47 +0000 (21:06 -0600)
commit5253cf98057dad54e25b4b8c36f8cf24f559314c
treee3eae8ee98685f9a1795e3d301680e96871d651a
parentc3ef232315a4e9c18b3d812dbb28ffac6830d6f8
mesa: get rid of imageOffsets arrays in texstore code

These were used to find the start of a 3D image slice (or 2D array texture
slice) given a base address.  Instead, use a simple array of address of
image slices instead.

This is a step toward getting rid of the gl_texture_image::ImageOffsets
field.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/intel/intel_tex_subimage.c
src/mesa/drivers/dri/nouveau/nouveau_texture.c
src/mesa/drivers/dri/radeon/radeon_texture.c
src/mesa/main/texcompress_fxt1.c
src/mesa/main/texcompress_rgtc.c
src/mesa/main/texcompress_s3tc.c
src/mesa/main/texstore.c
src/mesa/main/texstore.h
src/mesa/state_tracker/st_cb_drawpixels.c
src/mesa/state_tracker/st_cb_texture.c