Module: Mesa Branch: main Commit: bdd81c6be7f96ce161868c2c90aa4d580be210ea URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=bdd81c6be7f96ce161868c2c90aa4d580be210ea
Author: Georg Lehmann <dadschoo...@gmail.com> Date: Sat Oct 28 12:33:21 2023 +0200 aco: namespace aco_opcode Reviewed-by: Daniel Schürmann <dan...@schuermann.dev Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25943> --- src/amd/compiler/aco_opcodes_h.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/amd/compiler/aco_opcodes_h.py b/src/amd/compiler/aco_opcodes_h.py index 18b98a134c0..3a18f6de589 100644 --- a/src/amd/compiler/aco_opcodes_h.py +++ b/src/amd/compiler/aco_opcodes_h.py @@ -30,6 +30,8 @@ template = """\ #include <stdint.h> +namespace aco { + <% opcode_names = sorted(opcodes.keys()) %> enum class aco_opcode : uint16_t { @@ -40,6 +42,7 @@ enum class aco_opcode : uint16_t { num_opcodes = last_opcode + 1 }; +} #endif /* _ACO_OPCODES_ */""" from aco_opcodes import opcodes