nir/glsl: Don't allocate a state_slots array for 0 state slots
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 3 Dec 2014 02:07:13 +0000 (18:07 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 15 Jan 2015 15:19:02 +0000 (07:19 -0800)
commit9318ce8c5a6e0e315f62ce82314cb72f8bce5c79
treeeb700786f15129e503197a24a1fa0cae1f482b0c
parent9d62df3800cad8f8a221d2222203cfa0856918f4
nir/glsl: Don't allocate a state_slots array for 0 state slots

Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/glsl/nir/glsl_to_nir.cpp