Skip to content

fix(agc): store a multi-mip DCC image whole only while another live image overlaps it - #8707

Merged
oneandonlydean merged 3 commits into
boykopovar:mainfrom
LeoFeitosa:fix/dcc-mip-store-pending
Nov 10, 2026
Merged

oneandonlydean merged 3 commits into
boykopovar:mainfrom
LeoFeitosa:fix/dcc-mip-store-pending

Conversation

@LeoFeitosa

@LeoFeitosa LeoFeitosa commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

What

A storage image with DCC metadata and more than one mip now stores every pending 64 KiB block unit at each write-back while another live storage image overlaps its memory, as an image under a clear code already does, instead of only the units the access touches. Without an overlapping image it keeps main's selection: applied to every multi-mip DCC image, the first head stopped PPSA10112 presenting after 30 to 60 s (see the comments). The rule is one private method, StorageTexture::storesWhole(), used by the seven places that computed it: writeBack, pendingUnitInside (the flush pretest), evictStale, skippedResultsInside, clearHandOver (#7427), noteLayersBehind and PrepareCreation. The others carry the comment "writeBack's selection for the access", so they follow the same selection.

This is the RoboCop menu fix in the block path, replacing #7579, which tracked these images as one unit and was reverted in #8265 because it stopped SILENT HILL: The Short Message (PPSA10112).

In RoboCop: Rogue City - Unfinished Business (PPSA28329) the main menu background is a 1920x1080, six-mip DCC storage image with uncompressed keys whose memory other surfaces of the frame also use. Stored unit by unit, a local trace shows its last 59 units stored only by a late access each frame, and the menu shows bokeh lights and stale purple tiles instead of the RoboCop artwork. Which reader takes those bytes before they are stored is not identified; the debt entry says so.

New test agc_storage_dcc_mip_writeback (agc_driver_recorder_tests --dcc-mip-writeback-only): a 512x512, three-mip R_X image, cleared and pending, flushed through an access to its first 64 KiB. With DCC keys uncompressed and a live one-mip image over the same memory every texel of every mip must reach memory; with DCC keys uncompressed alone, and without DCC, only the accessed unit's texels must. Each case flushes the rest before it ends.

Tested

Windows 11 (build 26200), NVIDIA GeForce RTX 5070 Ti, driver 617.42, WinLibs GCC 15.2.0 r7, Release. #8310 applied locally (not part of this PR) so the test targets build with WinLibs.

  • RoboCop main menu, screenshot of the title's window 100 s after pressing a button on the title screen, 3 runs per build in alternating order, anyps5.log of each run kept: main 559f35d wrong 3 of 3, this change on 559f35d right 3 of 3, no fatal error in any run. The same on bcf29de before the rebase. One local build with only the writeBack rule behind a switch: wrong with it off, right with it on (one run each).
  • ctest -R "agc|storage|texture|tiling|dcc" -j8 on main 559f35d and on this change on it: 859/860 and 859/861 passed. The failures are agc_shader_disk_cache_large_file on both ("cannot remove the large file test directory", a Windows file lock) and agc_driver_lookup_log_fits_build on this change; both pass when run again alone on both builds.
  • ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ctest -R 'agc_storage|agc_tiled|repack|dcc|^agc_driver_graphics$|pending_after_unwatch|texture_format|clear_keys|hand' -V -j1, LunarG layer 1.4.363: main 31/31, this change 32/32 (the 31 plus the new test), 0 VUID- in both logs, no "was not found but was requested by env var VK_INSTANCE_LAYERS" line.
  • The new test with the old rule: the DCC case fails ("stored 16384 of 344064 texels"); with this change it passes in under 1 s.
  • AMD: @janzezno ran the storage tests on the earlier head e614e9c (138/138, no new VUID-).
  • SILENT HILL: The Short Message: @whamre ran the first version of this change (201cb32, the writeBack rule only) against main e9a5a0c, 3 runs each: the outside the write watch without the guest bytes saved stop did not come back (0 of 3) (report). This version also changes the three other selections; a run of it there would be welcome.
  • python tools/check_conventions.py --base origin/main: passes.

Known risk: storing every pending unit at once widens the span writeBackLayers checks with ChangedBlocks. A span that reaches a block outside the write watch makes every stored unit need its saved bytes, which is the refusal #8265 removed. #7048 and #7604 (APS5_TRACE_WATCH=unsaved) are the ways to look at it if it shows up.

Overlap: #6202 and #6718 add new copies of the old dccAddress != 0 && uploadedKeys != DccKeys::Uncompressed test; whichever lands after this one would read storesWhole() instead.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: PPSA28329 RoboCop: Rogue City - Unfinished Business (PPSA28329) #7578
  • GPUs tested: NVIDIA GeForce RTX 5070 Ti, driver 617.42, Windows 11 (build 26200)
  • AI-assisted: yes

@github-actions github-actions Bot added the unblocks title Names a title ID on the Unblocks line label Oct 20, 2026
@github-actions

github-actions Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

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.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 18075 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp L15731

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.

Pull request Shared files not compared
PR 1368 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 1395 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 5021 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 5609 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 5925 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6186 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/debt/libSceAgcDriver.md
PR 6188 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6192 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6197 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6209 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6280 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6412 docs/dev/debt/libSceAgcDriver.md
PR 6481 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6548 docs/dev/debt/libSceAgcDriver.md
PR 6804 docs/dev/debt/libSceAgcDriver.md
PR 6808 docs/dev/debt/libSceAgcDriver.md
PR 6987 docs/dev/debt/libSceAgcDriver.md
PR 6989 docs/dev/debt/libSceAgcDriver.md
PR 6995 docs/dev/debt/libSceAgcDriver.md
PR 7002 docs/dev/debt/libSceAgcDriver.md
PR 7085 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/debt/libSceAgcDriver.md
PR 7256 docs/dev/debt/libSceAgcDriver.md
PR 7449 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
docs/dev/debt/libSceAgcDriver.md
PR 7457 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 7514 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 7642 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/debt/libSceAgcDriver.md
PR 8246 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 8484 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 8592 docs/dev/debt/libSceAgcDriver.md
PR 9289 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
PR 9356 docs/dev/debt/libSceAgcDriver.md
PR 9387 docs/dev/debt/libSceAgcDriver.md
PR 9508 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/debt/libSceAgcDriver.md
PR 9592 docs/dev/debt/libSceAgcDriver.md
PR 9748 docs/dev/debt/libSceAgcDriver.md
PR 9895 docs/dev/debt/libSceAgcDriver.md
PR 9915 docs/dev/debt/libSceAgcDriver.md
PR 9950 docs/dev/debt/libSceAgcDriver.md
PR 10049 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/debt/libSceAgcDriver.md
PR 10193 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/debt/libSceAgcDriver.md
PR 10249 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 10351 docs/dev/debt/libSceAgcDriver.md
PR 10359 docs/dev/debt/libSceAgcDriver.md
PR 10442 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 10469 docs/dev/debt/libSceAgcDriver.md
PR 10492 docs/dev/debt/libSceAgcDriver.md
PR 10497 docs/dev/debt/libSceAgcDriver.md
PR 10656 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 11444 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 11551 docs/dev/debt/libSceAgcDriver.md
PR 11587 docs/dev/debt/libSceAgcDriver.md
PR 12070 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 12855 docs/dev/debt/libSceAgcDriver.md
PR 12904 docs/dev/debt/libSceAgcDriver.md
PR 13251 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
PR 13809 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/debt/libSceAgcDriver.md
PR 13863 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/debt/libSceAgcDriver.md
PR 13920 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/debt/libSceAgcDriver.md
PR 13928 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/debt/libSceAgcDriver.md
PR 13929 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/debt/libSceAgcDriver.md
PR 14212 docs/dev/debt/libSceAgcDriver.md
PR 14344 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
docs/dev/debt/libSceAgcDriver.md
PR 14944 docs/dev/debt/libSceAgcDriver.md
PR 15136 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/debt/libSceAgcDriver.md
PR 15529 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/debt/libSceAgcDriver.md
PR 15548 docs/dev/debt/libSceAgcDriver.md
PR 15570 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
PR 15621 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 15674 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 15941 docs/dev/debt/libSceAgcDriver.md
PR 16260 docs/dev/debt/libSceAgcDriver.md
PR 16880 docs/dev/debt/libSceAgcDriver.md
PR 17024 docs/dev/debt/libSceAgcDriver.md
PR 17338 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
docs/dev/debt/libSceAgcDriver.md
PR 17526 docs/dev/debt/libSceAgcDriver.md
PR 17738 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/debt/libSceAgcDriver.md
PR 17796 core/libs/prx/libSceAgcDriver/Graphics/include/Texture.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 17908 docs/dev/debt/libSceAgcDriver.md
PR 17915 docs/dev/debt/libSceAgcDriver.md
PR 17956 docs/dev/debt/libSceAgcDriver.md

@LeoFeitosa
LeoFeitosa force-pushed the fix/dcc-mip-store-pending branch from f26593d to e614e9c Compare October 20, 2026 21:51
@janzezno

Copy link
Copy Markdown
Contributor

Run on AMD hardware.

Host: Arch Linux, kernel 7.2.11, AMD Radeon RX 7900 GRE (RADV NAVI31), Mesa 26.2.5, GCC 16.2.1, Release, BUILD_TESTING=ON.
main e25333e39; PR head e614e9cc95 merged on top (clean merge).

ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ctest --test-dir build -R 'compare|denorm|f32|f16|f64|agc_shader_memory|agc_shader_disk_cache|request_serializer|dcc|storage|pm4|indirect' -V

  • main: 137 of 137 pass. PR: 138 of 138 pass, including the new agc_storage_dcc_mip_writeback.
  • The same VUID- set and counts on both; none is new. The validation layer loaded in both runs.

@oneandonlydean

Copy link
Copy Markdown
Collaborator

@LeoFeitosa thanks, the single storesWhole() rule across the five selections reads well, and the old-rule failure of the new test is clear. Two small things before this can go further:

  1. The new entry in docs/dev/debt/libSceAgcDriver.md names a title ID. Debt docs describe the mechanism without naming titles; could you describe the surface only (for example "a 1920x1080 six-mip DCC storage image of a menu background")? The title can stay in the PR description.
  2. In Texture.cpp, storesWhole() landed between the comment that starts "Whether a pending unit of the image lies inside the range" and pendingUnitInside(), so that comment now sits above storesWhole(). Could you move storesWhole() above that comment?

