Module: Mesa Branch: 8.0 Commit: 26f7f8076da42f2f8aadd17ed6b8c0d25ee471ec URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=26f7f8076da42f2f8aadd17ed6b8c0d25ee471ec
Author: Vadim Girlin <[email protected]> Date: Wed May 23 06:07:00 2012 +0400 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 <[email protected]> Reviewed-by: Brian Paul <[email protected]> (cherry picked from commit c91b4edff978ee19afb4fe38ad69efc52db90691) --- src/mesa/state_tracker/st_cb_texture.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c index ad4f23c..88c5ad7 100644 --- a/src/mesa/state_tracker/st_cb_texture.c +++ b/src/mesa/state_tracker/st_cb_texture.c @@ -406,6 +406,8 @@ guess_and_alloc_texture(struct st_context *st, ptLayers, bindings); + stObj->lastLevel = lastLevel; + DBG("%s returning %d\n", __FUNCTION__, (stObj->pt != NULL)); return stObj->pt != NULL; _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
