st/mesa: set stObj->lastLevel in guess_and_alloc_texture
authorVadim Girlin <vadimgirlin@gmail.com>
Wed, 23 May 2012 02:07:00 +0000 (06:07 +0400)
committerVadim Girlin <vadimgirlin@gmail.com>
Wed, 23 May 2012 02:07:00 +0000 (06:07 +0400)
commitc91b4edff978ee19afb4fe38ad69efc52db90691
tree462b900139b979624b4647695eaf556b010cd091
parentea8e854b2cefc3f3590b6c19e6108a471be951ba
st/mesa: set stObj->lastLevel in guess_and_alloc_texture

Fixes lockups/asserts with depthstencil-render-miplevels tests and r600g.
Should also fix https://bugs.freedesktop.org/show_bug.cgi?id=50033

NOTE: This is a candidate for the 8.0 branch.

Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/state_tracker/st_cb_texture.c