Skip to content

Commit

Permalink
Move the check from #12908 into the firmware version check.
Browse files Browse the repository at this point in the history
The original change fixed #11660, let's hope it stay fixed. This fixes
Toca (#12936).
  • Loading branch information
hrydgard committed May 20, 2020
1 parent 5367cdf commit b23faf3
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions GPU/GPUCommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -678,17 +678,18 @@ u32 GPUCommon::EnqueueList(u32 listpc, u32 stall, int subIntrBase, PSPPointer<Ps
ERROR_LOG_REPORT(G3D, "sceGeListEnqueue: invalid address %08x", listpc);
return SCE_KERNEL_ERROR_INVALID_POINTER;
}

if (args.IsValid() && args->numStacks >= 256) {
ERROR_LOG_REPORT(G3D, "sceGeListEnqueue: invalid size %d", args->numStacks);
return SCE_KERNEL_ERROR_INVALID_SIZE;
}


int id = -1;
u64 currentTicks = CoreTiming::GetTicks();
u32_le stackAddr = args.IsValid() ? args->stackAddr : 0;
// Check compatibility
if (sceKernelGetCompiledSdkVersion() > 0x01FFFFFF) {
// See #12908.
if (args.IsValid() && args->numStacks >= 256) {
ERROR_LOG_REPORT(G3D, "sceGeListEnqueue: invalid size %08x", args->numStacks);
return SCE_KERNEL_ERROR_INVALID_SIZE;
}

//numStacks = 0;
//stack = NULL;
for (int i = 0; i < DisplayListMaxCount; ++i) {
Expand Down

0 comments on commit b23faf3

Please sign in to comment.