diff options
Diffstat (limited to 'src/shader_recompiler/frontend')
| -rw-r--r-- | src/shader_recompiler/frontend/ir/ir_emitter.h | 4 | ||||
| -rw-r--r-- | src/shader_recompiler/frontend/ir/value.h | 4 | ||||
| -rw-r--r-- | src/shader_recompiler/frontend/maxwell/control_flow.cpp | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/shader_recompiler/frontend/ir/ir_emitter.h b/src/shader_recompiler/frontend/ir/ir_emitter.h index 53f7b3b06..1b89ca5a0 100644 --- a/src/shader_recompiler/frontend/ir/ir_emitter.h +++ b/src/shader_recompiler/frontend/ir/ir_emitter.h | |||
| @@ -327,8 +327,8 @@ public: | |||
| 327 | const Value& derivates, const Value& offset, | 327 | const Value& derivates, const Value& offset, |
| 328 | const F32& lod_clamp, TextureInstInfo info); | 328 | const F32& lod_clamp, TextureInstInfo info); |
| 329 | [[nodiscard]] Value ImageRead(const Value& handle, const Value& coords, TextureInstInfo info); | 329 | [[nodiscard]] Value ImageRead(const Value& handle, const Value& coords, TextureInstInfo info); |
| 330 | [[nodiscard]] void ImageWrite(const Value& handle, const Value& coords, const Value& color, | 330 | void ImageWrite(const Value& handle, const Value& coords, const Value& color, |
| 331 | TextureInstInfo info); | 331 | TextureInstInfo info); |
| 332 | 332 | ||
| 333 | [[nodiscard]] Value ImageAtomicIAdd(const Value& handle, const Value& coords, | 333 | [[nodiscard]] Value ImageAtomicIAdd(const Value& handle, const Value& coords, |
| 334 | const Value& value, TextureInstInfo info); | 334 | const Value& value, TextureInstInfo info); |
diff --git a/src/shader_recompiler/frontend/ir/value.h b/src/shader_recompiler/frontend/ir/value.h index dbea20115..334bb47aa 100644 --- a/src/shader_recompiler/frontend/ir/value.h +++ b/src/shader_recompiler/frontend/ir/value.h | |||
| @@ -198,8 +198,8 @@ public: | |||
| 198 | } | 198 | } |
| 199 | 199 | ||
| 200 | template <typename FlagsType> | 200 | template <typename FlagsType> |
| 201 | requires(sizeof(FlagsType) <= sizeof(u32) && std::is_trivially_copyable_v<FlagsType>) | 201 | requires(sizeof(FlagsType) <= sizeof(u32) && |
| 202 | [[nodiscard]] void SetFlags(FlagsType value) noexcept { | 202 | std::is_trivially_copyable_v<FlagsType>) void SetFlags(FlagsType value) noexcept { |
| 203 | std::memcpy(&flags, &value, sizeof(value)); | 203 | std::memcpy(&flags, &value, sizeof(value)); |
| 204 | } | 204 | } |
| 205 | 205 | ||
diff --git a/src/shader_recompiler/frontend/maxwell/control_flow.cpp b/src/shader_recompiler/frontend/maxwell/control_flow.cpp index 1a954a509..efe457baa 100644 --- a/src/shader_recompiler/frontend/maxwell/control_flow.cpp +++ b/src/shader_recompiler/frontend/maxwell/control_flow.cpp | |||
| @@ -73,7 +73,7 @@ Token OpcodeToken(Opcode opcode) { | |||
| 73 | return Token::PBK; | 73 | return Token::PBK; |
| 74 | case Opcode::PCNT: | 74 | case Opcode::PCNT: |
| 75 | case Opcode::CONT: | 75 | case Opcode::CONT: |
| 76 | return Token::PBK; | 76 | return Token::PCNT; |
| 77 | case Opcode::PEXIT: | 77 | case Opcode::PEXIT: |
| 78 | case Opcode::EXIT: | 78 | case Opcode::EXIT: |
| 79 | return Token::PEXIT; | 79 | return Token::PEXIT; |