summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader/decode/ffma.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2018-12-27 20:50:36 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-01-15 21:54:53 +0100
commit2d6c064e66bac4cb871aa26a12066441a8852008 (patch)
tree52baf7c971830bbe9cb5c8631235f1ebcda95d30 /src/video_core/shader/decode/ffma.cpp
parentshader_ir: Remove composite primitives and use temporals instead (diff)
downloadyuzu-2d6c064e66bac4cb871aa26a12066441a8852008.tar
yuzu-2d6c064e66bac4cb871aa26a12066441a8852008.tar.gz
yuzu-2d6c064e66bac4cb871aa26a12066441a8852008.tar.bz2
yuzu-2d6c064e66bac4cb871aa26a12066441a8852008.tar.lz
yuzu-2d6c064e66bac4cb871aa26a12066441a8852008.tar.xz
yuzu-2d6c064e66bac4cb871aa26a12066441a8852008.tar.zst
yuzu-2d6c064e66bac4cb871aa26a12066441a8852008.zip
Diffstat (limited to 'src/video_core/shader/decode/ffma.cpp')
-rw-r--r--src/video_core/shader/decode/ffma.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/video_core/shader/decode/ffma.cpp b/src/video_core/shader/decode/ffma.cpp
index a17ebd6db..f3ab3d2e8 100644
--- a/src/video_core/shader/decode/ffma.cpp
+++ b/src/video_core/shader/decode/ffma.cpp
@@ -21,8 +21,6 @@ u32 ShaderIR::DecodeFfma(BasicBlock& bb, u32 pc) {
instr.ffma.tab5980_0.Value()); // Seems to be 1 by default based on SMO
UNIMPLEMENTED_IF_MSG(instr.ffma.tab5980_1 != 0, "FFMA tab5980_1({}) not implemented",
instr.ffma.tab5980_1.Value());
- UNIMPLEMENTED_IF_MSG(instr.generates_cc,
- "Condition codes generation in FFMA is not implemented");
const Node op_a = GetRegister(instr.gpr8);
@@ -52,6 +50,7 @@ u32 ShaderIR::DecodeFfma(BasicBlock& bb, u32 pc) {
Node value = Operation(OperationCode::FFma, PRECISE, op_a, op_b, op_c);
value = GetSaturatedFloat(value, instr.alu.saturate_d);
+ SetInternalFlagsFromFloat(bb, value, instr.generates_cc);
SetRegister(bb, instr.gpr0, value);
return pc;