nir: Add AMD-specific byte and lane permute intrinsics.
authorTimur Kristóf <timur.kristof@gmail.com>
Fri, 28 May 2021 19:57:19 +0000 (21:57 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 9 Jun 2021 16:48:51 +0000 (16:48 +0000)
commit43ce80a58f8a6bd988e5bd15be2b6c2a30890af0
tree143e8914d064f1637b7f0caadf24944f0b085922
parent5713e059ea6f2c6ed4a95f58edf33648278e2532
nir: Add AMD-specific byte and lane permute intrinsics.

These map directly to v_perm_b32 and v_permlane_b32.
Unfortunately there is no corresponding NIR opcode or
intrinsics, and it's too tedious to puzzle these things
together from the existing NIR instructions.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Tony Wasserka <tony.wasserka@gmx.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11072>
src/compiler/nir/nir_divergence_analysis.c
src/compiler/nir/nir_intrinsics.py