mesa: add texture target field to ChooseTextureFormat() driver hook
authorBrian Paul <brianp@vmware.com>
Fri, 24 Aug 2012 14:31:37 +0000 (08:31 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 24 Aug 2012 20:08:57 +0000 (14:08 -0600)
commitd47a6ada9ca9670c60fc141fabadf40c63031c08
treef39bc5068fec91606b1e03c7c602a864c1e89762
parentba7218061b6a6c09d5d20f12de6267673276e094
mesa: add texture target field to ChooseTextureFormat() driver hook

This will let us choose the actual hardware format depending on the
type of texture.

v2: fixup radeon, nouveau, intel and swrast drivers too

Reviewed-by: Eric Anholt <eric@anholt.net>
13 files changed:
src/mesa/drivers/dri/intel/intel_fbo.c
src/mesa/drivers/dri/nouveau/nouveau_texture.c
src/mesa/drivers/dri/radeon/radeon_texture.c
src/mesa/drivers/dri/radeon/radeon_texture.h
src/mesa/drivers/dri/swrast/swrast.c
src/mesa/main/dd.h
src/mesa/main/texformat.c
src/mesa/main/texformat.h
src/mesa/main/teximage.c
src/mesa/main/texobj.c
src/mesa/state_tracker/st_format.c
src/mesa/state_tracker/st_format.h
src/mesa/state_tracker/st_manager.c