Also a heads-up: #6202, #6718 and #6820 each add a new other->descriptor.dccAddress != 0 && other->uploadedKeys != DccKeys::Uncompressed check in noteLayersBehind. They merge cleanly with this PR, so whichever lands second needs to switch that line to other->storesWhole().

@LeoFeitosa
LeoFeitosa force-pushed the fix/dcc-mip-store-pending branch from 9fed3ab to 0b5b196 Compare October 21, 2026 06:00
@LeoFeitosa

Copy link
Copy Markdown
Contributor Author

@oneandonlydean thanks, both done in 0b5b196:

  1. The debt entry no longer names the title; it now reads "a 1920x1080 six-mip DCC storage image of a menu background". The title stays in the description.
  2. storesWhole() now sits above the "Whether a pending unit of the image lies inside the range" comment, so that comment is back over pendingUnitInside().

Neither change touches behaviour (a moved definition and a docs line); tools/check_conventions.py passes. Noted on #6202, #6718 and #6820: whichever of them lands after this one should switch its noteLayersBehind check to other->storesWhole(), as the overlap note in the description says.

@oneandonlydean

Copy link
Copy Markdown
Collaborator

@LeoFeitosa thanks, both look right. A delta review of 0b5b1969d is next, then full CI.

teepean pushed a commit to teepean/AnyPS5 that referenced this pull request Oct 21, 2026
…stores

