aco: fix printing of some sdwa sels

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/7349>
This commit is contained in:
Rhys Perry 2020-08-12 14:20:56 +01:00 committed by Marge Bot
parent 70320f4117
commit 7e4aa8c8e9
1 changed files with 1 additions and 1 deletions

View File

@ -732,7 +732,7 @@ void aco_print_instr(const Instruction *instr, FILE *output)
if (opsel[i] || (sel[i] & sdwa_sext))
fprintf(output, ")");
if (!(sel[i] & sdwa_isra)) {
if (sel[i] & sdwa_udword) {
if (sel[i] == sdwa_udword || sel[i] == sdwa_sdword) {
/* print nothing */
} else if (sel[i] & sdwa_isword) {
unsigned index = sel[i] & sdwa_wordnum;