zink: always use logical eq ops in ntv with 1bit inputs
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 27 May 2020 19:28:42 +0000 (15:28 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 27 May 2020 23:20:22 +0000 (23:20 +0000)
commitdff1bac6345b755bfba544b144e1e9dad71be9aa
treedcdb9372a12f1442f572e5c92bf1c799335f3170
parentdf2c68ee4fd470efdc4f0121a2fe4aa5c64771e0
zink: always use logical eq ops in ntv with 1bit inputs

integer and float compare ops cannot take boolean types, so the bit size
of the inputs should be checked here so that we can swap to the logical
equality functions if we're being passed a bool value

resolves tons of validator errors in glsl piglit tests

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