aco: fix single-alignbyte do_pack_2x16() path with fp inline constants
authorRhys Perry <pendingchaos02@gmail.com>
Fri, 29 Apr 2022 16:37:51 +0000 (17:37 +0100)
committerMarge Bot <emma+marge@anholt.net>
Tue, 5 Jul 2022 16:39:56 +0000 (16:39 +0000)
commit9739c07d9e20fe6469218e338e34acea7b73a513
tree869f407df5d14232c434ba075b0eec1664a8deb9
parent5d8f5615d0a584f463b86678be833f0da7f9d22a
aco: fix single-alignbyte do_pack_2x16() path with fp inline constants

We were using a 16-bit inline constant with a 32-bit instruction and the
test would have created
"v1: %_:v[0] = v_alignbyte_b32 0.5, %_:v[1][16:32], 2" instead.

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/16296>
src/amd/compiler/aco_lower_to_hw_instr.cpp
src/amd/compiler/tests/test_to_hw_instr.cpp