spirv: consider bitsize when handling OpSwitch cases
authorJuan A. Suarez Romero <jasuarez@igalia.com>
Tue, 19 Dec 2017 17:55:24 +0000 (17:55 +0000)
committerJuan A. Suarez Romero <jasuarez@igalia.com>
Wed, 20 Dec 2017 09:39:15 +0000 (10:39 +0100)
commit9702fac68e8bd07be8871f7925d7f9fb98da3699
treea04067ffb9b249a7561c16bd1d08fc262e49bbc8
parentfcfb42364698647b63eb45fe5ff653cc4372c1bf
spirv: consider bitsize when handling OpSwitch cases

When walking over all the cases in a OpSwitch, take in account the bitsize
of the literals to avoid getting wrong cases.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/spirv/vtn_cfg.c