nir/lower_subgroups: add lower_shuffle_to_swizzle_amd
authorRhys Perry <pendingchaos02@gmail.com>
Tue, 23 Jun 2020 16:37:37 +0000 (17:37 +0100)
committerMarge Bot <eric+marge@anholt.net>
Mon, 13 Jul 2020 14:11:50 +0000 (14:11 +0000)
commit7ba645d5cb3974d90db0dc7f78d935c7be29448d
treefe099ea459d3033076860b22d642f408aee74000
parent9c317cb2787db09be103dde5eee86b4709ebe6ba
nir/lower_subgroups: add lower_shuffle_to_swizzle_amd

masked_swizzle_amd can be much faster than shuffle.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5695>
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_subgroups.c