mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
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>
This commit is contained in:
parent
ea8e854b2c
commit
c91b4edff9
1 changed files with 2 additions and 0 deletions
|
|
@ -400,6 +400,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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue