zink: do not convert bools to/from uint
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 10 Feb 2020 14:45:22 +0000 (15:45 +0100)
committerMarge Bot <eric+marge@anholt.net>
Mon, 17 Feb 2020 12:46:54 +0000 (12:46 +0000)
commit9903f10636566834a7563b6828c52fe40c5b0d71
treedc94cfccf56f7f23b8da3bfdc787766cfdd87e84
parent4d016de25052cc28d449538fddbe755aaff85d0a
zink: do not convert bools to/from uint

Since bools are the only 1-bit type, we always know if an SSA-def is a
bool or not. So we don't need to marshal it to uint.

So let's simplify the code a bit here.

Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3763>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3763>
src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c