FlushPending waited for the newest unfinished batch that writes anywhere in the flushed range (boykopovar#6364),
but its write-backs store only the pending layers the range overlaps, or every pending layer when the
image stores whole (DCC keys not uncompressed) or may widen a partial store. A writer elsewhere in the
range cannot be overwritten by those stores, yet each such wait submitted the open batch or finished the
in-flight ones under the GPU mutex. The flush now asks for writers over the 64 KiB blocks of the layers
it stores, the granularity of the write-back's own unit publishes; an image with many separate pending
runs is checked over their hull. For an image that stores whole, that includes its pending layers
outside the range, which the range check left out. A DCC image with more than one mip is checked over
all of its pending layers too: more than today's write-back stores for it, so the check stays sufficient
if the write-back stores such an image whole, as boykopovar#8707 proposes. When the flush publishes unit shadows,
an address-based dispatch's heap lease over the range is still waited for: such a dispatch stamps its
pages only at completion, so the publish could not tell its writes from fresh shadow units otherwise.
APS5_FLUSH_WAIT_WHOLE_RANGE=1 checks the whole range as before.

The storage flush ordering test gains two cases, each with a GPU fill noted in the open batch: a fill
inside the flushed range but past the image's pending layer, which the flush no longer submits or waits
for while both the image's texel and the fill land; and a fill inside the pending layer, which it still
waits for, so that the fill's block keeps its bytes and a texel in another block is stored. A recorder
test pins the DCC clause: a three-mip image with uncompressed keys, flushed over its first unit,
completes the batch of a writer over its last pending unit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@klosixgaming-arch

Copy link
Copy Markdown
Contributor

I tried this PR on SILENT HILL: The Short Message (PPSA10112), the title #7579 was reverted for in #8265, and it stalls again here.

Setup: Windows 11 (build 26200), RTX 5090, driver 617.42, game version 01.000.001, APS5_STORE_AT_FLIP=1 and APS5_PLAYGO_UNLISTED_CHUNKS=absent (the PLAYNOW launcher's settings). Two builds on the same base, d3b865151c (main 1a745ae38e plus #9439 so I could record calls): one with this PR's commit ce137332d0 cherry-picked, one without. Each run lets the game idle at its menu for 2 to 2.5 minutes.

Without the PR (120 s): a steady 138 to 221 presents per 10 s (p50 44.7 to 56.8 ms), no GPU timeouts.

With the PR, two runs from the same build:

  • Run 1: presents 20, 262 and 136 in the first three 10 s windows, then none. At about 137 s the log has queue 0x20 WAIT_REG_MEM ... timed out after 1000ms.
  • Run 2: presents 87, 180 and 72 up to 58 s, then 1 present in the next 28 s window (p50 28246 ms) and 1 in the one after (p50 29788 ms), with the same WAIT_REG_MEM timeouts.

So it is repeatable here, and the frame rate does not degrade slowly: it stops presenting after 30 to 60 s.

The PR's own test passes on this build: agc_storage_dcc_mip_writeback and the other 7 agc_recorder* tests, 8 of 8. I have not found which image or write-back stalls the queue, so I can't say whether a narrower rule than "every pending unit of every multi-mip DCC image" would avoid it. I can run it again with a trace of the stalling queue if that helps, or test a revised head.

AI-assisted: yes. Written with AI assistance and reviewed by me.

@LeoFeitosa

Copy link
Copy Markdown
Contributor Author

@klosixgaming-arch thanks, that is a clear regression, and the same title #7579 was reverted for. I'm converting this PR to draft until it is understood.

What this PR changes is which pending units a write-back stores: for a DCC storage image with more than one mip, every pending 64 KiB unit is stored at each write-back, instead of only the units the access touches (StorageTexture::storesWhole()). So the likely cost on SILENT HILL is a large multi-mip DCC image being stored whole on accesses that used to store a few units, often enough to hold up the queue the WAIT_REG_MEM on 0x20 waits for. That is a guess until the image is named.

Yes, a trace would help. One run with the PR, from start-up until it stops presenting, with:

APS5_TRACE_FLUSH=1
APS5_PROFILE_DRAW=1

[flush] image <base>+<bytes> for <reason> <address>+<bytes> names each image a write-back stores and what forced it, and the [storage] / [gputime] lines of APS5_PROFILE_DRAW give the write-back volume per 10 s. The same two switches on the build without the PR, for the same 120 s, would give the baseline. The anyps5.log of both is enough; the interesting part is the 10 to 20 s before the first timed out.

If it is one image (or a few) stored whole over and over, the rule can be narrowed to the RoboCop case: an image whose memory another live surface also uses, which is what the description says about the menu background. I'd send that as a revised head for you to try, and re-run the RoboCop menu check on it here.

@LeoFeitosa
LeoFeitosa marked this pull request as draft October 22, 2026 23:19
@oneandonlydean

Copy link
Copy Markdown
Collaborator

@LeoFeitosa I'm holding this PR until we understand the stall reported above (#8707 (comment)). On PPSA10112 (Windows, RTX 5090, driver 617.42) the title presents normally at its menu without this PR. With the PR it stops presenting after 30 to 60 s, in both runs, and the log shows queue 0x20 WAIT_REG_MEM ... timed out after 1000ms. The PR's own tests pass on that build, so they don't cover this.

This is also the title #7579 was reverted for in #8265. Since this PR stores every pending unit of a multi-mip DCC storage image, I'd like to rule out the same mechanism before it merges.

Could you look at this?

  1. Can you reproduce it, or explain it from the code? For example: is a queue waiting on a label that sits behind the extra unit stores, or is something done more often than once per write-back?
  2. What would you need from the tester to narrow it down? They offered a trace of the stalling queue or a run of a revised head. If a trace helps, please name the environment switches you want.
  3. If a narrower rule (fewer units or fewer images) would avoid the stall, please push it as a new head and ask for a rerun on the same title.

@klosixgaming-arch thank you for the careful A/B. One small thing would help: could you confirm that ce137332d0 is this PR's head 0b5b1969de cherry-picked onto your base, with no other changes?

Celegans12 added a commit to Celegans12/AnyPS5-Ghost-of-Yotei that referenced this pull request Oct 24, 2026
…stores

FlushPending waited for the newest unfinished batch that writes anywhere in the flushed range (boykopovar#6364),
but its write-backs store only the pending layers the range overlaps, or every pending layer when the
image stores whole (DCC keys not uncompressed) or may widen a partial store. A writer elsewhere in the
range cannot be overwritten by those stores, yet each such wait submitted the open batch or finished the
in-flight ones under the GPU mutex. The flush now asks for writers over the 64 KiB blocks of the layers
it stores, the granularity of the write-back's own unit publishes; an image with many separate pending
runs is checked over their hull. For an image that stores whole, that includes its pending layers
outside the range, which the range check left out. A DCC image with more than one mip is checked over
all of its pending layers too: more than today's write-back stores for it, so the check stays sufficient
if the write-back stores such an image whole, as boykopovar#8707 proposes. When the flush publishes unit shadows,
an address-based dispatch's heap lease over the range is still waited for: such a dispatch stamps its
pages only at completion, so the publish could not tell its writes from fresh shadow units otherwise.
APS5_FLUSH_WAIT_WHOLE_RANGE=1 checks the whole range as before.

The storage flush ordering test gains two cases, each with a GPU fill noted in the open batch: a fill
inside the flushed range but past the image's pending layer, which the flush no longer submits or waits
for while both the image's texel and the fill land; and a fill inside the pending layer, which it still
waits for, so that the fill's block keeps its bytes and a texel in another block is stored. A recorder
test pins the DCC clause: a three-mip image with uncompressed keys, flushed over its first unit,
completes the batch of a writer over its last pending unit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 017123e)
SleglJan added a commit to SleglJan/AnyPS5 that referenced this pull request Oct 24, 2026
…stores

FlushPending waited for the newest unfinished batch that writes anywhere in the flushed range (boykopovar#6364),
but its write-backs store only the pending layers the range overlaps, or every pending layer when the
image stores whole (DCC keys not uncompressed) or may widen a partial store. A writer elsewhere in the
range cannot be overwritten by those stores, yet each such wait submitted the open batch or finished the
in-flight ones under the GPU mutex. The flush now asks for writers over the 64 KiB blocks of the layers
it stores, the granularity of the write-back's own unit publishes; an image with many separate pending
runs is checked over their hull. For an image that stores whole, that includes its pending layers
outside the range, which the range check left out. A DCC image with more than one mip is checked over
all of its pending layers too: more than today's write-back stores for it, so the check stays sufficient
if the write-back stores such an image whole, as boykopovar#8707 proposes. When the flush publishes unit shadows,
an address-based dispatch's heap lease over the range is still waited for: such a dispatch stamps its
pages only at completion, so the publish could not tell its writes from fresh shadow units otherwise.
APS5_FLUSH_WAIT_WHOLE_RANGE=1 checks the whole range as before.

The storage flush ordering test gains two cases, each with a GPU fill noted in the open batch: a fill
inside the flushed range but past the image's pending layer, which the flush no longer submits or waits
for while both the image's texel and the fill land; and a fill inside the pending layer, which it still
waits for, so that the fill's block keeps its bytes and a texel in another block is stored. A recorder
test pins the DCC clause: a three-mip image with uncompressed keys, flushed over its first unit,
completes the batch of a writer over its last pending unit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@LeoFeitosa
LeoFeitosa force-pushed the fix/dcc-mip-store-pending branch from 0b5b196 to ac2bc11 Compare October 25, 2026 13:44
@LeoFeitosa

Copy link
Copy Markdown
Contributor Author

@oneandonlydean @klosixgaming-arch I pushed a narrower rule as a new head, rebased on main 4017310: ac2bc11 on top of the original commit (now 1ffbba3).

Rule: a multi-mip DCC storage image with uncompressed keys is stored whole only while another live storage image overlaps its memory, which is the RoboCop menu background case from the description. Every other multi-mip DCC image goes back to main's selection, storing only the units the access touches. An image under a clear code still stores whole, as on main.

On the questions:

  1. I can't reproduce it here, since I don't have PPSA10112. From the code, the original head stored every pending unit of every multi-mip DCC image at each write-back. If the title keeps such an image pending and touches a small part of it often, each of those write-backs became a full-image store under the GPU mutex. That is a guess until the image is named. The new head avoids it for any image without an overlapping live image.
  2. A rerun of PPSA10112 on this head with the same settings as your A/B would show whether the stall is gone. If it still stalls, one run with APS5_TRACE_FLUSH=1 APS5_PROFILE_DRAW=1 would name the image and the write-back volume (the 10 to 20 s before the first timed out is enough).
  3. Done, this is the new head.

Tested (Windows 11 build 26200, RTX 5070 Ti, driver 617.42, WinLibs GCC 15.2.0, Release):

  • agc_storage_dcc_mip_writeback now has three cases: no DCC (only the accessed unit is stored), DCC uncompressed alone (only the accessed unit), and DCC uncompressed with a live one-mip image over the same memory (every texel of every mip). All three pass.
  • agc_driver_queued_index_read_order, agc_driver_sample_order and agc_driver_sample_order_recipe_depth_locations pass, and agc_driver_sample_order_grid_reference is skipped, the same as on main 4017310 without the change.
  • python tools/check_conventions.py --base origin/main passes.

Not yet run on this head: the RoboCop menu check and the wider agc|storage|texture|tiling|dcc set. I'll post both here when they finish.

@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Oct 25, 2026
SleglJan added a commit to SleglJan/AnyPS5 that referenced this pull request Oct 25, 2026
…stores

FlushPending waited for the newest unfinished batch that writes anywhere in the flushed range (boykopovar#6364),
but its write-backs store only the pending layers the range overlaps, or every pending layer when the
image stores whole (DCC keys not uncompressed) or may widen a partial store. A writer elsewhere in the
range cannot be overwritten by those stores, yet each such wait submitted the open batch or finished the
in-flight ones under the GPU mutex. The flush now asks for writers over the 64 KiB blocks of the layers
it stores, the granularity of the write-back's own unit publishes; an image with many separate pending
runs is checked over their hull. For an image that stores whole, that includes its pending layers
outside the range, which the range check left out. A DCC image with more than one mip is checked over
all of its pending layers too: more than today's write-back stores for it, so the check stays sufficient
if the write-back stores such an image whole, as boykopovar#8707 proposes. When the flush publishes unit shadows,
an address-based dispatch's heap lease over the range is still waited for: such a dispatch stamps its
pages only at completion, so the publish could not tell its writes from fresh shadow units otherwise.
APS5_FLUSH_WAIT_WHOLE_RANGE=1 checks the whole range as before.

The storage flush ordering test gains two cases, each with a GPU fill noted in the open batch: a fill
inside the flushed range but past the image's pending layer, which the flush no longer submits or waits
for while both the image's texel and the fill land; and a fill inside the pending layer, which it still
waits for, so that the fill's block keeps its bytes and a texel in another block is stored. A recorder
test pins the DCC clause: a three-mip image with uncompressed keys, flushed over its first unit,
completes the batch of a writer over its last pending unit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@LeoFeitosa

LeoFeitosa commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor Author

The RoboCop menu check on the new head ac2bc11 is done. The narrower rule keeps the menu fix.

Setup: RoboCop: Rogue City - Unfinished Business (PPSA28329), Windows 11 (build 26200), RTX 5070 Ti, driver 617.42. The exe and the title's .guest.prx were reconverted with the relinker of main 4017310, so they match both builds. There were 3 pairs in alternating order (main, head / head, main / main, head). After each library swap I ran one discarded warm-up, then the measured run. I took screenshots 60 s and 100 s after pressing a button on the title screen.

main 4017310 this head ac2bc11
measured runs wrong 3 of 3: bokeh lights instead of the artwork (2), black with purple stale tiles (1) right 3 of 3: RoboCop, the city and the sky (one of them went straight to the menu without a title screen, so it has only the poll screenshot, which shows the artwork)
warm-up runs wrong 2 of 2 (the third has no screenshot) right 3 of 3

There was no GameThread timed out in any of the 12 runs. One main warm-up (the one without a screenshot) had a single queue 0x28 WAIT_REG_MEM ... timed out after 1000ms, and it still reached the title. The mean color of the right half of the screen was 51/43/41 and 1/2/2 on main, and 68 to 70/64/64 with this head.

Not run yet on this head: the wider agc|storage|texture|tiling|dcc set. PPSA10112 still needs a run on this head; I can't run that title here.

@LeoFeitosa

LeoFeitosa commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor Author

The wider set on ac2bc11 finished too: ctest -R "agc|storage|texture|tiling|dcc" -j4, same machine.

  • 1040 of 1044 pass.
  • agc_shader_disk_cache_large_file fails under -j4 and passes when run alone.
  • agc_capture_trace_path_empty, agc_host_import_cut_lifetime and agc_driver_depth_plane_partial_store fail alone as well. All three also fail on main 4017310 without this change, rebuilt in the same build directory.

That leaves PPSA10112 as the only open check for this head.

@oneandonlydean

Copy link
Copy Markdown
Collaborator

Hi LeoFeitosa, thanks for the rebase and for the retest numbers on PPSA10112.

One thing got lost in the rebase to ff8b1a9219: the technical-debt entry. df7ef25 added a bullet to docs/dev/debt/libSceAgcDriver.md ("Storage images with DCC metadata and more than one mip ... while another live storage image overlaps their memory ..."), but ff8b1a9219 no longer touches that file, while the description still says "the debt entry says so". Since the rule is a heuristic (whole stores only while another live image overlaps) and the reader that takes the unstored bytes is not identified, the entry is what records that. Could you add it back? Please describe the affected surface there rather than naming title IDs, as in the earlier version of the line (the df7ef25 text mentions PPSA10112).

Small one in the description: it lists five call sites; with main's noteLayersBehind and PrepareCreation copies, the change now covers seven (your 4 Nov comment already says so).

@BunnyFl

BunnyFl commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

@oneandonlydean you're right, and thanks for catching it. My approval at ff8b1a9219 missed that the rebase dropped the debt bullet. git diff --stat upstream/main...ff8b1a9219 shows only Texture.hpp, Texture.cpp, Recorder.cpp and the recorder test fragment, while df7ef2598b also changed docs/dev/debt/libSceAgcDriver.md. I'll re-check once the entry is back.

@LeoFeitosa
LeoFeitosa force-pushed the fix/dcc-mip-store-pending branch from ff8b1a9 to 8cb5915 Compare November 4, 2026 20:01
@LeoFeitosa

Copy link
Copy Markdown
Contributor Author

@oneandonlydean thanks, you're right. 8cb5915 puts the debt entry back in docs/dev/debt/libSceAgcDriver.md, with the same text as df7ef25 except that it describes the title that stopped instead of naming it. The commit's code is unchanged from ff8b1a9. The description now lists the seven call sites.

@github-actions github-actions Bot removed the review queue Next in the maintainer review queue: checks pass, no open change request, no conflict label Nov 4, 2026
@TechLevelZero

Copy link
Copy Markdown
Contributor

✅ NVIDIA GPU test: passed

PR head 8cb5915 merged onto main 9ab6a28 · tested 2026-11-04 21:10 UTC · 27 min

GPU NVIDIA RTX 2000 Ada Generation, driver 595.99.02, Vulkan 1.4.329
Host Ubuntu 26.04.1 LTS, kernel 7.0.0-38-generic, container ubuntu:24.04
Logs build and test logs for this run
Build ✅ passed (Release, -DANYPS5_ENABLE_SPIRV_TOOLS=ON)
Tests ✅ 2,846 passed · 4 failed (0 new, 3 also fail on main, 1 unstable on main) · 49 skipped (ANYPS5_REQUIRE_VULKAN=1)
Test setup CPU-only tests without a GPU; GPU tests (and any CPU-only test that failed or skipped without one) once on the GPU with VK_LAYER_KHRONOS_validation and ANYPS5_NO_SHADER_CACHE=1; main ran the same way
Test selection 2,899 of 3,909 tests run: the ones this change can reach, chosen by tools/select_tests.py from main's build graph
Vulkan validation ✅ no new validation IDs vs main (980 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_pipeline_journal 120.1 s
Unstable on main (1, these also failed in recent main runs on this machine; not counted against this PR)
agc_driver_pipeline_journal: failed in 3 of the last 10 main runs
Failing on main too (3, not counted against this PR)
agc_driver_image_table
guest_mmap_executable
guest_socket_options_multicast
Validated but not compared (1, not in the main baseline's validation pass)
agc_storage_dcc_mip_writeback
Validation IDs already present on main (13 IDs in 548 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (548 tests): agc_driver, agc_driver_address_draw_space_reuse, agc_driver_address_passes, agc_driver_alias_copy_label, agc_driver_alpha_to_coverage, agc_driver_array_layer_target, agc_driver_bc_block_copy, agc_driver_bda_anchor_reads, and 540 more
VUID-VkShaderModuleCreateInfo-pCode-08737 (8 tests): agc_driver_dpp16_operands, agc_driver_dpp8_pk_fmac, agc_driver_dx10_clamp, agc_driver_float16_fma_rounding, agc_driver_float16_unused_nan_payloads, agc_driver_packed_alu, agc_driver_packed_f16_denormal_modes, agc_driver_packed_float16_native
VUID-VkShaderModuleCreateInfo-pCode-08739 (8 tests): agc_driver_dpp16_operands, agc_driver_dpp8_pk_fmac, agc_driver_dx10_clamp, agc_driver_float16_fma_rounding, agc_driver_float16_unused_nan_payloads, agc_driver_packed_alu, agc_driver_packed_f16_denormal_modes, agc_driver_packed_float16_native
VUID-VkShaderModuleCreateInfo-pCode-08741 (8 tests): agc_driver_dpp16_operands, agc_driver_dpp8_pk_fmac, agc_driver_dx10_clamp, agc_driver_float16_fma_rounding, agc_driver_float16_unused_nan_payloads, agc_driver_packed_alu, agc_driver_packed_f16_denormal_modes, agc_driver_packed_float16_native
VUID-vkCmdCopyImage-srcImage-01548 (7 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_buffer_memory, agc_driver_depth_plane_partial_store, agc_driver_depth_plane_sampling, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-vkCmdCopyImage-srcImage-01551 (7 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_buffer_memory, agc_driver_depth_plane_partial_store, agc_driver_depth_plane_sampling, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605 (2 tests): agc_driver_prepared_exports, agc_driver_srgb8_color_target
VUID-VkPipelineShaderStageCreateInfo-module-parameter (1 test): agc_driver_float16_unused_nan_payloads
VUID-VkPipelineShaderStageCreateInfo-pSpecializationInfo-06849 (1 test): agc_driver_float16_unused_nan_payloads
VUID-VkSamplerCreateInfo-addressModeU-01079 (1 test): agc_driver_image_gather_volume
VUID-VkSamplerCreateInfo-addressModeU-parameter (1 test): agc_driver_image_gather_volume
VUID-VkSamplerCreateInfo-addressModeV-parameter (1 test): agc_driver_image_gather_volume
VUID-VkSamplerCreateInfo-addressModeW-parameter (1 test): agc_driver_image_gather_volume
Skipped (49)
agc_driver_bda_reads_shadowed_results: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_bda_reads_shadowed_results_per_build: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_gcn_display_present: skipped, no display: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
agc_driver_sample_order_grid_reference: skipped, the device does not keep depth drawn at custom sample locations at those locations, even after a transition that names them: the composite of uniform renders holds the guest's depth in 0 of 3005 sloped samples, so no path can be compared with it bit for bit
agc_driver_scattered_runs: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_driver_sparse_dma_buf_import: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_driver_stencil_ref_export: skipped, the device lacks VK_EXT_shader_stencil_export
agc_host_import_sparse: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_import_settle_initial_dcc: skipped, the device has no deferred settle of host imports: imports under 1 MiB wait for one only on Windows
agc_unit_shadow_completion_store: skipped, the device reports watched host memory written when it imports or reads it
guest_http_uri_locale: 
guest_net_ctl: skipped, the host has no IPv4 address
guest_video_out_color_space: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_hdr: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_high_frame_rate: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_output_mode: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_resolution_status: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_wqhd_detection: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
video_out_flip_aftergpu: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_backtoback: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_controls: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_cpuflip: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_cpuflip_in_order: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_dcc: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_deferred: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_eop: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_eop_aftergpu: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not av
Reproduce
git fetch origin 8cb591515fefb34a21bd5a38646b31cc685bf4fd 9ab6a281ea61c9e62a7eb07eb4cef8f19ede1c5c
git checkout 9ab6a281ea61c9e62a7eb07eb4cef8f19ede1c5c && git merge --no-ff 8cb591515fefb34a21bd5a38646b31cc685bf4fd
git submodule update --init --recursive
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DANYPS5_ENABLE_SPIRV_TOOLS=ON
cmake --build build && cmake --build build --target libs
VK_DRIVER_FILES=/nonexistent/icd.json ctest --test-dir build -E '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 32 --output-on-failure
ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation \
  ctest --test-dir build -R '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 4 --output-on-failure
# failures are then re-run alone: --timeout 360 --parallel 2; new validation IDs: the test alone, twice, --parallel 1

Automated 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.

@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Nov 4, 2026
@TechLevelZero

Copy link
Copy Markdown
Contributor

✅ AMD GPU test: passed

PR head 8cb5915 merged onto main b11c7bf · tested 2026-11-04 21:47 UTC · 45 min

GPU AMD Radeon RX 6300 (RADV NAVI24), driver Mesa 25.2.8-0ubuntu0.24.04.4, Vulkan 1.4.318
Host Ubuntu 26.04.1 LTS, kernel 7.0.0-42-generic, container ubuntu:24.04
Logs build and test logs for this run
Build ✅ passed (Release, -DANYPS5_ENABLE_SPIRV_TOOLS=ON)
Tests ✅ 2,830 passed · 9 failed (0 new, 8 also fail on main, 1 unstable on main) · 60 skipped (ANYPS5_REQUIRE_VULKAN=1)
Test setup CPU-only tests without a GPU; GPU tests (and any CPU-only test that failed or skipped without one) once on the GPU with VK_LAYER_KHRONOS_validation and ANYPS5_NO_SHADER_CACHE=1; main ran the same way
Test selection 2,899 of 3,894 tests run: the ones this change can reach, chosen by tools/select_tests.py from main's build graph
Vulkan validation ✅ no new validation IDs vs main (982 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_pipeline_journal 120.1 s, ⚠️ agc_driver_image_sample_unnormalized 58.9 s, ⚠️ public_headers 54.6 s, ⚠️ agc_driver_lazy_resolved_abi 47.1 s, ⚠️ agc_driver_sample_multisample_target 32.9 s
Unstable on main (1, these also failed in recent main runs on this machine; not counted against this PR)
agc_driver_pipeline_journal: failed in 9 of the last 10 main runs
Failing on main too (8, not counted against this PR)
agc_driver_image_table
agc_driver_native_depth_bda_clear
agc_driver_native_multisample_depth
agc_driver_submit_progress
agc_submit_progress
agc_submit_progress_no_timeline
guest_mmap_executable
guest_socket_options_multicast
Validated but not compared (1, not in the main baseline's validation pass)
agc_storage_dcc_mip_writeback
Validation IDs already present on main (8 IDs in 549 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (549 tests): agc_driver, agc_driver_address_draw_space_reuse, agc_driver_address_passes, agc_driver_alias_copy_label, agc_driver_alpha_to_coverage, agc_driver_array_layer_target, agc_driver_bc_block_copy, agc_driver_bda_anchor_reads, and 541 more
VUID-vkCmdCopyImage-srcImage-01548 (4 tests): agc_driver_depth_clear_hle, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-vkCmdCopyImage-srcImage-01551 (4 tests): agc_driver_depth_clear_hle, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605 (1 test): agc_driver_srgb8_color_target
VUID-VkSamplerCreateInfo-addressModeU-01079 (1 test): agc_driver_image_gather_volume
VUID-VkSamplerCreateInfo-addressModeU-parameter (1 test): agc_driver_image_gather_volume
VUID-VkSamplerCreateInfo-addressModeV-parameter (1 test): agc_driver_image_gather_volume
VUID-VkSamplerCreateInfo-addressModeW-parameter (1 test): agc_driver_image_gather_volume
Skipped (60)
agc_driver_bda_reads_shadowed_results: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_bda_reads_shadowed_results_per_build: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_copied_writer_label_order: skipped, the device reports a minStorageBufferOffsetAlignment of 4, so the dispatch binds its record at +0x1004 in place and nothing is written back; the test needs an alignment above 4
agc_driver_float16_unused_nan_payloads: skipped, the device has no native f16 conversions with RTE rounding and kept f16 denormals
agc_driver_gcn_display_present: skipped, no display: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
agc_driver_image_table_vouched_lookups: skipped, the device reports 4 of 4 host-imported pages written after a GPU read, so a watched imported table cannot be vouched for
agc_driver_linear_target_direct_write_completion: skipped, the device does not keep host imports write-watched, so no completion stamp over the target is tracked
agc_driver_ngg_vertex_wave_reduction: skipped, s3 describes a 32-lane wave only on 32-lane subgroups, and the device has 64 lanes
agc_driver_scattered_runs: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_driver_sparse_dma_buf_import: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_driver_unit_shadow: skipped, the device does not import watched host memory for unit shadows
agc_driver_unit_shadow_budget: skipped, the device does not import watched host memory for unit shadows
agc_host_import_sparse: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_idle_publish_wait: skipped, the device reports 4 of 4 host-imported pages written after a GPU read, so a forced watch of the import reads its submissions as CPU stores
agc_import_settle_initial_dcc: skipped, the device has no deferred settle of host imports: imports under 1 MiB wait for one only on Windows
agc_shadowed_key_stores: skipped, the device imports no watched host memory under a unit shadow
agc_small_tiled_shadow_label: skipped, host imports are unavailable: the test block is not imported and watched
agc_storage_clear_hand_over: skipped, the device imports no watched host memory for the clear-key hand-over
agc_storage_pending_key_refresh: skipped, refreshes over a pending key store are not testable here
agc_unit_shadow: skipped, the device does not import watched host memory for unit shadows
agc_unit_shadow_completion_store: skipped, the device reports watched host memory written when it imports or reads it
guest_http_uri_locale: 
guest_net_ctl: skipped, the host has no IPv4 address
guest_video_out_color_space: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_hdr: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_high_frame_rate: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_output_mode: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_resolution_status: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_wqhd_detection: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
video_out_flip_aftergpu: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_backtoback: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platf
Reproduce
git fetch origin 8cb591515fefb34a21bd5a38646b31cc685bf4fd b11c7bf84f5d2f636ff60166cc3371bd071e24d5
git checkout b11c7bf84f5d2f636ff60166cc3371bd071e24d5 && git merge --no-ff 8cb591515fefb34a21bd5a38646b31cc685bf4fd
git submodule update --init --recursive
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DANYPS5_ENABLE_SPIRV_TOOLS=ON
cmake --build build && cmake --build build --target libs
VK_DRIVER_FILES=/nonexistent/icd.json ctest --test-dir build -E '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 12 --output-on-failure
ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation \
  ctest --test-dir build -R '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 16 --output-on-failure
# failures are then re-run alone: --timeout 360 --parallel 2; new validation IDs: the test alone, twice, --parallel 1

Automated 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.

# Conflicts:
#	docs/dev/debt/libSceAgcDriver.md
@github-actions github-actions Bot added review queue Next in the maintainer review queue: checks pass, no open change request, no conflict and removed needs rebase Conflicts with main, rebase needed labels Nov 5, 2026
@oneandonlydean oneandonlydean self-assigned this Nov 5, 2026
@TechLevelZero

Copy link
Copy Markdown
Contributor

✅ NVIDIA GPU test: passed

PR head 02a5bfc merged onto main c5bd55a · tested 2026-11-05 09:47 UTC · 27 min

GPU NVIDIA RTX 2000 Ada Generation, driver 595.99.02, Vulkan 1.4.329
Host Ubuntu 26.04.1 LTS, kernel 7.0.0-38-generic, container ubuntu:24.04
Logs build and test logs for this run
Build ✅ passed (Release, -DANYPS5_ENABLE_SPIRV_TOOLS=ON)
Tests ✅ 2,882 passed · 5 failed (0 new, 3 also fail on main, 2 unstable on main) · 55 skipped (ANYPS5_REQUIRE_VULKAN=1)
Test setup CPU-only tests without a GPU; GPU tests (and any CPU-only test that failed or skipped without one) once on the GPU with VK_LAYER_KHRONOS_validation and ANYPS5_NO_SHADER_CACHE=1; main ran the same way
Test selection 2,942 of 3,972 tests run: the ones this change can reach, chosen by tools/select_tests.py from main's build graph
Vulkan validation ✅ no new validation IDs vs main (991 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_pipeline_journal 120.2 s
Unstable on main (2, these also failed in recent main runs on this machine; not counted against this PR)
agc_driver_pipeline_journal: failed in 3 of the last 10 main runs
agc_submit_progress_no_timeline: failed in 2 of the last 10 main runs
Failing on main too (3, not counted against this PR)
agc_driver_image_table
guest_mmap_executable
guest_socket_options_multicast
Validated but not compared (1, not in the main baseline's validation pass)
agc_storage_dcc_mip_writeback
Validation IDs already present on main (9 IDs in 550 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (550 tests): agc_driver, agc_driver_address_draw_space_reuse, agc_driver_address_passes, agc_driver_alias_copy_label, agc_driver_alpha_to_coverage, agc_driver_array_layer_target, agc_driver_bc_block_copy, agc_driver_bda_anchor_reads, and 542 more
VUID-VkShaderModuleCreateInfo-pCode-08737 (14 tests): agc_driver_dpp16_operands, agc_driver_dpp8_pk_fmac, agc_driver_dx10_clamp, agc_driver_f16_fma_denormal_modes, agc_driver_f16_fma_invalid_nan, agc_driver_float16_fma_rounding, agc_driver_float16_modifiers, agc_driver_float16_native, and 6 more
VUID-VkShaderModuleCreateInfo-pCode-08739 (14 tests): agc_driver_dpp16_operands, agc_driver_dpp8_pk_fmac, agc_driver_dx10_clamp, agc_driver_f16_fma_denormal_modes, agc_driver_f16_fma_invalid_nan, agc_driver_float16_fma_rounding, agc_driver_float16_modifiers, agc_driver_float16_native, and 6 more
VUID-VkShaderModuleCreateInfo-pCode-08741 (14 tests): agc_driver_dpp16_operands, agc_driver_dpp8_pk_fmac, agc_driver_dx10_clamp, agc_driver_f16_fma_denormal_modes, agc_driver_f16_fma_invalid_nan, agc_driver_float16_fma_rounding, agc_driver_float16_modifiers, agc_driver_float16_native, and 6 more
VUID-vkCmdCopyImage-srcImage-01548 (7 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_buffer_memory, agc_driver_depth_plane_partial_store, agc_driver_depth_plane_sampling, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-vkCmdCopyImage-srcImage-01551 (7 tests): agc_driver_depth_clear_hle, agc_driver_depth_plane_buffer_memory, agc_driver_depth_plane_partial_store, agc_driver_depth_plane_sampling, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605 (2 tests): agc_driver_prepared_exports, agc_driver_srgb8_color_target
VUID-VkPipelineShaderStageCreateInfo-module-parameter (1 test): agc_driver_float16_unused_nan_payloads
VUID-VkPipelineShaderStageCreateInfo-pSpecializationInfo-06849 (1 test): agc_driver_float16_unused_nan_payloads
Skipped (55)
agc_driver_bda_reads_shadowed_results: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_bda_reads_shadowed_results_per_build: skipped, the device reports watched host memory written when it imports or reads it
agc_driver_gcn_display_present: skipped, no display: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
agc_driver_sample_order_grid_reference: skipped, the device does not keep depth drawn at custom sample locations at those locations, even after a transition that names them: the composite of uniform renders holds the guest's depth in 0 of 3005 sloped samples, so no path can be compared with it bit for bit
agc_driver_scattered_runs: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_driver_sparse_dma_buf_import: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_driver_stencil_ref_export: skipped, the device lacks VK_EXT_shader_stencil_export
agc_host_import_sparse: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_unit_shadow_completion_store: skipped, the device reports watched host memory written when it imports or reads it
guest_http_uri_locale: 
guest_net_ctl: skipped, the host has no IPv4 address
guest_net_ctl_disconnected: skipped, the host has no IPv4 address
guest_video_out_color_space: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_hdr: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_high_frame_rate: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_host_resolution_disabled: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_host_resolution_four_k: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_host_resolution_height_only: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_host_resolution_limit: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_host_resolution_malformed: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_host_resolution_width_only: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_output_mode: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_resolution_status: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
guest_video_out_wqhd_detection: skipped, no display or Vulkan device: SDL_InitSubSystem(VIDEO | GAMECONTROLLER) failed: wayland,x11 not available
video_out_flip_aftergpu: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_backtoback: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_controls: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_cpuflip: skipped, no display or Vulkan device: DisplayWindow: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
video_out_flip_cpuflip_in_order: skipped, no disp
Reproduce
git fetch origin 02a5bfcceb8af242cc9ad50e59fe9af648725a51 c5bd55a89a07d39840867cc671f622f3d7c4869c
git checkout c5bd55a89a07d39840867cc671f622f3d7c4869c && git merge --no-ff 02a5bfcceb8af242cc9ad50e59fe9af648725a51
git submodule update --init --recursive
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DANYPS5_ENABLE_SPIRV_TOOLS=ON
cmake --build build && cmake --build build --target libs
VK_DRIVER_FILES=/nonexistent/icd.json ctest --test-dir build -E '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 32 --output-on-failure
ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation \
  ctest --test-dir build -R '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 4 --output-on-failure
# failures are then re-run alone: --timeout 360 --parallel 2; new validation IDs: the test alone, twice, --parallel 1

Automated 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.

@BunnyFl BunnyFl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@LeoFeitosa re-checked at 02a5bfcceb. Against ff8b1a9219, the head I approved, the only change to your commit is the debt entry, back in docs/dev/debt/libSceAgcDriver.md; the rest is a merge of main.

On 02a5bfcceb merged onto main 78e4248fea (Windows 11, WinLibs GCC 15.2.0, Release, AMD Radeon RX 9070 XT, driver 32.0.32015.12012), ctest -V with ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation and your regex agc_storage|agc_tiled|repack|dcc|^agc_driver_graphics$|pending_after_unwatch|texture_format|clear_keys|hand:

  • 60 tests: 57 pass and the three agc_driver_msaa_dcc_compared_import_* skip ("Linux comparison mode only");
  • with main's Texture.cpp and Texture.hpp, only agc_storage_dcc_mip_writeback fails ("the write-back stored 16384 of 344064 texels"), as before;
  • no missing-layer line and no VUID- or SYNC-HAZARD message on either side.

check_conventions.py passes. pr_overlap.py --branch finds no shared exports; #6926 shares lines in docs/dev/debt/libSceAgcDriver.md, and 72 PRs that conflict with main couldn't be compared.

Approving again at 02a5bfcceb.

AI-assisted: yes (Claude Code)

@NathanFahey23

Copy link
Copy Markdown
Contributor

Windows and NVIDIA run, for head 02a5bfc merged with --no-ff onto main 4977f64 (b9b65d0304, clean merge).

GPU NVIDIA GeForce RTX 4080 (10de:2704), driver 32.0.16.2101
Host Windows 11 Home 10.0.26300
Toolchain WinLibs GCC 15.2.0 UCRT posix-seh r7, Release, BUILD_TESTING=ON
Environment ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, no validation layer
Tests ctest -R "^(agc_|shader|video_out|guest_video)"
main 4977f64 this PR
GPU subset 1477/1477 passed 1478/1478 passed
agc_storage_dcc_mip_writeback (new) n/a passed
agc_driver_recorder passed passed

No regressions on this GPU.

AI-assisted: yes.

@github-actions github-actions Bot added needs rebase Conflicts with main, rebase needed and removed review queue Next in the maintainer review queue: checks pass, no open change request, no conflict labels Nov 8, 2026
@milescoviello

milescoviello commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Test runs for head 02a5bfcceb against its merge base 8bfe082f60. I built agc_driver_recorder_tests on each side and ran the matching tests 3 times each with ctest.

Linux: Ubuntu 26.04.1, RTX 4070 Ti, NVIDIA 615.71.09, GCC 15.2, Release.

test merge base this head
agc_bda_staging 3 passed 3 passed
agc_changed_copy 3 passed 3 passed
agc_command_memory_reuse 3 passed 3 passed
agc_completion_label_wait 3 passed 3 passed
agc_copied_direct_ordering 3 passed 3 passed
agc_copied_write_back 3 passed 3 passed
agc_descriptor_pool_recycling 3 passed 3 passed
agc_detile_small_elements 3 passed 3 passed
agc_draw_descriptors 3 passed 3 passed
agc_draw_inputs_copied 3 passed 3 passed
agc_draw_inputs_in_place 3 passed 3 passed
agc_draw_inputs_in_place_driver 3 passed 3 passed
agc_draw_snapshot_cap 3 passed 3 passed
agc_draw_snapshot_epoch 3 passed 3 passed
agc_driver_bda_reads_shadowed_results 3 skipped 3 skipped
agc_driver_bda_reads_shadowed_results_per_build 3 skipped 3 skipped
agc_driver_host_import_lifetime 3 passed 3 passed
agc_driver_host_import_mutation_race 3 passed 3 passed
agc_driver_recorder 3 passed 3 passed
agc_driver_unit_shadow 3 passed 3 passed
agc_driver_unit_shadow_budget 3 passed 3 passed
agc_driver_vertex_target_range_copied 3 passed 3 passed
agc_driver_vertex_target_range_imported 3 passed 3 passed
agc_gpu_timing_complete 3 passed 3 passed
agc_gpu_timing_incomplete 3 passed 3 passed
agc_gpu_timing_key 3 passed 3 passed
agc_host_import_retirement 3 passed 3 passed
agc_host_import_unmap 3 passed 3 passed
agc_idle_publish_wait 3 passed 3 passed
agc_import_settle_initial_dcc 3 skipped 3 skipped
agc_import_watch 3 passed 3 passed
agc_map_gate_disjoint 3 passed 3 passed
agc_map_gate_fast_path 3 passed 3 passed
agc_map_gate_pending 3 passed 3 passed
agc_map_gate_publication 3 passed 3 passed
agc_map_gate_retry 3 passed 3 passed
agc_map_gate_stress 3 passed 3 passed
agc_metadata_pass 3 passed 3 passed
agc_multisample_guest_access 3 passed 3 passed
agc_parked_import_unmap 3 passed 3 passed
agc_pending_key_stores 3 passed 3 passed
agc_pending_write_snapshot 3 passed 3 passed
agc_pipeline_cache 3 passed 3 passed
agc_pipeline_cache_allocation_busy 3 passed 3 passed
agc_pipeline_cache_allocation_destructor 3 passed 3 passed
agc_pipeline_cache_allocation_now 3 passed 3 passed
agc_pipeline_cache_allocation_startup 3 passed 3 passed
agc_pipeline_cache_allocation_worker 3 passed 3 passed
agc_pipeline_cache_file 3 passed 3 passed
agc_pipeline_cache_header 3 passed 3 passed
agc_pipeline_library 3 passed 3 passed
agc_pipeline_library_clear_waits_for_build 3 passed 3 passed
agc_pipeline_library_fast_only 3 passed 3 passed
agc_pipeline_library_lto_info 3 passed 3 passed
agc_pipeline_library_lto_info_fast_only 3 passed 3 passed
agc_pipeline_library_off 3 passed 3 passed
agc_queued_write_groups 3 passed 3 passed
agc_read_written_staging 3 passed 3 passed
agc_recorder_cmask 3 passed 3 passed
agc_recorder_command_buffer_release 3 passed 3 passed
agc_recorder_completion_labels 3 passed 3 passed
agc_recorder_cube 3 passed 3 passed
agc_recorder_deferred_failure_report 3 passed 3 passed
agc_recorder_device_selection 3 passed 3 passed
agc_recorder_failed_check 3 passed 3 passed
agc_recorder_read_list 3 passed 3 passed
agc_recorder_stored_bytes 3 passed 3 passed
agc_recorder_upload_scratch 3 passed 3 passed
agc_repeat_storage_guard 3 passed 3 passed
agc_repeated_neighbour_stores 3 passed 3 passed
agc_resident_present 3 passed 3 passed
agc_sample_dumps 3 passed 3 passed
agc_sampled_storage_base_level_usage 3 passed 3 passed
agc_shadowed_key_stores 3 passed 3 passed
agc_slice_dirty 3 passed 3 passed
agc_small_tiled_shadow_label 3 passed 3 passed
agc_space_pending_writes 3 passed 3 passed
agc_sparse_run_import 3 passed 3 passed
agc_sparse_run_import_copied 3 passed 3 passed
agc_storage_baseline_settled 3 passed 3 passed
agc_storage_clear_hand_over 3 passed 3 passed
agc_storage_dcc_mip_writeback not run 3 passed
agc_storage_flush_wait_mip_chain 3 passed 3 passed
agc_storage_idle_writeback_race 3 passed 3 passed
agc_storage_integer_clear 3 passed 3 passed
agc_storage_kept_unit_settle 3 passed 3 passed
agc_storage_pending_after_unwatch 3 passed 3 passed
agc_storage_pending_key_refresh 3 passed 3 passed
agc_storage_rewritten_blocks 3 passed 3 passed
agc_storage_rewritten_stale_units 3 passed 3 passed
agc_storage_split_writeback 3 passed 3 passed
agc_storage_typed_fill_clear 3 passed 3 passed
agc_storage_upload_failure 3 passed 3 passed
agc_storage_upload_lifetime 3 passed 3 passed
agc_storage_write_back 3 passed 3 passed
agc_storage_write_back_scratch 3 passed 3 passed
agc_storage_writeback_blocks 3 passed 3 passed
agc_storage_written_buffer_order 3 passed 3 passed
agc_tiled_resolve 3 passed 3 passed
agc_unchanged_cpu_stamps 3 passed 3 passed
agc_uncounted_passes 3 passed 3 passed
agc_unit_shadow 3 passed 3 passed
agc_unit_shadow_completion_store 3 skipped 3 skipped
agc_untracked_forget 3 passed 3 passed
agc_unwatch_hook_lock_order 3 passed 3 passed
agc_window_import_unmap 3 passed 3 passed
agc_windowed_import_refresh 3 passed 3 passed

Windows: Windows 11 VM, GeForce GT 1030 (Pascal), NVIDIA 582.78, WinLibs GCC 15.2 UCRT, Release.

test merge base this head
agc_bda_staging 3 passed 3 passed
agc_changed_copy 3 passed 3 passed
agc_command_memory_reuse 3 passed 3 passed
agc_completion_label_wait 3 passed 3 passed
agc_copied_direct_ordering 3 passed 3 passed
agc_copied_write_back 3 passed 3 passed
agc_descriptor_pool_recycling 3 passed 3 passed
agc_detile_small_elements 3 passed 3 passed
agc_draw_descriptors 3 passed 3 passed
agc_draw_inputs_copied 3 passed 3 passed
agc_draw_inputs_in_place 3 passed 3 passed
agc_draw_inputs_in_place_driver 3 passed 3 passed
agc_draw_snapshot_cap 3 passed 3 passed
agc_draw_snapshot_epoch 3 passed 3 passed
agc_driver_bda_reads_shadowed_results 3 passed 3 passed
agc_driver_bda_reads_shadowed_results_per_build 3 passed 3 passed
agc_driver_host_import_lifetime 3 passed 3 passed
agc_driver_host_import_lifetime_other_family 3 passed 3 passed
agc_driver_host_import_mutation_race 3 passed 3 passed
agc_driver_recorder 3 passed 3 passed
agc_driver_unit_shadow 3 passed 3 passed
agc_driver_unit_shadow_budget 3 passed 3 passed
agc_driver_vertex_target_range_copied 3 passed 3 passed
agc_driver_vertex_target_range_imported 3 passed 3 passed
agc_gpu_timing_complete 3 passed 3 passed
agc_gpu_timing_incomplete 3 passed 3 passed
agc_gpu_timing_key 3 passed 3 passed
agc_host_import_cut_lifetime 3 passed 3 passed
agc_host_import_retirement 3 passed 3 passed
agc_host_import_second_mapping 3 passed 3 passed
agc_host_import_unmap 3 passed 3 passed
agc_idle_publish_wait 3 passed 3 passed
agc_import_settle_deferred 3 passed 3 passed
agc_import_settle_deferred_other_family 3 passed 3 passed
agc_import_settle_earlier_import 3 passed 3 passed
agc_import_settle_first_use 3 passed 3 passed
agc_import_settle_initial_dcc 3 passed 3 passed
agc_import_settle_retire 3 passed 3 passed
agc_import_settle_storage_image 3 passed 3 passed
agc_import_settle_wait_failure 3 passed 3 passed
agc_import_settle_write_order 3 passed 3 passed
agc_import_settle_write_order_other_family 3 passed 3 passed
agc_import_watch 3 passed 3 passed
agc_import_watch_other_family 3 passed 3 passed
agc_map_gate_disjoint 3 passed 3 passed
agc_map_gate_fast_path 3 passed 3 passed
agc_map_gate_pending 3 passed 3 passed
agc_map_gate_publication 3 passed 3 passed
agc_map_gate_retry 3 passed 3 passed
agc_map_gate_stress 3 passed 3 passed
agc_metadata_pass 3 passed 3 passed
agc_multisample_guest_access 3 passed 3 passed
agc_parked_import_unmap 3 passed 3 passed
agc_partial_watch_restoration 3 passed 3 passed
agc_pending_key_stores 3 passed 3 passed
agc_pending_write_snapshot 3 passed 3 passed
agc_pipeline_cache 3 passed 3 passed
agc_pipeline_cache_allocation_busy 3 passed 3 passed
agc_pipeline_cache_allocation_destructor 3 passed 3 passed
agc_pipeline_cache_allocation_now 3 passed 3 passed
agc_pipeline_cache_allocation_startup 3 passed 3 passed
agc_pipeline_cache_allocation_worker 3 passed 3 passed
agc_pipeline_cache_file 3 passed 3 passed
agc_pipeline_cache_header 3 passed 3 passed
agc_pipeline_cache_read_retry 3 passed 3 passed
agc_pipeline_library 3 passed 3 passed
agc_pipeline_library_fast_only 3 passed 3 passed
agc_pipeline_library_lto_info 3 passed 3 passed
agc_pipeline_library_lto_info_fast_only 3 passed 3 passed
agc_pipeline_library_off 3 passed 3 passed
agc_queued_write_groups 3 passed 3 passed
agc_read_written_staging 3 passed 3 passed
agc_recorder_cmask 3 passed 3 passed
agc_recorder_command_buffer_release 3 passed 3 passed
agc_recorder_completion_labels 3 passed 3 passed
agc_recorder_cube 3 passed 3 passed
agc_recorder_deferred_failure_report 3 passed 3 passed
agc_recorder_device_selection 3 passed 3 passed
agc_recorder_failed_check 3 passed 3 passed
agc_recorder_read_list 3 passed 3 passed
agc_recorder_stored_bytes 3 passed 3 passed
agc_recorder_upload_scratch 3 passed 3 passed
agc_reimport_bench 3 passed 3 passed
agc_repeat_storage_guard 3 passed 3 passed
agc_repeated_neighbour_stores 3 passed 3 passed
agc_resident_present 3 passed 3 passed
agc_sample_dumps 3 passed 3 passed
agc_sampled_storage_base_level_usage 3 passed 3 passed
agc_shadowed_key_stores 3 passed 3 passed
agc_slice_dirty 3 passed 3 passed
agc_small_tiled_shadow_label 3 passed 3 passed
agc_space_pending_writes 3 passed 3 passed
agc_sparse_run_import 3 passed 3 passed
agc_sparse_run_import_copied 3 passed 3 passed
agc_storage_baseline_settled 3 passed 3 passed
agc_storage_clear_hand_over 3 passed 3 passed
agc_storage_cpu_snapshot 3 passed 3 passed
agc_storage_dcc_mip_writeback not run 3 passed
agc_storage_flush_wait_mip_chain 3 passed 3 passed
agc_storage_idle_writeback_race 3 passed 3 passed
agc_storage_integer_clear 3 passed 3 passed
agc_storage_kept_unit_settle 3 passed 3 passed
agc_storage_pending_after_unwatch 3 passed 3 passed
agc_storage_pending_key_refresh 3 passed 3 passed
agc_storage_rewritten_blocks 3 passed 3 passed
agc_storage_rewritten_stale_units 3 passed 3 passed
agc_storage_split_writeback 3 passed 3 passed
agc_storage_typed_fill_clear 3 passed 3 passed
agc_storage_upload_failure 3 passed 3 passed
agc_storage_upload_lifetime 3 passed 3 passed
agc_storage_write_back 3 passed 3 passed
agc_storage_write_back_scratch 3 passed 3 passed
agc_storage_writeback_blocks 3 passed 3 passed
agc_storage_written_buffer_order 3 passed 3 passed
agc_tiled_resolve 3 passed 3 passed
agc_unchanged_cpu_stamps 3 passed 3 passed
agc_uncounted_passes 3 passed 3 passed
agc_unit_shadow 3 passed 3 passed
agc_unit_shadow_completion_store 3 passed 3 passed
agc_untracked_forget 3 passed 3 passed
agc_unwatch_hook_lock_order 3 passed 3 passed
agc_window_import_unmap 3 passed 3 passed
agc_windowed_import_refresh 3 passed 3 passed

Every test I ran passes on this head, apart from any skips listed.

AI-assisted: yes (Claude Code)


Re-run on head 3a685804fb (11-09 10:03PM PT):

Test runs for head 3a685804fb against its merge base 32b292ba38. I built agc_driver_recorder_tests on each side and ran the matching tests 3 times each with ctest.

Linux: Ubuntu 26.04.1, RTX 4070 Ti, NVIDIA 615.71.09, GCC 15.2, Release.

test merge base this head
agc_bda_staging 3 passed 3 passed
agc_changed_copy 3 passed 3 passed
agc_command_memory_reuse 3 passed 3 passed
agc_completion_label_wait 3 passed 3 passed
agc_copied_direct_ordering 3 passed 3 passed
agc_copied_write_back 3 passed 3 passed
agc_descriptor_pool_recycling 3 passed 3 passed
agc_detile_small_elements 3 passed 3 passed
agc_draw_descriptors 3 passed 3 passed
agc_draw_inputs_copied 3 passed 3 passed
agc_draw_inputs_in_place 3 passed 3 passed
agc_draw_inputs_in_place_driver 3 passed 3 passed
agc_draw_snapshot_cap 3 passed 3 passed
agc_draw_snapshot_epoch 3 passed 3 passed
agc_driver_bda_reads_shadowed_results 3 skipped 3 skipped
agc_driver_bda_reads_shadowed_results_per_build 3 skipped 3 skipped
agc_driver_host_import_lifetime 3 passed 3 passed
agc_driver_host_import_mutation_race 3 passed 3 passed
agc_driver_recorder 3 passed 3 passed
agc_driver_unit_shadow 3 passed 3 passed
agc_driver_unit_shadow_budget 3 passed 3 passed
agc_driver_vertex_target_range_copied 3 passed 3 passed
agc_driver_vertex_target_range_imported 3 passed 3 passed
agc_gpu_timing_complete 3 passed 3 passed
agc_gpu_timing_incomplete 3 passed 3 passed
agc_gpu_timing_key 3 passed 3 passed
agc_host_import_retirement 3 passed 3 passed
agc_host_import_unmap 3 passed 3 passed
agc_idle_publish_dmabuf_wait 3 skipped 3 skipped
agc_idle_publish_wait 3 passed 3 passed
agc_import_settle_initial_dcc 3 skipped 3 skipped
agc_import_watch 3 passed 3 passed
agc_map_gate_disjoint 3 passed 3 passed
agc_map_gate_fast_path 3 passed 3 passed
agc_map_gate_pending 3 passed 3 passed
agc_map_gate_publication 3 passed 3 passed
agc_map_gate_retry 3 passed 3 passed
agc_map_gate_stress 3 passed 3 passed
agc_metadata_pass 3 passed 3 passed
agc_multisample_guest_access 3 passed 3 passed
agc_owned_draw_inputs 3 passed 3 passed
agc_owned_draw_inputs_trace 3 passed 3 passed
agc_owned_draw_inputs_trace_eviction 3 passed 3 passed
agc_owned_draw_inputs_trace_unbound 3 passed 3 passed
agc_owned_draw_inputs_verify 3 passed 3 passed
agc_parked_import_unmap 3 passed 3 passed
agc_pending_key_stores 3 passed 3 passed
agc_pending_write_snapshot 3 passed 3 passed
agc_pipeline_cache 3 passed 3 passed
agc_pipeline_cache_allocation_busy 3 passed 3 passed
agc_pipeline_cache_allocation_destructor 3 passed 3 passed
agc_pipeline_cache_allocation_incomplete 3 passed 3 passed
agc_pipeline_cache_allocation_now 3 passed 3 passed
agc_pipeline_cache_allocation_periodic 3 passed 3 passed
agc_pipeline_cache_allocation_same-size 3 passed 3 passed
agc_pipeline_cache_allocation_startup 3 passed 3 passed
agc_pipeline_cache_allocation_worker 3 passed 3 passed
agc_pipeline_cache_file 3 passed 3 passed
agc_pipeline_cache_header 3 passed 3 passed
agc_pipeline_library 3 passed 3 passed
agc_pipeline_library_clear_waits_for_build 3 passed 3 passed
agc_pipeline_library_fast_only 3 passed 3 passed
agc_pipeline_library_lto_info 3 passed 3 passed
agc_pipeline_library_lto_info_fast_only 3 passed 3 passed
agc_pipeline_library_off 3 passed 3 passed
agc_queued_write_groups 3 passed 3 passed
agc_read_written_staging 3 passed 3 passed
agc_recorder_cmask 3 passed 3 passed
agc_recorder_command_buffer_release 3 passed 3 passed
agc_recorder_completion_labels 3 passed 3 passed
agc_recorder_cube 3 passed 3 passed
agc_recorder_deferred_failure_report 3 passed 3 passed
agc_recorder_device_selection 3 passed 3 passed
agc_recorder_failed_check 3 passed 3 passed
agc_recorder_read_list 3 passed 3 passed
agc_recorder_stored_bytes 3 passed 3 passed
agc_recorder_upload_scratch 3 passed 3 passed
agc_repeat_storage_guard 3 passed 3 passed
agc_repeated_neighbour_stores 3 passed 3 passed
agc_resident_present 3 passed 3 passed
agc_sample_dumps 3 passed 3 passed
agc_sampled_storage_base_level_usage 3 passed 3 passed
agc_shadowed_key_stores 3 passed 3 passed
agc_slice_dirty 3 passed 3 passed
agc_small_tiled_shadow_label 3 passed 3 passed
agc_space_pending_writes 3 passed 3 passed
agc_sparse_run_import 3 passed 3 passed
agc_sparse_run_import_copied 3 passed 3 passed
agc_storage_baseline_settled 3 passed 3 passed
agc_storage_clear_hand_over 3 passed 3 passed
agc_storage_dcc_mip_writeback not run 3 passed
agc_storage_flush_wait_mip_chain 3 passed 3 passed
agc_storage_idle_writeback_race 3 passed 3 passed
agc_storage_integer_clear 3 passed 3 passed
agc_storage_kept_unit_settle 3 passed 3 passed
agc_storage_pending_after_unwatch 3 passed 3 passed
agc_storage_pending_key_refresh 3 passed 3 passed
agc_storage_rewritten_blocks 3 passed 3 passed
agc_storage_rewritten_stale_units 3 passed 3 passed
agc_storage_split_writeback 3 passed 3 passed
agc_storage_typed_fill_clear 3 passed 3 passed
agc_storage_upload_failure 3 passed 3 passed
agc_storage_upload_lifetime 3 passed 3 passed
agc_storage_write_back 3 passed 3 passed
agc_storage_write_back_scratch 3 passed 3 passed
agc_storage_writeback_blocks 3 passed 3 passed
agc_storage_written_buffer_order 3 passed 3 passed
agc_tiled_resolve 3 passed 3 passed
agc_unchanged_cpu_stamps 3 passed 3 passed
agc_uncounted_passes 3 passed 3 passed
agc_unit_shadow 3 passed 3 passed
agc_unit_shadow_completion_store 3 skipped 3 skipped
agc_untracked_forget 3 passed 3 passed
agc_unwatch_hook_lock_order 3 passed 3 passed
agc_window_import_unmap 3 passed 3 passed
agc_windowed_import_refresh 3 passed 3 passed

Windows: Windows 11 VM, GeForce GT 1030 (Pascal), NVIDIA 582.78, WinLibs GCC 15.2 UCRT, Release.

test merge base this head
agc_bda_staging 3 passed 3 passed
agc_changed_copy 3 passed 3 passed
agc_command_memory_reuse 3 passed 3 passed
agc_completion_label_wait 3 passed 3 passed
agc_copied_direct_ordering 3 passed 3 passed
agc_copied_write_back 3 passed 3 passed
agc_descriptor_pool_recycling 3 passed 3 passed
agc_detile_small_elements 3 passed 3 passed
agc_draw_descriptors 3 passed 3 passed
agc_draw_inputs_copied 3 passed 3 passed
agc_draw_inputs_in_place 3 passed 3 passed
agc_draw_inputs_in_place_driver 3 passed 3 passed
agc_draw_snapshot_cap 3 passed 3 passed
agc_draw_snapshot_epoch 3 passed 3 passed
agc_driver_bda_reads_shadowed_results 3 passed 3 passed
agc_driver_bda_reads_shadowed_results_per_build 3 passed 3 passed
agc_driver_host_import_lifetime 3 passed 3 passed
agc_driver_host_import_lifetime_other_family 3 passed 3 passed
agc_driver_host_import_mutation_race 3 passed 3 passed
agc_driver_recorder 3 passed 3 passed
agc_driver_unit_shadow 3 passed 3 passed
agc_driver_unit_shadow_budget 3 passed 3 passed
agc_driver_vertex_target_range_copied 3 passed 3 passed
agc_driver_vertex_target_range_imported 3 passed 3 passed
agc_gpu_timing_complete 3 passed 3 passed
agc_gpu_timing_incomplete 3 passed 3 passed
agc_gpu_timing_key 3 passed 3 passed
agc_host_import_cut_lifetime 3 passed 3 passed
agc_host_import_retirement 3 passed 3 passed
agc_host_import_second_mapping 3 passed 3 passed
agc_host_import_unmap 3 passed 3 passed
agc_idle_publish_wait 3 passed 3 passed
agc_import_settle_deferred 3 passed 3 passed
agc_import_settle_deferred_other_family 3 passed 3 passed
agc_import_settle_earlier_import 3 passed 3 passed
agc_import_settle_first_use 3 passed 3 passed
agc_import_settle_initial_dcc 3 passed 3 passed
agc_import_settle_retire 3 passed 3 passed
agc_import_settle_storage_image 3 passed 3 passed
agc_import_settle_wait_failure 3 passed 3 passed
agc_import_settle_write_order 3 passed 3 passed
agc_import_settle_write_order_other_family 3 passed 3 passed
agc_import_watch 3 passed 3 passed
agc_import_watch_other_family 3 passed 3 passed
agc_map_gate_disjoint 3 passed 3 passed
agc_map_gate_fast_path 3 passed 3 passed
agc_map_gate_pending 3 passed 3 passed
agc_map_gate_publication 3 passed 3 passed
agc_map_gate_retry 3 passed 3 passed
agc_map_gate_stress 3 passed 3 passed
agc_metadata_pass 3 passed 3 passed
agc_multisample_guest_access 3 passed 3 passed
agc_owned_draw_inputs 3 passed 3 passed
agc_owned_draw_inputs_trace 3 passed 3 passed
agc_owned_draw_inputs_trace_eviction 3 passed 3 passed
agc_owned_draw_inputs_trace_unbound 3 passed 3 passed
agc_owned_draw_inputs_verify 3 passed 3 passed
agc_parked_import_unmap 3 passed 3 passed
agc_partial_watch_restoration 3 passed 3 passed
agc_pending_key_stores 3 passed 3 passed
agc_pending_write_snapshot 3 passed 3 passed
agc_pipeline_cache 3 passed 3 passed
agc_pipeline_cache_allocation_busy 3 passed 3 passed
agc_pipeline_cache_allocation_destructor 3 passed 3 passed
agc_pipeline_cache_allocation_incomplete 3 failed 3 failed
agc_pipeline_cache_allocation_now 3 passed 3 passed
agc_pipeline_cache_allocation_periodic 3 failed 3 failed
agc_pipeline_cache_allocation_same-size 3 failed 3 failed
agc_pipeline_cache_allocation_startup 3 passed 3 passed
agc_pipeline_cache_allocation_worker 3 passed 3 passed
agc_pipeline_cache_file 3 passed 3 passed
agc_pipeline_cache_header 3 passed 3 passed
agc_pipeline_cache_read_retry 3 passed 3 passed
agc_pipeline_library 3 passed 3 passed
agc_pipeline_library_fast_only 3 passed 3 passed
agc_pipeline_library_lto_info 3 passed 3 passed
agc_pipeline_library_lto_info_fast_only 3 passed 3 passed
agc_pipeline_library_off 3 passed 3 passed
agc_queued_write_groups 3 passed 3 passed
agc_read_written_staging 3 passed 3 passed
agc_recorder_cmask 3 passed 3 passed
agc_recorder_command_buffer_release 3 passed 3 passed
agc_recorder_completion_labels 3 passed 3 passed
agc_recorder_cube 3 passed 3 passed
agc_recorder_deferred_failure_report 3 passed 3 passed
agc_recorder_device_selection 3 passed 3 passed
agc_recorder_failed_check 3 passed 3 passed
agc_recorder_read_list 3 passed 3 passed
agc_recorder_stored_bytes 3 passed 3 passed
agc_recorder_upload_scratch 3 passed 3 passed
agc_reimport_bench 3 passed 3 passed
agc_repeat_storage_guard 3 passed 3 passed
agc_repeated_neighbour_stores 3 passed 3 passed
agc_resident_present 3 passed 3 passed
agc_sample_dumps 3 passed 3 passed
agc_sampled_storage_base_level_usage 3 passed 3 passed
agc_shadowed_key_stores 3 passed 3 passed
agc_slice_dirty 3 passed 3 passed
agc_small_tiled_shadow_label 3 passed 3 passed
agc_space_pending_writes 3 passed 3 passed
agc_sparse_run_import 3 passed 3 passed
agc_sparse_run_import_copied 3 passed 3 passed
agc_storage_baseline_settled 3 passed 3 passed
agc_storage_clear_hand_over 3 passed 3 passed
agc_storage_cpu_snapshot 3 passed 3 passed
agc_storage_dcc_mip_writeback not run 3 passed
agc_storage_flush_wait_mip_chain 3 passed 3 passed
agc_storage_idle_writeback_race 3 passed 3 passed
agc_storage_integer_clear 3 passed 3 passed
agc_storage_kept_unit_settle 3 passed 3 passed
agc_storage_pending_after_unwatch 3 passed 3 passed
agc_storage_pending_key_refresh 3 passed 3 passed
agc_storage_rewritten_blocks 3 passed 3 passed
agc_storage_rewritten_stale_units 3 passed 3 passed
agc_storage_split_writeback 3 passed 3 passed
agc_storage_typed_fill_clear 3 passed 3 passed
agc_storage_upload_failure 3 passed 3 passed
agc_storage_upload_lifetime 3 passed 3 passed
agc_storage_write_back 3 passed 3 passed
agc_storage_write_back_scratch 3 passed 3 passed
agc_storage_writeback_blocks 3 passed 3 passed
agc_storage_written_buffer_order 3 passed 3 passed
agc_tiled_resolve 3 passed 3 passed
agc_unchanged_cpu_stamps 3 passed 3 passed
agc_uncounted_passes 3 passed 3 passed
agc_unit_shadow 3 passed 3 passed
agc_unit_shadow_completion_store 3 passed 3 passed
agc_untracked_forget 3 passed 3 passed
agc_unwatch_hook_lock_order 3 passed 3 passed
agc_window_import_unmap 3 passed 3 passed
agc_windowed_import_refresh 3 passed 3 passed

Failing on this head: agc_pipeline_cache_allocation_incomplete (Windows), agc_pipeline_cache_allocation_periodic (Windows), agc_pipeline_cache_allocation_same-size (Windows).

AI-assisted: yes (Claude Code)

@github-actions github-actions Bot added review queue Next in the maintainer review queue: checks pass, no open change request, no conflict and removed needs rebase Conflicts with main, rebase needed labels Nov 10, 2026
@Lucke0051

Copy link
Copy Markdown
Contributor

Ran this PR merged onto main 75020cd (PR head 3a68580) on two Linux GPUs and compared with main on the same machine (CachyOS, Linux 7.3.1, gcc 16.2.1 Release). These are the first runs on an Intel GPU, next to the NVIDIA and RADV runs above.

GPU AGC, shader and VideoOut tests
NVIDIA GeForce RTX 3070 Ti, NVIDIA 615.78.08 no difference from main; agc_storage_dcc_mip_writeback passes 3 of 3 alone
Intel UHD Graphics 630 (CML GT2), Mesa 26.2.6 no difference from main; agc_storage_dcc_mip_writeback passes 3 of 3 alone
Failures main has too on this machine

Command: ANYPS5_GPU=<NVIDIA|UHD> ANYPS5_REQUIRE_VULKAN=1 ctest --test-dir build -j8 --timeout 120 -R '^(agc|video_out|shader)'; the new test alone with -R '^agc_storage_dcc_mip_writeback$' -V. No validation layer installed here, so no VUID- comparison.

AI-assisted: yes (Claude ran the tests and drafted this comment)

@oneandonlydean
oneandonlydean merged commit 623d241 into boykopovar:main Nov 10, 2026
13 checks passed
@github-actions github-actions Bot removed the review queue Next in the maintainer review queue: checks pass, no open change request, no conflict label Nov 10, 2026
Pipodi pushed a commit to Pipodi/AnyPS5 that referenced this pull request Nov 14, 2026
…stores

FlushPending waited for the newest unfinished batch that writes anywhere in the flushed range (boykopovar#6364),
but its write-backs store only the pending layers the range overlaps, or every pending layer when the
image stores whole (DCC keys not uncompressed) or may widen a partial store. A writer elsewhere in the
range cannot be overwritten by those stores, yet each such wait submitted the open batch or finished the
in-flight ones under the GPU mutex. The flush now asks for writers over the 64 KiB blocks of the layers
it stores, the granularity of the write-back's own unit publishes; an image with many separate pending
runs is checked over their hull. For an image that stores whole, that includes its pending layers
outside the range, which the range check left out. A DCC image with more than one mip is checked over
all of its pending layers too: more than today's write-back stores for it, so the check stays sufficient
if the write-back stores such an image whole, as boykopovar#8707 proposes. When the flush publishes unit shadows,
an address-based dispatch's heap lease over the range is still waited for: such a dispatch stamps its
pages only at completion, so the publish could not tell its writes from fresh shadow units otherwise.
APS5_FLUSH_WAIT_WHOLE_RANGE=1 checks the whole range as before.

The storage flush ordering test gains two cases, each with a GPU fill noted in the open batch: a fill
inside the flushed range but past the image's pending layer, which the flush no longer submits or waits
for while both the image's texel and the fill land; and a fill inside the pending layer, which it still
waits for, so that the fill's block keeps its bytes and a texel in another block is stored. A recorder
test pins the DCC clause: a three-mip image with uncompressed keys, flushed over its first unit,
completes the batch of a writer over its last pending unit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 017123e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agc libSceAgc* build docs unblocks title Names a title ID on the Unblocks line

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants