diff options
author | bunnei <bunneidev@gmail.com> | 2018-04-11 03:37:49 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-04-17 22:36:39 +0200 |
commit | 95144cc39c37d370d6911446736865ddca50312d (patch) | |
tree | 8691967891b17b85ef655ebc92f859009210fb5c | |
parent | gl_shader_decompiler: Add support for TEXS instruction. (diff) | |
download | yuzu-95144cc39c37d370d6911446736865ddca50312d.tar yuzu-95144cc39c37d370d6911446736865ddca50312d.tar.gz yuzu-95144cc39c37d370d6911446736865ddca50312d.tar.bz2 yuzu-95144cc39c37d370d6911446736865ddca50312d.tar.lz yuzu-95144cc39c37d370d6911446736865ddca50312d.tar.xz yuzu-95144cc39c37d370d6911446736865ddca50312d.tar.zst yuzu-95144cc39c37d370d6911446736865ddca50312d.zip |
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp index a8f1ac5b5..045ccdb0f 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp @@ -379,7 +379,18 @@ private: offset = PROGRAM_END - 1; break; } + case OpCode::Id::IPA: { + const auto& attribute = instr.attribute.fmt28; + if (attribute.index == Attribute::Index::Position) { + LOG_CRITICAL(HW_GPU, "Unimplemented"); + break; + } + + std::string dest = GetRegister(instr.gpr0); + SetDest(attribute.element, dest, GetInputAttribute(attribute.index), 1, 4); + break; + } default: { LOG_CRITICAL(HW_GPU, "Unhandled instruction: 0x%02x (%s): 0x%08x", static_cast<unsigned>(instr.opcode.EffectiveOpCode()), |