fix(libSceAgcDriver): destroy host imports of a replaced Vulkan device #284
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/284"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by SP4C3B4R-8 on 2026-10-01T21:57:08Z.
What
When the headless Vulkan device is replaced by the windowed one, the host import registry was cleared without destroying the imported buffers and memory. The replaced device is kept alive in
Driver::replacedDevices, so all imported pinned host memory stayed allocated, and the new device failed with VK_ERROR_OUT_OF_DEVICE_MEMORY when importing the same ranges again (several GiB in a large title). The registry now keeps the destroy functions of its device and frees the imports on replacement.Tested
Windows 11, MinGW-w64 GCC 15.2.0 (winlibs, ucrt posix seh). Full build and
ctest: 95/95 passed on this branch alone. Also checked with a retail title.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-02T00:48:27Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cppL365, L367-368, L370-371core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cppL365, L367-368, L370-371core/libs/prx/libSceAgcDriver/Graphics/src/GuestBufferMemory.cppL365, L367-368, L370-371