Repository navigation
fix(libSceAgcDriver): destroy host imports of a replaced Vulkan device - #284
Merged
oneandonlydean merged 1 commit intoOct 4, 2026
Merged
Conversation
Replacing the headless device with the windowed one dropped the import registry without freeing its buffers and memory, and the replaced device is kept alive, so the imported pinned host memory stayed allocated and the new device ran out of memory importing the same ranges again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
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.
|
This was referenced Oct 2, 2026
9 tasks done
8 of 9 tasks
9 tasks done
9 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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