spirv: Clean up OpSignBitSet
authorJason Ekstrand <jason@jlekstrand.net>
Thu, 28 May 2020 22:14:30 +0000 (17:14 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Fri, 24 Jul 2020 03:41:54 +0000 (22:41 -0500)
commit8dfee57bdc165c3d4c315eac91b60112969433e2
tree114891c20fda2898680bcd515ca5a69f01e8dded
parent62c53ad20b77691804de656dfa9caad49b196581
spirv: Clean up OpSignBitSet

For some reason, we were doing a signed shift vectors and an unsigned
shift for scalars.  We then plug it into i2b so it should make no
difference whatsoever.  The fact that we're doing different things for
vectors vs. scalars is bonkers.  Let's simplify the code a bit.

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5278>
src/compiler/spirv/vtn_alu.c