diff options
| author | 2021-04-05 22:25:22 -0400 | |
|---|---|---|
| committer | 2021-07-22 21:51:26 -0400 | |
| commit | 0bb85f6a753c769266c95c4ba146b25b9eaaaffd (patch) | |
| tree | e5d818ae7dc1d0025bb115c7a63235d866e53286 /src/shader_recompiler/frontend/maxwell/decode.cpp | |
| parent | shader: Fix FCMP immediate variant (diff) | |
| download | yuzu-0bb85f6a753c769266c95c4ba146b25b9eaaaffd.tar.gz yuzu-0bb85f6a753c769266c95c4ba146b25b9eaaaffd.tar.xz yuzu-0bb85f6a753c769266c95c4ba146b25b9eaaaffd.zip | |
shader_recompiler,video_core: Cleanup some GCC and Clang errors
Mostly fixing unused *, implicit conversion, braced scalar init,
fpermissive, and some others.
Some Clang errors likely remain in video_core, and std::ranges is still
a pertinent issue in shader_recompiler
shader_recompiler: cmake: Force bracket depth to 1024 on Clang
Increases the maximum fold expression depth
thread_worker: Include condition_variable
Don't use list initializers in control flow
Co-authored-by: ReinUsesLisp <reinuseslisp@airmail.cc>
Diffstat (limited to '')
| -rw-r--r-- | src/shader_recompiler/frontend/maxwell/decode.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/shader_recompiler/frontend/maxwell/decode.cpp b/src/shader_recompiler/frontend/maxwell/decode.cpp index bd85afa1e..932d19c1d 100644 --- a/src/shader_recompiler/frontend/maxwell/decode.cpp +++ b/src/shader_recompiler/frontend/maxwell/decode.cpp | |||
| @@ -45,7 +45,7 @@ constexpr MaskValue MaskValueFromEncoding(const char* encoding) { | |||
| 45 | bit >>= 1; | 45 | bit >>= 1; |
| 46 | } | 46 | } |
| 47 | } | 47 | } |
| 48 | return MaskValue{.mask{mask}, .value{value}}; | 48 | return MaskValue{.mask = mask, .value = value}; |
| 49 | } | 49 | } |
| 50 | 50 | ||
| 51 | struct InstEncoding { | 51 | struct InstEncoding { |
| @@ -56,7 +56,7 @@ constexpr std::array UNORDERED_ENCODINGS{ | |||
| 56 | #define INST(name, cute, encode) \ | 56 | #define INST(name, cute, encode) \ |
| 57 | InstEncoding{ \ | 57 | InstEncoding{ \ |
| 58 | .mask_value{MaskValueFromEncoding(encode)}, \ | 58 | .mask_value{MaskValueFromEncoding(encode)}, \ |
| 59 | .opcode{Opcode::name}, \ | 59 | .opcode = Opcode::name, \ |
| 60 | }, | 60 | }, |
| 61 | #include "maxwell.inc" | 61 | #include "maxwell.inc" |
| 62 | #undef INST | 62 | #undef INST |
| @@ -116,9 +116,9 @@ constexpr auto MakeFastLookupTableIndex(size_t index) { | |||
| 116 | const size_t value{ToFastLookupIndex(encoding.mask_value.value)}; | 116 | const size_t value{ToFastLookupIndex(encoding.mask_value.value)}; |
| 117 | if ((index & mask) == value) { | 117 | if ((index & mask) == value) { |
| 118 | encodings.at(element) = InstInfo{ | 118 | encodings.at(element) = InstInfo{ |
| 119 | .high_mask{static_cast<u16>(encoding.mask_value.mask >> MASK_SHIFT)}, | 119 | .high_mask = static_cast<u16>(encoding.mask_value.mask >> MASK_SHIFT), |
| 120 | .high_value{static_cast<u16>(encoding.mask_value.value >> MASK_SHIFT)}, | 120 | .high_value = static_cast<u16>(encoding.mask_value.value >> MASK_SHIFT), |
| 121 | .opcode{encoding.opcode}, | 121 | .opcode = encoding.opcode, |
| 122 | }; | 122 | }; |
| 123 | ++element; | 123 | ++element; |
| 124 | } | 124 | } |