mesa: choose texture format in core mesa, not drivers
authorBrian Paul <brianp@vmware.com>
Mon, 26 Oct 2009 00:06:18 +0000 (18:06 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 26 Oct 2009 00:06:24 +0000 (18:06 -0600)
commit11caea687e3f10ae12d33e44edf84635f73047dd
tree36e411b7d118f8033aaccb5a1d148e24bc89306a
parent355b5bde5056297f4f1636850449b91626958408
mesa: choose texture format in core mesa, not drivers

Call the ctx->Driver.ChooseTextureFormat() function from core Mesa's
_mesa_[Copy]TexImage functions instead of in the driver functions.
One less thing for drivers to do.
12 files changed:
src/mesa/drivers/dri/intel/intel_tex_image.c
src/mesa/drivers/dri/r200/r200_texstate.c
src/mesa/drivers/dri/r300/r300_texstate.c
src/mesa/drivers/dri/r600/r600_texstate.c
src/mesa/drivers/dri/radeon/radeon_fbo.c
src/mesa/drivers/dri/radeon/radeon_texstate.c
src/mesa/drivers/dri/radeon/radeon_texture.c
src/mesa/drivers/dri/tdfx/tdfx_tex.c
src/mesa/drivers/glide/fxddtex.c
src/mesa/main/teximage.c
src/mesa/main/texstore.c
src/mesa/state_tracker/st_cb_texture.c