aco: copy the literal offset of SMEM instructions to a temporary
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 22 Jan 2020 15:59:34 +0000 (16:59 +0100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 24 Jan 2020 18:34:27 +0000 (18:34 +0000)
commitd4b4f40595b3188b5733b216e929a039e635c353
treecc03c8f9aa259163376457d1bfd8cca37ea0f5c7
parent1ac49ba908acf70a8ae4aad71dc715bf625aea1e
aco: copy the literal offset of SMEM instructions to a temporary

GFX6 only supports up to 8-bit for the literal offset, so make sure
it's copied to a temporary SGPR before emitting a SMEM instruction.
The optimizer will propagate the literal offset if possible anyways.

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