aco: Implement nir_op_sad_u8x4.
authorTimur Kristóf <timur.kristof@gmail.com>
Fri, 28 May 2021 19:56:13 +0000 (21:56 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 9 Jun 2021 16:48:51 +0000 (16:48 +0000)
commitfd6605367d00762e6f63dd6fc85b504ee0c1667a
tree308c8f9fdab39900fb78ea70f899e861788ce2b8
parentc92dab8e2b6964b6dbd9ea122d7ff819efd45244
aco: Implement nir_op_sad_u8x4.

Fix up the operand size for v_sad instructions, and implement
the new NIR horizontal add. There is no viable way to do this
in SALU, so let's always use a VGPR destination.

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/amd/compiler/aco_instruction_selection.cpp
src/amd/compiler/aco_instruction_selection_setup.cpp
src/amd/compiler/aco_opcodes.py