diff options
author | Rhys Perry <pendingchaos02@gmail.com> | 2020-02-03 15:22:11 +0000 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2021-06-08 08:57:43 +0000 |
commit | c768d7d8f21e7a73849d906798bd9d3c8cd25e5b (patch) | |
tree | 01124c45c0bc78a449af27eac7b44da35e0370f2 /src/amd/compiler/aco_opcodes.py | |
parent | 24418304b0c81cea98660beaf92cb0c3f2c2f40b (diff) | |
download | mesa-c768d7d8f21e7a73849d906798bd9d3c8cd25e5b.tar.gz |
aco/tests: add SDWA tests
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3151>
Diffstat (limited to 'src/amd/compiler/aco_opcodes.py')
-rw-r--r-- | src/amd/compiler/aco_opcodes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/compiler/aco_opcodes.py b/src/amd/compiler/aco_opcodes.py index 07ac9cf104c..c399e1d86bb 100644 --- a/src/amd/compiler/aco_opcodes.py +++ b/src/amd/compiler/aco_opcodes.py @@ -183,7 +183,7 @@ class Format(Enum): for i in range(min(num_operands, 2)): res += 'instr->sel[{0}] = op{0}.op.bytes() == 2 ? sdwa_uword : (op{0}.op.bytes() == 1 ? sdwa_ubyte : sdwa_udword);\n'.format(i) res += 'instr->dst_sel = def0.bytes() == 2 ? sdwa_uword : (def0.bytes() == 1 ? sdwa_ubyte : sdwa_udword);\n' - res += 'instr->dst_preserve = true;' + res += 'if (def0.bytes() < 4) instr->dst_preserve = true;' return res |