Repository navigation
fix(agc): free released lavapipe descriptor sets - #6614
oneandonlydean merged 2 commits into
Conversation
|
@EagleBearerYS @SleglJan A merge-tree check against the current heads reports content conflicts in |
|
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.
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.
|
|
@MarcZX100 Here is what
AI-assisted: yes (Claude Code) |
|
Thanks for checking the current merge trees and spelling out the resolutions. That confirms there is no semantic dependency for #6614: it composes directly with #6567, and the #6454 constructor conflict is resolved by keeping both the |
|
Thanks for checking. Between this PR and #6454 the conflict is one line, I ran the combination on GitHub's runners, #6454's head fae2221 merged with this PR's 0627bc6 and resolved as above: One thing from the Windows side: |
|
Fixed in commit 680095b: |
jotitadev
left a comment
There was a problem hiding this comment.
Ran this on a real lavapipe device, the only driver the change applies to (the PR body notes no Vulkan runtime test was run).
Machine: i7-8700, Ubuntu 26.04 (kernel 7.0.0-38), GCC 15.2, Release, BUILD_TESTING=ON. lavapipe = llvmpipe (LLVM 21.1.8), Mesa 26.0.3, selected with VK_DRIVER_FILES=.../lvp_icd.json ANYPS5_GPU=llvmpipe. Also NVIDIA GeForce RTX 3070, driver 595.99.02, Vulkan 1.4.329. Head 0627bc6bd merged into main 5d9dcc42d. The current head 680095be7 only adds the test to the if(WIN32) PATH list in CMake, so it does not change these Linux runs.
agc_descriptor_cache: 3/3 pass. The new test does not build againstmain(it uses the newContextfield), so no test-only red run.- lavapipe,
ctest -R "^agc" -j1(flip, display andlds_atomics64excluded): 553 pass, 40 skip, 1 fail. On unchangedmainthe same run gives 552 / 40 / 1: same skips, and the one failure isagc_driver_store_over_untrackedin both (#6347). So the free path runs through the whole agc suite on lavapipe with no new failure. - RTX 3070 (reset-only path unchanged),
^agc|shader|recompiler: same result asmainplus the new test (onlystore_over_untrackedfails,stencil_ref_exportskips).
I did not measure memory growth on a title, so this does not confirm the #6608 numbers, only that the per-set free does not break anything on lavapipe.
GPUs tested: lavapipe (Mesa 26.0.3, LLVM 21.1.8), NVIDIA GeForce RTX 3070 (595.99.02), Ubuntu 26.04
Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
|
Measured this on a title, which the review above left open: Ghost of Yōtei (PPSA26344) on lavapipe, the scene and probe from #6608. Tree: main cgroup At the last probe (t=897 s): * highest 10 s sample of
This matches the numbers with my local switch in #6608 (flat 11.7 GiB, +0.4 sets per frame) and gives the same result on current |
Main's #6402 stores to image tables: a table with a written entry takes the fresh path, as it does on main, and so does one without a sampled table binding, whose entries the fresh path rejects. The shared place step uses the binding as a pointer. Main's #6614 frees descriptor sets from shared pools one by one, while this branch keeps only dedicated pools, so both stay. #7101's bulk key read counts its unmapped-page skips as unmapped, and its key words sit next to this branch's write stamp and compared runs.
What
Fixes #6608. On Mesa LLVMpipe, free each descriptor set when
DescriptorCache::Freereleases it. Chain pools retain their existing reset-on-empty behavior, while other Vulkan drivers keep the current reset-only path. This addresses the measured growth in #6608 for sets that reachFree; sets held in the draw-setRecyclelists are unchanged.Tested
Linux (Debian 12), GCC 12.2, Release. The
agc_driver_graphics_teststarget built.agc_descriptor_cachepassed (1/1), covering the default reset-only path and the LLVMpipe free/reset/reuse path.This container lacks the CPU features AnyPS5 requires, and GCC 12 also rejects a pre-existing dependent-template expression in
SrtDescriptorEvaluation.cpp. For the local run only, I temporarily bypassed the host CPU gate and added the requiredtemplatedisambiguators to that unrelated file. Both edits were restored and are absent from this PR. No Vulkan GPU runtime test was run here; the regression uses the Vulkan mock. The issue report includes a separate measured lavapipe title run with the equivalent pool/free behavior.Checklist
main; no other open PR implements the same functions