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: <!6313>
73 jobs for master
Status Name Job ID Coverage
  Container+Docs
manual arm_build #4293634
aarch64 manual
manual arm_test-base #4293635
manual
manual x86_build-base #4293631
manual
manual x86_build_old #4293633
manual
manual x86_test-base #4293632
manual
 
  Container 2
created arm64_test #4293645
created i386_build #4293640
created kernel+rootfs_amd64 #4293636
created kernel+rootfs_arm64 #4293637
aarch64
created kernel+rootfs_armhf #4293638
aarch64
created ppc64el_build #4293641
created s390x_build #4293642
created x86_build #4293639
created x86_test-gl #4293643
created x86_test-vk #4293644
 
  Meson X86 64
created meson-android #4293649
created meson-clang #4293650
created meson-classic #4293648
created meson-clover #4293651
created meson-clover-old-llvm #4293652
created meson-gallium #4293647
created meson-testing #4293646
created meson-vulkan #4293653
 
  Scons
created scons-win64 #4293654
allowed to fail
 
  Meson Misc
created meson-arm64 #4293656
aarch64
created meson-arm64-build-test #4293657
aarch64
created meson-armhf #4293655
aarch64
created meson-i386 #4293658
created meson-mingw32-x86_64 #4293661
created meson-ppc64el #4293660
kvm
created meson-s390x #4293659
kvm
 
  Llvmpipe
created llvmpipe-gles2 #4293665
created llvmpipe-traces #4293666
created piglit-glslparser #4293663
created piglit-quick_gl #4293662
created piglit-quick_shader #4293664
 
  Softpipe
created softpipe-gl #4293671
created softpipe-gles2 #4293667
created softpipe-gles3 #4293668
created softpipe-gles31 1/2 #4293669
created softpipe-gles31 2/2 #4293670
 
  Freedreno
created arm64_a306_gles2 #4293681
google-freedreno-db410c
created arm64_a306_gles3 #4293682
google-freedreno-db410c
created arm64_a306_gles3_options #4293683
google-freedreno-db410c
created arm64_a530_gles2 #4293684
google-freedreno-db820c
created arm64_a530_gles3 #4293685
google-freedreno-db820c
created arm64_a530_gles31 #4293686
google-freedreno-db820c
created arm64_a630_bypass #4293676
google-freedreno-cheza
created arm64_a630_gles2 #4293672
google-freedreno-cheza
created arm64_a630_gles3 #4293674
google-freedreno-cheza
created arm64_a630_gles31 #4293673
google-freedreno-cheza
created arm64_a630_gmem #4293678
google-freedreno-cheza
created arm64_a630_noubo #4293675
google-freedreno-cheza
created arm64_a630_traces #4293677
google-freedreno-cheza
created arm64_a630_vk #4293679
google-freedreno-cheza
created arm64_a630_vk_sysmem #4293680
google-freedreno-cheza
 
  Panfrost
created panfrost-t720-gles2:arm64 #4293687
mesa-ci-aarch64-lava-collabora
created panfrost-t760-gles2:armhf #4293688
mesa-ci-aarch64-lava-collabora
created panfrost-t860-gles2:arm64 #4293689
mesa-ci-aarch64-lava-collabora
created panfrost-t860-gles3:arm64 1/2 #4293690
mesa-ci-aarch64-lava-collabora
created panfrost-t860-gles3:arm64 2/2 #4293691
mesa-ci-aarch64-lava-collabora
created panfrost-t860-traces:arm64 #4293692
mesa-ci-aarch64-lava-collabora
 
  Radv
created radv-fossils #4293693
 
  Virgl
created virgl-gl30-on-gl #4293698
created virgl-gl31-on-gl #4293699
created virgl-gl32-on-gl #4293700
created virgl-gles2-on-gl #4293694
created virgl-gles31-on-gl 1/2 #4293696
created virgl-gles31-on-gl 2/2 #4293697
created virgl-gles3-on-gl #4293695
created virgl-traces #4293701
 
  Radeonsi
created radeonsi-stoney-gles2:amd64 #4293702
mesa-ci-aarch64-lava-collabora
created radeonsi-stoney-traces:amd64 #4293703
mesa-ci-aarch64-lava-collabora