nvir/nir: use component helpers instead of insn->num_components
authorKarol Herbst <kherbst@redhat.com>
Fri, 15 May 2020 09:14:12 +0000 (11:14 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 10 Jun 2020 22:52:41 +0000 (22:52 +0000)
commitce7754e31b558bc8c8e5f0dd09c2e1649bb464f5
tree2dde53338c5927c385763b46f689bd81db8d0155
parenta2420c2280f32d3c36b39522d1d3555fe5627d23
nvir/nir: use component helpers instead of insn->num_components

We have nir_intrinsic_dest_components and nir_intrinsic_src_components
which handle all the corner cases.

Fixes a bunch of regressions like front_face stuff.

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Ben Skeggs <bskeggs@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5377>
src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp