Skip to content

Commit

Permalink
rpcsx-gpu: shader: skip nops
Browse files Browse the repository at this point in the history
  • Loading branch information
DHrpcs3 committed Oct 4, 2024
1 parent 5761bb0 commit 5f23121
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rpcsx-gpu/lib/gcn-shader/src/gcn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1046,6 +1046,11 @@ static ir::Value deserializeGcnRegion(
continue;
}

if (isaInst == ir::sopp::NOP || isaInst == ir::vop1::NOP ||
isaInst == ir::vop3::NOP || isaInst == ir::ds::NOP) {
continue;
}

bool isBranch = isaInst == ir::sopp::BRANCH ||
isaInst == ir::sop1::SETPC_B64 ||
isaInst == ir::sop1::SWAPPC_B64;
Expand Down

0 comments on commit 5f23121

Please sign in to comment.