spirv: consider bitsize when handling OpSwitch cases
authorEero Tamminen <eero.t.tamminen@intel.com>
Tue, 26 Dec 2017 15:21:21 +0000 (07:21 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 28 Dec 2017 18:38:58 +0000 (10:38 -0800)
commit5c5f2eaa08fb6c1b1241c424dd4b33d326a15b7d
tree274e3248f8ae28f61df40085bdf2dedd5179ffb9
parente0eaeef3e7b5671a231644373c722ebd09d6765d
spirv: consider bitsize when handling OpSwitch cases

This reverts commit 7665383a33f9ce9256aa121cbe4d3bd948dff145 and is
squashed together with https://patchwork.freedesktop.org/patch/194610/
(spirv: avoid infinite loop / freeze in vtn_cfg_walk_blocks()) which
fixes https://bugs.freedesktop.org/show_bug.cgi?id=104359 properly.

Fixes: 9702fac68e (spirv: consider bitsize when handling OpSwitch cases)
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104359
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/spirv/vtn_cfg.c