nir/vtn: SPIR-V bit count opcodes (core and extension) dest size mismatches nir
authorJesse Natalie <jenatali@microsoft.com>
Tue, 23 Jun 2020 12:45:36 +0000 (05:45 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 27 Aug 2020 16:57:42 +0000 (16:57 +0000)
commit608c87afdddb9524bce3d2ccd95c2297b453072b
tree88301d6ae729925e6bb9be13637e635c1aeec28e
parenta54695ddcb26b4437c361d7df8c93f6b8a990e27
nir/vtn: SPIR-V bit count opcodes (core and extension) dest size mismatches nir

SPIR-V dest sizes match the input, while nir is always int32. Insert
casts from the nir op to the expected SPIR-V dest.

Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6313>
src/compiler/spirv/vtn_alu.c
src/compiler/spirv/vtn_opencl.c