Repository navigation
fix(agc): release unpublished descriptor cache objects - #7148
Merged
oneandonlydean merged 1 commit intoOct 17, 2026
Merged
oneandonlydean merged 1 commit into
oneandonlydean merged 1 commit into
Conversation
|
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
12 tasks done
Merged
12 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 a host allocation fails while
DescriptorCachepublishes a newly created Vulkan descriptor set layout or chain pool, the handle is lost and cache destruction cannot release the object. This retains Vulkan resources while the process is already short of host memory.Destroy the layout if insertion into the layout map throws, and reserve the chain entry before creating its Vulkan pool. Allocation errors still propagate. Add a deterministic regression covering ordinary and update-after-bind layouts, first and growing pool chains, recovery, cache hits and destruction. The test compiles the production source into its executable so its allocation failure injector reaches that code on both platforms.
I checked the open PR inventories, including complete inventories for large changes, and compared the descriptor-cache changes in related PRs such as #6614 and #6567. They cover separate recycling behavior.
Tested
Final source:
256da9617cde64a2a649f2db98a0d2217415bd01, based on47a266cf975f00f7fba94013467d03bfa5e355e9. Release,BUILD_TESTING=ON.patched_libraries. Four Vulkan tests passed:agc_descriptor_pool_recycling,agc_driver_buffer_descriptor_runtime,agc_driver_image_table,agc_driver_oversized_descriptor_sets. Device logs confirmed the NVIDIA GPU; Vulkan was required and the application shader cache disabled. The recycling test exercised 3,301 sets. No failures or skips in these 13 tests.Before / after — Linux (VirtualBox)
agc_descriptor_cache_failure, one run of all six scenarios per version, in the same VM and Release configuration. The negative control used the production file from base47a266cf975f00f7fba94013467d03bfa5e355e9with the regression fixture retained; the restored fix matched the final source above. The initial Windows baseline also reproduced all six leaks.The regression injects host allocation failures; it does not exhaust system memory or measure game performance.
Reproduce the focused regression after configuring the full build:
cmake --build build --target agc_descriptor_cache_failure_tests ctest --test-dir build -R '^agc_descriptor_cache_failure$' --output-on-failureFor the Windows Vulkan selection, set
ANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1andANYPS5_GPU=RTX 4070 Ti SUPERbefore running the four named tests.Linux graphics/Vulkan tests: NOT RUN — intentionally excluded from VirtualBox validation. Native/bare-metal Linux was not tested. Native Linux GPU validation: not tested. No retail title or homebrew was run. Full hosted platform CI requires collaborator dispatch; local results above are separate from hosted checks.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in technical debt.mdfiles or images added to the repository