diff options
| author | 2021-06-28 23:44:03 -0400 | |
|---|---|---|
| committer | 2021-07-22 21:51:40 -0400 | |
| commit | 2e5af95541adf581364ee3864be57f9b2b9a230f (patch) | |
| tree | 939e3d203ecc1ea98fae168745004c28cdb9b007 /src/shader_recompiler/backend/glasm/emit_context.h | |
| parent | shader: Account for 33-bit IADD3 scenario (diff) | |
| download | yuzu-2e5af95541adf581364ee3864be57f9b2b9a230f.tar.gz yuzu-2e5af95541adf581364ee3864be57f9b2b9a230f.tar.xz yuzu-2e5af95541adf581364ee3864be57f9b2b9a230f.zip | |
shader: GCC fmt 8.0.0 fixes
Diffstat (limited to 'src/shader_recompiler/backend/glasm/emit_context.h')
| -rw-r--r-- | src/shader_recompiler/backend/glasm/emit_context.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/shader_recompiler/backend/glasm/emit_context.h b/src/shader_recompiler/backend/glasm/emit_context.h index 9f86e55d3..1da51a996 100644 --- a/src/shader_recompiler/backend/glasm/emit_context.h +++ b/src/shader_recompiler/backend/glasm/emit_context.h | |||
| @@ -37,21 +37,23 @@ public: | |||
| 37 | 37 | ||
| 38 | template <typename... Args> | 38 | template <typename... Args> |
| 39 | void Add(const char* format_str, IR::Inst& inst, Args&&... args) { | 39 | void Add(const char* format_str, IR::Inst& inst, Args&&... args) { |
| 40 | code += fmt::format(format_str, reg_alloc.Define(inst), std::forward<Args>(args)...); | 40 | code += fmt::format(fmt::runtime(format_str), reg_alloc.Define(inst), |
| 41 | std::forward<Args>(args)...); | ||
| 41 | // TODO: Remove this | 42 | // TODO: Remove this |
| 42 | code += '\n'; | 43 | code += '\n'; |
| 43 | } | 44 | } |
| 44 | 45 | ||
| 45 | template <typename... Args> | 46 | template <typename... Args> |
| 46 | void LongAdd(const char* format_str, IR::Inst& inst, Args&&... args) { | 47 | void LongAdd(const char* format_str, IR::Inst& inst, Args&&... args) { |
| 47 | code += fmt::format(format_str, reg_alloc.LongDefine(inst), std::forward<Args>(args)...); | 48 | code += fmt::format(fmt::runtime(format_str), reg_alloc.LongDefine(inst), |
| 49 | std::forward<Args>(args)...); | ||
| 48 | // TODO: Remove this | 50 | // TODO: Remove this |
| 49 | code += '\n'; | 51 | code += '\n'; |
| 50 | } | 52 | } |
| 51 | 53 | ||
| 52 | template <typename... Args> | 54 | template <typename... Args> |
| 53 | void Add(const char* format_str, Args&&... args) { | 55 | void Add(const char* format_str, Args&&... args) { |
| 54 | code += fmt::format(format_str, std::forward<Args>(args)...); | 56 | code += fmt::format(fmt::runtime(format_str), std::forward<Args>(args)...); |
| 55 | // TODO: Remove this | 57 | // TODO: Remove this |
| 56 | code += '\n'; | 58 | code += '\n'; |
| 57 | } | 59 | } |