summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader/decode/arithmetic.cpp
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2019-07-20 04:15:34 +0200
committerFernando Sahmkow <fsahmkow27@gmail.com>2019-07-20 04:15:34 +0200
commit1158777737716536c0ac4c2eedb5e9b46d2dcfd8 (patch)
tree49a83d8ee1634bd4bf31f93e5f610ccc5fd43a53 /src/video_core/shader/decode/arithmetic.cpp
parentShader_Ir: correct clang format (diff)
downloadyuzu-1158777737716536c0ac4c2eedb5e9b46d2dcfd8.tar
yuzu-1158777737716536c0ac4c2eedb5e9b46d2dcfd8.tar.gz
yuzu-1158777737716536c0ac4c2eedb5e9b46d2dcfd8.tar.bz2
yuzu-1158777737716536c0ac4c2eedb5e9b46d2dcfd8.tar.lz
yuzu-1158777737716536c0ac4c2eedb5e9b46d2dcfd8.tar.xz
yuzu-1158777737716536c0ac4c2eedb5e9b46d2dcfd8.tar.zst
yuzu-1158777737716536c0ac4c2eedb5e9b46d2dcfd8.zip
Diffstat (limited to 'src/video_core/shader/decode/arithmetic.cpp')
-rw-r--r--src/video_core/shader/decode/arithmetic.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/video_core/shader/decode/arithmetic.cpp b/src/video_core/shader/decode/arithmetic.cpp
index 05a5f19d2..1473c282a 100644
--- a/src/video_core/shader/decode/arithmetic.cpp
+++ b/src/video_core/shader/decode/arithmetic.cpp
@@ -42,11 +42,14 @@ u32 ShaderIR::DecodeArithmetic(NodeBlock& bb, u32 pc) {
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.
- DEBUG_ASSERT_MSG(instr.fmul.tab5cb8_2 == 0, "FMUL tab5cb8_2({}) is not implemented",
- instr.fmul.tab5cb8_2.Value());
- DEBUG_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
+ if (instr.fmul.tab5cb8_2 != 0) {
+ LOG_WARNING(HW_GPU, "FMUL tab5cb8_2({}) is not implemented",
+ instr.fmul.tab5cb8_2.Value());
+ }
+ if (instr.fmul.tab5c68_0 != 1) {
+ LOG_WARNING(HW_GPU, "FMUL tab5cb8_0({}) is not implemented",
+ instr.fmul.tab5c68_0.Value());
+ }
op_b = GetOperandAbsNegFloat(op_b, false, instr.fmul.negate_b);