nir/spirv/cfg: Only set fall to true at the start of a case
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 7 Jan 2016 01:00:01 +0000 (17:00 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 7 Jan 2016 01:00:55 +0000 (17:00 -0800)
commit000eb00862545aa1a0e42cea800a06bc57b406cf
tree19e8a2b9fa031a32b69138153941efcd5a354bc1
parentde65d4dcafcf6b22a71689ef1ef19bbd3dd953da
nir/spirv/cfg: Only set fall to true at the start of a case

Previously, we were setting it to true at the top of the switch statement.
However, this causes all of the cases to get executed until you hit a
break.  Instead, you want to be not executing at the start, start executing
when you hit your case, and end at a break.
src/glsl/nir/spirv/vtn_cfg.c