[PR #1839] [MERGED] equeue: Implement sceGnmGetEqEventType/sceKernelGetEventData #2338

Closed
opened 2026-02-27 21:16:07 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/1839
Author: @Nenkai
Created: 12/21/2024
Status: Merged
Merged: 12/27/2024
Merged by: @raphaelthegreat

Base: mainHead: equeue


📝 Commits (1)

  • 07f2f22 equeue: sceGnmGetEqEventType/sceKernelGetEventData impl

📊 Changes

4 files changed (+51 additions, -22 deletions)

View changed files

📝 src/core/libraries/gnmdriver/gnmdriver.cpp (+25 -12)
📝 src/core/libraries/gnmdriver/gnmdriver.h (+1 -1)
📝 src/core/libraries/kernel/equeue.cpp (+17 -6)
📝 src/core/libraries/kernel/equeue.h (+8 -3)

📄 Description

This PR implements sceGnmGetEqEventType and sceKernelGetEventData (called from the former, based on module research).

Games are normally expected to call sceGnmGetEqEventType to get the type of Eq/GraphicCore events returned from sceKernelWaitEqueue. Since this was not yet implemented, some games that would wait on a GfxEop event before rendering would permanently softlock.

Furthermore, equeue events are uniquely identified by ident and filter. Some code paths such as AddEvent were not checking on this.

Addresses a softlock in CUSA02168 (Gran Turismo Sport), CUSA24767 (Gran Turismo 7).

Needs testing.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/shadps4-emu/shadPS4/pull/1839 **Author:** [@Nenkai](https://github.com/Nenkai) **Created:** 12/21/2024 **Status:** ✅ Merged **Merged:** 12/27/2024 **Merged by:** [@raphaelthegreat](https://github.com/raphaelthegreat) **Base:** `main` ← **Head:** `equeue` --- ### 📝 Commits (1) - [`07f2f22`](https://github.com/shadps4-emu/shadPS4/commit/07f2f2254b3bf1edd9f619176d4f7b164c221274) equeue: sceGnmGetEqEventType/sceKernelGetEventData impl ### 📊 Changes **4 files changed** (+51 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `src/core/libraries/gnmdriver/gnmdriver.cpp` (+25 -12) 📝 `src/core/libraries/gnmdriver/gnmdriver.h` (+1 -1) 📝 `src/core/libraries/kernel/equeue.cpp` (+17 -6) 📝 `src/core/libraries/kernel/equeue.h` (+8 -3) </details> ### 📄 Description This PR implements `sceGnmGetEqEventType` and `sceKernelGetEventData` (called from the former, based on module research). Games are normally expected to call `sceGnmGetEqEventType` to get the type of Eq/GraphicCore events returned from `sceKernelWaitEqueue`. Since this was not yet implemented, some games that would wait on a `GfxEop` event before rendering would permanently softlock. Furthermore, equeue events are uniquely identified by ident *and* filter. Some code paths such as `AddEvent` were not checking on this. Addresses a softlock in CUSA02168 (Gran Turismo Sport), CUSA24767 (Gran Turismo 7). Needs testing. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 21:16:07 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#2338
No description provided.