Repository navigation
docs(agc): say that only lavapipe frees descriptor sets individually - #8401
Merged
adriadam10 merged 1 commit intoOct 24, 2026
Merged
Conversation
Co-Authored-By: Claude <noreply@anthropic.com>
|
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.
|
harisibrar1
approved these changes
Oct 21, 2026
harisibrar1
left a comment
Contributor
There was a problem hiding this comment.
Checked against main:
individuallyFreeDescriptorSetsis set only forVK_DRIVER_ID_MESA_LLVMPIPE(core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp:1172), so "only on lavapipe" is accurate.- Only then are chain pools created with
VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT(core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp:4069) andvkFreeDescriptorSetsresolved (ShaderResources.cpp:3949). DescriptorCache::Free(ShaderResources.cpp:4131-4134) frees the set only when that pointer is non-null, then resets the pool whenliveSetsreaches 0, so "the reset-only path" describes RADV and every other driver.check_conventions.py --base main --head pr-8401passes. The RADV and RX 6600 sentences are unchanged and not re-verified (hardware evidence).
Reviewed with AI assistance (Claude Code); the checks above were run locally on my machine.
Collaborator
|
Checked the claim against |
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
The "Descriptor pool recycling" entry in
docs/dev/debt/libSceAgcDriver.mdsays the descriptor cache "avoids individually freed sets", because RADV's free-set heap accepts a set 32 bytes past the pool. Since #6614 (0627bc6bd, "fix(agc): free released lavapipe descriptor sets") that is true only off lavapipe:VulkanDevice.cpp:1169setsindividuallyFreeDescriptorSetswhen the driver isVK_DRIVER_ID_MESA_LLVMPIPE,ShaderResources.cpp:4019then addsVK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BITto the cache's pools, andDescriptorCache::FreecallsvkFreeDescriptorSetsbefore the reset-on-empty. Every other driver keeps the reset-only path.The entry now says "frees sets individually only on lavapipe", and the last sentence names the path RADV takes ("the reset-only path rejects it"). The RADV explanation and the RX 6600 result are unchanged.
Tested
Docs only; nothing was built or run. Checked on
main56b299c3aby readingVulkanDevice.cpp(lines 299, 1169, 3736),Context.hpp:223andShaderResources.cpp(3899, 4019 andDescriptorCache::Free), and withgit logfor0627bc6bd.python tools/check_conventions.py --base origin/mainwith this title and body passes.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code