perf(agc): prove cached image tables from a write index behind APS5_TABLE_INDEX #12745

Merged
EagleBearerYS merged 14 commits from upstream-pr/12745 into main 2026-11-09 19:57:45 +00:00
EagleBearerYS commented 2026-10-29 07:10:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-29T07:10:08Z.


What

A cached draw over an image table proves every sampled texture on every Revalidate: one write-watch collect, one depth-plane flush and one generation compare per element. So the proof grows with the table. On main, the Village harness spends 1,607 µs of lookup per draw at 4,096 entries, 1,288 µs of it in Revalidate.

With APS5_TABLE_INDEX=1, the build subscribes its watched textures and watched T# table spans to a write index over 64 KiB blocks.

  • Writers bump the subscriptions over the blocks they touch: tracker stamps (CPU and driver), recorded storage writes, unwatch, allocation changes, a texture leaving the cache, and a host import over a texture's range.
  • Revalidate sweeps the subscription's spans once and proves only:
    • the bumped elements;
    • the depth, DCC and storage-backed elements;
    • the elements outside the write watch.
  • A bumped draw-build texture is looked up again, from the same first-layer words the build uses, and re-bound without a rebuild.
  • Unchanged: the template audit's periodic full walk, the imported-buffer proof, the epoch proofs of APS5_DRAW_PIPELINE, and everything else.
  • With the switch on, the per-range pending-writer loops are skipped when main's AnyPendingCpuWrites (#8895) finds no writer.
  • The index's lock is an AgcDriver::Mutex, as GuestMemory's are.
  • Off (the default), the only added work is one relaxed load per stored tracker stamp.

Village harness (lavapipe, 850 draws per frame, the whole bindless table bound per draw, 256×256). Each figure is the median of 3 runs on one machine, with main → index → off in each round. Lookup is find + Revalidate per draw, on the draw pipeline's worker; wall is the harness's frame time per draw.

entries / writes per frame lookup µs: main index wall µs: main index
1,024 / 0% 271.2 102.4 429.7 292.0
1,024 / 2% 288.6 101.3 449.0 282.4
4,096 / 0% 1,606.6 365.1 2,202.7 940.5
4,096 / 2% 1,622.4 393.8 2,241.6 988.2

With the index off on the same binary, lookup is −4.3% to +4.7% of main and wall −1.4% to +5.7%. That's inside main's own spread between runs (6–16%), except for one off run at 4,096 / 2%.

Two tests change with it:

  • agc_draw_descriptors' first-layer case now asserts the proof path the switch implies. It also syncs its recorder when it leaves early, since a failed assertion crashed it.
  • agc_driver_lookup_log_fits_build, which measures the lookup log after a full walk, pins the switch off.

Resident Evil Village (PPSA01556)

Resident Evil Village (PPSA01556), static menu. Two blocks of four unprofiled runs: B A A B, then A B B A.

  • The arms: A is main 319621ba2e plus #11580 and #10304, with a local scePadOpen answer for port types 3 and 4 (commit 103015a9ca). B is the same tree plus this PR's four commits (e079ecb20e, the same added and removed lines as this head; commit e23a2e325e), run with APS5_TABLE_INDEX=1.
  • The env, in both: APS5_LAZY_SHADER_PREPARE=1 APS5_NO_GPL=1 APS5_HOST_IMPORT_MIB=6400 APS5_TRACE_SUMMARY_EVERY=10, with scripted pad input. B adds APS5_TABLE_INDEX=1; nothing else differs.
  • The machine: an NVIDIA GeForce RTX 3070 Laptop GPU (617.42), Ryzen 9 5900HS, Windows 10.0.26300, 3840x2160. The shader cache was warm and the key the same in both arms. GPU clocks were not held: it sat at P0 97-99 % at ~1,375-1,405 MHz, with low utilization, since the menu is CPU-bound.
  • The figure: presents per second over menu +5..15 minutes.
