swrast: Replace ImageOffsets with an ImageSlices pointer. 94/6294/1
authorEric Anholt <eric@anholt.net>
Fri, 19 Apr 2013 18:44:53 +0000 (11:44 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 30 Apr 2013 17:40:43 +0000 (10:40 -0700)
commit0c883e46d871797cd1141498850d51cde6e54b76
tree54019d9f77240229e7da69de95be45eb47de4984
parente7ecc11311d142a8ac919627011372a265224bcd
swrast: Replace ImageOffsets with an ImageSlices pointer.

This is a step toward allowing drivers to use their normal mapping paths,
instead of requiring that all slice mappings come from an aligned offset
from the first slice's map.

This incidentally fixes missing slice handling in FXT1 swrast.

v2: Use slice height helper function.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
13 files changed:
src/mesa/drivers/dri/intel/intel_tex_validate.c
src/mesa/drivers/dri/radeon/radeon_texture.c
src/mesa/main/texcompress.c
src/mesa/main/texcompress.h
src/mesa/main/texcompress_etc.c
src/mesa/main/texcompress_fxt1.c
src/mesa/main/texcompress_rgtc.c
src/mesa/main/texcompress_s3tc.c
src/mesa/swrast/s_context.h
src/mesa/swrast/s_texfetch.c
src/mesa/swrast/s_texfetch_tmp.h
src/mesa/swrast/s_texrender.c
src/mesa/swrast/s_texture.c