Fix a number of texture compression issues.
authorBrian Paul <brian.paul@tungstengraphics.com>
Mon, 8 May 2006 19:14:38 +0000 (19:14 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Mon, 8 May 2006 19:14:38 +0000 (19:14 +0000)
commit5999c5b620236fb6a996cf56759aec31f01c126b
tree393189b44ba4734119159d7a172c4f77eb0097c6
parentc93c18abf1950e1494f11166e3f52973efbd6b75
Fix a number of texture compression issues.
Pass the MESA_FORMAT_* token to the _mesa_compressed_row_stride(),
_mesa_compressed_texture_size() and _mesa_compressed_image_address()
functions since we want to use the driver-chosen format, not the user's
internalFormat hint.
Consolidate code related to choosing the texture format in texstoree.c
src/mesa/drivers/dri/tdfx/tdfx_tex.c
src/mesa/drivers/dri/unichrome/via_tex.c
src/mesa/main/texcompress.c
src/mesa/main/texcompress.h
src/mesa/main/texcompress_s3tc.c
src/mesa/main/teximage.c
src/mesa/main/texstore.c