summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2018-12-21 23:31:55 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-01-15 21:54:52 +0100
commit2d9136cec60e8feaa4af258b977962b887d675df (patch)
tree4b372152c46cebb70b3583dd5a054bcac88c5ec8 /src/video_core/shader
parentshader_decode: Implement IADD32I (diff)
downloadyuzu-2d9136cec60e8feaa4af258b977962b887d675df.tar
yuzu-2d9136cec60e8feaa4af258b977962b887d675df.tar.gz
yuzu-2d9136cec60e8feaa4af258b977962b887d675df.tar.bz2
yuzu-2d9136cec60e8feaa4af258b977962b887d675df.tar.lz
yuzu-2d9136cec60e8feaa4af258b977962b887d675df.tar.xz
yuzu-2d9136cec60e8feaa4af258b977962b887d675df.tar.zst
yuzu-2d9136cec60e8feaa4af258b977962b887d675df.zip
Diffstat (limited to 'src/video_core/shader')
-rw-r--r--src/video_core/shader/decode/float_set.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/shader/decode/float_set.cpp b/src/video_core/shader/decode/float_set.cpp
index 355fabc09..b69d94c2e 100644
--- a/src/video_core/shader/decode/float_set.cpp
+++ b/src/video_core/shader/decode/float_set.cpp
@@ -47,8 +47,8 @@ u32 ShaderIR::DecodeFloatSet(BasicBlock& bb, u32 pc) {
SetRegister(bb, instr.gpr0, value);
- if (instr.generates_cc.Value() != 0) {
- const Node is_zero = Operation(OperationCode::LogicalFEqual, predicate, Immediate(0.0f));
+ if (instr.generates_cc) {
+ const Node is_zero = Operation(OperationCode::LogicalFEqual, value, Immediate(0.0f));
SetInternalFlag(bb, InternalFlag::Zero, is_zero);
LOG_WARNING(HW_GPU, "FSET condition code is incomplete");
}