zink: use helper function to handle uvec/bvec types
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 10 Jun 2020 15:00:16 +0000 (11:00 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 22 Jul 2020 14:01:29 +0000 (14:01 +0000)
commit6587f41e115eb9cc5a6b853b8ff1c97e48029b7f
treee32c72cbc2f05b3c5a122baefb4cb6b8342400b0
parent7015d2c249e1f7814bf5681ccd049e49e4d6495c
zink: use helper function to handle uvec/bvec types

bit_size of 1 means we use a bool type here, 32 means uint, so we can just
handle that automatically for all relevant cases

ref shaders@glsl-vs-continue-in-switch-in-do-while

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5911>
src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c