summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2020-04-28 17:14:53 -0300
committerGravatar ReinUsesLisp2020-04-28 17:14:53 -0300
commit871aadbe36b7480f7dc318e2a8bebb064a1fbaaf (patch)
tree88d075681c46f0201f5194028e3aac27750328fa /src
parentshader/arithmetic_integer: Fix edge case and mark IADD.X Rd.CC as unimplemented (diff)
downloadyuzu-871aadbe36b7480f7dc318e2a8bebb064a1fbaaf.tar.gz
yuzu-871aadbe36b7480f7dc318e2a8bebb064a1fbaaf.tar.xz
yuzu-871aadbe36b7480f7dc318e2a8bebb064a1fbaaf.zip
shader/arithmetic_integer: Fix tracking issue in temporary
This temporary is not needed as we mark Rd.CC + IADD.X as unimplemented. It caused issues when tracking global buffers.
Diffstat (limited to 'src')
-rw-r--r--src/video_core/shader/decode/arithmetic_integer.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/video_core/shader/decode/arithmetic_integer.cpp b/src/video_core/shader/decode/arithmetic_integer.cpp
index ced5c3dc1..a041519b7 100644
--- a/src/video_core/shader/decode/arithmetic_integer.cpp
+++ b/src/video_core/shader/decode/arithmetic_integer.cpp
@@ -50,10 +50,6 @@ u32 ShaderIR::DecodeArithmeticInteger(NodeBlock& bb, u32 pc) {
50 } 50 }
51 51
52 if (instr.generates_cc) { 52 if (instr.generates_cc) {
53 // Avoid changing result's carry flag
54 SetTemporary(bb, 0, std::move(value));
55 value = GetTemporary(0);
56
57 const Node i0 = Immediate(0); 53 const Node i0 = Immediate(0);
58 54
59 Node zero = Operation(OperationCode::LogicalIEqual, value, i0); 55 Node zero = Operation(OperationCode::LogicalIEqual, value, i0);