spirv: Tidy some repeated if checks by using a switch statement.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 10 Jan 2017 05:48:55 +0000 (21:48 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 10 Jan 2017 21:21:31 +0000 (13:21 -0800)
commit1e5b09f42f694687ac3b8abd5e95c391723b65ae
tree8afb1399c3cd42954fb2c73e402577cee180f81b
parentbb04b84114d2780307f9cbd04447216c3f2d1c0c
spirv: Tidy some repeated if checks by using a switch statement.

Iago suggested tidying this.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/spirv/vtn_variables.c