spirv: extract switch parsing into its own function
authorKarol Herbst <kherbst@redhat.com>
Tue, 11 Aug 2020 12:00:26 +0000 (14:00 +0200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 14 Aug 2020 20:35:37 +0000 (20:35 +0000)
commit467b90fcc46efdd5ce64a12937fedf507d0242ec
tree5e1b93227ce7031441cdf683f7659d9e46339b0b
parent96dff31bc8f099651f4b96e9658bdb2a1c4b53cc
spirv: extract switch parsing into its own function

v2 (Jason Ekstrand):
 - Construct a list of vtn_case objects

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2401>
src/compiler/spirv/vtn_cfg.c
src/compiler/spirv/vtn_private.h