summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Lioncash2020-04-16 00:16:04 -0400
committerGravatar Lioncash2020-04-16 00:16:06 -0400
commitcd2a12e78f0f728f713de3a3994159e3077982a4 (patch)
treec3eaed10111a80bdaa4b7bf0c1a4801ea7036347
parentMerge pull request #3612 from ReinUsesLisp/red (diff)
downloadyuzu-cd2a12e78f0f728f713de3a3994159e3077982a4.tar.gz
yuzu-cd2a12e78f0f728f713de3a3994159e3077982a4.tar.xz
yuzu-cd2a12e78f0f728f713de3a3994159e3077982a4.zip
decode/shift: Remove unused variable within Shift()
Removes a redundant variable that is already satisfied by the IsFull() utility function.
-rw-r--r--src/video_core/shader/decode/shift.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/video_core/shader/decode/shift.cpp b/src/video_core/shader/decode/shift.cpp
index 3b391d3e6..d4ffa8014 100644
--- a/src/video_core/shader/decode/shift.cpp
+++ b/src/video_core/shader/decode/shift.cpp
@@ -23,7 +23,6 @@ Node IsFull(Node shift) {
23} 23}
24 24
25Node Shift(OperationCode opcode, Node value, Node shift) { 25Node Shift(OperationCode opcode, Node value, Node shift) {
26 Node is_full = Operation(OperationCode::LogicalIEqual, shift, Immediate(32));
27 Node shifted = Operation(opcode, move(value), shift); 26 Node shifted = Operation(opcode, move(value), shift);
28 return Operation(OperationCode::Select, IsFull(move(shift)), Immediate(0), move(shifted)); 27 return Operation(OperationCode::Select, IsFull(move(shift)), Immediate(0), move(shifted));
29} 28}