From 5f23121d335ba6c4268db0829d2207f24bd13a05 Mon Sep 17 00:00:00 2001 From: DH Date: Sat, 5 Oct 2024 01:10:07 +0300 Subject: [PATCH] rpcsx-gpu: shader: skip nops --- rpcsx-gpu/lib/gcn-shader/src/gcn.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rpcsx-gpu/lib/gcn-shader/src/gcn.cpp b/rpcsx-gpu/lib/gcn-shader/src/gcn.cpp index 5642d1b04..77a42f6ba 100644 --- a/rpcsx-gpu/lib/gcn-shader/src/gcn.cpp +++ b/rpcsx-gpu/lib/gcn-shader/src/gcn.cpp @@ -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;