mesa: Convert _mesa_generate_mipmap to MapTexImage()-based access.
authorBrian Paul <brianp@vmware.com>
Tue, 2 Aug 2011 06:04:12 +0000 (23:04 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 3 Oct 2011 20:29:30 +0000 (13:29 -0700)
commite0304180c32227342dbb67b707bfae446543bb48
tree05224697ca0948eded9adb328a215bc2c5a3a24f
parent1165b64f561a7bdd3f603d9e30a2340774ba31ee
mesa: Convert _mesa_generate_mipmap to MapTexImage()-based access.

Now that we can zero-copy generate the mipmaps into brand new
glTexImage()-generated storage using MapTextureImage(), we no longer
need to allocate image->Data in mipmap generate.  This requires
deleting the drivers' old overrides of the miptree tracking after
calling _mesa_generate_mipmap at the same time, or the drivers
promptly lose our newly-generated data.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/intel/intel_tex.c
src/mesa/drivers/dri/nouveau/nouveau_texture.c
src/mesa/drivers/dri/radeon/radeon_texture.c
src/mesa/main/mipmap.c
src/mesa/main/mipmap.h
src/mesa/state_tracker/st_gen_mipmap.c