From 54ffe9b235497a21f89c26a455298de363032a1a Mon Sep 17 00:00:00 2001 From: sum2012 Date: Sat, 16 May 2020 21:34:55 +0800 Subject: [PATCH] Fix "Improved compatibility of sceGeListEnQueue: verify that stackDepth < 256" Fix #11660 based from https://github.com/jpcsp/jpcsp/commit/f9a116f78a939f27440e5edd5fd0c70cddc78537 the varable name is differcult from jpcsp,so that I translate wrong. --- GPU/GPUCommon.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GPU/GPUCommon.cpp b/GPU/GPUCommon.cpp index a7c25ad4ac..c47cc693a5 100644 --- a/GPU/GPUCommon.cpp +++ b/GPU/GPUCommon.cpp @@ -679,8 +679,8 @@ u32 GPUCommon::EnqueueList(u32 listpc, u32 stall, int subIntrBase, PSPPointersize >= 256) { - ERROR_LOG_REPORT(G3D, "sceGeListEnqueue: invalid size %d", args->size); + if (args.IsValid() && args->numStacks >= 256 ) { + ERROR_LOG_REPORT(G3D, "sceGeListEnqueue: invalid size %d", args->numStacks); return SCE_KERNEL_ERROR_INVALID_SIZE; }