diff options
Diffstat (limited to 'src/shader_recompiler/frontend')
4 files changed, 3 insertions, 9 deletions
diff --git a/src/shader_recompiler/frontend/ir/opcodes.h b/src/shader_recompiler/frontend/ir/opcodes.h index d17dc0376..752879a18 100644 --- a/src/shader_recompiler/frontend/ir/opcodes.h +++ b/src/shader_recompiler/frontend/ir/opcodes.h | |||
| @@ -103,6 +103,6 @@ struct fmt::formatter<Shader::IR::Opcode> { | |||
| 103 | } | 103 | } |
| 104 | template <typename FormatContext> | 104 | template <typename FormatContext> |
| 105 | auto format(const Shader::IR::Opcode& op, FormatContext& ctx) { | 105 | auto format(const Shader::IR::Opcode& op, FormatContext& ctx) { |
| 106 | return format_to(ctx.out(), "{}", Shader::IR::NameOf(op)); | 106 | return fmt::format_to(ctx.out(), "{}", Shader::IR::NameOf(op)); |
| 107 | } | 107 | } |
| 108 | }; | 108 | }; |
diff --git a/src/shader_recompiler/frontend/maxwell/control_flow.h b/src/shader_recompiler/frontend/maxwell/control_flow.h index 2487b9b0b..1ce45b3a5 100644 --- a/src/shader_recompiler/frontend/maxwell/control_flow.h +++ b/src/shader_recompiler/frontend/maxwell/control_flow.h | |||
| @@ -58,7 +58,7 @@ public: | |||
| 58 | [[nodiscard]] Stack Remove(Token token) const; | 58 | [[nodiscard]] Stack Remove(Token token) const; |
| 59 | 59 | ||
| 60 | private: | 60 | private: |
| 61 | boost::container::small_vector<StackEntry, 3> entries; | 61 | std::vector<StackEntry> entries; |
| 62 | }; | 62 | }; |
| 63 | 63 | ||
| 64 | struct IndirectBranch { | 64 | struct IndirectBranch { |
diff --git a/src/shader_recompiler/frontend/maxwell/opcodes.h b/src/shader_recompiler/frontend/maxwell/opcodes.h index 83093fca0..72dd143c2 100644 --- a/src/shader_recompiler/frontend/maxwell/opcodes.h +++ b/src/shader_recompiler/frontend/maxwell/opcodes.h | |||
| @@ -24,6 +24,6 @@ struct fmt::formatter<Shader::Maxwell::Opcode> { | |||
| 24 | } | 24 | } |
| 25 | template <typename FormatContext> | 25 | template <typename FormatContext> |
| 26 | auto format(const Shader::Maxwell::Opcode& opcode, FormatContext& ctx) { | 26 | auto format(const Shader::Maxwell::Opcode& opcode, FormatContext& ctx) { |
| 27 | return format_to(ctx.out(), "{}", NameOf(opcode)); | 27 | return fmt::format_to(ctx.out(), "{}", NameOf(opcode)); |
| 28 | } | 28 | } |
| 29 | }; | 29 | }; |
diff --git a/src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp b/src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp index 3dc7c9a11..578bc8c1b 100644 --- a/src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp +++ b/src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp | |||
| @@ -975,13 +975,7 @@ private: | |||
| 975 | Environment& env; | 975 | Environment& env; |
| 976 | IR::AbstractSyntaxList& syntax_list; | 976 | IR::AbstractSyntaxList& syntax_list; |
| 977 | bool uses_demote_to_helper{}; | 977 | bool uses_demote_to_helper{}; |
| 978 | |||
| 979 | // TODO: C++20 Remove this when all compilers support constexpr std::vector | ||
| 980 | #if __cpp_lib_constexpr_vector >= 201907 | ||
| 981 | static constexpr Flow::Block dummy_flow_block; | ||
| 982 | #else | ||
| 983 | const Flow::Block dummy_flow_block; | 978 | const Flow::Block dummy_flow_block; |
| 984 | #endif | ||
| 985 | }; | 979 | }; |
| 986 | } // Anonymous namespace | 980 | } // Anonymous namespace |
| 987 | 981 | ||