nir: Add support for lowering shuffle to a waterfall loop
authorConnor Abbott <cwabbott0@gmail.com>
Tue, 4 Jan 2022 14:44:31 +0000 (15:44 +0100)
committerMarge Bot <emma+marge@anholt.net>
Tue, 1 Feb 2022 16:27:45 +0000 (16:27 +0000)
commit503a5bae59712fcc5617d84740439d602e9ba4d2
tree948d43711ceeec6f2923d01692473762a2ec9c81
parent913bec10c42d5d394a2115691c1ebdf55b8fb7c7
nir: Add support for lowering shuffle to a waterfall loop

Qualcomm doesn't natively support shuffle, but it does natively support
relative shuffles where the delta is a constant. Therefore we'll expose
emulated support for both. Add support for this emulation of
subgroupShuffle() to NIR.

Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Reviewed-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14412>
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_subgroups.c