aco: fix sub-dword opsel/sdwa checks
authorRhys Perry <pendingchaos02@gmail.com>
Tue, 16 Jun 2020 18:13:34 +0000 (19:13 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 17 Jun 2020 10:57:17 +0000 (10:57 +0000)
commitde7c6950b36bb1574c3b683b0f53d9bc15fe22d0
tree77f320ca41409fdd3e51a5475d3447ec5692a91d
parent1e791e51a65c3cf2b7f511c3bf12f9625428f701
aco: fix sub-dword opsel/sdwa checks

These should all check if the operand has a regclass. The opsel check
should also be skipped post-RA.

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/5504>
src/amd/compiler/aco_validate.cpp