st/mesa: restore the stObj's size if it was cleared out
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 17 Jan 2016 21:25:00 +0000 (16:25 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Mon, 18 Jan 2016 22:52:07 +0000 (17:52 -0500)
commitaf686e7de3cc7cc053959729e9e31432740489fa
tree419bba362596898d158e471067273f80804a85a8
parent805e080ba0ef637cfc7b637538b5a0ce5f0b53dc
st/mesa: restore the stObj's size if it was cleared out

An issue could still occur if the base level is set, but fixing that
would require a lot more logic.

This fixes the recently-failing texelFetch 3D tests because the mipmaps
were no longer being generated, which in turn caused the copying logic
to be hit, which in turn didn't work because of the broken
width/height/depth.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/state_tracker/st_cb_texture.c