diff options
author | bunnei <bunneidev@gmail.com> | 2018-09-02 16:43:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-02 16:43:48 +0200 |
commit | 1ccc0457d5942985386dbbd68387808008429193 (patch) | |
tree | 68b8f0dfc58a2fd5c58931b4ff0ffb982b12b80b | |
parent | Merge pull request #1228 from lioncash/construct (diff) | |
parent | Removed saturate assert (diff) | |
download | yuzu-1ccc0457d5942985386dbbd68387808008429193.tar yuzu-1ccc0457d5942985386dbbd68387808008429193.tar.gz yuzu-1ccc0457d5942985386dbbd68387808008429193.tar.bz2 yuzu-1ccc0457d5942985386dbbd68387808008429193.tar.lz yuzu-1ccc0457d5942985386dbbd68387808008429193.tar.xz yuzu-1ccc0457d5942985386dbbd68387808008429193.tar.zst yuzu-1ccc0457d5942985386dbbd68387808008429193.zip |
-rw-r--r-- | src/video_core/engines/shader_bytecode.h | 4 | ||||
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 9 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/video_core/engines/shader_bytecode.h b/src/video_core/engines/shader_bytecode.h index 3e4efbe0c..c8052a612 100644 --- a/src/video_core/engines/shader_bytecode.h +++ b/src/video_core/engines/shader_bytecode.h @@ -332,6 +332,10 @@ union Instruction { } ipa; union { + BitField<39, 2, u64> tab5cb8_2; + BitField<41, 3, u64> tab5c68_1; + BitField<44, 2, u64> tab5c68_0; + BitField<47, 1, u64> cc; BitField<48, 1, u64> negate_b; } fmul; diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp index 391c92d47..866afc7b5 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp @@ -1038,6 +1038,15 @@ private: case OpCode::Id::FMUL_R: case OpCode::Id::FMUL_IMM: { // FMUL does not have 'abs' bits and only the second operand has a 'neg' bit. + ASSERT_MSG(instr.fmul.tab5cb8_2 == 0, "FMUL tab5cb8_2({}) is not implemented", + instr.fmul.tab5cb8_2.Value()); + ASSERT_MSG(instr.fmul.tab5c68_1 == 0, "FMUL tab5cb8_1({}) is not implemented", + instr.fmul.tab5c68_1.Value()); + ASSERT_MSG(instr.fmul.tab5c68_0 == 1, "FMUL tab5cb8_0({}) is not implemented", + instr.fmul.tab5c68_0 + .Value()); // SMO typical sends 1 here which seems to be the default + ASSERT_MSG(instr.fmul.cc == 0, "FMUL cc is not implemented"); + op_b = GetOperandAbsNeg(op_b, false, instr.fmul.negate_b); regs.SetRegisterToFloat(instr.gpr0, 0, op_a + " * " + op_b, 1, 1, instr.alu.saturate_d); |