From 1dc091c44450b658c63f69ee55f9ab049fb1dd53 Mon Sep 17 00:00:00 2001 From: wheremyfoodat Date: Tue, 7 Mar 2023 22:27:06 +0200 Subject: [PATCH] [PICA] Panic on nested CMD lists --- src/core/PICA/regs.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/PICA/regs.cpp b/src/core/PICA/regs.cpp index 4310205b..798f84eb 100644 --- a/src/core/PICA/regs.cpp +++ b/src/core/PICA/regs.cpp @@ -189,6 +189,8 @@ void GPU::writeInternalReg(u32 index, u32 value, u32 mask) { shaderUnit.vs.setBufferIndex(value); break; + case 0x23C: case 0x23D: Helpers::panic("Nested PICA cmd list!"); + default: // Vertex attribute registers if (index >= AttribInfoStart && index <= AttribInfoEnd) {