diff options
author | bunnei <bunneidev@gmail.com> | 2019-08-18 14:51:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-18 14:51:34 +0200 |
commit | ca61e298b3ced36f5e1ac81e6960fc0d4ac89e0b (patch) | |
tree | ad2dd05158c5df167e27a1ca1704142f62ddcf9a /src/video_core/shader | |
parent | Merge pull request #2768 from ReinUsesLisp/hsetp2-fix (diff) | |
parent | shader_ir: Implement NOP (diff) | |
download | yuzu-ca61e298b3ced36f5e1ac81e6960fc0d4ac89e0b.tar yuzu-ca61e298b3ced36f5e1ac81e6960fc0d4ac89e0b.tar.gz yuzu-ca61e298b3ced36f5e1ac81e6960fc0d4ac89e0b.tar.bz2 yuzu-ca61e298b3ced36f5e1ac81e6960fc0d4ac89e0b.tar.lz yuzu-ca61e298b3ced36f5e1ac81e6960fc0d4ac89e0b.tar.xz yuzu-ca61e298b3ced36f5e1ac81e6960fc0d4ac89e0b.tar.zst yuzu-ca61e298b3ced36f5e1ac81e6960fc0d4ac89e0b.zip |
Diffstat (limited to 'src/video_core/shader')
-rw-r--r-- | src/video_core/shader/decode/other.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/video_core/shader/decode/other.cpp b/src/video_core/shader/decode/other.cpp index c0f64d7a0..ac0e764d6 100644 --- a/src/video_core/shader/decode/other.cpp +++ b/src/video_core/shader/decode/other.cpp @@ -22,6 +22,12 @@ u32 ShaderIR::DecodeOther(NodeBlock& bb, u32 pc) { const auto opcode = OpCode::Decode(instr); switch (opcode->get().GetId()) { + case OpCode::Id::NOP: { + UNIMPLEMENTED_IF(instr.nop.cc != Tegra::Shader::ConditionCode::T); + UNIMPLEMENTED_IF(instr.nop.trigger != 0); + // With the previous preconditions, this instruction is a no-operation. + break; + } case OpCode::Id::EXIT: { const Tegra::Shader::ConditionCode cc = instr.flow_condition_code; UNIMPLEMENTED_IF_MSG(cc != Tegra::Shader::ConditionCode::T, "EXIT condition code used: {}", |