Module: Mesa Branch: main Commit: 1b9a3b74661f0637d52f98d2275aa5387c6dc1b6 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1b9a3b74661f0637d52f98d2275aa5387c6dc1b6
Author: Georg Lehmann <dadschoo...@gmail.com> Date: Sat Oct 28 14:29:23 2023 +0200 aco: stop using cstdint We use stdint.h everywhere else. Reviewed-by: Daniel Schürmann <dan...@schuermann.dev Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25943> --- src/amd/compiler/aco_ir.h | 2 +- src/amd/compiler/aco_opcodes_h.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/amd/compiler/aco_ir.h b/src/amd/compiler/aco_ir.h index ca9c2efac5b..25ee17c44dd 100644 --- a/src/amd/compiler/aco_ir.h +++ b/src/amd/compiler/aco_ir.h @@ -68,7 +68,7 @@ enum { * * (*) The same is applicable for VOP1 and VOPC instructions. */ -enum class Format : std::uint16_t { +enum class Format : uint16_t { /* Pseudo Instruction Format */ PSEUDO = 0, /* Scalar ALU & Control Formats */ diff --git a/src/amd/compiler/aco_opcodes_h.py b/src/amd/compiler/aco_opcodes_h.py index 2bd77768acf..18b98a134c0 100644 --- a/src/amd/compiler/aco_opcodes_h.py +++ b/src/amd/compiler/aco_opcodes_h.py @@ -28,11 +28,11 @@ template = """\ #ifndef _ACO_OPCODES_ #define _ACO_OPCODES_ -#include <cstdint> +#include <stdint.h> <% opcode_names = sorted(opcodes.keys()) %> -enum class aco_opcode : std::uint16_t { +enum class aco_opcode : uint16_t { % for name in opcode_names: ${name}, % endfor