mesa: pass gl_format to _mesa_init_teximage_fields()
authorBrian Paul <brianp@vmware.com>
Thu, 18 Nov 2010 23:15:33 +0000 (16:15 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 18 Nov 2010 23:15:38 +0000 (16:15 -0700)
commit83e93b6008213ad86607027e8434ecaccc8b1a2c
tree5817bc1a52086eea884e93b1eaf2cb60e90f66f7
parent3dcc3153b087a2ec42e6177d965dd8b2c95779c2
mesa: pass gl_format to _mesa_init_teximage_fields()

This should prevent the field going unset in the future.  See bug
http://bugs.freedesktop.org/show_bug.cgi?id=31544 for background.

Also remove unneeded calls to clear_teximage_fields().

Finally, call _mesa_set_fetch_functions() from the
_mesa_init_teximage_fields() function so callers have one less
thing to worry about.
18 files changed:
src/mesa/drivers/common/meta.c
src/mesa/drivers/dri/intel/intel_tex_image.c
src/mesa/drivers/dri/nouveau/nouveau_texture.c
src/mesa/drivers/dri/r200/r200_texstate.c
src/mesa/drivers/dri/r300/r300_texstate.c
src/mesa/drivers/dri/r600/evergreen_tex.c
src/mesa/drivers/dri/r600/r600_texstate.c
src/mesa/drivers/dri/radeon/radeon_texstate.c
src/mesa/drivers/dri/swrast/swrast.c
src/mesa/main/mipmap.c
src/mesa/main/texfetch.c
src/mesa/main/teximage.c
src/mesa/main/teximage.h
src/mesa/main/texobj.c
src/mesa/state_tracker/st_cb_eglimage.c
src/mesa/state_tracker/st_cb_texture.c
src/mesa/state_tracker/st_gen_mipmap.c
src/mesa/state_tracker/st_manager.c