aco: fix nir_op_pack_32_2x16_split if one operand is a constant
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sat, 4 Apr 2020 08:07:51 +0000 (10:07 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 13 Apr 2020 11:51:17 +0000 (11:51 +0000)
commitfc1068de0d124b746cc85b58564810c5453feee3
tree61881e7fb3c0a9850b2efba618ce2a3369046c06
parent4cfaef68d7de7959f6adeaec53077a630b603184
aco: fix nir_op_pack_32_2x16_split if one operand is a constant

Because 16-bit constants are represented with the s1 RegClass, we
have to extract the low half.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4509>
src/amd/compiler/aco_instruction_selection.cpp