block run fps frame p50 / p90 (s)
1 B 0.838 1.17 / 1.35
1 A 0.730 1.37 / 1.55
1 A 0.574 1.57 / 1.93
1 B 0.769 1.27 / 1.55
2 A 0.570 1.63 / 1.96
2 B 0.841 1.17 / 1.37
2 B 0.680 1.38 / 1.82
2 A 0.628 1.57 / 1.85
  • Means: B 0.782 and A 0.626 over the eight runs, +25 %. B is above A in all four same-phase pairs: +14.8 %, +34.0 %, +47.5 % and +8.3 %.
    • By block: +23.2 % in the first and +26.9 % in the second.
    • Spreads: A drifted slower between the blocks, from 0.73 to 0.57-0.63. Read as max-to-min over the mean, A's spread in the first block is 23.9 %, just above that block's +23.2 %. Every B run is still above every A run in that block.
    • One outlier: the second A run's first 2-minute step ran at 0.38 fps, for no cause the logs show. Without that step, the first block reads +16.9 % against an A spread of 14.9 %.
  • Phases, B against A, median ms per frame: Driver.Packet is 10-27 % lower (3,303, 3,643, 3,343 and 3,922 against 3,847, 4,525, 4,712 and 4,466), and so is Graphics.Draw (662-780 against 820-979). Private memory is the same in both, 14.0-14.3 GB at menu +15. There were no aborts and no failed host imports.
  • Larger than expected: the gain is well above the ~4-6 % I expected from the mechanism. At this menu, the per-element fast proofs the index replaces take about 0.6 s per 10 s. These unprofiled runs don't show the cause directly, and no claim is made beyond them. A profiled boot of each tree shows where much of it comes from.
    • The setup: APS5_PROFILE_DRAW=1, menu +10..15, 31 ten-second [rescache] blocks, one boot per tree, so this isn't a pair.
    • Revalidate time per call fell from 0.48 ms on A (71,998 ms over 148,733 calls) to 0.17 ms with the index (35,106 ms over 209,821 calls).
    • Full walks: on A, 15,396 of the window's full walks followed a fast proof that failed at its collect check. With the index there were none, since its proof doesn't collect per element. The template audit's full walks remain: 41,211 on A, and 60,593 with the index, which ran more calls.
    • The index's own counters: 209,821 proofs in 7,465 ms; 205,903 accepted (98.1 %), 0 partial, 3,918 fallbacks, 0 bumps from any source, 0 failed sweeps.
    • Overlap with #12921: it removes the same collect-check failures by another route, keeping a proof across collect epochs. On this menu the two PRs address the same full walks.
      • Together (one block, B A A B, unprofiled, menu +5..15):
        • B: fork diag/village-combined-on-103015a9ca c9cff8c839, the A tree above plus #12478, #12745 and #12921, run with APS5_TABLE_INDEX=1.
        • fps: B ran 0.711 and 0.778 against A's 0.497 and 0.495, +50.0 %.
          • B led both same-phase pairs, by +42.8 % and +57.1 %.
          • B's slower run is 42.9 % above A's faster one.
        • Driver.Packet per frame: 3,822 and 3,568 ms against 5,187 and 5,301 ms. memory_wait: 2,199 and 2,032 ms against 3,090 and 3,167 ms.
        • Read the ratio, not the fps: A ran slower in this block than in the blocks above, 0.50 against 0.57-0.73.
        • The total is below the two gains added (#12745's +25 % and #12921's +29.9 %), although B also carries #12478, because both PRs remove the same full walks.
      • Tests with both PRs in and APS5_TABLE_INDEX=1:
        • The failure: two of #12921's path assertions, in agc_untracked_revalidate and agc_untracked_hint_proof, expect a full walk after a collect epoch. The index proves those draws by looking the elements up again, which re-reads the memory, so the content still follows every store.
        • Unaffected: with the switch off (the default), nothing fails.
        • The fix: a test-only update for whichever PR merges second is ready, as one commit with the same patch-id on two branches:
        • What it accepts: a fast proof only when the image versions moved the way guest memory did.
        • Red/green (Linux, lavapipe), result:
          • both tests fail 10 of 10 on the merge without it, and pass 10 of 10 with it, off and on;
          • ctest -R '^agc' gives 1,048 passed, 73 skipped and 0 failed in both modes.
Summary lines at menu +10 of the first block's A and B runs (main 103015a9ca, this change e23a2e325e)
{"commit":"103015a9ca66","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"6400","APS5_LAZY_SHADER_PREPARE":"1","APS5_NO_GPL":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 3070 Laptop GPU","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"AMD Ryzen 9 5900HS with Radeon Graphics","cpu_threads":16,"memory_mib":15776,"title_id":"PPSA01556","title":"Resident Evil Village","content_version":"01.210.000","resolution":"3840x2160","window":{"spec":"summary_every 10","first_present":3606,"ms":11000.454},"interval_start_s":1034.493,"interval_end_s":1045.494,"presents":8,"frame_ms":{"p50":1373.495,"p90":1562.555,"p99":1562.555,"max":1562.555},"gpu_busy_ms_per_present":238.978,"worker_busy_pct":{"queue worker 0x0":99.569,"queue worker 0x38":0.065,"queue worker 0x20":88.370,"queue worker 0x28":94.164},"top_phases_ms_per_frame":{"Driver.Packet":3875.450,"Driver.Packet.memory_wait":2227.222,"Driver.Packet.draw":989.142,"Driver.Draw":988.349,"Graphics.Draw":831.033,"Graphics.Draw.draw_and_resource_release":812.519,"Driver.Packet.dispatch":620.045,"Driver.Dispatch":566.327},"trace_dropped":false,"trace":""}
{"commit":"e23a2e325e57","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"6400","APS5_LAZY_SHADER_PREPARE":"1","APS5_NO_GPL":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TABLE_INDEX":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 3070 Laptop GPU","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"AMD Ryzen 9 5900HS with Radeon Graphics","cpu_threads":16,"memory_mib":15776,"title_id":"PPSA01556","title":"Resident Evil Village","content_version":"01.210.000","resolution":"3840x2160","window":{"spec":"summary_every 10","first_present":1778,"ms":10373.574},"interval_start_s":835.524,"interval_end_s":845.898,"presents":8,"frame_ms":{"p50":1309.928,"p90":1551.612,"p99":1551.612,"max":1551.612},"gpu_busy_ms_per_present":241.686,"worker_busy_pct":{"queue worker 0x0":99.548,"queue worker 0x38":0.076,"queue worker 0x20":88.449,"queue worker 0x28":93.505},"top_phases_ms_per_frame":{"Driver.Packet":3645.606,"Driver.Packet.memory_wait":2102.811,"Driver.Packet.draw":935.046,"Driver.Draw":934.113,"Graphics.Draw":746.266,"Graphics.Draw.draw_and_resource_release":726.113,"Driver.Packet.dispatch":554.988,"Driver.Dispatch":491.246},"trace_dropped":false,"trace":""}
- **Traces:** one 30 s capture of each arm, menu +10.5 min, with APS5_TRACE_SECONDS=960:30 and no other trace or profile switch: - A: [aps5-trace-103015a9ca66-33724.json.gz](https://github.com/EagleBearerYS/AnyPS5/releases/download/traces-12745/aps5-trace-103015a9ca66-33724.json.gz), 2,419,643 bytes, sha256 `16eab88b27f0843a5aa46433a83dbb69cc1fd960ff2a521acade7d20b52fb809`; - B: [aps5-trace-e23a2e325e57-31916.json.gz](https://github.com/EagleBearerYS/AnyPS5/releases/download/traces-12745/aps5-trace-e23a2e325e57-31916.json.gz), 2,563,423 bytes, sha256 `e6b2ebbe1cb5d78ec919fe62a62583d9ef1f35f141046c5332d9683a72ace0ec`. - In these single windows the two arms are within each other's noise (frame p50 1.50 s against 1.52 s). The speed comparison is the eight unprofiled runs above, not these. - GPU clocks weren't held: P0 97-98 %, mean 1,413-1,425 MHz.
trace_digest.py of A (103015a9ca)

seconds 960:30 from present 2901: 21 presents, frame p50 1497.6 / p90 1783.2 / p99 1903.7 / max 1903.7 ms, GPU busy 230.6 ms per present
NVIDIA GeForce RTX 3070 Laptop GPU, NVIDIA 617.42, Windows 10.0.26300, 3840x2160, commit 103015a9ca66, dropped: no

{"commit":"103015a9ca66","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"6400","APS5_LAZY_SHADER_PREPARE":"1","APS5_NO_GPL":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"960:30"},"gpu":"NVIDIA GeForce RTX 3070 Laptop GPU","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"AMD Ryzen 9 5900HS with Radeon Graphics","cpu_threads":16,"memory_mib":15776,"title_id":"PPSA01556","title":"Resident Evil Village","content_version":"01.210.000","resolution":"3840x2160","window":{"spec":"seconds 960:30","first_present":2901,"ms":31778.408},"presents":21,"frame_ms":{"p50":1497.603,"p90":1783.23,"p99":1903.699,"max":1903.699},"gpu_busy_ms_per_present":230.559,"worker_busy_pct":{"queue worker 0x0":99.554,"queue worker 0x38":0.057,"queue worker 0x28":93.25,"queue worker 0x20":89.065},"top_phases_ms_per_frame":{"Driver.Packet":4261.674,"Driver.Packet.memory_wait":2505.215,"Driver.Packet.draw":1156.599,"Driver.Draw":1155.503,"Graphics.Draw":928.353,"Graphics.Draw.draw_and_resource_release":907.06,"Driver.Packet.dispatch":560.368,"Driver.Dispatch":510.148},"trace_dropped":false,"trace":"aps5-trace-103015a9ca66-33724.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 2907: 1903.7 ms at 9350 ms: Driver.WorkerWait (queue worker 0x38) 1903.0, Driver.WorkerWait.dequeue_order (queue worker 0x38) 1897.0, Driver.Packet (queue worker 0x0) 1885.3, Driver.Packet (queue worker 0x28) 1785.2
  • present 2908: 1831.4 ms at 11253 ms: Driver.WorkerWait (queue worker 0x38) 1828.9, Driver.WorkerWait.dequeue_order (queue worker 0x38) 1818.7, Driver.Packet (queue worker 0x0) 1812.5, Driver.Packet (queue worker 0x28) 1746.7
  • present 2921: 1783.2 ms at 29995 ms: Driver.Packet (queue worker 0x0) 1764.7, Driver.Packet (queue worker 0x28) 1682.4, Driver.Packet.memory_wait (queue worker 0x28) 1663.5, Driver.Packet (queue worker 0x20) 1600.6
  • present 2901: 1750.5 ms at 0 ms: Driver.Packet (queue worker 0x0) 1728.6, Driver.Packet (queue worker 0x20) 1566.8, Driver.Packet (queue worker 0x28) 1505.2, Driver.Packet.memory_wait (queue worker 0x28) 1486.6
  • present 2904: 1743.3 ms at 4870 ms: Driver.WorkerWait (queue worker 0x38) 1742.3, Driver.WorkerWait.dequeue_order (queue worker 0x38) 1736.4, Driver.Packet (queue worker 0x0) 1724.7, Driver.Packet (queue worker 0x28) 1658.1

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
queue worker 0x0 1057.9 (70 %) 442.5 (29 %) 12.9 90.7 Driver.Packet 1496.1, Vulkan.Dispatch 0.0
draw committer 660.4 (44 %) 40.9 (3 %) 811.9 4.9 Graphics.Draw 675.0, Recorder.Submit 2.1
presenter 3.3 (0 %) 0.3 (0 %) 1509.7 0.1 VideoOut.Flip 3.2, Driver.Present 0.4
queue worker 0x38 0.7 (0 %) 1344.4 (89 %) 168.1 0.9 Driver.Packet 0.7, Driver.EndSubmission 0.1
queue worker 0x28 18.2 (1 %) 1483.2 (98 %) 11.9 0.2 Driver.Packet 1410.6, Driver.EndSubmission 0.5
queue worker 0x20 129.1 (9 %) 1374.5 (91 %) 9.7 4.9 Driver.Packet 1343.2, Driver.EndSubmission 4.0
gpu 242.4 (16 %) 0.0 (0 %) 1270.9 0.0 batch 242.4

Largest slices (ms per frame, inclusive, all threads): Driver.Packet 4250.6, Driver.Packet.memory_wait 2505.1, Driver.WorkerWait 1594.9, Driver.WorkerWait.dequeue_order 1338.7, Driver.Packet.draw 1155.6, Driver.Draw 1154.5, Graphics.Draw 927.6, Graphics.Draw.draw_and_resource_release 906.3, Driver.Packet.dispatch 559.1, Driver.Dispatch 508.7

Longest waits

  • Driver.WorkerWait (queue worker 0x38) 1903.8 ms at 9351 ms, present 2907
  • Driver.WorkerWait (queue worker 0x38) 1827.9 ms at 11257 ms, present 2908
  • Driver.WorkerWait (queue worker 0x38) 1742.4 ms at 4872 ms, present 2904
  • Driver.WorkerWait (queue worker 0x38) 1707.2 ms at 28288 ms, present 2920
  • Driver.WorkerWait (queue worker 0x38) 1652.5 ms at 26635 ms, present 2919
  • Driver.Packet.memory_wait (queue worker 0x28) 1639.3 ms at 9478 ms, present 2907
  • Driver.Packet.memory_wait (queue worker 0x28) 1577.3 ms at 11410 ms, present 2908
  • Driver.WorkerWait (queue worker 0x38) 1564.9 ms at 1753 ms, present 2902
  • Driver.WorkerWait (queue worker 0x38) 1552.0 ms at 3319 ms, present 2903
  • Driver.WorkerWait (queue worker 0x38) 1542.0 ms at 13086 ms, present 2909

Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)

  • batch 427: 41.7 ms at 11426 ms, present 2908: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 3.0, Driver.Packet.dispatch (queue worker 0x0) 2.6, Driver.Dispatch (queue worker 0x0) 2.5, Vulkan.DispatchRecipe (queue worker 0x0) 1.3
  • batch 1139: 41.4 ms at 28443 ms, present 2920: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 2.2, Driver.Packet.dispatch (queue worker 0x0) 2.0, Driver.Dispatch (queue worker 0x0) 1.9, Vulkan.DispatchRecipe (queue worker 0x0) 0.4
  • batch 897: 41.4 ms at 22580 ms, present 2916: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.8, Driver.Packet.dispatch (queue worker 0x0) 1.5, Driver.Dispatch (queue worker 0x0) 1.5, Vulkan.DispatchRecipe (queue worker 0x0) 0.7
  • batch 779: 41.3 ms at 19993 ms, present 2914: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 0.6, Driver.Packet.dispatch (queue worker 0x0) 0.4, Driver.Dispatch (queue worker 0x0) 0.4, Vulkan.DispatchRecipe (queue worker 0x0) 0.3
  • batch 955: 41.3 ms at 24025 ms, present 2917: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 0.2, Driver.Packet.flush_between_packets (queue worker 0x0) 0.1, Driver.Packet.dispatch (queue worker 0x0) 0.1, Recorder.Submit (queue worker 0x0) 0.1
trace_digest.py of B (e23a2e325e, APS5_TABLE_INDEX=1)

seconds 960:30 from present 3839: 20 presents, frame p50 1518.3 / p90 2022.3 / p99 2080.3 / max 2080.3 ms, GPU busy 241.8 ms per present
NVIDIA GeForce RTX 3070 Laptop GPU, NVIDIA 617.42, Windows 10.0.26300, 3840x2160, commit e23a2e325e57, dropped: no

{"commit":"e23a2e325e57","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"6400","APS5_LAZY_SHADER_PREPARE":"1","APS5_NO_GPL":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TABLE_INDEX":"1","APS5_TRACE_SECONDS":"960:30"},"gpu":"NVIDIA GeForce RTX 3070 Laptop GPU","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"AMD Ryzen 9 5900HS with Radeon Graphics","cpu_threads":16,"memory_mib":15776,"title_id":"PPSA01556","title":"Resident Evil Village","content_version":"01.210.000","resolution":"3840x2160","window":{"spec":"seconds 960:30","first_present":3839,"ms":30625.661},"presents":20,"frame_ms":{"p50":1518.318,"p90":2022.26,"p99":2080.313,"max":2080.313},"gpu_busy_ms_per_present":241.793,"worker_busy_pct":{"queue worker 0x0":99.506,"queue worker 0x38":0.138,"queue worker 0x28":93.491,"queue worker 0x20":89.008},"top_phases_ms_per_frame":{"Driver.Packet":4317.648,"Driver.Packet.memory_wait":2512.91,"Driver.Packet.draw":1135.088,"Driver.Draw":1133.775,"Graphics.Draw":856.639,"Graphics.Draw.draw_and_resource_release":832.467,"Driver.Packet.dispatch":624.885,"Driver.Dispatch":563.075},"trace_dropped":false,"trace":"aps5-trace-e23a2e325e57-31916.json.gz"}

Slowest frames (largest slices inside each, inclusive)

  • present 3849: 2080.3 ms at 14750 ms: Driver.WorkerWait (queue worker 0x38) 2075.8, Driver.WorkerWait.dequeue_order (queue worker 0x38) 2073.1, Driver.Packet (queue worker 0x0) 2059.2, Driver.Packet (queue worker 0x28) 1973.0
  • present 3848: 2022.3 ms at 12728 ms: Driver.WorkerWait (queue worker 0x38) 2021.2, Driver.WorkerWait.dequeue_order (queue worker 0x38) 2015.5, Driver.Packet (queue worker 0x0) 2003.2, Driver.Packet (queue worker 0x28) 1901.9
  • present 3853: 2000.9 ms at 21358 ms: Driver.WorkerWait (queue worker 0x38) 1999.7, Driver.WorkerWait.dequeue_order (queue worker 0x38) 1993.3, Driver.Packet (queue worker 0x0) 1980.7, Driver.Packet (queue worker 0x28) 1914.2
  • present 3840: 1693.7 ms at 1399 ms: Driver.WorkerWait (queue worker 0x38) 1690.5, Driver.WorkerWait.dequeue_order (queue worker 0x38) 1685.8, Driver.Packet (queue worker 0x0) 1674.4, Driver.Packet (queue worker 0x28) 1608.4
  • present 3856: 1656.4 ms at 25966 ms: Driver.WorkerWait (queue worker 0x38) 1653.7, Driver.WorkerWait.dequeue_order (queue worker 0x38) 1649.0, Driver.Packet (queue worker 0x0) 1636.1, Driver.Packet (queue worker 0x28) 1544.4

Threads (ms per frame)

thread busy wait untraced in slices < 20 us largest
queue worker 0x0 1099.9 (72 %) 417.7 (27 %) 13.7 88.1 Driver.Packet 1513.0, Driver.EndSubmission 0.0
draw committer 678.4 (44 %) 51.2 (3 %) 801.6 4.2 Graphics.Draw 692.0, Recorder.Submit 2.6
presenter 3.3 (0 %) 0.4 (0 %) 1527.5 0.1 VideoOut.Flip 3.4, Driver.Present 0.3
queue worker 0x38 1.6 (0 %) 1388.0 (91 %) 141.6 0.7 Driver.Packet 1.7, Driver.EndSubmission 0.3
queue worker 0x28 19.3 (1 %) 1499.1 (98 %) 12.9 0.2 Driver.Packet 1431.0, Driver.EndSubmission 0.5
queue worker 0x20 149.8 (10 %) 1371.0 (90 %) 10.5 4.9 Driver.Packet 1360.4, Driver.EndSubmission 1.8
gpu 241.8 (16 %) 0.0 (0 %) 1289.5 0.0 batch 241.8

Largest slices (ms per frame, inclusive, all threads): Driver.Packet 4306.1, Driver.Packet.memory_wait 2512.7, Driver.WorkerWait 1637.1, Driver.WorkerWait.dequeue_order 1382.7, Driver.Packet.draw 1134.2, Driver.Draw 1132.9, Graphics.Draw 856.1, Graphics.Draw.draw_and_resource_release 831.8, Driver.Packet.dispatch 624.3, Driver.Dispatch 562.4

Longest waits

  • Driver.WorkerWait (queue worker 0x38) 2075.6 ms at 14755 ms, present 3849
  • Driver.WorkerWait (queue worker 0x38) 2021.3 ms at 12729 ms, present 3848
  • Driver.WorkerWait (queue worker 0x38) 1999.9 ms at 21359 ms, present 3853
  • Driver.Packet.memory_wait (queue worker 0x28) 1764.3 ms at 12849 ms, present 3848
  • Driver.Packet.memory_wait (queue worker 0x28) 1720.7 ms at 14986 ms, present 3849
  • Driver.WorkerWait (queue worker 0x38) 1691.0 ms at 1403 ms, present 3840
  • Driver.Packet.memory_wait (queue worker 0x28) 1685.3 ms at 21570 ms, present 3853
  • Driver.WorkerWait (queue worker 0x38) 1653.7 ms at 25970 ms, present 3856
  • Driver.WorkerWait (queue worker 0x38) 1606.4 ms at 16833 ms, present 3850
  • Driver.WorkerWait (queue worker 0x38) 1574.3 ms at 19784 ms, present 3852

Largest GPU batches (GPU ranges inside, and the CPU slices that recorded each, inclusive)

  • batch 685: 41.6 ms at 17021 ms, present 3850: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 3.0, Driver.Packet.dispatch (queue worker 0x0) 2.9, Driver.Dispatch (queue worker 0x0) 2.9, Vulkan.DispatchRecipe (queue worker 0x0) 0.3
  • batch 556: 41.5 ms at 12861 ms, present 3848: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 2.2, Driver.Packet.dispatch (queue worker 0x0) 1.9, Driver.Dispatch (queue worker 0x0) 1.9, Vulkan.DispatchRecipe (queue worker 0x0) 0.7
  • batch 377: 41.5 ms at 9082 ms, present 3845: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.3, Driver.Packet.dispatch (queue worker 0x0) 1.1, Driver.Dispatch (queue worker 0x0) 1.1, Vulkan.DispatchRecipe (queue worker 0x0) 0.2
  • batch 71: 41.5 ms at 1559 ms, present 3840: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.6, Driver.Packet.dispatch (queue worker 0x0) 1.4, Driver.Dispatch (queue worker 0x0) 1.2, Vulkan.DispatchRecipe (queue worker 0x0) 0.1
  • batch 622: 41.4 ms at 15011 ms, present 3849: GPU no ranges; recorded by Vulkan.Dispatch.shader_resources (queue worker 0x0) 5.6, Resources.Complete (queue worker 0x0) 5.5, Driver.Packet (queue worker 0x0) 4.0, Driver.Packet.dispatch (queue worker 0x0) 3.7
### Tested This head, cda1b61077, merges `main` edf6804cf5 into a1345c6917 with no conflicts and no adaptation; the branch's four commits are unchanged. Runs that don't name cda1b61077 are on a1345c6917, on `main` 85a4d7f8c8. - **On cda1b61077:** - **Writer paths:** every path `main` added or changed since 85a4d7f8c8 still reaches a bump, fails the sweep, or is proved per element, so there's no new red case. - **Linux** (lavapipe, CI's flags), off and on: `ctest -R '^agc'` ran 1,118 tests: 1,044 passed, 73 skipped, 1 failed. The failure is `agc_driver_address_passes`: llvmpipe's JIT emits a GFNI instruction the build machine's CPU lacks, and it fails the same on `main` there. The three index tests passed 10 of 10 each, off and on. Every source's case goes red with its own source dropped. - **The harness at 4,096 entries:** lookup goes from 2,595 to 447 µs per draw at 0 % writes, and from 2,734 to 462 at 2 %. With the switch off, every median is inside `main`'s run-to-run range. - **GitHub's runners** ([run 40870995161](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40870995161)): the branch's driver tests plus `^agc_driver_table_index`, `^agc_driver_lookup_log` and `^agc_driver_village`, 10 times, 0 failed. - Linux: 77 run, 70 passed, 7 skipped. - Windows: 93 run, 4 passed, 89 skipped, since the runner has no Vulkan device. - The libc and libkernel suites, run with `APS5_SKIP_TIMING_TESTS=1`, pass: 191 and 291 tests on Linux, 220 and 314 on Windows. - **GitHub's runners:** - [run 40200070500](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40200070500), the branch's tests and the draw, descriptor and texture tests around them, 10 times, with no failures: - Linux: 68 tests, 7 of them skipped. - Windows: 84 tests, 81 of them skipped, since the runner has no Vulkan device. - [run 40201781277](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40201781277), under the Khronos validation layer on Linux. The layer loaded on both sides, and the only VUID on `main` and on this branch is `VUID-VkDeviceCreateInfo-pNext-pNext`. - **Linux** (Ubuntu 24.04, gcc 13.3, lavapipe, CI's configure flags), tests as an unprivileged user: - **`agc_driver_table_index_validation`** (10 cases, one per event source plus a 2D-array case): 20 of 20. Each source's case goes red on this head with its own source dropped through `APS5_TABLE_INDEX_BREAK`. - **`agc_draw_descriptors` and `agc_driver_lookup_log_fits_build`:** 10 of 10 each, with the switch off and on. - **The image-table, resource, revalidate, template, sampled, storage and texture tests** (60): run off, on, and with `APS5_DRAW_PIPELINE=1` as well. Each run gave 59 passed and 1 skipped. The skip is `agc_storage_clear_hand_over`, because lavapipe makes no watched host import. - **Full ctest as CI runs it:** 2,265 tests, 2,168 passed, 91 skipped, 6 failed. The same with `APS5_TABLE_INDEX=1` for the whole run. The six failures in both are IPv6 socket tests, which the build machine can't run. - **Vulkan validation** (Khronos layer 1.3.275) on `main` and on this branch, off and on, with the same 18 focused tests plus the new one: no new `VUID-` errors. All three show only the layer's `VUID-VkDeviceCreateInfo-pNext-pNext`, for an extension structure the layer predates. - Not tested on a console. - **6a930fc672, a merge of `main` 673fa865f4**, which brings johandavidcm's #11550 ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40980582487)). - **The conflict:** the `[rescache] revalidate (10 s)` profile line in `ShaderResources.cpp`. #11550 extends it with the full-walk times and the refused surfaces, and this PR adds the write-index line after it. - **The resolution:** the merge keeps #11550's lines, then this PR's block, and this PR's added and removed lines are unchanged. - **×10:** `agc_draw_descriptors`, #11550's `agc_driver_resource_cache_collect_refusals`, and the `^agc_driver_table_index`, `^agc_driver_lookup_log` and `^agc_driver_village` tests, with the tests for the files the merge changes. - Linux: 79 run, 71 pass, 8 skip, 0 fail. - Windows: 95 run, 4 pass, 91 skip (no Vulkan device), 0 fail. - The libc and libkernel suites run 194 and 294 tests on Linux and 224 and 317 on Windows, with 0 failed. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **AMD Radeon RX 9070 XT (RDNA 4), by @bunbeans2-arch, at 6a930fc672** ([comment](https://github.com/boykopovar/AnyPS5/pull/12745#issuecomment-6522007651)): Windows 11 Pro 10.0.22631, driver 32.0.32015.7029 (amdvlk64), MSYS2 UCRT64 g++ 16.1.0, Release, `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1` and the Khronos validation layer (the loader inserts it in every run). The head merged onto `main` f7f03daf52, 3 runs per side: - `agc_driver_table_index_validation` passes 3 of 3, printing `passed` for array, compared, cpu, driver, import, pending, release, table and unwatch. Each run also prints `remap: skipped on Windows`, so the remap case isn't covered there. - `agc_driver_village_draw_cost` passes 3 of 3. - `agc_driver_recorder`, the `agc_recorder_*` tests and `agc_driver_lookup_log_fits_build` pass 3 of 3, as on `main`. - No `VUID-` line on either side. - **6e2e6cd6de, two commits on 6a930fc672 that fix profile counters with the switch on.** johandavidcm's `agc_driver_resource_cache_collect_refusals` test (#11550) showed that with `APS5_TABLE_INDEX=1`, a refusal was counted twice when the write index's proof fell back to the ordinary fast proof. No proof outcome changes. - **81b548fb75** counts a collect refusal, its fast-fail reason and a depth-guard refusal once. `agc_driver_resource_cache_collect_refusals_index` runs #11550's test with the index on. It failed 20 of 20 on 6a930fc672 and passed 20 of 20 with the commit ([result](https://github.com/EagleBearerYS/AnyPS5/blob/cloud-results/results/cloud-3/BF-326.md)). - **6e2e6cd6de** counts a pending fast-fail once. `agc_driver_resource_cache_pending_fail_count` and its `_index` twin check that each proof counts one foreign and one T1-eligible pending fast-fail, with the index off and on. With the index on, it failed 20 of 20 on 81b548fb75 (`pending foreign +2, snapshot +0, T1 eligible +2`) and passed 20 of 20 with the commit ([result](https://github.com/EagleBearerYS/AnyPS5/blob/cloud-results/results/cloud-5/BF-327.md)). - **Linux** (lavapipe, CI's flags, unprivileged user), on 6e2e6cd6de: `ctest -R '^agc'` ran 1,133 tests: 1,059 passed, 74 skipped, 0 failed, with the switch off and on. - On a second machine, at 81b548fb75, `agc_driver_image_sample_force_degamma` failed: llvmpipe's JIT emits an AVX-VNNI instruction under `GALLIUM_OVERRIDE_CPU_CAPS=avx` that the machine's CPU lacks. It fails the same way on 6a930fc672 there, and passes without the override. - **×10** on GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41156213493)): the tests above plus `agc_draw_descriptors` and the `^agc_driver_table_index`, `^agc_driver_lookup_log`, `^agc_driver_village`, `^agc_driver_resource_cache` and `^agc_driver_sampled_cache` tests. - Linux: 92 run, 84 pass, 8 skip, 0 fail. - Windows: 108 run, 4 pass, 104 skip (no Vulkan device), 0 fail. - The libc and libkernel suites run 194 and 294 tests on Linux and 224 and 317 on Windows, with 0 failed. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **Still counted twice:** two profile-only `[rescache]` counters, `countKeysProven` and `serialSkips`, can still count twice when the index's inner proof falls back. A follow-up fixes them. - **4922da2dec, a merge of `main` 0836dfdf4f** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41239531755)). #12862 moved `libSceAgcDriver`'s test registrations into `tests/cmake/`; the conflict in `CMakeLists.txt` is resolved with `tools/agc_test_split.py resolve`, which moves this PR's registrations into `tests/cmake/agc_driver_sampled_cache_budget_tests.cmake` (+7 −1). Nothing else conflicted. Apart from the move, this PR's diff is unchanged. With `-DBUILD_TESTING=ON`, `ctest -N` gives 3080 tests: `main`'s 3075 plus its 5 tests, each listed once. The 18 tests of this PR's verify set pass 10 runs in a row. Linux: 18 run, 18 pass, 0 skip, 0 fail. Windows: 18 run, 0 pass, 18 skip (no Vulkan device), 0 fail. Suites: libc and libkernel pass on Linux (199 and 308) and on Windows (226 and 330). The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **2537d44452 and cdcb98496e, from oneandonlydean's review** ([comment](https://github.com/boykopovar/AnyPS5/pull/12745#issuecomment-6557352221)). - **2537d44452:** `TrimSubscriptionBumps` clears an overflowed subscription's marker and history only while the subscription's generation, read under the index mutex, still equals the trimmed baseline. Otherwise the marker stays and only the bumps at or before the baseline are dropped. Before, a bump between the proof's baseline read and the trim was lost: it went unrecorded because of the overflow, and the trim cleared the marker, so the next partial proof listed no block for it. The new `overflow` case runs that sequence on a real subscription and requires the next proof to fall back. - **cdcb98496e:** `tests/cmake/agc_driver_table_index_validation_tests.cmake` appends `APS5_TABLE_INDEX=1` to the test's default registration, which already exists, so a second `add_test` would fail the configure. The test returns 77 when guest memory has no write watch, so such a machine shows a skip, not a pass. - **Red** at 4922da2dec with only the new case ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41305222690)): Linux fails with "overflow: trimming the overflowed history at the fallback's baseline forgot the unrecorded bump of block 2 after it, so the next proof would check 0 changed blocks instead of falling back". Windows skips it (no Vulkan device). - **×10 at cdcb98496e** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41305214153)): this PR's 18-test set. Linux: 18 run, 18 pass, 0 skip, 0 fail. Windows: 18 run, 0 pass, 18 skip (no Vulkan device), 0 fail, so the overflow case has run only on Linux. The libc and libkernel suites run 199 and 308 tests on Linux and 226 and 330 on Windows, with 0 failed. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **TechLevelZero's GPU bots at cdcb98496e,** each with `VK_LAYER_KHRONOS_validation`, on the tests this change can reach as `tools/select_tests.py` picks them from `main`'s build graph. Neither selection included `agc_driver_table_index_validation`, which `main` doesn't have yet. - **NVIDIA RTX 2000 Ada Generation** ([report](https://github.com/boykopovar/AnyPS5/pull/12745#issuecomment-6559168372)): driver 595.99.02, Ubuntu 26.04.1, this head merged onto `main` e6f5730, 2,537 of 3,148 tests selected. 2,488 passed, 4 failed and 45 skipped. None of the failures is new: 3 also fail on `main`, and 1 is unstable there. No new validation IDs over 936 GPU tests; 3 tests ran with the layer but aren't in `main`'s baseline, so they weren't compared. - **AMD Radeon RX 6300 (RADV NAVI24, Mesa 25.2.8)** ([report](https://github.com/boykopovar/AnyPS5/pull/12745#issuecomment-6558925551)): Ubuntu 26.04.1, this head merged onto `main` 291e02d, 2,542 of 3,155 tests selected. 2,475 passed, 13 failed and 54 skipped. None of the failures is new: 12 also fail on `main`, and 1 is unstable there. No new validation IDs over 936 GPU tests; the same 3 tests weren't compared. - **80ea80ed5e, a merge of `main` acf7ac208a,** which brings Capmare's #10256 (one texture for the dynamic-resolution variants of an image table surface) and nikhilpanchal1's #10472 (image memory suballocation) ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41778619158), [every `agc` test](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41778644620)). - **The conflict:** one, at the top of `StorageTexture::markLayersPending` in `Texture.cpp`, where #10256 records the image's layout write and this PR notes the guest range as GPU-pending. The two are independent, and the merge keeps both, `main`'s first. This PR's diff over `main` is unchanged. - **×10:** `agc_draw_descriptors` and every test matching `^agc_driver_table_index`, `^agc_driver_lookup_log`, `^agc_driver_village`, `^agc_driver_resource_cache`, `^agc_driver_sampled_cache`, `^agc_driver_image_table`, `^agc_driver_image_memory` or `^agc_image_memory`, which takes in this PR's tests, #10256's `agc_driver_image_table_variants` and #10472's image-memory tests. Linux: 38 run, 38 pass, 0 skip, 0 fail. Windows: 38 run, 4 pass, 34 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 301 and 325 tests on Linux and 331 and 343 on Windows, with 0 failed. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **Every `agc` test, once:** Linux: 1,319 run, 1,233 pass, 85 skip, 1 fail. Windows: 1,356 run, 405 pass, 951 skip (no Vulkan device), 0 fail. The one failure is `agc_driver_pipeline_journal`'s 120-second timeout (`769/1319 Test #1398: agc_driver_pipeline_journal ***Timeout 120.05 sec`). It is `main`'s own cold run, near the limit: `main` 086c0686c8 times out the same way under `ctest -V` ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41736700046)). - **TechLevelZero's GPU bots at 80ea80ed5e**, each with `VK_LAYER_KHRONOS_validation`: - **NVIDIA RTX 2000 Ada Generation** ([report](https://github.com/boykopovar/AnyPS5/pull/12745#issuecomment-6625922641)): driver 595.99.02, this head merged onto `main` 5b1d381, 2,892 of 3,883 tests selected. 2,836 passed, 6 failed (none new: 3 also fail on `main`, 3 unstable on `main`), 50 skipped. No new validation IDs over 979 GPU tests. This PR's `agc_driver_table_index_validation`, `agc_driver_lookup_log_fits_build`, `agc_draw_descriptors` and four resource-cache tests (`agc_driver_resource_cache_collect_refusals`, `_collect_refusals_index`, `_pending_fail_count` and `_pending_fail_count_index`) passed. `agc_driver_village_draw_cost` wasn't in the selection. - **AMD Radeon RX 6300 (RADV NAVI24, Mesa 25.2.8)** ([report](https://github.com/boykopovar/AnyPS5/pull/12745#issuecomment-6626098833)): this head merged onto `main` b8efa62, 2,885 of 3,878 tests selected. 2,817 passed, 9 failed (none new: 8 also fail on `main`, 1 unstable on `main`), 59 skipped. No new validation IDs over 1,031 GPU tests. This PR's three added resource-cache registrations passed. - **11af6efcf0, a merge of `main` b11c7bf84f,** which brings #13858 ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41801647695), [every `agc` test](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41801673120)). - **The conflict:** one, at the end of `PrepareDrawBindings` in `ShaderResources.cpp`. #13858 moves the descriptor-set writes into a new `writeDrawSets`, and this PR keeps the bindings when no snapshot is selected but a texture was rebound (`selected.empty() && !rebound`). The merge takes #13858's split and keeps this PR's condition on the early return. This PR's diff over `main` is unchanged. - **×10:** the set above, with #13858's `^agc_driver_address_draw_space_reuse` and `^agc_driver_bda` tests added. Linux: 50 run, 50 pass, 0 skip, 0 fail. Windows: 50 run, 5 pass, 45 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 303 and 327 tests on Linux and 334 and 345 on Windows, with 0 failed. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **Every `agc` test, once:** Linux: 1,331 run, 1,245 pass, 85 skip, 1 fail. Windows: 1,370 run, 407 pass, 963 skip (no Vulkan device), 0 fail. The one failure is again `agc_driver_pipeline_journal`'s 120-second timeout (`776/1331 Test #1403: agc_driver_pipeline_journal ***Timeout 120.06 sec`), `main`'s own cold run. - **TechLevelZero's NVIDIA GPU test at 11af6efcf0** ([report](https://github.com/boykopovar/AnyPS5/pull/12745#issuecomment-6633261022)), with `VK_LAYER_KHRONOS_validation`: driver 595.99.02, this head merged onto `main` b11c7bf, 2,907 of 3,894 tests selected. 2,851 passed, 7 failed (none new: 3 also fail on `main`, 4 unstable on `main`), 49 skipped. No new validation IDs over 986 GPU tests. This PR's `agc_driver_lookup_log_fits_build`, `agc_draw_descriptors` and four resource-cache tests (`agc_driver_resource_cache_collect_refusals`, `_collect_refusals_index`, `_pending_fail_count` and `_pending_fail_count_index`) passed. `agc_driver_table_index_validation` and `agc_driver_village_draw_cost` weren't in the selection. - **fa7e8e3dfd, a merge of `main` b611e634f7** ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41909249974), [every `agc` test](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41909420658)), which brings oneandonlydean's #14838 (the carry of #9012: template audits only after the host import set changed). - **The conflict:** one, in `docs/dev/ENVIRONMENT.md`, where this PR's `APS5_TABLE_INDEX` and `APS5_TABLE_INDEX_BREAK` rows sit beside #14838's new `APS5_TEMPLATE_AUDIT_ALWAYS` and `APS5_TEMPLATE_AUDIT_BUDGET` rows and its reworded `APS5_TEMPLATE_AUDIT_MS` row. The merge keeps all five, in name order. The code merged without conflicts, `ShaderResources.cpp` included, which #14838, #15682, #15741 and #15783 changed. This PR's diff over `main` is unchanged. - **×10:** the same set as at 11af6efcf0. Linux: 51 run, 51 pass, 0 skip, 0 fail. Windows: 51 run, 5 pass, 46 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 303 and 329 tests on Linux and 335 and 360 on Windows, with 0 failed. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **Every `agc` test, once:** Linux: 1,337 run, 1,250 pass, 85 skip, 2 fail. Windows: 1,376 run, 411 pass, 965 skip (no Vulkan device), 0 fail. Both failures are `main`'s: - `agc_driver_image_gather_volume` ("the vertex shader was not emitted in the device's module form") fails the same way in `main`'s own `linux` check on 638187daec, the #15855 merge ([job](https://github.com/boykopovar/AnyPS5/actions/runs/41906999149/job/126869200694)). JJenkx's #15875, merged after b611e634f7, updates the test for the specialized vertex form #14265 emits. - `agc_driver_pipeline_journal`'s 120-second timeout (`778/1337 Test #1429: agc_driver_pipeline_journal ***Timeout 120.11 sec`), `main`'s own cold run. - **TechLevelZero's AMD GPU test at 11af6efcf0** ([report](https://github.com/boykopovar/AnyPS5/pull/12745#issuecomment-6637406740)), with `VK_LAYER_KHRONOS_validation`: AMD Radeon RX 6300 (RADV NAVI24, Mesa 25.2.8), this head merged onto `main` b11c7bf, 2,907 of 3,894 tests selected. 2,838 passed, 9 failed (none new: 8 also fail on `main`, 1 unstable on `main`), 60 skipped. No new validation IDs over 986 GPU tests. As in the NVIDIA run, this PR's `agc_driver_lookup_log_fits_build`, `agc_draw_descriptors` and four resource-cache tests passed, and `agc_driver_table_index_validation` and `agc_driver_village_draw_cost` weren't in the selection.

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 (merge order: before #12921; both change Graphics/src/ShaderResources.cpp and conflict there, and #12921 takes the second merge with the test-only update on test/untracked-proof-index-on-12921)
  • Fixes: none
  • Unblocks: none
  • GPUs tested: NVIDIA GeForce RTX 3070 Laptop GPU (617.42), Windows 10.0.26300; lavapipe (llvmpipe, LLVM 20.1.2, Mesa 25.2.8), Ubuntu 24.04; AMD Radeon RX 9070 XT, RDNA 4 (tests, by @bunbeans2-arch); NVIDIA RTX 2000 Ada Generation (driver 595.99.02) and AMD Radeon RX 6300 (RADV NAVI24, Mesa 25.2.8), Ubuntu 26.04.1 (tests, TechLevelZero's GPU bots)
  • AI-assisted: yes

Related:

  • #14838, oneandonlydean's carry of #9012, is on main and in this branch since fa7e8e3dfd. It composes with the index's import source: its audit runs only after the host import set changes, unless APS5_TEMPLATE_AUDIT_ALWAYS is set, so while imports hold, the index has no periodic full walk.
  • #9508: with APS5_GPU_HEAP, the index's in-place re-bind must also refresh a heap stage's slots.
  • #10894: its per-use texture gate must also gate the index's proof, or per-use elements go on the index's per-element list.
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5063881359 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12745). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-29T07:10:08Z. --- ### What A cached draw over an image table proves every sampled texture on every Revalidate: one write-watch collect, one depth-plane flush and one generation compare per element. So the proof grows with the table. On `main`, the Village harness spends 1,607 µs of lookup per draw at 4,096 entries, 1,288 µs of it in Revalidate. With `APS5_TABLE_INDEX=1`, the build subscribes its watched textures and watched T# table spans to a write index over 64 KiB blocks. - **Writers bump the subscriptions over the blocks they touch:** tracker stamps (CPU and driver), recorded storage writes, unwatch, allocation changes, a texture leaving the cache, and a host import over a texture's range. - **Revalidate sweeps the subscription's spans once** and proves only: - the bumped elements; - the depth, DCC and storage-backed elements; - the elements outside the write watch. - **A bumped draw-build texture is looked up again**, from the same first-layer words the build uses, and re-bound without a rebuild. - **Unchanged:** the template audit's periodic full walk, the imported-buffer proof, the epoch proofs of `APS5_DRAW_PIPELINE`, and everything else. - **With the switch on,** the per-range pending-writer loops are skipped when main's `AnyPendingCpuWrites` (#8895) finds no writer. - The index's lock is an `AgcDriver::Mutex`, as `GuestMemory`'s are. - **Off (the default),** the only added work is one relaxed load per stored tracker stamp. **Village harness** (lavapipe, 850 draws per frame, the whole bindless table bound per draw, 256×256). Each figure is the median of 3 runs on one machine, with main → index → off in each round. Lookup is find + Revalidate per draw, on the draw pipeline's worker; wall is the harness's frame time per draw. | entries / writes per frame | lookup µs: main | index | wall µs: main | index | |---|---|---|---|---| | 1,024 / 0% | 271.2 | 102.4 | 429.7 | 292.0 | | 1,024 / 2% | 288.6 | 101.3 | 449.0 | 282.4 | | 4,096 / 0% | 1,606.6 | 365.1 | 2,202.7 | 940.5 | | 4,096 / 2% | 1,622.4 | 393.8 | 2,241.6 | 988.2 | **With the index off on the same binary,** lookup is −4.3% to +4.7% of main and wall −1.4% to +5.7%. That's inside main's own spread between runs (6–16%), except for one off run at 4,096 / 2%. Two tests change with it: - `agc_draw_descriptors`' first-layer case now asserts the proof path the switch implies. It also syncs its recorder when it leaves early, since a failed assertion crashed it. - `agc_driver_lookup_log_fits_build`, which measures the lookup log after a full walk, pins the switch off. ### Resident Evil Village (PPSA01556) **Resident Evil Village (PPSA01556), static menu.** Two blocks of four unprofiled runs: B A A B, then A B B A. - **The arms:** A is `main` 319621ba2e plus #11580 and #10304, with a local `scePadOpen` answer for port types 3 and 4 (commit 103015a9ca). B is the same tree plus this PR's four commits (e079ecb20e, the same added and removed lines as this head; commit e23a2e325e), run with `APS5_TABLE_INDEX=1`. - **The env, in both:** `APS5_LAZY_SHADER_PREPARE=1 APS5_NO_GPL=1 APS5_HOST_IMPORT_MIB=6400 APS5_TRACE_SUMMARY_EVERY=10`, with scripted pad input. B adds `APS5_TABLE_INDEX=1`; nothing else differs. - **The machine:** an NVIDIA GeForce RTX 3070 Laptop GPU (617.42), Ryzen 9 5900HS, Windows 10.0.26300, 3840x2160. The shader cache was warm and the key the same in both arms. GPU clocks were not held: it sat at P0 97-99 % at ~1,375-1,405 MHz, with low utilization, since the menu is CPU-bound. - **The figure:** presents per second over menu +5..15 minutes. | block | run | fps | frame p50 / p90 (s) | |---|---|---|---| | 1 | B | 0.838 | 1.17 / 1.35 | | 1 | A | 0.730 | 1.37 / 1.55 | | 1 | A | 0.574 | 1.57 / 1.93 | | 1 | B | 0.769 | 1.27 / 1.55 | | 2 | A | 0.570 | 1.63 / 1.96 | | 2 | B | 0.841 | 1.17 / 1.37 | | 2 | B | 0.680 | 1.38 / 1.82 | | 2 | A | 0.628 | 1.57 / 1.85 | - **Means:** B 0.782 and A 0.626 over the eight runs, **+25 %**. B is above A in all four same-phase pairs: +14.8 %, +34.0 %, +47.5 % and +8.3 %. - **By block:** +23.2 % in the first and +26.9 % in the second. - **Spreads:** A drifted slower between the blocks, from 0.73 to 0.57-0.63. Read as max-to-min over the mean, A's spread in the first block is 23.9 %, just above that block's +23.2 %. Every B run is still above every A run in that block. - **One outlier:** the second A run's first 2-minute step ran at 0.38 fps, for no cause the logs show. Without that step, the first block reads +16.9 % against an A spread of 14.9 %. - **Phases, B against A, median ms per frame:** `Driver.Packet` is 10-27 % lower (3,303, 3,643, 3,343 and 3,922 against 3,847, 4,525, 4,712 and 4,466), and so is `Graphics.Draw` (662-780 against 820-979). Private memory is the same in both, 14.0-14.3 GB at menu +15. There were no aborts and no failed host imports. - **Larger than expected:** the gain is well above the ~4-6 % I expected from the mechanism. At this menu, the per-element fast proofs the index replaces take about 0.6 s per 10 s. These unprofiled runs don't show the cause directly, and no claim is made beyond them. A profiled boot of each tree shows where much of it comes from. - **The setup:** `APS5_PROFILE_DRAW=1`, menu +10..15, 31 ten-second `[rescache]` blocks, one boot per tree, so this isn't a pair. - **Revalidate time per call** fell from 0.48 ms on A (71,998 ms over 148,733 calls) to 0.17 ms with the index (35,106 ms over 209,821 calls). - **Full walks:** on A, 15,396 of the window's full walks followed a fast proof that failed at its collect check. With the index there were none, since its proof doesn't collect per element. The template audit's full walks remain: 41,211 on A, and 60,593 with the index, which ran more calls. - **The index's own counters:** 209,821 proofs in 7,465 ms; 205,903 accepted (98.1 %), 0 partial, 3,918 fallbacks, 0 bumps from any source, 0 failed sweeps. - **Overlap with #12921:** it removes the same collect-check failures by another route, keeping a proof across collect epochs. On this menu the two PRs address the same full walks. - **Together** (one block, B A A B, unprofiled, menu +5..15): - **B:** fork `diag/village-combined-on-103015a9ca` c9cff8c839, the A tree above plus #12478, #12745 and #12921, run with `APS5_TABLE_INDEX=1`. - **fps:** B ran 0.711 and 0.778 against A's 0.497 and 0.495, **+50.0 %**. - B led both same-phase pairs, by +42.8 % and +57.1 %. - B's slower run is 42.9 % above A's faster one. - **`Driver.Packet` per frame:** 3,822 and 3,568 ms against 5,187 and 5,301 ms. **`memory_wait`:** 2,199 and 2,032 ms against 3,090 and 3,167 ms. - **Read the ratio, not the fps:** A ran slower in this block than in the blocks above, 0.50 against 0.57-0.73. - **The total is below the two gains added** (#12745's +25 % and #12921's +29.9 %), although B also carries #12478, because both PRs remove the same full walks. - **Tests with both PRs in and `APS5_TABLE_INDEX=1`:** - **The failure:** two of #12921's path assertions, in `agc_untracked_revalidate` and `agc_untracked_hint_proof`, expect a full walk after a collect epoch. The index proves those draws by looking the elements up again, which re-reads the memory, so the content still follows every store. - **Unaffected:** with the switch off (the default), nothing fails. - **The fix:** a test-only update for whichever PR merges second is ready, as one commit with the same patch-id on two branches: - [`test/untracked-proof-index-on-12745`](https://github.com/EagleBearerYS/AnyPS5/commits/test/untracked-proof-index-on-12745), for #12745 if #12921 lands first; - [`test/untracked-proof-index-on-12921`](https://github.com/EagleBearerYS/AnyPS5/commits/test/untracked-proof-index-on-12921), for #12921 if #12745 lands first. - **What it accepts:** a fast proof only when the image versions moved the way guest memory did. - **Red/green** (Linux, lavapipe), [result](https://github.com/EagleBearerYS/AnyPS5/blob/cloud-results/results/cloud-2/BF-285.md): - both tests fail 10 of 10 on the merge without it, and pass 10 of 10 with it, off and on; - `ctest -R '^agc'` gives 1,048 passed, 73 skipped and 0 failed in both modes. <details><summary>Summary lines at menu +10 of the first block's A and B runs (main 103015a9ca, this change e23a2e325e)</summary> ```jsonl {"commit":"103015a9ca66","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"6400","APS5_LAZY_SHADER_PREPARE":"1","APS5_NO_GPL":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_DIR":"<path>","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 3070 Laptop GPU","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"AMD Ryzen 9 5900HS with Radeon Graphics","cpu_threads":16,"memory_mib":15776,"title_id":"PPSA01556","title":"Resident Evil Village","content_version":"01.210.000","resolution":"3840x2160","window":{"spec":"summary_every 10","first_present":3606,"ms":11000.454},"interval_start_s":1034.493,"interval_end_s":1045.494,"presents":8,"frame_ms":{"p50":1373.495,"p90":1562.555,"p99":1562.555,"max":1562.555},"gpu_busy_ms_per_present":238.978,"worker_busy_pct":{"queue worker 0x0":99.569,"queue worker 0x38":0.065,"queue worker 0x20":88.370,"queue worker 0x28":94.164},"top_phases_ms_per_frame":{"Driver.Packet":3875.450,"Driver.Packet.memory_wait":2227.222,"Driver.Packet.draw":989.142,"Driver.Draw":988.349,"Graphics.Draw":831.033,"Graphics.Draw.draw_and_resource_release":812.519,"Driver.Packet.dispatch":620.045,"Driver.Dispatch":566.327},"trace_dropped":false,"trace":""} {"commit":"e23a2e325e57","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"6400","APS5_LAZY_SHADER_PREPARE":"1","APS5_NO_GPL":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TABLE_INDEX":"1","APS5_TRACE_DIR":"<path>","APS5_TRACE_SUMMARY_EVERY":"10"},"gpu":"NVIDIA GeForce RTX 3070 Laptop GPU","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"AMD Ryzen 9 5900HS with Radeon Graphics","cpu_threads":16,"memory_mib":15776,"title_id":"PPSA01556","title":"Resident Evil Village","content_version":"01.210.000","resolution":"3840x2160","window":{"spec":"summary_every 10","first_present":1778,"ms":10373.574},"interval_start_s":835.524,"interval_end_s":845.898,"presents":8,"frame_ms":{"p50":1309.928,"p90":1551.612,"p99":1551.612,"max":1551.612},"gpu_busy_ms_per_present":241.686,"worker_busy_pct":{"queue worker 0x0":99.548,"queue worker 0x38":0.076,"queue worker 0x20":88.449,"queue worker 0x28":93.505},"top_phases_ms_per_frame":{"Driver.Packet":3645.606,"Driver.Packet.memory_wait":2102.811,"Driver.Packet.draw":935.046,"Driver.Draw":934.113,"Graphics.Draw":746.266,"Graphics.Draw.draw_and_resource_release":726.113,"Driver.Packet.dispatch":554.988,"Driver.Dispatch":491.246},"trace_dropped":false,"trace":""} ``` </details> - **Traces:** one 30 s capture of each arm, menu +10.5 min, with APS5_TRACE_SECONDS=960:30 and no other trace or profile switch: - A: [aps5-trace-103015a9ca66-33724.json.gz](https://github.com/EagleBearerYS/AnyPS5/releases/download/traces-12745/aps5-trace-103015a9ca66-33724.json.gz), 2,419,643 bytes, sha256 `16eab88b27f0843a5aa46433a83dbb69cc1fd960ff2a521acade7d20b52fb809`; - B: [aps5-trace-e23a2e325e57-31916.json.gz](https://github.com/EagleBearerYS/AnyPS5/releases/download/traces-12745/aps5-trace-e23a2e325e57-31916.json.gz), 2,563,423 bytes, sha256 `e6b2ebbe1cb5d78ec919fe62a62583d9ef1f35f141046c5332d9683a72ace0ec`. - In these single windows the two arms are within each other's noise (frame p50 1.50 s against 1.52 s). The speed comparison is the eight unprofiled runs above, not these. - GPU clocks weren't held: P0 97-98 %, mean 1,413-1,425 MHz. <details><summary>trace_digest.py of A (103015a9ca)</summary> **seconds 960:30** from present 2901: 21 presents, frame p50 1497.6 / p90 1783.2 / p99 1903.7 / max 1903.7 ms, GPU busy 230.6 ms per present NVIDIA GeForce RTX 3070 Laptop GPU, NVIDIA 617.42, Windows 10.0.26300, 3840x2160, commit 103015a9ca66, dropped: no ```json {"commit":"103015a9ca66","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"6400","APS5_LAZY_SHADER_PREPARE":"1","APS5_NO_GPL":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TRACE_SECONDS":"960:30"},"gpu":"NVIDIA GeForce RTX 3070 Laptop GPU","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"AMD Ryzen 9 5900HS with Radeon Graphics","cpu_threads":16,"memory_mib":15776,"title_id":"PPSA01556","title":"Resident Evil Village","content_version":"01.210.000","resolution":"3840x2160","window":{"spec":"seconds 960:30","first_present":2901,"ms":31778.408},"presents":21,"frame_ms":{"p50":1497.603,"p90":1783.23,"p99":1903.699,"max":1903.699},"gpu_busy_ms_per_present":230.559,"worker_busy_pct":{"queue worker 0x0":99.554,"queue worker 0x38":0.057,"queue worker 0x28":93.25,"queue worker 0x20":89.065},"top_phases_ms_per_frame":{"Driver.Packet":4261.674,"Driver.Packet.memory_wait":2505.215,"Driver.Packet.draw":1156.599,"Driver.Draw":1155.503,"Graphics.Draw":928.353,"Graphics.Draw.draw_and_resource_release":907.06,"Driver.Packet.dispatch":560.368,"Driver.Dispatch":510.148},"trace_dropped":false,"trace":"aps5-trace-103015a9ca66-33724.json.gz"} ``` **Slowest frames** (largest slices inside each, inclusive) - present 2907: 1903.7 ms at 9350 ms: Driver.WorkerWait (queue worker 0x38) 1903.0, Driver.WorkerWait.dequeue_order (queue worker 0x38) 1897.0, Driver.Packet (queue worker 0x0) 1885.3, Driver.Packet (queue worker 0x28) 1785.2 - present 2908: 1831.4 ms at 11253 ms: Driver.WorkerWait (queue worker 0x38) 1828.9, Driver.WorkerWait.dequeue_order (queue worker 0x38) 1818.7, Driver.Packet (queue worker 0x0) 1812.5, Driver.Packet (queue worker 0x28) 1746.7 - present 2921: 1783.2 ms at 29995 ms: Driver.Packet (queue worker 0x0) 1764.7, Driver.Packet (queue worker 0x28) 1682.4, Driver.Packet.memory_wait (queue worker 0x28) 1663.5, Driver.Packet (queue worker 0x20) 1600.6 - present 2901: 1750.5 ms at 0 ms: Driver.Packet (queue worker 0x0) 1728.6, Driver.Packet (queue worker 0x20) 1566.8, Driver.Packet (queue worker 0x28) 1505.2, Driver.Packet.memory_wait (queue worker 0x28) 1486.6 - present 2904: 1743.3 ms at 4870 ms: Driver.WorkerWait (queue worker 0x38) 1742.3, Driver.WorkerWait.dequeue_order (queue worker 0x38) 1736.4, Driver.Packet (queue worker 0x0) 1724.7, Driver.Packet (queue worker 0x28) 1658.1 **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | queue worker 0x0 | 1057.9 (70 %) | 442.5 (29 %) | 12.9 | 90.7 | Driver.Packet 1496.1, Vulkan.Dispatch 0.0 | | draw committer | 660.4 (44 %) | 40.9 (3 %) | 811.9 | 4.9 | Graphics.Draw 675.0, Recorder.Submit 2.1 | | presenter | 3.3 (0 %) | 0.3 (0 %) | 1509.7 | 0.1 | VideoOut.Flip 3.2, Driver.Present 0.4 | | queue worker 0x38 | 0.7 (0 %) | 1344.4 (89 %) | 168.1 | 0.9 | Driver.Packet 0.7, Driver.EndSubmission 0.1 | | queue worker 0x28 | 18.2 (1 %) | 1483.2 (98 %) | 11.9 | 0.2 | Driver.Packet 1410.6, Driver.EndSubmission 0.5 | | queue worker 0x20 | 129.1 (9 %) | 1374.5 (91 %) | 9.7 | 4.9 | Driver.Packet 1343.2, Driver.EndSubmission 4.0 | | gpu | 242.4 (16 %) | 0.0 (0 %) | 1270.9 | 0.0 | batch 242.4 | **Largest slices** (ms per frame, inclusive, all threads): Driver.Packet 4250.6, Driver.Packet.memory_wait 2505.1, Driver.WorkerWait 1594.9, Driver.WorkerWait.dequeue_order 1338.7, Driver.Packet.draw 1155.6, Driver.Draw 1154.5, Graphics.Draw 927.6, Graphics.Draw.draw_and_resource_release 906.3, Driver.Packet.dispatch 559.1, Driver.Dispatch 508.7 **Longest waits** - Driver.WorkerWait (queue worker 0x38) 1903.8 ms at 9351 ms, present 2907 - Driver.WorkerWait (queue worker 0x38) 1827.9 ms at 11257 ms, present 2908 - Driver.WorkerWait (queue worker 0x38) 1742.4 ms at 4872 ms, present 2904 - Driver.WorkerWait (queue worker 0x38) 1707.2 ms at 28288 ms, present 2920 - Driver.WorkerWait (queue worker 0x38) 1652.5 ms at 26635 ms, present 2919 - Driver.Packet.memory_wait (queue worker 0x28) 1639.3 ms at 9478 ms, present 2907 - Driver.Packet.memory_wait (queue worker 0x28) 1577.3 ms at 11410 ms, present 2908 - Driver.WorkerWait (queue worker 0x38) 1564.9 ms at 1753 ms, present 2902 - Driver.WorkerWait (queue worker 0x38) 1552.0 ms at 3319 ms, present 2903 - Driver.WorkerWait (queue worker 0x38) 1542.0 ms at 13086 ms, present 2909 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 427: 41.7 ms at 11426 ms, present 2908: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 3.0, Driver.Packet.dispatch (queue worker 0x0) 2.6, Driver.Dispatch (queue worker 0x0) 2.5, Vulkan.DispatchRecipe (queue worker 0x0) 1.3 - batch 1139: 41.4 ms at 28443 ms, present 2920: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 2.2, Driver.Packet.dispatch (queue worker 0x0) 2.0, Driver.Dispatch (queue worker 0x0) 1.9, Vulkan.DispatchRecipe (queue worker 0x0) 0.4 - batch 897: 41.4 ms at 22580 ms, present 2916: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.8, Driver.Packet.dispatch (queue worker 0x0) 1.5, Driver.Dispatch (queue worker 0x0) 1.5, Vulkan.DispatchRecipe (queue worker 0x0) 0.7 - batch 779: 41.3 ms at 19993 ms, present 2914: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 0.6, Driver.Packet.dispatch (queue worker 0x0) 0.4, Driver.Dispatch (queue worker 0x0) 0.4, Vulkan.DispatchRecipe (queue worker 0x0) 0.3 - batch 955: 41.3 ms at 24025 ms, present 2917: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 0.2, Driver.Packet.flush_between_packets (queue worker 0x0) 0.1, Driver.Packet.dispatch (queue worker 0x0) 0.1, Recorder.Submit (queue worker 0x0) 0.1 </details> <details><summary>trace_digest.py of B (e23a2e325e, APS5_TABLE_INDEX=1)</summary> **seconds 960:30** from present 3839: 20 presents, frame p50 1518.3 / p90 2022.3 / p99 2080.3 / max 2080.3 ms, GPU busy 241.8 ms per present NVIDIA GeForce RTX 3070 Laptop GPU, NVIDIA 617.42, Windows 10.0.26300, 3840x2160, commit e23a2e325e57, dropped: no ```json {"commit":"e23a2e325e57","dirty":false,"env":{"APS5_HOST_IMPORT_MIB":"6400","APS5_LAZY_SHADER_PREPARE":"1","APS5_NO_GPL":"1","APS5_PAD_INPUT_FILE":"<path>","APS5_TABLE_INDEX":"1","APS5_TRACE_SECONDS":"960:30"},"gpu":"NVIDIA GeForce RTX 3070 Laptop GPU","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","cpu":"AMD Ryzen 9 5900HS with Radeon Graphics","cpu_threads":16,"memory_mib":15776,"title_id":"PPSA01556","title":"Resident Evil Village","content_version":"01.210.000","resolution":"3840x2160","window":{"spec":"seconds 960:30","first_present":3839,"ms":30625.661},"presents":20,"frame_ms":{"p50":1518.318,"p90":2022.26,"p99":2080.313,"max":2080.313},"gpu_busy_ms_per_present":241.793,"worker_busy_pct":{"queue worker 0x0":99.506,"queue worker 0x38":0.138,"queue worker 0x28":93.491,"queue worker 0x20":89.008},"top_phases_ms_per_frame":{"Driver.Packet":4317.648,"Driver.Packet.memory_wait":2512.91,"Driver.Packet.draw":1135.088,"Driver.Draw":1133.775,"Graphics.Draw":856.639,"Graphics.Draw.draw_and_resource_release":832.467,"Driver.Packet.dispatch":624.885,"Driver.Dispatch":563.075},"trace_dropped":false,"trace":"aps5-trace-e23a2e325e57-31916.json.gz"} ``` **Slowest frames** (largest slices inside each, inclusive) - present 3849: 2080.3 ms at 14750 ms: Driver.WorkerWait (queue worker 0x38) 2075.8, Driver.WorkerWait.dequeue_order (queue worker 0x38) 2073.1, Driver.Packet (queue worker 0x0) 2059.2, Driver.Packet (queue worker 0x28) 1973.0 - present 3848: 2022.3 ms at 12728 ms: Driver.WorkerWait (queue worker 0x38) 2021.2, Driver.WorkerWait.dequeue_order (queue worker 0x38) 2015.5, Driver.Packet (queue worker 0x0) 2003.2, Driver.Packet (queue worker 0x28) 1901.9 - present 3853: 2000.9 ms at 21358 ms: Driver.WorkerWait (queue worker 0x38) 1999.7, Driver.WorkerWait.dequeue_order (queue worker 0x38) 1993.3, Driver.Packet (queue worker 0x0) 1980.7, Driver.Packet (queue worker 0x28) 1914.2 - present 3840: 1693.7 ms at 1399 ms: Driver.WorkerWait (queue worker 0x38) 1690.5, Driver.WorkerWait.dequeue_order (queue worker 0x38) 1685.8, Driver.Packet (queue worker 0x0) 1674.4, Driver.Packet (queue worker 0x28) 1608.4 - present 3856: 1656.4 ms at 25966 ms: Driver.WorkerWait (queue worker 0x38) 1653.7, Driver.WorkerWait.dequeue_order (queue worker 0x38) 1649.0, Driver.Packet (queue worker 0x0) 1636.1, Driver.Packet (queue worker 0x28) 1544.4 **Threads** (ms per frame) | thread | busy | wait | untraced | in slices < 20 us | largest | |---|---|---|---|---|---| | queue worker 0x0 | 1099.9 (72 %) | 417.7 (27 %) | 13.7 | 88.1 | Driver.Packet 1513.0, Driver.EndSubmission 0.0 | | draw committer | 678.4 (44 %) | 51.2 (3 %) | 801.6 | 4.2 | Graphics.Draw 692.0, Recorder.Submit 2.6 | | presenter | 3.3 (0 %) | 0.4 (0 %) | 1527.5 | 0.1 | VideoOut.Flip 3.4, Driver.Present 0.3 | | queue worker 0x38 | 1.6 (0 %) | 1388.0 (91 %) | 141.6 | 0.7 | Driver.Packet 1.7, Driver.EndSubmission 0.3 | | queue worker 0x28 | 19.3 (1 %) | 1499.1 (98 %) | 12.9 | 0.2 | Driver.Packet 1431.0, Driver.EndSubmission 0.5 | | queue worker 0x20 | 149.8 (10 %) | 1371.0 (90 %) | 10.5 | 4.9 | Driver.Packet 1360.4, Driver.EndSubmission 1.8 | | gpu | 241.8 (16 %) | 0.0 (0 %) | 1289.5 | 0.0 | batch 241.8 | **Largest slices** (ms per frame, inclusive, all threads): Driver.Packet 4306.1, Driver.Packet.memory_wait 2512.7, Driver.WorkerWait 1637.1, Driver.WorkerWait.dequeue_order 1382.7, Driver.Packet.draw 1134.2, Driver.Draw 1132.9, Graphics.Draw 856.1, Graphics.Draw.draw_and_resource_release 831.8, Driver.Packet.dispatch 624.3, Driver.Dispatch 562.4 **Longest waits** - Driver.WorkerWait (queue worker 0x38) 2075.6 ms at 14755 ms, present 3849 - Driver.WorkerWait (queue worker 0x38) 2021.3 ms at 12729 ms, present 3848 - Driver.WorkerWait (queue worker 0x38) 1999.9 ms at 21359 ms, present 3853 - Driver.Packet.memory_wait (queue worker 0x28) 1764.3 ms at 12849 ms, present 3848 - Driver.Packet.memory_wait (queue worker 0x28) 1720.7 ms at 14986 ms, present 3849 - Driver.WorkerWait (queue worker 0x38) 1691.0 ms at 1403 ms, present 3840 - Driver.Packet.memory_wait (queue worker 0x28) 1685.3 ms at 21570 ms, present 3853 - Driver.WorkerWait (queue worker 0x38) 1653.7 ms at 25970 ms, present 3856 - Driver.WorkerWait (queue worker 0x38) 1606.4 ms at 16833 ms, present 3850 - Driver.WorkerWait (queue worker 0x38) 1574.3 ms at 19784 ms, present 3852 **Largest GPU batches** (GPU ranges inside, and the CPU slices that recorded each, inclusive) - batch 685: 41.6 ms at 17021 ms, present 3850: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 3.0, Driver.Packet.dispatch (queue worker 0x0) 2.9, Driver.Dispatch (queue worker 0x0) 2.9, Vulkan.DispatchRecipe (queue worker 0x0) 0.3 - batch 556: 41.5 ms at 12861 ms, present 3848: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 2.2, Driver.Packet.dispatch (queue worker 0x0) 1.9, Driver.Dispatch (queue worker 0x0) 1.9, Vulkan.DispatchRecipe (queue worker 0x0) 0.7 - batch 377: 41.5 ms at 9082 ms, present 3845: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.3, Driver.Packet.dispatch (queue worker 0x0) 1.1, Driver.Dispatch (queue worker 0x0) 1.1, Vulkan.DispatchRecipe (queue worker 0x0) 0.2 - batch 71: 41.5 ms at 1559 ms, present 3840: GPU no ranges; recorded by Driver.Packet (queue worker 0x0) 1.6, Driver.Packet.dispatch (queue worker 0x0) 1.4, Driver.Dispatch (queue worker 0x0) 1.2, Vulkan.DispatchRecipe (queue worker 0x0) 0.1 - batch 622: 41.4 ms at 15011 ms, present 3849: GPU no ranges; recorded by Vulkan.Dispatch.shader_resources (queue worker 0x0) 5.6, Resources.Complete (queue worker 0x0) 5.5, Driver.Packet (queue worker 0x0) 4.0, Driver.Packet.dispatch (queue worker 0x0) 3.7 </details> ### Tested This head, cda1b61077, merges `main` edf6804cf5 into a1345c6917 with no conflicts and no adaptation; the branch's four commits are unchanged. Runs that don't name cda1b61077 are on a1345c6917, on `main` 85a4d7f8c8. - **On cda1b61077:** - **Writer paths:** every path `main` added or changed since 85a4d7f8c8 still reaches a bump, fails the sweep, or is proved per element, so there's no new red case. - **Linux** (lavapipe, CI's flags), off and on: `ctest -R '^agc'` ran 1,118 tests: 1,044 passed, 73 skipped, 1 failed. The failure is `agc_driver_address_passes`: llvmpipe's JIT emits a GFNI instruction the build machine's CPU lacks, and it fails the same on `main` there. The three index tests passed 10 of 10 each, off and on. Every source's case goes red with its own source dropped. - **The harness at 4,096 entries:** lookup goes from 2,595 to 447 µs per draw at 0 % writes, and from 2,734 to 462 at 2 %. With the switch off, every median is inside `main`'s run-to-run range. - **GitHub's runners** ([run 40870995161](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40870995161)): the branch's driver tests plus `^agc_driver_table_index`, `^agc_driver_lookup_log` and `^agc_driver_village`, 10 times, 0 failed. - Linux: 77 run, 70 passed, 7 skipped. - Windows: 93 run, 4 passed, 89 skipped, since the runner has no Vulkan device. - The libc and libkernel suites, run with `APS5_SKIP_TIMING_TESTS=1`, pass: 191 and 291 tests on Linux, 220 and 314 on Windows. - **GitHub's runners:** - [run 40200070500](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40200070500), the branch's tests and the draw, descriptor and texture tests around them, 10 times, with no failures: - Linux: 68 tests, 7 of them skipped. - Windows: 84 tests, 81 of them skipped, since the runner has no Vulkan device. - [run 40201781277](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40201781277), under the Khronos validation layer on Linux. The layer loaded on both sides, and the only VUID on `main` and on this branch is `VUID-VkDeviceCreateInfo-pNext-pNext`. - **Linux** (Ubuntu 24.04, gcc 13.3, lavapipe, CI's configure flags), tests as an unprivileged user: - **`agc_driver_table_index_validation`** (10 cases, one per event source plus a 2D-array case): 20 of 20. Each source's case goes red on this head with its own source dropped through `APS5_TABLE_INDEX_BREAK`. - **`agc_draw_descriptors` and `agc_driver_lookup_log_fits_build`:** 10 of 10 each, with the switch off and on. - **The image-table, resource, revalidate, template, sampled, storage and texture tests** (60): run off, on, and with `APS5_DRAW_PIPELINE=1` as well. Each run gave 59 passed and 1 skipped. The skip is `agc_storage_clear_hand_over`, because lavapipe makes no watched host import. - **Full ctest as CI runs it:** 2,265 tests, 2,168 passed, 91 skipped, 6 failed. The same with `APS5_TABLE_INDEX=1` for the whole run. The six failures in both are IPv6 socket tests, which the build machine can't run. - **Vulkan validation** (Khronos layer 1.3.275) on `main` and on this branch, off and on, with the same 18 focused tests plus the new one: no new `VUID-` errors. All three show only the layer's `VUID-VkDeviceCreateInfo-pNext-pNext`, for an extension structure the layer predates. - Not tested on a console. - **6a930fc672, a merge of `main` 673fa865f4**, which brings johandavidcm's #11550 ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40980582487)). - **The conflict:** the `[rescache] revalidate (10 s)` profile line in `ShaderResources.cpp`. #11550 extends it with the full-walk times and the refused surfaces, and this PR adds the write-index line after it. - **The resolution:** the merge keeps #11550's lines, then this PR's block, and this PR's added and removed lines are unchanged. - **×10:** `agc_draw_descriptors`, #11550's `agc_driver_resource_cache_collect_refusals`, and the `^agc_driver_table_index`, `^agc_driver_lookup_log` and `^agc_driver_village` tests, with the tests for the files the merge changes. - Linux: 79 run, 71 pass, 8 skip, 0 fail. - Windows: 95 run, 4 pass, 91 skip (no Vulkan device), 0 fail. - The libc and libkernel suites run 194 and 294 tests on Linux and 224 and 317 on Windows, with 0 failed. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **AMD Radeon RX 9070 XT (RDNA 4), by @bunbeans2-arch, at 6a930fc672** ([comment](https://github.com/boykopovar/AnyPS5/pull/12745#issuecomment-6522007651)): Windows 11 Pro 10.0.22631, driver 32.0.32015.7029 (amdvlk64), MSYS2 UCRT64 g++ 16.1.0, Release, `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1` and the Khronos validation layer (the loader inserts it in every run). The head merged onto `main` f7f03daf52, 3 runs per side: - `agc_driver_table_index_validation` passes 3 of 3, printing `passed` for array, compared, cpu, driver, import, pending, release, table and unwatch. Each run also prints `remap: skipped on Windows`, so the remap case isn't covered there. - `agc_driver_village_draw_cost` passes 3 of 3. - `agc_driver_recorder`, the `agc_recorder_*` tests and `agc_driver_lookup_log_fits_build` pass 3 of 3, as on `main`. - No `VUID-` line on either side. - **6e2e6cd6de, two commits on 6a930fc672 that fix profile counters with the switch on.** johandavidcm's `agc_driver_resource_cache_collect_refusals` test (#11550) showed that with `APS5_TABLE_INDEX=1`, a refusal was counted twice when the write index's proof fell back to the ordinary fast proof. No proof outcome changes. - **81b548fb75** counts a collect refusal, its fast-fail reason and a depth-guard refusal once. `agc_driver_resource_cache_collect_refusals_index` runs #11550's test with the index on. It failed 20 of 20 on 6a930fc672 and passed 20 of 20 with the commit ([result](https://github.com/EagleBearerYS/AnyPS5/blob/cloud-results/results/cloud-3/BF-326.md)). - **6e2e6cd6de** counts a pending fast-fail once. `agc_driver_resource_cache_pending_fail_count` and its `_index` twin check that each proof counts one foreign and one T1-eligible pending fast-fail, with the index off and on. With the index on, it failed 20 of 20 on 81b548fb75 (`pending foreign +2, snapshot +0, T1 eligible +2`) and passed 20 of 20 with the commit ([result](https://github.com/EagleBearerYS/AnyPS5/blob/cloud-results/results/cloud-5/BF-327.md)). - **Linux** (lavapipe, CI's flags, unprivileged user), on 6e2e6cd6de: `ctest -R '^agc'` ran 1,133 tests: 1,059 passed, 74 skipped, 0 failed, with the switch off and on. - On a second machine, at 81b548fb75, `agc_driver_image_sample_force_degamma` failed: llvmpipe's JIT emits an AVX-VNNI instruction under `GALLIUM_OVERRIDE_CPU_CAPS=avx` that the machine's CPU lacks. It fails the same way on 6a930fc672 there, and passes without the override. - **×10** on GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41156213493)): the tests above plus `agc_draw_descriptors` and the `^agc_driver_table_index`, `^agc_driver_lookup_log`, `^agc_driver_village`, `^agc_driver_resource_cache` and `^agc_driver_sampled_cache` tests. - Linux: 92 run, 84 pass, 8 skip, 0 fail. - Windows: 108 run, 4 pass, 104 skip (no Vulkan device), 0 fail. - The libc and libkernel suites run 194 and 294 tests on Linux and 224 and 317 on Windows, with 0 failed. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **Still counted twice:** two profile-only `[rescache]` counters, `countKeysProven` and `serialSkips`, can still count twice when the index's inner proof falls back. A follow-up fixes them. - **4922da2dec, a merge of `main` 0836dfdf4f** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41239531755)). #12862 moved `libSceAgcDriver`'s test registrations into `tests/cmake/`; the conflict in `CMakeLists.txt` is resolved with `tools/agc_test_split.py resolve`, which moves this PR's registrations into `tests/cmake/agc_driver_sampled_cache_budget_tests.cmake` (+7 −1). Nothing else conflicted. Apart from the move, this PR's diff is unchanged. With `-DBUILD_TESTING=ON`, `ctest -N` gives 3080 tests: `main`'s 3075 plus its 5 tests, each listed once. The 18 tests of this PR's verify set pass 10 runs in a row. Linux: 18 run, 18 pass, 0 skip, 0 fail. Windows: 18 run, 0 pass, 18 skip (no Vulkan device), 0 fail. Suites: libc and libkernel pass on Linux (199 and 308) and on Windows (226 and 330). The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **2537d44452 and cdcb98496e, from oneandonlydean's review** ([comment](https://github.com/boykopovar/AnyPS5/pull/12745#issuecomment-6557352221)). - **2537d44452:** `TrimSubscriptionBumps` clears an overflowed subscription's marker and history only while the subscription's generation, read under the index mutex, still equals the trimmed baseline. Otherwise the marker stays and only the bumps at or before the baseline are dropped. Before, a bump between the proof's baseline read and the trim was lost: it went unrecorded because of the overflow, and the trim cleared the marker, so the next partial proof listed no block for it. The new `overflow` case runs that sequence on a real subscription and requires the next proof to fall back. - **cdcb98496e:** `tests/cmake/agc_driver_table_index_validation_tests.cmake` appends `APS5_TABLE_INDEX=1` to the test's default registration, which already exists, so a second `add_test` would fail the configure. The test returns 77 when guest memory has no write watch, so such a machine shows a skip, not a pass. - **Red** at 4922da2dec with only the new case ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41305222690)): Linux fails with "overflow: trimming the overflowed history at the fallback's baseline forgot the unrecorded bump of block 2 after it, so the next proof would check 0 changed blocks instead of falling back". Windows skips it (no Vulkan device). - **×10 at cdcb98496e** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41305214153)): this PR's 18-test set. Linux: 18 run, 18 pass, 0 skip, 0 fail. Windows: 18 run, 0 pass, 18 skip (no Vulkan device), 0 fail, so the overflow case has run only on Linux. The libc and libkernel suites run 199 and 308 tests on Linux and 226 and 330 on Windows, with 0 failed. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **TechLevelZero's GPU bots at cdcb98496e,** each with `VK_LAYER_KHRONOS_validation`, on the tests this change can reach as `tools/select_tests.py` picks them from `main`'s build graph. Neither selection included `agc_driver_table_index_validation`, which `main` doesn't have yet. - **NVIDIA RTX 2000 Ada Generation** ([report](https://github.com/boykopovar/AnyPS5/pull/12745#issuecomment-6559168372)): driver 595.99.02, Ubuntu 26.04.1, this head merged onto `main` e6f5730, 2,537 of 3,148 tests selected. 2,488 passed, 4 failed and 45 skipped. None of the failures is new: 3 also fail on `main`, and 1 is unstable there. No new validation IDs over 936 GPU tests; 3 tests ran with the layer but aren't in `main`'s baseline, so they weren't compared. - **AMD Radeon RX 6300 (RADV NAVI24, Mesa 25.2.8)** ([report](https://github.com/boykopovar/AnyPS5/pull/12745#issuecomment-6558925551)): Ubuntu 26.04.1, this head merged onto `main` 291e02d, 2,542 of 3,155 tests selected. 2,475 passed, 13 failed and 54 skipped. None of the failures is new: 12 also fail on `main`, and 1 is unstable there. No new validation IDs over 936 GPU tests; the same 3 tests weren't compared. - **80ea80ed5e, a merge of `main` acf7ac208a,** which brings Capmare's #10256 (one texture for the dynamic-resolution variants of an image table surface) and nikhilpanchal1's #10472 (image memory suballocation) ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41778619158), [every `agc` test](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41778644620)). - **The conflict:** one, at the top of `StorageTexture::markLayersPending` in `Texture.cpp`, where #10256 records the image's layout write and this PR notes the guest range as GPU-pending. The two are independent, and the merge keeps both, `main`'s first. This PR's diff over `main` is unchanged. - **×10:** `agc_draw_descriptors` and every test matching `^agc_driver_table_index`, `^agc_driver_lookup_log`, `^agc_driver_village`, `^agc_driver_resource_cache`, `^agc_driver_sampled_cache`, `^agc_driver_image_table`, `^agc_driver_image_memory` or `^agc_image_memory`, which takes in this PR's tests, #10256's `agc_driver_image_table_variants` and #10472's image-memory tests. Linux: 38 run, 38 pass, 0 skip, 0 fail. Windows: 38 run, 4 pass, 34 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 301 and 325 tests on Linux and 331 and 343 on Windows, with 0 failed. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **Every `agc` test, once:** Linux: 1,319 run, 1,233 pass, 85 skip, 1 fail. Windows: 1,356 run, 405 pass, 951 skip (no Vulkan device), 0 fail. The one failure is `agc_driver_pipeline_journal`'s 120-second timeout (`769/1319 Test #1398: agc_driver_pipeline_journal ***Timeout 120.05 sec`). It is `main`'s own cold run, near the limit: `main` 086c0686c8 times out the same way under `ctest -V` ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41736700046)). - **TechLevelZero's GPU bots at 80ea80ed5e**, each with `VK_LAYER_KHRONOS_validation`: - **NVIDIA RTX 2000 Ada Generation** ([report](https://github.com/boykopovar/AnyPS5/pull/12745#issuecomment-6625922641)): driver 595.99.02, this head merged onto `main` 5b1d381, 2,892 of 3,883 tests selected. 2,836 passed, 6 failed (none new: 3 also fail on `main`, 3 unstable on `main`), 50 skipped. No new validation IDs over 979 GPU tests. This PR's `agc_driver_table_index_validation`, `agc_driver_lookup_log_fits_build`, `agc_draw_descriptors` and four resource-cache tests (`agc_driver_resource_cache_collect_refusals`, `_collect_refusals_index`, `_pending_fail_count` and `_pending_fail_count_index`) passed. `agc_driver_village_draw_cost` wasn't in the selection. - **AMD Radeon RX 6300 (RADV NAVI24, Mesa 25.2.8)** ([report](https://github.com/boykopovar/AnyPS5/pull/12745#issuecomment-6626098833)): this head merged onto `main` b8efa62, 2,885 of 3,878 tests selected. 2,817 passed, 9 failed (none new: 8 also fail on `main`, 1 unstable on `main`), 59 skipped. No new validation IDs over 1,031 GPU tests. This PR's three added resource-cache registrations passed. - **11af6efcf0, a merge of `main` b11c7bf84f,** which brings #13858 ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41801647695), [every `agc` test](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41801673120)). - **The conflict:** one, at the end of `PrepareDrawBindings` in `ShaderResources.cpp`. #13858 moves the descriptor-set writes into a new `writeDrawSets`, and this PR keeps the bindings when no snapshot is selected but a texture was rebound (`selected.empty() && !rebound`). The merge takes #13858's split and keeps this PR's condition on the early return. This PR's diff over `main` is unchanged. - **×10:** the set above, with #13858's `^agc_driver_address_draw_space_reuse` and `^agc_driver_bda` tests added. Linux: 50 run, 50 pass, 0 skip, 0 fail. Windows: 50 run, 5 pass, 45 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 303 and 327 tests on Linux and 334 and 345 on Windows, with 0 failed. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **Every `agc` test, once:** Linux: 1,331 run, 1,245 pass, 85 skip, 1 fail. Windows: 1,370 run, 407 pass, 963 skip (no Vulkan device), 0 fail. The one failure is again `agc_driver_pipeline_journal`'s 120-second timeout (`776/1331 Test #1403: agc_driver_pipeline_journal ***Timeout 120.06 sec`), `main`'s own cold run. - **TechLevelZero's NVIDIA GPU test at 11af6efcf0** ([report](https://github.com/boykopovar/AnyPS5/pull/12745#issuecomment-6633261022)), with `VK_LAYER_KHRONOS_validation`: driver 595.99.02, this head merged onto `main` b11c7bf, 2,907 of 3,894 tests selected. 2,851 passed, 7 failed (none new: 3 also fail on `main`, 4 unstable on `main`), 49 skipped. No new validation IDs over 986 GPU tests. This PR's `agc_driver_lookup_log_fits_build`, `agc_draw_descriptors` and four resource-cache tests (`agc_driver_resource_cache_collect_refusals`, `_collect_refusals_index`, `_pending_fail_count` and `_pending_fail_count_index`) passed. `agc_driver_table_index_validation` and `agc_driver_village_draw_cost` weren't in the selection. - **fa7e8e3dfd, a merge of `main` b611e634f7** ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41909249974), [every `agc` test](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41909420658)), which brings oneandonlydean's #14838 (the carry of #9012: template audits only after the host import set changed). - **The conflict:** one, in `docs/dev/ENVIRONMENT.md`, where this PR's `APS5_TABLE_INDEX` and `APS5_TABLE_INDEX_BREAK` rows sit beside #14838's new `APS5_TEMPLATE_AUDIT_ALWAYS` and `APS5_TEMPLATE_AUDIT_BUDGET` rows and its reworded `APS5_TEMPLATE_AUDIT_MS` row. The merge keeps all five, in name order. The code merged without conflicts, `ShaderResources.cpp` included, which #14838, #15682, #15741 and #15783 changed. This PR's diff over `main` is unchanged. - **×10:** the same set as at 11af6efcf0. Linux: 51 run, 51 pass, 0 skip, 0 fail. Windows: 51 run, 5 pass, 46 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 303 and 329 tests on Linux and 335 and 360 on Windows, with 0 failed. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **Every `agc` test, once:** Linux: 1,337 run, 1,250 pass, 85 skip, 2 fail. Windows: 1,376 run, 411 pass, 965 skip (no Vulkan device), 0 fail. Both failures are `main`'s: - `agc_driver_image_gather_volume` ("the vertex shader was not emitted in the device's module form") fails the same way in `main`'s own `linux` check on 638187daec, the #15855 merge ([job](https://github.com/boykopovar/AnyPS5/actions/runs/41906999149/job/126869200694)). JJenkx's #15875, merged after b611e634f7, updates the test for the specialized vertex form #14265 emits. - `agc_driver_pipeline_journal`'s 120-second timeout (`778/1337 Test #1429: agc_driver_pipeline_journal ***Timeout 120.11 sec`), `main`'s own cold run. - **TechLevelZero's AMD GPU test at 11af6efcf0** ([report](https://github.com/boykopovar/AnyPS5/pull/12745#issuecomment-6637406740)), with `VK_LAYER_KHRONOS_validation`: AMD Radeon RX 6300 (RADV NAVI24, Mesa 25.2.8), this head merged onto `main` b11c7bf, 2,907 of 3,894 tests selected. 2,838 passed, 9 failed (none new: 8 also fail on `main`, 1 unstable on `main`), 60 skipped. No new validation IDs over 986 GPU tests. As in the NVIDIA run, this PR's `agc_driver_lookup_log_fits_build`, `agc_draw_descriptors` and four resource-cache tests passed, and `agc_driver_table_index_validation` and `agc_driver_village_draw_cost` weren't in the selection. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none (merge order: before #12921; both change `Graphics/src/ShaderResources.cpp` and conflict there, and #12921 takes the second merge with the test-only update on `test/untracked-proof-index-on-12921`) - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: NVIDIA GeForce RTX 3070 Laptop GPU (617.42), Windows 10.0.26300; lavapipe (llvmpipe, LLVM 20.1.2, Mesa 25.2.8), Ubuntu 24.04; AMD Radeon RX 9070 XT, RDNA 4 (tests, by @bunbeans2-arch); NVIDIA RTX 2000 Ada Generation (driver 595.99.02) and AMD Radeon RX 6300 (RADV NAVI24, Mesa 25.2.8), Ubuntu 26.04.1 (tests, TechLevelZero's GPU bots) - [x] AI-assisted: yes Related: - #14838, oneandonlydean's carry of #9012, is on `main` and in this branch since fa7e8e3dfd. It composes with the index's import source: its audit runs only after the host import set changes, unless `APS5_TEMPLATE_AUDIT_ALWAYS` is set, so while imports hold, the index has no periodic full walk. - #9508: with `APS5_GPU_HEAP`, the index's in-place re-bind must also refresh a heap stage's slots. - #10894: its per-use texture gate must also gate the index's proof, or per-use elements go on the index's per-element list.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!12745
No description provided.