aco: sign-extend input/indentity for 32-bit reduce ops on GFX10
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 28 May 2020 07:09:49 +0000 (09:09 +0200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 29 May 2020 11:20:58 +0000 (11:20 +0000)
commite22567089c829765d0b78a87d96f7dc5af9e10cd
tree5c30f129fce3732d4970728e36f99a8a0f7ca414
parent83dcd1690be5dbf7129ed05cc12043130a2f875c
aco: sign-extend input/indentity for 32-bit reduce ops on GFX10

Because some 16-bit instructions are already VOP3 on GFX10, we use
the 32-bit variants to remove the temporary VGPR and to use DDP with
the arithmetic instructions.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5148>
src/amd/compiler/aco_lower_to_hw_instr.cpp