aco: fix emitting literal offsets with SMEM on GFX7
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 8 Jun 2021 16:06:46 +0000 (18:06 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 9 Jun 2021 11:10:38 +0000 (11:10 +0000)
commitd169dad3937e2b2692c3992e0ed417849e971ee6
tree36b227442b9ee73a9e122ab9f46adf3b79ab7e8a
parent6c6674d72c45c2f6f3b03bcb9def7f4414bd9a68
aco: fix emitting literal offsets with SMEM on GFX7

When the offset is negative, reg() isn't 255. Fix this by splitting
SGPR and literal emission. While we are at it, adjust a comment
saying that literals are also accepted on GFX6 which is wrong.

Fixes another batch of robustness tests.

Cc: 21.1 mesa-stable
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/11247>
src/amd/compiler/aco_assembler.cpp