Repository navigation
fix(agc): cap the storage-image cache by entry count - #14220
Conversation
Small storage surfaces created at new addresses never reach the storage-image cache's byte budget, which follows the device's reported memory budget, so they stay cached and alive, each with its Vulkan objects, sampled view and CPU memory. On a Planet of Lana build of a local tree (stack/lana ae134a7ec, not main) the live StorageTexture count rose from 698 to 1,017 in 5.5 minutes of gameplay, about 50 a minute. It was not measured on main, and the cap has not been run in game. The cache now also evicts its least recently used surface once it holds APS5_STORAGE_CACHE_ENTRIES (default 2048) entries. Evicted entries go through evictStorage as before: pending results are flushed first and the sampled views over the image are dropped. agc_driver_storage_cache_entries stores six small surfaces under a limit of four entries and a 1024 MiB budget, and checks that the two least recently used are evicted and their images released while the other four stay cached.
|
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.
|
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — changes requested
The unresolved overlap with #6194 conflicts in shared implementation files, but the PR does not declare an agreed landing order.
What I ran
Reviewed PR head 55d3875c32c747a16eb63cd4b5776e21ae30c17a against base cae3edaf11db8c6c1694c2d772d07c079755a71f; the PR's merge base is 381891927c2b3ff494a9853cb79fde8d5342b92d. Environment: Debian 12 x86_64, Python 3.11.2, GCC 12.2.0. The preview onto current main merged cleanly. The pairwise preview against open #6194 produced conflicts. I did not build locally.
python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14220
git diff --check 381891927c2b3ff494a9853cb79fde8d5342b92d...55d3875c32c747a16eb63cd4b5776e21ae30c17a
git merge-tree --write-tree upstream/main refs/anyps5/review/14220
git merge-tree --write-tree --name-only refs/anyps5/review/14220 refs/anyps5/review/6194
gh pr checks 14220 --repo boykopovar/AnyPS5Results
| Check | Result |
|---|---|
| Diff check | Passed. |
| Conventions and PR template | Passed locally and in hosted CI. |
| Current-main merge preview | Passed; tree 354bb1b4dc3beb518e0b314c7e96e5c4fe15112a. |
| Pairwise preview with #6194 | Conflicts in ShaderResources.hpp, ShaderResources.cpp, and docs/dev/debt/libSceAgcDriver.md. |
| Hosted CI | Conventions, intake, labels, library-portability, report, eligibility and Windows passed; Linux and specialized jobs skipped. The Windows storage-cache tests skip because the runner has no Vulkan device, as the PR notes. |
| GPU tests and validation-layer comparison | The PR reports Linux lavapipe and validation-layer runs on main and this head. I could not retrieve the linked Actions run records (HTTP 404), so I have not independently confirmed their logs. |
Selected unedited output
354bb1b4dc3beb518e0b314c7e96e5c4fe15112a
CONFLICT (content): Merge conflict in core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
CONFLICT (content): Merge conflict in core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
CONFLICT (content): Merge conflict in docs/dev/debt/libSceAgcDriver.md
windows pass 11m10s https://github.com/boykopovar/AnyPS5/actions/runs/41257888580/job/124705972248
linux skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41257888580/job/124705973412
Negative control
| Assertion | Baseline/change | Result |
|---|---|---|
| New storage-cache test detects missing entry-count eviction | The PR reports that its test fails on main and passes on the change, including repeated lavapipe runs. | Author-reported; not independently reproduced because the linked run is unavailable and I did not build locally. |
Findings
Blocking
The PR identifies #6194 as an open change to the same storage-cache eviction loop. The pairwise merge preview confirms conflicts in ShaderResources.hpp, ShaderResources.cpp, and the AGC debt file. The repository requires overlapping PR authors to agree which lands first and declare that order in Depends on; this PR currently says Depends on: none and the discussion does not record an agreed order. Please coordinate with the author of #6194 and update the checklist to reflect the agreed order before this stack proceeds.
Non-blocking
The PR's proposed 2048-entry default is explicitly documented as a choice rather than a measured threshold and can be overridden by APS5_STORAGE_CACHE_ENTRIES. The new test checks LRU eviction and image release with six surfaces under a limit of four.
Sources
- Repository overlap rule, pinned to PR base
- #14220 implementation and test at reviewed head
- Open overlapping #6194 head
Not verified
No local build, CTest, or GPU run. The author-reported lavapipe and validation-layer outputs were not independently checked because the linked Actions records returned HTTP 404. Windows CI skipped the Vulkan tests.
To get this to a good state
Agree with the author of #6194 which PR lands first and record the agreed dependency/order in the checklist. I will rerun the pairwise preview on the updated heads.
|
@MarcZX10 thanks. I've proposed the order on #6194 (comment): this PR first, since #6194 needs a rebase onto The two runs are in the fork's Actions, where both completed: the red/green run and the validation run. |
|
@MarcZX10 the order is recorded now. Depends on reads "none (merge order with #6194: this PR first, as proposed on #6194)", and the Overlaps section names #6194's order and hamb3r's #14219, which changes different functions and merges cleanly with this PR in either order. Could you take another look? |
MarcZX10
left a comment
There was a problem hiding this comment.
Re-checked — changes requested
The updated description records #14220-first as a proposed landing order, but #6194's author has not confirmed that order, so the overlap agreement is still outstanding.
What I ran
- Rechecked PR head
55d3875c32c747a16eb63cd4b5776e21ae30c17a, based oncae3edaf11db8c6c1694c2d772d07c079755a71f. - The stack preview used
main6135e61f4538611fc82aeb69dbf73f36221b1aec; a later refresh sawmainadvance to3741ca9327246d0df81638726a986cef862b6db5, so I do not claim the earlier preview is against that later tip. - Environment: Debian 12, Linux x86-64, Python 3.11.2; no compiler or C++ tests were run for this description-only update.
- Commands:
python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14220
python3 tools/pr_stack_check.py 14220 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-stack-14220-current
python3 /root/.codex/skills/anyps5-pr-review/scripts/check_pr_stack.py --order-only --dependency 14219=520f1ecd916f1c0f897d91bdcd7832c4e3b08bab --dependent 14220=55d3875c32c747a16eb63cd4b5776e21ae30c17a
python3 /root/.codex/skills/anyps5-pr-review/scripts/check_pr_stack.py --order-only --dependency 14220=55d3875c32c747a16eb63cd4b5776e21ae30c17a --dependent 6194=8bb130068023741ae244df30c74ddef5bc386644Results
| Check | Result |
|---|---|
| Diff and repository conventions | Passed on the exact PR head/base. |
| #14219 with #14220 | Pairwise merge preview is clean at the exact heads listed above, supporting the description's claim that those changes compose. |
| #14220 before #6194 | Pairwise preview conflicts in ShaderResources.hpp, ShaderResources.cpp, and docs/dev/debt/libSceAgcDriver.md; the proposed first/second order does not itself resolve those conflicts. |
| Current-main preview | Clean at main 6135e61, but main advanced afterward; not verified against the later 3741ca9 tip. |
| Optional ABI/test-quality helpers | Not available in the detached PR checkout; no public exports changed. |
| Hosted checks | Windows, eligibility, conventions, portability, intake, labels, and report passed; Linux product and specialized jobs were skipped. |
| Build and tests | Not run locally for this description update. The PR's earlier reported test results were not rerun. |
Unedited pairwise merge-check output
Shared comparison base: 381891927c2b3ff494a9853cb79fde8d5342b92d.
Dependency ancestry: NOT REQUIRED — PR #14219 must land before PR #14220.
Pairwise merge preview: CLEAN — tree 324b08e20f0e0cb0e9fcd5c14231c12935ecc301.
Shared comparison base: ab9a4768407d862d1879d7d0ee66bd9c3d9d67a8.
Dependency ancestry: NOT REQUIRED — PR #14220 must land before PR #6194.
Pairwise merge preview: CONFLICT — overlapping changes need manual review.
CONFLICT (content): Merge conflict in core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
CONFLICT (content): Merge conflict in core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
CONFLICT (content): Merge conflict in docs/dev/debt/libSceAgcDriver.md
Findings
Blocking
The repo asks overlapping PR authors to agree which change lands first and record the order. The latest #6194 discussion contains EagleBearerYS's proposal to land #14220 first and hamb3r's separate request to land #14219 first, both explicitly awaiting confirmation from #6194's author, Thunderhawkk. I found no response confirming either sequence. The new checklist line records the proposal, but not agreement. Please get agreement from the affected author(s) and record the agreed order consistently in the overlapping PR descriptions; if this PR must wait for another one, reflect that in its Depends on line.
Non-blocking
The #14219/#14220 pairwise preview is clean. The #14220 preview against the main snapshot used by the precheck was also clean. No code changed since the earlier review.
Sources
- Overlap-order rule at current
main - #14220's proposed order on #6194
- #14219's request for its order with #6194, still awaiting confirmation
- Updated overlap description at #14220's reviewed head
Not verified
No build or C++ tests were run for this description-only update. The current-main merge preview was not rerun after main advanced from 6135e61 to 3741ca9.
To get this to a good state
Confirm the landing order with the authors of the overlapping PRs, record that agreement and any required dependency consistently, and refresh the branch when its turn is ready. I will recheck the current heads and order before another review.
Supplemental hardware test: storage-cache entry limit on RADVThe description reports lavapipe coverage and no hardware GPU run. Tested this exact head on an RX 9060 XT, including a test-only negative control so the entry-limit test actually runs on main rather than being absent there. Pinned revisions: main
All executions were serial, on the real RADV device, with no skipped tests, VUIDs, Khronos validation errors/warnings, or sync hazards. The Khronos layer was inserted in each of the 21 test processes across those three phases. After removing the temporary test transplant, rebuilding pristine main and running its two original storage-cache tests once more, both also pass with the layer inserted and no VUIDs. On both main controls the new test fails specifically with: With the change it prints: The unchanged test forces a four-entry limit, creates six 512x512 storage surfaces, checks reuse while within the limit, then checks that the two oldest entries disappear, their Environment: CachyOS Linux Both sides used Environment caveat: both trees equally log loader errors about an existing implicit Reproduction and test-source identityFor the negative controls, use the pinned main with only cmake -S . -B build-main -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DANYPS5_ENABLE_SPIRV_TOOLS=OFF
cmake --build build-main --parallel 4 --target agc_driver_storage_cache_budget_tests agc_driver_storage_cache_entries_tests
export ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1
export VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation VK_LOADER_DEBUG=layer
for repeat in 1 2 3; do
ctest --test-dir build-main -R '^agc_driver_storage_cache_(budget|entries|retained_batch)$' --parallel 1 --no-tests=error -V > "storage-${repeat}.log" 2>&1
doneSet Identical SHA-256 on both implementations and the reversed control: Scope: no game, Windows GPU, or long-running memory/performance test was run. This confirms the forced four-entry behavior on this hardware, not that 2048 is the right default or that in-game memory growth is solved. It does not resolve the separate overlap/landing-order discussion or constitute an approval. AI-assisted hardware test run and report: yes (Codex). |
✅ NVIDIA GPU test: passedPR head
Intermittent validation messages (1, seen once in the parallel run, not reproduced when the test was re-run alone 2 times; not counted against this PR)Unstable on main (2, these also failed in recent main runs on this machine; not counted against this PR)Failing on main too (3, not counted against this PR)Validation IDs already present on main (5 IDs in 480 tests)Skipped (44)ReproduceAutomated build and test on a contributor's NVIDIA machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs. |
CnRJay
left a comment
There was a problem hiding this comment.
A cap on live StorageTexture objects is reasonable, since each one pins Vulkan objects and CPU memory the byte budget cannot see. The number and the eviction cost are not supported yet.
1. 2048 is a choice, and the working set is not shown to sit below it. The only data is one title's count on a local tree rising from 698 to 1,017 in 5.5 minutes, about 50 per minute, not on main, and the cap was not run in game. At that rate the cap is reached after about 20 more minutes, and from then on every new surface evicts another. Please run a long session and report how often the cap fires and what it evicts.
2. Eviction is not free. evictStorage flushes pending results first, which is a GPU to CPU write-back, and drops the sampled views over the image. An LRU cap that sits just below a title's per-frame working set evicts and re-creates the same surfaces each frame: a flush, a vkCreateImage, a view and an upload per frame. That is far worse than holding a few hundred more. Please add counters for evictions caused by the entry cap and the bytes they flushed to the [buffers] profile line, and give them for the Lana run. Show the same line from a title with a high live count so the cap's effect there is visible.
3. LRU by entry count ignores size. A 256-entry cache of 8 MB surfaces is evicted as readily as one of 4 KB. Weight each entry by a minimum cost (for example max(bytes, 64 KiB) against the existing byte budget) or evict the smallest and oldest first, so the cap removes the small leaked surfaces it was added for and not large live targets.
4. No way to turn it off. 0 or unset selects 2048, so APS5_STORAGE_CACHE_ENTRIES=0 cannot disable the cap. Someone comparing against the old behaviour needs a way to do that.
0 selected 2048 like an unset variable, so nothing switched the limit off to compare with the byte budget alone. Now 0 turns it off and unset keeps 2048. agc_driver_storage_cache_entries_unlimited stores the same six surfaces with the limit off and checks that all six stay cached.
With APS5_PROFILE_DRAW the [storage] line now lists evictions by reason next to the write-backs, with the MiB those evictions flushed. An eviction for the entry limit is named "entry cap"; one for the byte budget keeps "cache eviction", the reason its write-backs already had. agc_driver_storage_cache_entries_profile leaves six surfaces pending under a limit of 4 entries and checks that the line counts two entry-cap evictions and two entry-cap write-backs.
|
@CnRJay, thanks. The branch is now at d2cad15, with three new commits: 06ae2f4 (point 4), a merge of 1. The working set against 2048. Not shown yet. The only data is the Planet of Lana (PPSA19450) count on the local tree 2. Eviction cost. With 3. Size. Weighting each entry at 4. Turning it off. 06ae2f4: The merge: main's #13678 changed the first line of Tested (run, d2cad15 on
|
✅ NVIDIA GPU test: passedPR head
Unstable on main (2, these also failed in recent main runs on this machine; not counted against this PR)Failing on main too (3, not counted against this PR)Validated but not compared (2, not in the main baseline's validation pass)Validation IDs already present on main (5 IDs in 484 tests)Skipped (45)ReproduceAutomated build and test on a contributor's NVIDIA machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs. |
✅ NVIDIA GPU test: passedPR head
Unstable on main (3, these also failed in recent main runs on this machine; not counted against this PR)Failing on main too (3, not counted against this PR)Validated but not compared (3, not in the main baseline's validation pass)Validation IDs already present on main (4 IDs in 516 tests)Skipped (48)ReproduceAutomated build and test on a contributor's NVIDIA machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs. |
✅ AMD GPU test: passedPR head
Unstable on main (2, these also failed in recent main runs on this machine; not counted against this PR)Failing on main too (8, not counted against this PR)Validated but not compared (3, not in the main baseline's validation pass)Validation IDs already present on main (4 IDs in 516 tests)Skipped (58)ReproduceAutomated build and test on a contributor's AMD machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs. |
boykopovar#14868 detaches a storage image it evicts for a creation hand-over instead of storing it, and flushes the sources an image adopted before the image itself. evictStorage takes both: boykopovar#14868's store flag first, then this branch's eviction reason, which the entry cap passes after store=true. Flush keeps the reason and its eviction count, after boykopovar#14868's flush of the adopted sources.
✅ NVIDIA GPU test: passedPR head
Unstable on main (4, these also failed in recent main runs on this machine; not counted against this PR)Failing on main too (3, not counted against this PR)Validated but not compared (3, not in the main baseline's validation pass)Validation IDs already present on main (8 IDs in 530 tests)Skipped (50)ReproduceAutomated build and test on a contributor's NVIDIA machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs. |
✅ AMD GPU test: passedPR head
Unstable on main (2, these also failed in recent main runs on this machine; not counted against this PR)Failing on main too (7, not counted against this PR)Passed on retry (3, failed in the parallel run, passed when re-run with a 360 s timeout; not counted against this PR)Validated but not compared (58, not in the main baseline's validation pass)Validation IDs already present on main (8 IDs in 518 tests)Skipped (58)ReproduceAutomated build and test on a contributor's AMD machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs. |
agc_driver_storage_cache_budget_tests.cmake conflicts where boykopovar#10472 sets APS5_NO_IMAGE_SLABS=1 on agc_driver_storage_cache_budget and adds agc_driver_storage_cache_budget_slabs after its TIMEOUT line, which this branch extends to agc_driver_storage_cache_entries. The merge keeps this branch's TIMEOUT line and boykopovar#10472's lines after it.
✅ NVIDIA GPU test: passedPR head
Unstable on main (4, these also failed in recent main runs on this machine; not counted against this PR)Failing on main too (3, not counted against this PR)Validated but not compared (3, not in the main baseline's validation pass)Validation IDs already present on main (13 IDs in 542 tests)Skipped (50)ReproduceAutomated build and test on a contributor's NVIDIA machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs. |
✅ AMD GPU test: passedPR head
Unstable on main (1, these also failed in recent main runs on this machine; not counted against this PR)Failing on main too (7, not counted against this PR)Validated but not compared (2, not in the main baseline's validation pass)Validation IDs already present on main (8 IDs in 547 tests)Skipped (59)ReproduceAutomated build and test on a contributor's AMD machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs. |
|
Checked the diff, the three new tests ( |
What
The storage-image cache (
cachedStorageTextureinShaderResources.cpp) is bounded by bytes only. Its byte budget follows the device's reported memory budget, so small surfaces created at new addresses never reach it. Each stays cached and alive with its Vulkan objects, sampled view and CPU memory, none of which the byte count sees.The cache now also evicts its least recently used surface once it holds
APS5_STORAGE_CACHE_ENTRIESentries (default 2048;0turns the limit off, and unset keeps 2048). Eviction goes throughevictStorageas before: pending results are flushed first and the sampled views over the image are dropped. The variable is documented indocs/dev/ENVIRONMENT.md, and the cap has an entry in the AGC debt file.Counters. With
APS5_PROFILE_DRAW=1, the[storage]profile line now also lists evictions by reason, with the MiB each reason's evictions wrote back.entry capcounts this cap's evictions, and every otherStorageTexture::Flush(the byte budget, cache clears and the other evictions) keeps thecache evictionlabel it had onmain. An entry evicted with nothing pending counts at 0 MiB, so the MiB figure is write-back traffic, not the size of what was evicted. On macOS, an entry-cap eviction's trapped-overlap stores also count underentry cap; that path is macOS-only and isn't run on GitHub's runners.Commits since 55d3875: 06ae2f4 lets
0turn the limit off. d285e5f mergesmaine0caf13, whose #13678 changed the first line ofStorageTexture::Flush, so that d2cad15, which adds the counters, applies tomain'sFlush.Where the growth was seen. On a Planet of Lana (PPSA19450) build of a local tree,
stack/lanaae134a7ec, which is not main, the liveStorageTexturecount rose from 698 to 1,017 in 5.5 minutes of gameplay, about 50 a minute. It was not measured on main, and the cap has not been run in game. 2048 is a choice, not a measured value.Overlaps.
ShaderResources.cpp,ShaderResources.hppand the debt file. The merge order proposed on fix(agc): grow the storage cache budget while it evicts under pressure #6194 (comment) is this PR first, with fix(agc): grow the storage cache budget while it evicts under pressure #6194's rebase keeping the entry-count term in the loop's condition.storageBudget's body and the budget helpers, not the eviction loop or the entry count, so the two don't conflict: they change different functions and merge cleanly in either order.APS5_STORAGE_CACHE_ENTRIES=1024as a run switch in their texts. The variable is not on main, and this PR adds it.Tested
New tests:
agc_driver_storage_cache_entriesstores six small surfaces under a limit of 4 entries and a 1024 MiB byte budget. It checks that the two least recently used are evicted and their images released, and that the other four stay cached.agc_driver_storage_cache_entries_unlimitedstores the same six withAPS5_STORAGE_CACHE_ENTRIES=0and requires all six to stay cached. It can't go red on the old code, which read0as 2048.agc_driver_storage_cache_entries_profileleaves six 1 MiB surfaces pending under the limit of 4, withAPS5_PROFILE_DRAW=1, and requires the[storage]line to showentry cap 2/in both the write-backs and the evictions.GitHub's runners (https://github.com/EagleBearerYS/AnyPS5/actions/runs/41252017132, commit 55d3875 on main 3818919,
^agc_driver_storage_cache, 10 repeats, "before" is main's implementation with the new test):agc_driver_storage_cache_entriesfails.Validation layers at 55d3875 (https://github.com/EagleBearerYS/AnyPS5/actions/runs/41252017908, Linux,
VK_LAYER_KHRONOS_validationinserted on main and the fix,agc_driver_storage_cache_entries|agc_driver_storage_cache_budget, 3 repeats): both pass, and the fix adds no VUID.VUID-VkDeviceCreateInfo-pNext-pNextis in both logs. On main onlyagc_driver_storage_cache_budgetran, because the new test is not in main's tree; this run is not a red/green arm.AMD Radeon RX 9060 XT (RADV GFX1200), Mesa 26.2.5, CachyOS Linux, in RNK123's run (comment): 55d3875 merged onto
main9335acf, Release, withVK_LAYER_KHRONOS_validationinserted in every test process.main's code,agc_driver_storage_cache_entriesfails 3 of 3 ("surface 0 is still cached after 6 small surfaces under a limit of 4 entries and a 1024 MiB budget"). With the change it passes 3 of 3.agc_driver_storage_cache_budgetandagc_driver_storage_cache_retained_batchpass 3 of 3 both ways.VUID-in either tree. The test checks the cache's entries and their images' release, not when the VRAM is physically freed.NVIDIA RTX 2000 Ada Generation, driver 595.99.02, Ubuntu 26.04.1, from TechLevelZero's NVIDIA bot (report): 55d3875 merged onto
main3741ca9, 2,522 of 3,121 tests selected.main, and 2 are unstable onmain.VK_LAYER_KHRONOS_validation, over 930 tests on the GPU, there are no new validation IDs againstmain.GitHub's runners at d2cad15 (run, on
maine0caf13,^agc_driver_storage_cache, 10 repeats, "before" ismain's implementation with the new tests):agc_driver_storage_cache_entriesandagc_driver_storage_cache_entries_profilefail. After, 5 run, 5 pass, 0 skipped, 0 failed. Suites: libc 208 run, libkernel 309 run, 0 failed.APS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.Validation layers at d2cad15 (run, GitHub's Linux runner,
VK_LAYER_KHRONOS_validation,maine0caf13 against the change,^agc_driver_storage_cache): all 5 pass with the layer, and the change adds no VUID: both logs report onlyVUID-VkDeviceCreateInfo-pNext-pNext. The layer was inserted 2 times onmain, which has only the two older storage-cache tests, and 5 times with the change; neither log says "was not found".Not tested: in game with the fix, a long session with the counters, on Windows with a GPU, on main with the Lana workload.
main4f41f4c (run).docs/dev/debt/libSceAgcDriver.md, where this PR's storage-image cache entry andmain's new entries are adjacent. The resolution keeps both, and this PR's own lines are unchanged.^agc_driver_storage_cacheor^agc_storage_shadow, which takes in this PR's two tests. Linux: 5 run, 5 pass, 0 skip, 0 fail. Windows: 5 run, 0 pass, 5 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 300 and 322 tests on Linux and 327 and 342 on Windows, with 0 failed. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.main1c8c0ef, which brings PrivacyOnion's perf(agc): hand pending results over to storage images created under clear keys #14868 (×10, everyagctest).The conflicts, in
Texture.hpp,ShaderResources.cppandTexture.cpp, all with perf(agc): hand pending results over to storage images created under clear keys #14868. perf(agc): hand pending results over to storage images created under clear keys #14868 letsevictStoragedetach an image instead of storing it (astoreflag andStorageTexture::Detach()), and makesFlushfirst flush the sources an image adopted. Both PRs' changes stay:evictStorage(cache, it, bool store = true, const char* reason = "cache eviction"): perf(agc): hand pending results over to storage images created under clear keys #14868'sstoreflag first, then this PR's reason. Withstore, it callsFlush(reason); without,Detach(). perf(agc): hand pending results over to storage images created under clear keys #14868's caller, which passesfalse, is unchanged, and this PR's entry-cap caller now passestruebefore its reason.Flush(const char* reason)runs perf(agc): hand pending results over to storage images created under clear keys #14868's flush of the adopted sources first, then this PR'sstoreTrappedOverlaps(reason)andcountStorageEviction(reason).Texture.hppdeclares bothFlush(const char* reason = "cache eviction")andDetach().An image perf(agc): hand pending results over to storage images created under clear keys #14868 detaches is not flushed at its eviction, so it counts under
cache evictiononly if a laterFlushstores it. Apart from the caller line, this PR's diff overmainis unchanged.×10: every test matching
^agc_driver_storage_cacheor^agc_storage, withagc_driver_recorder(the whole recorder run, which takes in perf(agc): hand pending results over to storage images created under clear keys #14868's changed cases). Linux: 23 run, 22 pass, 1 skip (agc_storage_clear_hand_over), 0 fail. Windows: 24 run, 0 pass, 24 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 300 and 324 tests on Linux and 330 and 342 on Windows, with 0 failed. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.Every
agctest, once: Linux: 1,296 run, 1,210 pass, 85 skip, 1 fail. Windows: 1,333 run, 400 pass, 933 skip (no Vulkan device), 0 fail. The one failure isagc_driver_pipeline_journal's 120-second timeout (764/1296 Test #1393: agc_driver_pipeline_journal ***Timeout 120.06 sec). It ismain's own cold run, near the limit:main086c068 times out the same way underctest -V(run). With a 300-second limit, underctest -V, 5 runs each, alone on GitHub's Linux runner, both pass 5 of 5:agc_driver_pipeline_journalmain1c8c0ef (run)mainacf7ac2, which brings nikhilpanchal1's feat(agc): suballocate sampled and storage image memory #10472, the suballocation of sampled and storage image memory (×10).tests/cmake/agc_driver_storage_cache_budget_tests.cmake. feat(agc): suballocate sampled and storage image memory #10472 setsAPS5_NO_IMAGE_SLABS=1onagc_driver_storage_cache_budgetand addsagc_driver_storage_cache_budget_slabsright after itsTIMEOUTline, which this PR extends toagc_driver_storage_cache_entries. The merge keeps this PR'sTIMEOUTline and feat(agc): suballocate sampled and storage image memory #10472's lines after it. This PR's diff overmainis unchanged.agc_driver_storage_cache_entriestests now run with feat(agc): suballocate sampled and storage image memory #10472's slabs on,main's default. They cap and count entries, not bytes, so they take no slab opt-out.agc_driver_recorderand every test matching^agc_driver_storage_cache,^agc_storage,^agc_image_memoryor^agc_driver_image_memory, which takes in feat(agc): suballocate sampled and storage image memory #10472's image-memory tests. Linux: 35 run, 34 pass, 1 skip (agc_storage_clear_hand_over), 0 fail. Windows: 36 run, 3 pass, 33 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 301 and 325 tests on Linux and 331 and 343 on Windows, with 0 failed. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.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)