mesa/st: NumLayers is only valid for array textures
authorIlia Mirkin <imirkin@alum.mit.edu>
Wed, 24 Sep 2014 04:58:07 +0000 (00:58 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 26 Sep 2014 02:15:49 +0000 (22:15 -0400)
commit9d2e298dd4159651323cac54dbc43527e7fd6d16
tree5759305569fcd0c6dc400d247afa96fda638b264
parentfca2216cedc631eec8d41763ab20a8a404b3af91
mesa/st: NumLayers is only valid for array textures

For 3d textures, NumLayers is set to 1, which is not what we want. This
fixes the newly added gl-layer-render-storage test (which constructs
immutable 3d textures). Fixes regression introduced in d82bd7eb060.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=84145
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Tested-by: Michel Dänzer <michel.daenzer@amd.com>
Acked-by: Chris Forbes <chrisf@ijw.co.nz>
src/mesa/state_tracker/st_atom_texture.c
src/mesa/state_tracker/st_cb_fbo.c
src/mesa/state_tracker/st_texture.c