st/mesa: remove st_TexImage(), use core Mesa code instead
authorBrian Paul <brianp@vmware.com>
Wed, 4 Jan 2012 20:30:35 +0000 (13:30 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 4 Jan 2012 20:30:35 +0000 (13:30 -0700)
commit5d67d4fbebb7c7d6582c4c92fc5cea4a8e6a60ab
tree164e1c37301429a68ceb58be316bf70326dac179
parent19840c46f38b7bfe04bfaa925a6f56b3777be6ff
st/mesa: remove st_TexImage(), use core Mesa code instead

The core Mesa code does the equivalent memory allocation, image mapping,
storing and unmapping.  We just need to call prep_teximage() first to
handle the 'surface_based' stuff.

The other change is to always use the level=0 mipmap image when accessing
individual mipmap level images that are stored in resources/buffers.
Apparently, we were always using malloc'd memory for individual mipmap
images, not resource buffers, before.

Signed-off-by: Brian Paul <brianp@vmware.com>
src/mesa/state_tracker/st_cb_texture.c
src/mesa/state_tracker/st_texture.c