diff options
author | Rhys Perry <[email protected]> | 2020-05-01 16:42:05 +0100 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-05-02 13:59:05 +0000 |
commit | 8e02de4d7fc3bc7ac1f7f9faf0e18f33fe0098e3 (patch) | |
tree | 9f4bdde8e067e9798864aa7a8a979d21ea35911c /src/amd | |
parent | 49cc9e95266d547b89ea309798d54814d059285e (diff) |
aco: remove use of f-strings
f-strings require Python 3.6 but 3.5 is still maintained and used.
Signed-off-by: Rhys Perry <[email protected]>
Reviewed-by: Daniel Schürmann <[email protected]>
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/2839
Fixes: 2ab45f41 ("aco: implement sub-dword swaps")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4850>
Diffstat (limited to 'src/amd')
-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 5b9b9b036a7..30656976fee 100644 --- a/src/amd/compiler/aco_opcodes.py +++ b/src/amd/compiler/aco_opcodes.py @@ -153,7 +153,7 @@ class Format(Enum): res = '' if self == Format.SDWA: for i in range(min(num_operands, 2)): - res += f'instr->sel[{i}] = op{i}.op.bytes() == 2 ? sdwa_uword : (op{i}.op.bytes() == 1 ? sdwa_ubyte : sdwa_udword);\n' + 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;' return res |