summaryrefslogtreecommitdiff
path: root/src/amd/compiler/aco_builder_h.py
diff options
context:
space:
mode:
authorRhys Perry <pendingchaos02@gmail.com>2022-05-19 15:55:53 +0100
committerMarge Bot <emma+marge@anholt.net>2022-07-08 14:49:03 +0000
commit931a456db163d85b38a82dbff1114edc6b695707 (patch)
tree934e4765fee174a69d46a9badc1e713d108d3949 /src/amd/compiler/aco_builder_h.py
parentcbeb25ce9122bdc20b76d1a24fcf3080873a8641 (diff)
downloadmesa-931a456db163d85b38a82dbff1114edc6b695707.tar.gz
aco: improve support for scratch_* instructions
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/17079>
Diffstat (limited to 'src/amd/compiler/aco_builder_h.py')
-rw-r--r--src/amd/compiler/aco_builder_h.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/amd/compiler/aco_builder_h.py b/src/amd/compiler/aco_builder_h.py
index 8177c36207c..e62ad43c0e6 100644
--- a/src/amd/compiler/aco_builder_h.py
+++ b/src/amd/compiler/aco_builder_h.py
@@ -541,7 +541,8 @@ formats = [("pseudo", [Format.PSEUDO], 'Pseudo_instruction', list(itertools.prod
("vop2_e64", [Format.VOP2, Format.VOP3], 'VOP3_instruction', itertools.product([1, 2], [2, 3])),
("vopc_e64", [Format.VOPC, Format.VOP3], 'VOP3_instruction', itertools.product([1, 2], [2])),
("flat", [Format.FLAT], 'FLAT_instruction', [(0, 3), (1, 2)]),
- ("global", [Format.GLOBAL], 'FLAT_instruction', [(0, 3), (1, 2)])]
+ ("global", [Format.GLOBAL], 'FLAT_instruction', [(0, 3), (1, 2)]),
+ ("scratch", [Format.SCRATCH], 'FLAT_instruction', [(0, 3), (1, 2)])]
formats = [(f if len(f) == 5 else f + ('',)) for f in formats]
%>\\
% for name, formats, struct, shapes, extra_field_setup in formats: