[PR #3915] [MERGED] Lib.Videodec2: Stub sceVideodec2AllocateComputeQueue to return a valid computeQueue pointer. #3798

Closed
opened 2026-02-27 22:05:01 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/3915
Author: @StevenMiller123
Created: 1/11/2026
Status: Merged
Merged: 1/11/2026
Merged by: @georgemoralis

Base: mainHead: vdec2-allocate-compute-queue-stub-improvement


📝 Commits (4)

  • d374e86 Stub compute queue output to cpuGpuMemory
  • 099aea8 Rename namespace
  • 1684090 Merge branch 'shadps4-emu:main' into vdec2-allocate-compute-queue-stub-improvement
  • cb27063 Oops

📊 Changes

6 files changed (+41 additions, -13 deletions)

View changed files

📝 src/core/libraries/libs.cpp (+2 -2)
📝 src/core/libraries/videodec/videodec2.cpp (+31 -3)
📝 src/core/libraries/videodec/videodec2.h (+2 -2)
📝 src/core/libraries/videodec/videodec2_avc.h (+2 -2)
📝 src/core/libraries/videodec/videodec2_impl.cpp (+2 -2)
📝 src/core/libraries/videodec/videodec2_impl.h (+2 -2)

📄 Description

Some games check the computeQueue output of sceVideodec2AllocateComputeQueue before performing video decoding. These titles were hanging when they should play videos as a result.

Based on some decompilation and debugging of this library's code, it appears that the returned compute queue pointer is always part of the inputted cpuGpuMemory, so to make affected titles work, I just return the cpuGpuMemory pointer as the compute queue.

This fix brings NEO : The World Ends with You ingame, with no noticeable cutscene issues.

image image image

My own testing doesn't reveal any regressions, though I don't have many games using libSceVideodec2.


🔄 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/3915 **Author:** [@StevenMiller123](https://github.com/StevenMiller123) **Created:** 1/11/2026 **Status:** ✅ Merged **Merged:** 1/11/2026 **Merged by:** [@georgemoralis](https://github.com/georgemoralis) **Base:** `main` ← **Head:** `vdec2-allocate-compute-queue-stub-improvement` --- ### 📝 Commits (4) - [`d374e86`](https://github.com/shadps4-emu/shadPS4/commit/d374e86824cf186f16bb58f6ffe6d0c4a451aa00) Stub compute queue output to cpuGpuMemory - [`099aea8`](https://github.com/shadps4-emu/shadPS4/commit/099aea82a3933be9cd4b154c54dbae0e953eb884) Rename namespace - [`1684090`](https://github.com/shadps4-emu/shadPS4/commit/168409000943de2d2e3d06b28cd19120929ce6c1) Merge branch 'shadps4-emu:main' into vdec2-allocate-compute-queue-stub-improvement - [`cb27063`](https://github.com/shadps4-emu/shadPS4/commit/cb2706318bd873f714bcef61c072fb5d0545eea7) Oops ### 📊 Changes **6 files changed** (+41 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `src/core/libraries/libs.cpp` (+2 -2) 📝 `src/core/libraries/videodec/videodec2.cpp` (+31 -3) 📝 `src/core/libraries/videodec/videodec2.h` (+2 -2) 📝 `src/core/libraries/videodec/videodec2_avc.h` (+2 -2) 📝 `src/core/libraries/videodec/videodec2_impl.cpp` (+2 -2) 📝 `src/core/libraries/videodec/videodec2_impl.h` (+2 -2) </details> ### 📄 Description Some games check the computeQueue output of sceVideodec2AllocateComputeQueue before performing video decoding. These titles were hanging when they should play videos as a result. Based on some decompilation and debugging of this library's code, it appears that the returned compute queue pointer is always part of the inputted cpuGpuMemory, so to make affected titles work, I just return the cpuGpuMemory pointer as the compute queue. This fix brings NEO : The World Ends with You ingame, with no noticeable cutscene issues. <img width="1282" height="752" alt="image" src="https://github.com/user-attachments/assets/56992092-1c21-4143-a2b2-82ac41938dce" /> <img width="1282" height="752" alt="image" src="https://github.com/user-attachments/assets/0aec421a-788a-45a0-9c54-99fcb7239c6f" /> <img width="1282" height="752" alt="image" src="https://github.com/user-attachments/assets/d5f0c385-cc8a-4c37-9815-a848b7bff02c" /> My own testing doesn't reveal any regressions, though I don't have many games using libSceVideodec2. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 22:05:01 +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#3798
No description provided.