aco: don't create byte-aligned short loads
authorRhys Perry <pendingchaos02@gmail.com>
Thu, 11 Jun 2020 14:38:07 +0000 (15:38 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 24 Jun 2020 10:52:28 +0000 (10:52 +0000)
commit91d7e40176328d0a256d9b9cf0ff749604035c51
tree9e122b9560aaa0559a469e6b30870692c5b08d6b
parentc3259b6e6a2f1fa97041ba5d043eedf30372e8a6
aco: don't create byte-aligned short loads

The ISA docs don't seem to say if this is allowed, so just assume short
loads require short alignment.

In practice, the only situation this should affect are byte-aligned u8vec2
loads.

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/5207>
src/amd/compiler/aco_instruction_selection.cpp