Mesa (master): mesa: get rid of imageOffsets arrays in texstore code
Brian Paul
brianp at kemper.freedesktop.org
Thu Oct 6 03:17:05 UTC 2011
Module: Mesa
Branch: master
Commit: 5253cf98057dad54e25b4b8c36f8cf24f559314c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5253cf98057dad54e25b4b8c36f8cf24f559314c
Author: Brian Paul <brianp at vmware.com>
Date: Tue Oct 4 18:26:39 2011 -0600
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 at anholt.net>
---
src/mesa/drivers/dri/intel/intel_tex_subimage.c | 8 +-
src/mesa/drivers/dri/nouveau/nouveau_texture.c | 9 +-
src/mesa/drivers/dri/radeon/radeon_texture.c | 12 +-
src/mesa/main/texcompress_fxt1.c | 6 +-
src/mesa/main/texcompress_rgtc.c | 12 +-
src/mesa/main/texcompress_s3tc.c | 12 +-
src/mesa/main/texstore.c | 533 +++++++++--------------
src/mesa/main/texstore.h | 7 +-
src/mesa/state_tracker/st_cb_drawpixels.c | 4 +-
src/mesa/state_tracker/st_cb_texture.c | 9 +-
10 files changed, 232 insertions(+), 380 deletions(-)
Diff: http://cgit.freedesktop.org/mesa/mesa/diff/?id=5253cf98057dad54e25b4b8c36f8cf24f559314c
More information about the mesa-commit
mailing list