perf(agc): share one image table per heap and write epoch through capture, compare, resolution and descriptors #6454

Merged
EagleBearerYS merged 53 commits from upstream-pr/6454 into main 2026-10-19 01:39:04 +00:00
EagleBearerYS commented 2026-10-15 16:09:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-15T16:09:42Z.


What

A bindless heap like Resident Evil Village's (32,768 T# records at a 48-byte stride, 4,096 distinct textures) was read, compared, resolved and written again for every dispatch or draw that used it, even when nothing had written it. In Resident Evil Village's menu (PPSA01556, discussion #5169) on the PC's tree with draws not pipelined, capture_resources costs 1,319.7 ms per frame, about 1.58 ms per draw over 835 draws per frame. In a Resident Evil Village-like bench with three queue workers on main (lavapipe), a cached dispatch spent about 36 ms comparing the table, a resource build about 12 ms resolving it, and about 9 ms creating a descriptor pool and set for it.

This keeps one immutable object per heap, record shape and write epoch, and has every stage hold it by reference:

  1. Capture. A table column is kept once per queue worker as an immutable block of words with a shared stamp cell (the write epoch). A capture that finds the column unwritten checks that with one write-tracker query over the block's span, before taking any stamp, and takes the block by reference: no read, no copy. A compare that finds the words unchanged renews the epoch for everyone sharing the block. The column memo this builds on (reuse of an unwritten column, and sharing its column, words and resolution by reference) comes first in the series.
  2. Compare. A cached draw or dispatch variant remembers which words came from a block. A hit vouches for each block once and skips its regions by range. The words around it are compared as before, and anything pending over the span falls back to the per-run checks.
  3. Resolution. A reused bound table replays each element's recorded bind outcome instead of rerunning the per-element checks, while the binding's sampler masks and the stage's sampler words are unchanged.
  4. Descriptor writes. A freed dedicated descriptor set (a 4,096-element table needs one) is kept, up to 8. A build with the same layout and sizes takes it instead of creating a pool, and leaves the table's writes out of vkUpdateDescriptorSets when the set already holds the same views and layouts.

With pipelined draws, a vouch never waits for queued draws. A queued draw that writes anywhere in a block's span refuses the vouch, and the per-run checks then drain exactly where they did before.

Every check uses the same evidence as before, over a superset of the bytes:

  • A store anywhere in a block's span (between records included), a pending or finished GPU write, a label, a DMA fill or copy, CP WRITE_DATA, a compute or storage-image result, or an unwatched range falls back to reading and comparing exactly as before.
  • A guest mapping change (map, unmap, protect or remap) ends the epoch through the guest allocation registry's generation, which the block's stamp records. Ranges that alias other mappings aren't write-watched, so they are always compared.

Each case has a test. APS5_NO_TABLE_SNAPSHOT_REUSE=1 turns the reuse off. APS5_NO_VOUCHED_VALIDATION=1, APS5_NO_TABLE_REPLAY=1 and APS5_KEPT_DESCRIPTOR_SETS=0 turn the later stages off one at a time.

It also closes two stamp ordering races found on the way:

  • a store over memory that is only partly watched stamped nothing, a gap #6060's compare-free vouch for private imports shares. #6455 fixes it on its own, and this branch merges #6455's head, so the two land in either order;
  • a GPU write was stamped before it was noted pending, so a capture on another worker could vouch past it (two-thread test).

The flush hook's "is an image pending here" is answered from a published snapshot instead of the storage registry's mutex, which three workers contended at 65-81 µs per call. The two reuse switches no longer change the shader disk cache's keys, so turning them off doesn't rebuild the cache. FormatVersion stays at #6243's 37, since no plan or table encoding changes, and the runtime ABI stays at 12.

#6243, #6455 and #6537, whose heads this branch merged, are all in main, so the diff holds only this PR's commits.

Overlap

Seven open PRs change the same image table code. Merges that run this PR with #6440 and #6340 are on the fork: test/v3-x-6440, test/v3-x-6340 and test/v3-x-6440-6340.

  • #6440 (a column memo in ResourceMaterializer).
    • What it does: keeps a column's layout, words and distinct descriptors in a process-wide memo, keyed by shader, descriptor source, table base, size, key count and narrowed states. Every capture reads the column's words; equal words take the stored descriptors, and changed words over the same layout take the stored layout.
    • Where the two act: this PR skips the read while the heap is unwritten, and on a written heap whose words are equal its compare hit shares the column, and what is built from it, by reference. #6440's memo is reached on this PR's misses, where it adds changed words over the same layout, narrowed columns, and columns this PR's 16-entry per-thread memo doesn't hold (another queue thread's, evicted ones, other geometries).
    • Order in the merge: this PR's unwritten vouch, then its compare, then #6440's memo, then the walk. The compare and the memo share one read.
    • Conflicts: ResourceMaterializer.cpp/.hpp and tests/ShaderMemory.cpp. test/v3-x-6440 passes ctest -R '^agc' 606/606 with both PRs' tests. Two things git doesn't flag: #6440's nested ColumnMemo, ColumnKey() and ColumnMemoEntries would shadow this PR's names (and its 512-entry limit would replace this PR's 16), so the merge renames #6440's; and #6440's memo-count test runs with APS5_NO_TABLE_SNAPSHOT_REUSE=1, since this PR's compare otherwise serves every repeated compile first.
  • #6340 (per-entry reuse in ShaderResources::resolveImageTables).
    • What it does: reuses the unchanged entries of a table whose other entries changed or could not be kept.
    • Where the two act: this PR replays a whole reused table's bind results without checking each entry again, and keeps the table's descriptor set. The merge keeps #6340's per-entry loop and replays each reused entry's recorded bind result in it.
    • Conflicts: resolveImageTables; the composed resolution is on test/v3-x-6340.
  • #6402 (merged; stores through image tables): adds a storage table binding and skips table reuse for tables with written entries. This branch's merge of main keeps that guard in the reuse path: a table with a written entry, or one whose set has no sampled table binding, takes the fresh path, as on main. It still conflicts with #6340 in resolveImageTables.
  • #6488 (waterfall loops over per-lane T#s through image tables): a new lane-keyed column with its own record walk. Lane columns are read in full on every capture, so this PR's capture reuse doesn't cover them; its driver-side replay and kept sets do. The conflicts in ControlFlowInfo.hpp, ResourcePlan.hpp, ResourceMaterializer.cpp, Recompiler.cpp and tests/ShaderMemory.cpp are unions of both sides, plus four changes git doesn't flag: WordsIndex(records, value) in LaneRecords, a return; in the void ReadColumn, fieldCount<TableColumn>() == 19, and the next free FormatVersion.
  • #6481 (faults table entries the device or guest memory cannot hold): its checks run where an entry is resolved. This PR's replay keeps a refused entry's fault while the table is current, and the guest allocation generation drops the table when the registry changes. It conflicts only in docs/dev/debt/libSceAgcDriver.md. Its checks cost 0.2–0.3 µs per entry under the load below, less than the 0.7–1.2 µs mapping check they replace.
  • #6567 (a recycled descriptor set only for a table of its own size): on main, DescriptorCache::AllocateRewritten hands out any recycled set of a layout, and #6567 keys recycled sets by layout and variable count. This PR's kept dedicated sets already match the variable count, and its rewritten tables take their recycled sets from that map, so #6567's fix covers them too, with no duplicated work. They conflict in ShaderResources.hpp (SetAllocation and the recycled map's key: variableCount is a std::optional here and a count there) and in ShaderResources.cpp (the returns of Allocate). Whichever merges second keeps this PR's SetAllocation fields (layout, sizes, the optional variableCount and table) and its kept list, keys recycled by layout and variableCount.value_or(0) in both AllocateRewritten and Recycle, and sets variableCount in each of Allocate's returns.
  • #6537 (each set's image table writes kept in its own draw snapshot set): on main, PrepareDrawBindings matched recorded descriptor writes by binding number alone, so the fragment table's writes (binding 260 in set 1) went into the vertex table's snapshot set 0. SleglJan's runs of 007 First Light (PPSA11386) with this PR reached that pairing before the menu: all 12 runs ended on SIGSEGV, with VUID-VkWriteDescriptorSet-dstArrayElement-00321 (339 table descriptors into a set allocated for 1). With #6537 added, 3 of 3 reached the menu at 2.90 fps, against 0.68–0.74 fps with neither. This branch merges #6537's head (AnthonyClemens's commit, unchanged), so the two can't land apart.
  • #6881 (merged; poisons unsupported biased volume table entries): no git conflict, but its new verifyVolumeBiasTableRejection in tests/ShaderMemory.cpp didn't compile against this PR's snapshot layout, where codes and words are per-column SharedValues (SleglJan's report on #6881). Scramblrrrr's 913b93635 adapts the fixture's two lines; it's cherry-picked here as 209f3ce87b, right after this branch's merge of main 9caecfd2d5 (dad24e3a4f).

Other conflicts, in shared lines (an overlap check against main 668a7ddc19 and the open PRs, 2026-10-16). Whichever merges second keeps both sides:

  • #6614 (merged; free released lavapipe descriptor sets): DescriptorCache's constructor keeps this PR's KeptSets() helper and kept.reserve body with #6614's freeDescriptorSets(...) initializer. #6614 frees sets on the chain-pool path, and this PR's kept sets are dedicated pools, so the two don't touch the same sets.
  • #4943 (merged; cached draws across moved user data) replaced the loop in DrawCapture.cpp that builds a draw variant's runs and words with tagVariantRuns, and added a user-data-use pointer to the SRT walker's options. This branch merges main with it: tagVariantRuns also records this PR's shared words (AppendSharedWords, from the capture's supplied blocks) for each run it appends, and the walker's options keep both sets of fields. The first merge of main recorded the shared words by capture region, which names the wrong run once relocation splits a region; e448df1ea8 records them by run, so a split variant's runs are validated as before (SplitRunsNameTheirSharedWords).
  • #5609 and #6539 (TheAggie, on #4943): #5609 merges cleanly. #6539 conflicts in tagVariantRuns: keep #6539's forwarded-word block before the loop, and this branch's loop that records the shared words by run. Both add includes at the top of tests/execution/DrawCacheRelocation.cpp; keep both.
  • #6188 (compile uncached draws ahead of queue 0): it moves a draw variant's construction into DrawStageVariant and renames the variant merge in DrawCache.cpp. Move this PR's shared-words build into DrawStageVariant, which then needs the capture's supplied blocks, keep this PR's comparison of a kept variant (push offset, mesh index descriptor, runs and captured words) under #6188's names, and keep both declarations in Driver.hpp.
  • #5958 (sample converted images in the shader): the data-hit check builds its ShaderMemory with this PR's QueryPendingSpan and captures through #5958's CaptureInvocation.
  • #5872 (merged; shader preparation on first use): one declaration next to this PR's in Driver.hpp, kept both in this branch's merge of main.
  • #6856 (a failing shader capture's own request) and #6134 (preparation-failure dump names): each changes dumpRequest's declaration in Driver.hpp, next to this PR's tagVariantRuns. Keep both lines.
  • #6858 (bound cache keys before padded offset arithmetic): adds EntryHeaderBytes next to FormatVersion in ShaderDiskCache.hpp. Keep it, and this PR's FormatVersion.
  • From the PRs this branch merged: #6266 and #6308 (with #6455's tests), #6232, #6296, #6032 and #6674 (with #6243's lines) and #6188 (with #6537's test) now meet those changes in main.
  • #7193 (XairRrR, merged; image-table indexes in per-thread scratch): this branch's merge of main 3de84fa106 (db622e1c4f) reworks TableSnapshotter::WordsIndex(records, value) on #7193's HashScratchIndex, indexing the column's own records.distinct, since this PR keeps a snapshot's words per table, with a new HashScratchIndex::Clear() called for each column. ResolveImageTables uses #7193's DenseScratchMap, sized by the largest column's word count and cleared per table, reading column.words.at(code). #7193's verifyImageTableScratchReuse counts the distinct records as snapshot.tables.at(0).words.size().

More general than this PR, for a follow-up: #6340's per-entry reuse (this PR's replay is all or nothing per table; a follow-up would add per-entry reuse and keep the whole-table replay as the fast path when every entry is current), and from #6440 the layout reuse on changed words, narrowed columns and a process-wide memo. A follow-up could take them into this PR's memo. In the other direction, #6440 and #6340 have no unwritten-heap hit, identity share or kept descriptor sets.

Disk cache format: main has FormatVersion 37 since #6243, and this branch keeps it: its own disk-cache change only keeps its two reuse switches out of the cache keys. #6280, #6412 and #6488 also set 37, so each needs the next number; git won't flag it.

Benches (one Linux VM, lavapipe, trees alternated).

A 19,000-record column, per ShaderMemory::Capture, p50 / p90:

Case main #6440 this PR this PR + #6440
unchanged heap 2.97 / 4.40 ms 1.93 / 3.20 ms 0.004 / 0.004 ms 0.004 / 0.006 ms
written heap, equal words 2.70 / 3.45 ms 1.97 / 2.96 ms 1.04 / 1.28 ms 0.92 / 1.11 ms
one record changed each capture 2.78 / 3.33 ms 2.70 / 3.90 ms 2.69 / 3.47 ms 2.85 / 4.00 ms
40 tables in turn¹ 2.68 / 3.74 ms 2.79 / 3.84 ms 2.91 / 3.84 ms 2.07 / 3.81 ms

¹ With #6440, 125 of the 200 captures hit and 75 miss, so the p50 varies by round. The mean per capture: 2.93 ms (main), 3.00 ms (#6440), 3.15 ms (this PR), 2.68 ms (this PR + #6440).

A Resident Evil Village-like load (a 32,768-record heap, three queues, 21 s runs):

main #6440 #6340 this PR this PR + #6440 this PR + #6340
table dispatches/s, watched heap 43–46 44–47 44–47 304–313 310–319 271–295
dispatch-cache compare, p50 per dispatch 26.1 ms 28.5 ms 28.5 ms 0.16 ms 0.16 ms 0.15 ms
resolveImageTables, p50 per build 1.05 ms 1.05 ms 2.10 ms 0.68 ms 0.71 ms 1.69 ms

With an unwatched heap (the Linux default for imports) every tree measures 30–35 table dispatches/s.

Merge order: either works. #6440 and #6340 don't conflict with each other, and each conflicts with this PR in its own file. If they land first, this PR takes the resolutions on the three test/v3-x-* branches; if this PR lands first, the same resolutions apply to them. #6481 and #6488 don't conflict with #6440, #6340 or #6402, except #6488 with #6440 in tests/ShaderMemory.cpp.

Tested

  • CI's Linux job, mirrored on a Linux cloud worker at fae2221c47 (Ubuntu 24.04, GCC 13.3, CI's configure flags, lavapipe): 1,279 tests, 1,213 pass and 61 skip. The 5 failures are network tests that need IPv6, which that machine lacks, and check_skips.py flags only guest_sce_net, skipped for the same reason. check_test_registration.py passes.

  • GitHub runners:

    • with #6537 merged (fae2221c47): v3's tests and the recorder tests pass 3 of 3 on Linux and Windows (run), and #6537's drawSnapshotTableSetTests (agc_driver_recorder_tests --draw-descriptors-only, registered for that check only) passes on Linux lavapipe (run). Both runs are marked failed only for guest_kqueue on Windows, and the first also for precise_wait in the libc suite on Linux; this change touches neither.
    • with #6537's newer head merged (its test now registered as agc_draw_descriptors): agc_draw_descriptors, agc_driver_draw_cache_relocation and agc_driver_image_table_reuse pass 3 of 3 on Linux, and skip on Windows without a Vulkan device (run).
    • at this branch's merges of #6243's head (5a31a9c674) and then #6455's (ab82f50a1b): agc_shader_table_snapshot_reuse, agc_write_tracking and the related agc tests pass 20 of 20 on Linux and Windows (run, run).
    • a full ^agc sweep at 5a31a9c674, next to the same sweep of main 4186f06a9a on the same runners (this branch, main): Linux 603 of 604 (41 skip), the one failure the known parallel-load flake agc_driver_preparation_scope_settle, against main's 601 of 601. Windows 597 of 598 (465 skip without a Vulkan device) against main's 594 of 595, both failing only agc_driver_pm4_replay_tool (0xc0000139).
    • four of the branch's commits on their own (d816062960, 97590db998, dc6c346de7 and the merge of main, d21b0801a4) pass the snapshot reuse and related tests on both runners.
    • the libc and libkernel suites pass on Linux; on Windows only guest_kqueue fails, which fails on main on the same runners.
  • Windows 11, NVIDIA GeForce RTX 3070 Laptop GPU (driver 617.42), on main 66e290f1c0 with this PR, #6678 and #6911 merged (the other two don't touch this path): agc_driver_image_table_reuse passes 5 of 5, with the Windows counts of its CPU-write cases (3 - CpuWriteResolutions reuses with CpuWriteResolutions resolutions for "a CPU write collected in a new epoch, then two dispatches").

  • The Windows runner found that the snapshot reuse test's page-protection case never made the page inaccessible on Windows: the arena call it used changes only section views there, while the guest's mprotect also calls VirtualProtect. The test now protects the page the way mprotect does on each platform, and adds a table mapped again with new contents. With the vouch's allocation-generation check removed, the test fails on both runners (red: "a table was reused without a read after a guest mapping changed"); with it, it passes 20 of 20 on both (green).

  • Ubuntu 24.04, GCC 13.3, lavapipe (llvmpipe, Mesa 25.2.8), the tree before the test fix above, merged with main 4e9a2a871 and with draws pipelined at main's default: ctest -R '^agc' passes 599 of 600 (41 skip on lavapipe). The one failure is the known parallel-load flake agc_driver_preparation_scope_settle, which passes 5 of 5 alone and fails the same way on main 4e9a2a871. Stage 1's head and the head of stages 2-3 also passed the suite on their own, before the merge with main.

  • New and extended tests:

    • the vouch of a strided table: one call for 4,096 records. It is refused by a store between records until a compare renews it, by a store into a record, by a pending GPU write in or between records, by a remap, and by CPU, driver and GPU-result stores, and never given for a released block;
    • agc_driver_image_table_vouched_lookups: dispatches over a write-watched heap are vouched for. A CPU store, a CP WRITE_DATA pending ahead of the dispatch, and a driver store each refuse the vouch and capture again;
    • the two-thread stamp race;
    • agc_driver_image_table_vouch_queued_draws: with real queue-0 pipeline commits held, a vouch over a table is refused, without waiting, when a queued draw writes between two records or into a record. It is given when the draw writes elsewhere, or once the draws commit;
    • whole-span checks of a capture go to the non-draining span query;
    • a shader disk cache filled without the reuse switches loads with them set, with no rebuild;
    • a driver store across a write-watched heap's edge into unwatched memory ends the table's epoch;
    • stores into partly watched memory;
    • a page protected, and a table mapped again, under a reused column;
    • replay in the image table reuse test, run with and without the replay;
    • kept and made table writes;
    • the descriptor cache's kept-set contract.
  • Resident Evil Village-like bench: 3 queue workers, an active recorder, a populated storage registry, pending results, and a heap of 32,768 records at stride 48, write-watched as on Windows. Xeon 2.8 GHz VM, lavapipe, on main 4e9a2a871 against this PR's code, two interleaved rounds. µs per call:

    main this PR
    dispatch cache compare, hit 35,590 200
    the same with snapshot (block-compressed-like) textures 38,860 194
    heap written every round: compare 28,468 4,561
    heap written every round: capture per miss 8,859 628
    table resolution per build, snapshot textures 1,522 986 (a replay: 300)
    descriptor set per build 8,529-8,748 3,022-4,858
    table dispatches/s: hit / snapshots / written / 48 heaps / unwatched 36-37 / 44-50 / 36-37 / 40-41 / 28-30 70 / 285-303 / 63-65 / 40-42 / 28

    With 48 heaps (each worker cycles more tables than it keeps) or a heap that isn't write-watched (Linux's default), no vouch is possible or the memo thrashes, and both sides swing by 20-30% per round. Over five rounds each, the 48 heaps' compare is 30.9 ms against main's 31.6 ms. The unwatched heap's compare and resolution average 2% and 3.4% above main's, inside main's per-round range (compare 23.5-27.3 ms against 21.3-29.0 ms). Peak memory is lower in every case except 48 heaps, where the two ranges overlap (1,391-1,493 MiB against 1,261-1,543 MiB) and this PR's sits higher.

  • The shared words by run (e448df1ea8): agc_driver_draw_cache_relocation's SplitRunsNameTheirSharedWords gives a variant two user-data bases into one region ahead of a table's region. At the merge it fails with "the shared words of a variant whose runs were split for relocation name run 1 of 5, not the table's run 4"; with the fix it passes 5 of 5, and ctest -R '^agc' passes 612 of 612 (43 skipped) on Linux. The full Linux CI job at the merge ran 1,283 tests: 1,216 passed, and the failures were network tests that need IPv6, which that machine lacks, and the agc_driver_preparation_scope_settle load flake.

    • On GitHub's runners (run), the relocation, table-reuse, vouch and draw-cache reuse tests pass 5 runs in a row on Linux (the new test needs the fix's include path, so the previous head doesn't build it); on Windows they skip without a Vulkan device. The suites' only failures were libc's precise_wait on Linux, a timing test, and libkernel's guest_kqueue on Windows, which fails on main there too.
  • The merge of main 72c5eed1ff (with #4943), on GitHub's runners (run): the draw-cache relocation, image-table, table-reuse, draw-cache reuse and BDA tests and those tied to the changed files pass 3 runs in a row on Linux (96 tests) and Windows (97 of 98; the GPU tests skip there). The only failures are libc's precise_wait on Linux, a timing test, and libkernel's guest_kqueue on Windows, which fails on main there too.

  • The merge of main 3cc1fc8f11 (a53d23f810, with #6402, #6614 and #7101) and of #6243's head (9dcf408034, which expects a per-lane table image_store to be supported now that #6402 makes it so), at 6884e9c441, on GitHub's runners (run): this PR's tests and those tied to the files it changes, 3 runs in a row, and the ^agc tests. Linux passes all of them. On Windows the only failures are agc_driver_pm4_replay_tool and agc_shader_replay_tool, which exit with 0xc0000139 when they start. They fail the same way on this runner for an unrelated branch today (run), and this PR doesn't touch either tool.

  • The merges of #6243's head 8c6765be71 (49788713ac, with main f1af6c5915 and #7325) and of main b39d90bf14 (6720211da1, after #6243 merged), on GitHub's runners. The first merge adapts #7325's verifyChainedTableOffset to read snapshot.words, since this PR keeps a snapshot's words per table. At 49788713ac (run) and at 6720211da1 (run), this PR's tests pass 3 runs in a row on Linux, as do the ^agc tests (688 and 694, 0 failed). On Windows the only failures are agc_driver_pm4_replay_tool and agc_shader_replay_tool, as at 6884e9c441. At 6720211da1 the Linux suite's one failure was libc's precise_wait timing test; this PR doesn't touch libc.

  • The merges of main 3de84fa106 (db622e1c4f, with #7193) and main bb2624a533 (a508aa03c4, after #6455 merged), on GitHub's runners: this PR's tests, agc_shader_bindless with #7193's scratch-reuse case among them, pass 3 runs in a row on Linux, as do the ^agc tests (710, 0 failed at both; run, run). On Windows the only failures are the same two replay tools. At a508aa03c4 the Linux suite's one failure was libc's precise_wait timing test.

  • The merge of main 9caecfd2d5 (dad24e3a4f, with #6881) and Scramblrrrr's 913b93635 (cherry-picked as 209f3ce87b), on GitHub's runners (run): the ^agc tests pass 3 runs in a row on Linux (711, 0 failed), and the suites' only failure is libc's precise_wait timing test. On Windows the only failures are the same two replay tools.

  • The merge of main 0d078f75d3 (54f2cf31b1, no conflicts) and the docs/dev/ENVIRONMENT.md rows for this PR's five switches (790fe18183, the head; main lists every switch there since #6078), on GitHub's runners (run): the ^agc tests pass on Linux (712, 0 failed), and the libc and libkernel suites pass. On Windows the only failures are agc_driver_pm4_replay_tool and agc_shader_replay_tool, as in the runs above.

  • The merge of main 61d3d3080c (d0325058f7, the head), on GitHub's runners (run): #7527's new selected-record limit test read a record's descriptor words through the snapshot's shared words list. This branch keeps a snapshot's words per column, so the merge has the test read them from its column. On Linux the ^agc tests pass 729 of 730. The one failure was this PR's agc_driver_image_table_vouch_queued_draws ("a queued draw writing outside the table: the table was not vouched for"); it then passed 3 runs in a row with the image-table and graphics tests (run). The suites pass. On Windows, where 546 of the 730 skip without Vulkan, the only failures are the two replay tools (exit code 0xc0000139), as in the runs above.

  • Resident Evil Village (PPSA01556), the reuse switch's A/B asked for on this PR: one build of this PR's head 49788713ac (before the #7193 re-port) on main f1af6c5915, with #6366, #6451, #6470, #6146, #6682 and #6646, which the title needs to reach its menu and first scene. NVIDIA GeForce RTX 3070 Laptop GPU (driver 617.42), Windows 11, unprofiled, warm shader cache, APS5_LAZY_SHADER_PREPARE=1 APS5_TRACE_SUMMARY_EVERY=1 APS5_NO_GPL=1 APS5_HOST_IMPORT_MIB=6400, one run per arm. A is this PR as is, B adds APS5_NO_TABLE_SNAPSHOT_REUSE=1. Frame times are in seconds (about 0.1 fps on this build):

    • Main menu, minutes 5 to 15, no input: A 48 presents, p50 11.3 s, p90 14.0 s; B 44 presents, p50 12.0 s, p90 19.2 s. The bootstrap 95% interval of the median ratio, 0.98 to 1.25, includes no change. Clocks weren't held: P0 for 75.5% of A's samples (mean 1,304 MHz) and 96.4% of B's (mean 1,252 MHz).
    • First scene at control, minutes 30 to 40: A 44 presents, p50 12.6 s, p90 17.3 s; B 35 presents, p50 13.8 s, p90 28.3 s. A's frames are about 9% shorter at the median and 21% on average; the bootstrap 95% interval of the median ratio, 1.02 to 1.38, excludes no change. Clocks were held in both (P0 99.9%; mean 1,289 and 1,279 MHz).
    • Screenshots and details are in this comment.
  • Resident Evil Village (PPSA01556), the same A/B on the re-port (a508aa03c4, before the merge of main 9caecfd2d5), with the same six PRs, setup and arms, menu only (comment):

    • Main menu, minutes 5 to 15, no input: A 306 presents (0.510 fps), p50 1.9 s, p90 2.3 s; B 153 presents (0.255 fps), p50 3.8 s, p90 4.7 s. A's frames are about half as long: median ratio 0.492 (one-sided rank test, p < 0.0001). Clocks weren't locked: P0 for 69.8% of A's samples and 98.6% of B's (mean 1,337 and 1,333 MHz), which, if anything, favours B.
    • In the shots past the menu's fade-in, the logo, menu items and prompt match; the rest of the view differs about as much as two runs with the reuse on.
  • Resident Evil Village (PPSA01556, 01.210.000) at the static main menu, on an NVIDIA GeForce RTX 3070 Laptop GPU (driver 617.42), Windows 11, unprofiled, with the game window in the foreground. The pair is on Resident Evil Village's test tree of main 0c4816f611, with the fixes it needs to reach the menu. A′ adds #6243 (090c0dad15). B is A′ plus this branch at ab82f50a1b, which also carries #6455, from before the branch merged #6537. Both ran with the same environment (APS5_HOST_IMPORT_MIB=6400 APS5_NO_GPL=1 APS5_TRACE_SUMMARY_EVERY=60, and the test tree's APS5_LAZY_SHADER_PREPARE=1):

    A′ (#6243) B (+ this PR)
    menu fps, median of the 60-s intervals 5-15 min after the menu stood 0.134 0.147
    those intervals 0.129-0.139 (10) 0.145-0.153 (9)
    frame p50 / p90 7.52 / 7.74 s 6.75 / 6.85 s
    menu fps, first 5 min 0.126 0.145
    Driver.Packet per frame 21.4-24.4 s 19.4-20.4 s
    Driver.Draw per frame 6.8-7.7 s 6.1-6.5 s
    • About 10%: the two runs' 60-s intervals don't overlap, and the per-frame driver time is about 10% lower throughout. It is one run per arm.

    • No minute was cut for paging (page reads stayed under 700/s), and neither run logged a FATAL, a null image or an invalid runtime value.

    • B logged one non-fatal [gpu] guest snapshot differs from registered memory line during boot, for a 128-byte snapshot in a live import region, which serves the GPU whatever the snapshot holds. A′ logged none. The log doesn't say which capture it was. This PR vouches for a table only while its whole range is write-watched and unwritten (the tests cover an unwatched table, a store across the heap's edge into unwatched memory and a GPU write through MarkWritten), and main's check also fires when the guest writes captured words between the capture and the device lock.

    • The current head also carries #6537.

    • Summary lines (APS5_TRACE_SUMMARY_EVERY=60): one 60-s interval of each run, near the middle of that window. A′ is 9a4775d4cf and B 2393232bd4, captured on 2026-10-16, before this branch's later merges of main. GPU clocks weren't recorded for this pair. The traces are available on request.

      {"commit":"9a4775d4cf90","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":"60"},"gpu":"NVIDIA GeForce RTX 3070 Laptop GPU","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","resolution":"3840x2160","window":{"spec":"summary_every 60","first_present":18679,"ms":62222.571},"interval_start_s":1638.576,"interval_end_s":1700.798,"presents":8,"frame_ms":{"p50":7728.611,"p90":8584.169,"p99":8584.169,"max":8584.169},"gpu_busy_ms_per_present":617.800,"worker_busy_pct":{"queue worker 0x0":99.938,"queue worker 0x38":0.044,"queue worker 0x28":99.163,"queue worker 0x20":97.639},"top_phases_ms_per_frame":{"Driver.Packet":23081.163,"Driver.Packet.memory_wait":14928.669,"Driver.Packet.draw":7366.612,"Driver.Draw":7365.400,"Driver.Draw.draw_and_resource_release":5141.658,"Graphics.Draw":5121.070,"Graphics.Draw.draw_and_resource_release":5095.563,"Resources.Complete":2384.252},"trace_dropped":false,"trace":""}
      {"commit":"2393232bd45e","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":"60"},"gpu":"NVIDIA GeForce RTX 3070 Laptop GPU","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","resolution":"3840x2160","window":{"spec":"summary_every 60","first_present":19628,"ms":65549.916},"interval_start_s":1697.301,"interval_end_s":1762.851,"presents":10,"frame_ms":{"p50":6616.636,"p90":6973.376,"p99":6973.376,"max":6973.376},"gpu_busy_ms_per_present":574.870,"worker_busy_pct":{"queue worker 0x0":99.934,"queue worker 0x38":0.049,"queue worker 0x28":99.040,"queue worker 0x20":97.298},"top_phases_ms_per_frame":{"Driver.Packet":19415.223,"Driver.Packet.memory_wait":12436.242,"Driver.Packet.draw":6120.830,"Driver.Draw":6119.717,"Driver.Draw.draw_and_resource_release":4733.257,"Graphics.Draw":4716.208,"Graphics.Draw.draw_and_resource_release":4693.050,"Resources.Complete":2209.831},"trace_dropped":false,"trace":""}
      

      tools/trace_digest.py on the two lines:

      2 intervals, 1638.6 to 1762.9 s, 18 presents
      NVIDIA GeForce RTX 3070 Laptop GPU, NVIDIA 617.42, Windows 10.0.26300, 3840x2160, commit 9a4775d4cf90
      commit, environment, GPU, driver or OS changed at interval 2

      # seconds presents p50 p90 p99 max GPU busy busiest worker largest phase
      1 1639-1701 8 7728.6 8584.2 8584.2 8584.2 617.8 100 % Driver.Packet 23081.2
      2 1697-1763 10 6616.6 6973.4 6973.4 6973.4 574.9 100 % Driver.Packet 19415.2
      p99 ms  @#  0-8584.2
      gpu ms  @%  0-617.8
      
  • 007 First Light (PPSA11386, v01.018.000) at the main menu, run by SleglJan on Linux 7.2.10 with an NVIDIA GeForce RTX 3080 10 GB (driver 615.78.08), Ryzen 9 7950X3D, GCC 16.2.1, Release (comment). The base is main bc3c0fc13 with four open shader PRs the title needs (#5799, #6317, #6332, #6881). Each arm merges PR heads as they were, this PR at 1752c4a89, which carries #6243, #6455 and #6537. Every build has its own warm shader cache, APS5_PROFILE_DRAW=1 and scripted pad input from a save; the window is 180 s in the menu. Frame p50:

    arm samples frame p50
    base 2 2219.9, 1943.0 ms
    + #5372 2 1497.7, 1501.0 ms
    + this PR 1 1213.0 ms
    + #5372 + this PR 1 441.6 ms
    • Alone, this PR takes 868 ms off the base's mean; with #5372 the pair takes 1640 ms off, more than the two alone added up (1451 ms).
    • GPU busy is 177-205 ms per present in every sample but one (289; GPU clocks weren't reported), and queue worker 0 is busy for 99.8-100 % of every window, so the difference is on the CPU side.
    • On queue worker 0 this PR cuts the capture from 1,171 to 115 ms per present. Without #5372 about 450 ms of that reappears as draws waiting for room in the 8-deep draw pipeline (draw_enqueued 72 → 524 ms), behind the committer's CPU copies, which #5372 removes; with both, the committer takes 162 µs per commit. That's SleglJan's reading of the counters; the parts weren't tested apart.
    • Not covered: the arms with this PR have one sample each, the menu background is animated, and the base's two samples are 277 ms apart. #6243, #6455 and #6537 come with this branch's head and weren't separated from it.
  • 007 First Light again, on a newer main (1b0c7cfa0, after #6243, #6537 and #6455 merged), run by SleglJan on the same machine with the same harness (comment). The base adds #5799, #6317, #6332 and #6881 to that main; the second arm adds #5372 at e5390612f; the third adds this PR at a508aa03c, whose code the current head 790fe18183 keeps (since then, besides two merges of main, it adds only the two-line adaptation of #6881's test fixture and the docs/dev/ENVIRONMENT.md rows). Every arm has its own warm shader cache and APS5_PROFILE_DRAW=1; the window is 180 s in the menu. Frame p50:

    arm samples frame p50
    base 2 1332.9, 1337.1 ms
    + #5372 1 611.6 ms
    + #5372 + this PR 2 455.1, 456.8 ms
    • On top of #5372, this PR takes the frame p50 from 612 to 456 ms (-25%); the pair takes it from 1,335 to 456 ms (-66%).
    • GPU busy is 181-187 ms per present in every sample (GPU clocks weren't reported), so the difference is on the CPU side.
    • On queue worker 0, with #5372, this PR takes Shader.DrawStage.capture_resources from 300 to 97 and 156 ms per present (the two samples), and Driver.Packet.dispatch from 94 to 78 and 76 ms.
    • Not covered: this PR wasn't run without #5372 on this base, the #5372 arm has one sample, the menu background is animated, and the runs cover the main menu only, with no gameplay, no other GPU and no Windows.
  • Onimusha: Way of the Sword (PPSA27836) at the language menu with no input, run by simonbronk on Windows 11 with an NVIDIA GeForce RTX 5070 (driver 617.42) at 3840x2160, warm shader cache, the trace summary over 30 s from 60 s after the first present (comment). The base is main 84b0d2f24 with #6557, #6727 and #6762, 6 runs; this PR merged on top, 3 runs. Frame p50 with this PR: 79.1 and 80.0 ms, inside the base's 77.9 to 84.5 ms (mean 82.0), and 71.7 ms in a run whose p90 was 129.9 ms, which simonbronk counts as noise. No measurable change in that scene.

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 (#6243, #6455 and #6537, whose heads this branch merged, are in main)
  • Unblocks: none (performance; measured on Resident Evil Village PPSA01556 #5169 and, by SleglJan, 007 First Light PPSA11386 #5714)
  • GPUs tested: Mesa lavapipe (llvmpipe, Mesa 25.2.8), Ubuntu 24.04; the Windows runner (no Vulkan driver); NVIDIA GeForce RTX 3070 Laptop GPU (driver 617.42), Windows 11, for the Resident Evil Village pair and agc_driver_image_table_reuse; NVIDIA GeForce RTX 3080 10 GB (driver 615.78.08), Linux, for 007 First Light (SleglJan)
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4876255356 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6454). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-15T16:09:42Z. --- ### What A bindless heap like Resident Evil Village's (32,768 T# records at a 48-byte stride, 4,096 distinct textures) was read, compared, resolved and written again for every dispatch or draw that used it, even when nothing had written it. In Resident Evil Village's menu (PPSA01556, discussion #5169) on the PC's tree with draws not pipelined, `capture_resources` costs 1,319.7 ms per frame, about 1.58 ms per draw over 835 draws per frame. In a Resident Evil Village-like bench with three queue workers on `main` (lavapipe), a cached dispatch spent about 36 ms comparing the table, a resource build about 12 ms resolving it, and about 9 ms creating a descriptor pool and set for it. This keeps one immutable object per heap, record shape and write epoch, and has every stage hold it by reference: 1. **Capture.** A table column is kept once per queue worker as an immutable block of words with a shared stamp cell (the write epoch). A capture that finds the column unwritten checks that with one write-tracker query over the block's span, before taking any stamp, and takes the block by reference: no read, no copy. A compare that finds the words unchanged renews the epoch for everyone sharing the block. The column memo this builds on (reuse of an unwritten column, and sharing its column, words and resolution by reference) comes first in the series. 2. **Compare.** A cached draw or dispatch variant remembers which words came from a block. A hit vouches for each block once and skips its regions by range. The words around it are compared as before, and anything pending over the span falls back to the per-run checks. 3. **Resolution.** A reused bound table replays each element's recorded bind outcome instead of rerunning the per-element checks, while the binding's sampler masks and the stage's sampler words are unchanged. 4. **Descriptor writes.** A freed dedicated descriptor set (a 4,096-element table needs one) is kept, up to 8. A build with the same layout and sizes takes it instead of creating a pool, and leaves the table's writes out of `vkUpdateDescriptorSets` when the set already holds the same views and layouts. With pipelined draws, a vouch never waits for queued draws. A queued draw that writes anywhere in a block's span refuses the vouch, and the per-run checks then drain exactly where they did before. Every check uses the same evidence as before, over a superset of the bytes: - A store anywhere in a block's span (between records included), a pending or finished GPU write, a label, a DMA fill or copy, CP `WRITE_DATA`, a compute or storage-image result, or an unwatched range falls back to reading and comparing exactly as before. - A guest mapping change (map, unmap, protect or remap) ends the epoch through the guest allocation registry's generation, which the block's stamp records. Ranges that alias other mappings aren't write-watched, so they are always compared. Each case has a test. `APS5_NO_TABLE_SNAPSHOT_REUSE=1` turns the reuse off. `APS5_NO_VOUCHED_VALIDATION=1`, `APS5_NO_TABLE_REPLAY=1` and `APS5_KEPT_DESCRIPTOR_SETS=0` turn the later stages off one at a time. It also closes two stamp ordering races found on the way: - a store over memory that is only partly watched stamped nothing, a gap #6060's compare-free vouch for private imports shares. #6455 fixes it on its own, and this branch merges #6455's head, so the two land in either order; - a GPU write was stamped before it was noted pending, so a capture on another worker could vouch past it (two-thread test). The flush hook's "is an image pending here" is answered from a published snapshot instead of the storage registry's mutex, which three workers contended at 65-81 µs per call. The two reuse switches no longer change the shader disk cache's keys, so turning them off doesn't rebuild the cache. `FormatVersion` stays at #6243's 37, since no plan or table encoding changes, and the runtime ABI stays at 12. #6243, #6455 and #6537, whose heads this branch merged, are all in `main`, so the diff holds only this PR's commits. ### Overlap Seven open PRs change the same image table code. Merges that run this PR with #6440 and #6340 are on the fork: [`test/v3-x-6440`](https://github.com/EagleBearerYS/AnyPS5/tree/test/v3-x-6440), [`test/v3-x-6340`](https://github.com/EagleBearerYS/AnyPS5/tree/test/v3-x-6340) and [`test/v3-x-6440-6340`](https://github.com/EagleBearerYS/AnyPS5/tree/test/v3-x-6440-6340). - **#6440** (a column memo in `ResourceMaterializer`). - **What it does:** keeps a column's layout, words and distinct descriptors in a process-wide memo, keyed by shader, descriptor source, table base, size, key count and narrowed states. Every capture reads the column's words; equal words take the stored descriptors, and changed words over the same layout take the stored layout. - **Where the two act:** this PR skips the read while the heap is unwritten, and on a written heap whose words are equal its compare hit shares the column, and what is built from it, by reference. #6440's memo is reached on this PR's misses, where it adds changed words over the same layout, narrowed columns, and columns this PR's 16-entry per-thread memo doesn't hold (another queue thread's, evicted ones, other geometries). - **Order in the merge:** this PR's unwritten vouch, then its compare, then #6440's memo, then the walk. The compare and the memo share one read. - **Conflicts:** `ResourceMaterializer.cpp`/`.hpp` and `tests/ShaderMemory.cpp`. `test/v3-x-6440` passes `ctest -R '^agc'` 606/606 with both PRs' tests. Two things git doesn't flag: #6440's nested `ColumnMemo`, `ColumnKey()` and `ColumnMemoEntries` would shadow this PR's names (and its 512-entry limit would replace this PR's 16), so the merge renames #6440's; and #6440's memo-count test runs with `APS5_NO_TABLE_SNAPSHOT_REUSE=1`, since this PR's compare otherwise serves every repeated compile first. - **#6340** (per-entry reuse in `ShaderResources::resolveImageTables`). - **What it does:** reuses the unchanged entries of a table whose other entries changed or could not be kept. - **Where the two act:** this PR replays a whole reused table's bind results without checking each entry again, and keeps the table's descriptor set. The merge keeps #6340's per-entry loop and replays each reused entry's recorded bind result in it. - **Conflicts:** `resolveImageTables`; the composed resolution is on `test/v3-x-6340`. - **#6402** (merged; stores through image tables): adds a storage table binding and skips table reuse for tables with written entries. This branch's merge of `main` keeps that guard in the reuse path: a table with a written entry, or one whose set has no sampled table binding, takes the fresh path, as on `main`. It still conflicts with #6340 in `resolveImageTables`. - **#6488** (waterfall loops over per-lane T#s through image tables): a new lane-keyed column with its own record walk. Lane columns are read in full on every capture, so this PR's capture reuse doesn't cover them; its driver-side replay and kept sets do. The conflicts in `ControlFlowInfo.hpp`, `ResourcePlan.hpp`, `ResourceMaterializer.cpp`, `Recompiler.cpp` and `tests/ShaderMemory.cpp` are unions of both sides, plus four changes git doesn't flag: `WordsIndex(records, value)` in `LaneRecords`, a `return;` in the `void` `ReadColumn`, `fieldCount<TableColumn>() == 19`, and the next free `FormatVersion`. - **#6481** (faults table entries the device or guest memory cannot hold): its checks run where an entry is resolved. This PR's replay keeps a refused entry's fault while the table is current, and the guest allocation generation drops the table when the registry changes. It conflicts only in `docs/dev/debt/libSceAgcDriver.md`. Its checks cost 0.2–0.3 µs per entry under the load below, less than the 0.7–1.2 µs mapping check they replace. - **#6567** (a recycled descriptor set only for a table of its own size): on `main`, `DescriptorCache::AllocateRewritten` hands out any recycled set of a layout, and #6567 keys recycled sets by layout and variable count. This PR's kept dedicated sets already match the variable count, and its rewritten tables take their recycled sets from that map, so #6567's fix covers them too, with no duplicated work. They conflict in `ShaderResources.hpp` (`SetAllocation` and the `recycled` map's key: `variableCount` is a `std::optional` here and a count there) and in `ShaderResources.cpp` (the returns of `Allocate`). Whichever merges second keeps this PR's `SetAllocation` fields (`layout`, `sizes`, the optional `variableCount` and `table`) and its `kept` list, keys `recycled` by layout and `variableCount.value_or(0)` in both `AllocateRewritten` and `Recycle`, and sets `variableCount` in each of `Allocate`'s returns. - **#6537** (each set's image table writes kept in its own draw snapshot set): on `main`, `PrepareDrawBindings` matched recorded descriptor writes by binding number alone, so the fragment table's writes (binding 260 in set 1) went into the vertex table's snapshot set 0. SleglJan's runs of 007 First Light (PPSA11386) with this PR reached that pairing before the menu: all 12 runs ended on SIGSEGV, with `VUID-VkWriteDescriptorSet-dstArrayElement-00321` (339 table descriptors into a set allocated for 1). With #6537 added, 3 of 3 reached the menu at 2.90 fps, against 0.68–0.74 fps with neither. This branch merges #6537's head (AnthonyClemens's commit, unchanged), so the two can't land apart. - **#6881** (merged; poisons unsupported biased volume table entries): no git conflict, but its new `verifyVolumeBiasTableRejection` in `tests/ShaderMemory.cpp` didn't compile against this PR's snapshot layout, where `codes` and `words` are per-column `SharedValues` (SleglJan's report on #6881). Scramblrrrr's 913b93635 adapts the fixture's two lines; it's cherry-picked here as 209f3ce87b, right after this branch's merge of `main` 9caecfd2d5 (dad24e3a4f). **Other conflicts, in shared lines** (an overlap check against `main` 668a7ddc19 and the open PRs, 2026-10-16). Whichever merges second keeps both sides: - **#6614** (merged; free released lavapipe descriptor sets): `DescriptorCache`'s constructor keeps this PR's `KeptSets()` helper and `kept.reserve` body with #6614's `freeDescriptorSets(...)` initializer. #6614 frees sets on the chain-pool path, and this PR's kept sets are dedicated pools, so the two don't touch the same sets. - **#4943** (merged; cached draws across moved user data) replaced the loop in `DrawCapture.cpp` that builds a draw variant's runs and words with `tagVariantRuns`, and added a user-data-use pointer to the SRT walker's options. This branch merges `main` with it: `tagVariantRuns` also records this PR's shared words (`AppendSharedWords`, from the capture's supplied blocks) for each run it appends, and the walker's options keep both sets of fields. The first merge of `main` recorded the shared words by capture region, which names the wrong run once relocation splits a region; e448df1ea8 records them by run, so a split variant's runs are validated as before (`SplitRunsNameTheirSharedWords`). - **#5609 and #6539** (TheAggie, on #4943): #5609 merges cleanly. #6539 conflicts in `tagVariantRuns`: keep #6539's forwarded-word block before the loop, and this branch's loop that records the shared words by run. Both add includes at the top of `tests/execution/DrawCacheRelocation.cpp`; keep both. - **#6188** (compile uncached draws ahead of queue 0): it moves a draw variant's construction into `DrawStageVariant` and renames the variant merge in `DrawCache.cpp`. Move this PR's shared-words build into `DrawStageVariant`, which then needs the capture's supplied blocks, keep this PR's comparison of a kept variant (push offset, mesh index descriptor, runs and captured words) under #6188's names, and keep both declarations in `Driver.hpp`. - **#5958** (sample converted images in the shader): the data-hit check builds its `ShaderMemory` with this PR's `QueryPendingSpan` and captures through #5958's `CaptureInvocation`. - **#5872** (merged; shader preparation on first use): one declaration next to this PR's in `Driver.hpp`, kept both in this branch's merge of `main`. - **#6856** (a failing shader capture's own request) and **#6134** (preparation-failure dump names): each changes `dumpRequest`'s declaration in `Driver.hpp`, next to this PR's `tagVariantRuns`. Keep both lines. - **#6858** (bound cache keys before padded offset arithmetic): adds `EntryHeaderBytes` next to `FormatVersion` in `ShaderDiskCache.hpp`. Keep it, and this PR's `FormatVersion`. - **From the PRs this branch merged:** #6266 and #6308 (with #6455's tests), #6232, #6296, #6032 and #6674 (with #6243's lines) and #6188 (with #6537's test) now meet those changes in `main`. - **#7193** (XairRrR, merged; image-table indexes in per-thread scratch): this branch's merge of `main` 3de84fa106 (db622e1c4f) reworks `TableSnapshotter::WordsIndex(records, value)` on #7193's `HashScratchIndex`, indexing the column's own `records.distinct`, since this PR keeps a snapshot's words per table, with a new `HashScratchIndex::Clear()` called for each column. `ResolveImageTables` uses #7193's `DenseScratchMap`, sized by the largest column's word count and cleared per table, reading `column.words.at(code)`. #7193's `verifyImageTableScratchReuse` counts the distinct records as `snapshot.tables.at(0).words.size()`. **More general than this PR, for a follow-up:** #6340's per-entry reuse (this PR's replay is all or nothing per table; a follow-up would add per-entry reuse and keep the whole-table replay as the fast path when every entry is current), and from #6440 the layout reuse on changed words, narrowed columns and a process-wide memo. A follow-up could take them into this PR's memo. In the other direction, #6440 and #6340 have no unwritten-heap hit, identity share or kept descriptor sets. **Disk cache format:** `main` has `FormatVersion` 37 since #6243, and this branch keeps it: its own disk-cache change only keeps its two reuse switches out of the cache keys. #6280, #6412 and #6488 also set 37, so each needs the next number; git won't flag it. **Benches** (one Linux VM, lavapipe, trees alternated). A 19,000-record column, per `ShaderMemory::Capture`, p50 / p90: | Case | main | #6440 | this PR | this PR + #6440 | |---|---|---|---|---| | unchanged heap | 2.97 / 4.40 ms | 1.93 / 3.20 ms | 0.004 / 0.004 ms | 0.004 / 0.006 ms | | written heap, equal words | 2.70 / 3.45 ms | 1.97 / 2.96 ms | 1.04 / 1.28 ms | 0.92 / 1.11 ms | | one record changed each capture | 2.78 / 3.33 ms | 2.70 / 3.90 ms | 2.69 / 3.47 ms | 2.85 / 4.00 ms | | 40 tables in turn¹ | 2.68 / 3.74 ms | 2.79 / 3.84 ms | 2.91 / 3.84 ms | 2.07 / 3.81 ms | ¹ With #6440, 125 of the 200 captures hit and 75 miss, so the p50 varies by round. The mean per capture: 2.93 ms (main), 3.00 ms (#6440), 3.15 ms (this PR), 2.68 ms (this PR + #6440). A Resident Evil Village-like load (a 32,768-record heap, three queues, 21 s runs): | | main | #6440 | #6340 | this PR | this PR + #6440 | this PR + #6340 | |---|---|---|---|---|---|---| | table dispatches/s, watched heap | 43–46 | 44–47 | 44–47 | 304–313 | 310–319 | 271–295 | | dispatch-cache compare, p50 per dispatch | 26.1 ms | 28.5 ms | 28.5 ms | 0.16 ms | 0.16 ms | 0.15 ms | | `resolveImageTables`, p50 per build | 1.05 ms | 1.05 ms | 2.10 ms | 0.68 ms | 0.71 ms | 1.69 ms | With an unwatched heap (the Linux default for imports) every tree measures 30–35 table dispatches/s. **Merge order:** either works. #6440 and #6340 don't conflict with each other, and each conflicts with this PR in its own file. If they land first, this PR takes the resolutions on the three `test/v3-x-*` branches; if this PR lands first, the same resolutions apply to them. #6481 and #6488 don't conflict with #6440, #6340 or #6402, except #6488 with #6440 in `tests/ShaderMemory.cpp`. ### Tested - CI's Linux job, mirrored on a Linux cloud worker at fae2221c47 (Ubuntu 24.04, GCC 13.3, CI's configure flags, lavapipe): 1,279 tests, 1,213 pass and 61 skip. The 5 failures are network tests that need IPv6, which that machine lacks, and `check_skips.py` flags only `guest_sce_net`, skipped for the same reason. `check_test_registration.py` passes. - GitHub runners: - with #6537 merged (fae2221c47): v3's tests and the recorder tests pass 3 of 3 on Linux and Windows ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/38816151226)), and #6537's `drawSnapshotTableSetTests` (`agc_driver_recorder_tests --draw-descriptors-only`, registered for that check only) passes on Linux lavapipe ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/38818677285)). Both runs are marked failed only for `guest_kqueue` on Windows, and the first also for `precise_wait` in the libc suite on Linux; this change touches neither. - with #6537's newer head merged (its test now registered as `agc_draw_descriptors`): `agc_draw_descriptors`, `agc_driver_draw_cache_relocation` and `agc_driver_image_table_reuse` pass 3 of 3 on Linux, and skip on Windows without a Vulkan device ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/38908033934)). - at this branch's merges of #6243's head (5a31a9c674) and then #6455's (ab82f50a1b): `agc_shader_table_snapshot_reuse`, `agc_write_tracking` and the related `agc` tests pass 20 of 20 on Linux and Windows ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/38766406530), [run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/38768738751)). - a full `^agc` sweep at 5a31a9c674, next to the same sweep of `main` 4186f06a9a on the same runners ([this branch](https://github.com/EagleBearerYS/AnyPS5/actions/runs/38766835723), [main](https://github.com/EagleBearerYS/AnyPS5/actions/runs/38766874776)): Linux 603 of 604 (41 skip), the one failure the known parallel-load flake `agc_driver_preparation_scope_settle`, against `main`'s 601 of 601. Windows 597 of 598 (465 skip without a Vulkan device) against `main`'s 594 of 595, both failing only `agc_driver_pm4_replay_tool` (0xc0000139). - four of the branch's commits on their own (d816062960, 97590db998, dc6c346de7 and the merge of `main`, d21b0801a4) pass the snapshot reuse and related tests on both runners. - the libc and libkernel suites pass on Linux; on Windows only `guest_kqueue` fails, which fails on `main` on the same runners. - Windows 11, NVIDIA GeForce RTX 3070 Laptop GPU (driver 617.42), on `main` 66e290f1c0 with this PR, #6678 and #6911 merged (the other two don't touch this path): `agc_driver_image_table_reuse` passes 5 of 5, with the Windows counts of its CPU-write cases (`3 - CpuWriteResolutions` reuses with `CpuWriteResolutions` resolutions for "a CPU write collected in a new epoch, then two dispatches"). - The Windows runner found that the snapshot reuse test's page-protection case never made the page inaccessible on Windows: the arena call it used changes only section views there, while the guest's `mprotect` also calls `VirtualProtect`. The test now protects the page the way `mprotect` does on each platform, and adds a table mapped again with new contents. With the vouch's allocation-generation check removed, the test fails on both runners ([red](https://github.com/EagleBearerYS/AnyPS5/actions/runs/38763423267): "a table was reused without a read after a guest mapping changed"); with it, it passes 20 of 20 on both ([green](https://github.com/EagleBearerYS/AnyPS5/actions/runs/38763408574)). - Ubuntu 24.04, GCC 13.3, lavapipe (llvmpipe, Mesa 25.2.8), the tree before the test fix above, merged with `main` 4e9a2a871 and with draws pipelined at `main`'s default: `ctest -R '^agc'` passes 599 of 600 (41 skip on lavapipe). The one failure is the known parallel-load flake `agc_driver_preparation_scope_settle`, which passes 5 of 5 alone and fails the same way on `main` 4e9a2a871. Stage 1's head and the head of stages 2-3 also passed the suite on their own, before the merge with `main`. - New and extended tests: - the vouch of a strided table: one call for 4,096 records. It is refused by a store between records until a compare renews it, by a store into a record, by a pending GPU write in or between records, by a remap, and by CPU, driver and GPU-result stores, and never given for a released block; - `agc_driver_image_table_vouched_lookups`: dispatches over a write-watched heap are vouched for. A CPU store, a CP `WRITE_DATA` pending ahead of the dispatch, and a driver store each refuse the vouch and capture again; - the two-thread stamp race; - `agc_driver_image_table_vouch_queued_draws`: with real queue-0 pipeline commits held, a vouch over a table is refused, without waiting, when a queued draw writes between two records or into a record. It is given when the draw writes elsewhere, or once the draws commit; - whole-span checks of a capture go to the non-draining span query; - a shader disk cache filled without the reuse switches loads with them set, with no rebuild; - a driver store across a write-watched heap's edge into unwatched memory ends the table's epoch; - stores into partly watched memory; - a page protected, and a table mapped again, under a reused column; - replay in the image table reuse test, run with and without the replay; - kept and made table writes; - the descriptor cache's kept-set contract. - Resident Evil Village-like bench: 3 queue workers, an active recorder, a populated storage registry, pending results, and a heap of 32,768 records at stride 48, write-watched as on Windows. Xeon 2.8 GHz VM, lavapipe, on `main` 4e9a2a871 against this PR's code, two interleaved rounds. µs per call: | | main | this PR | |---|---|---| | dispatch cache compare, hit | 35,590 | 200 | | the same with snapshot (block-compressed-like) textures | 38,860 | 194 | | heap written every round: compare | 28,468 | 4,561 | | heap written every round: capture per miss | 8,859 | 628 | | table resolution per build, snapshot textures | 1,522 | 986 (a replay: 300) | | descriptor set per build | 8,529-8,748 | 3,022-4,858 | | table dispatches/s: hit / snapshots / written / 48 heaps / unwatched | 36-37 / 44-50 / 36-37 / 40-41 / 28-30 | 70 / 285-303 / 63-65 / 40-42 / 28 | With 48 heaps (each worker cycles more tables than it keeps) or a heap that isn't write-watched (Linux's default), no vouch is possible or the memo thrashes, and both sides swing by 20-30% per round. Over five rounds each, the 48 heaps' compare is 30.9 ms against `main`'s 31.6 ms. The unwatched heap's compare and resolution average 2% and 3.4% above `main`'s, inside `main`'s per-round range (compare 23.5-27.3 ms against 21.3-29.0 ms). Peak memory is lower in every case except 48 heaps, where the two ranges overlap (1,391-1,493 MiB against 1,261-1,543 MiB) and this PR's sits higher. - **The shared words by run (e448df1ea8):** `agc_driver_draw_cache_relocation`'s `SplitRunsNameTheirSharedWords` gives a variant two user-data bases into one region ahead of a table's region. At the merge it fails with "the shared words of a variant whose runs were split for relocation name run 1 of 5, not the table's run 4"; with the fix it passes 5 of 5, and `ctest -R '^agc'` passes 612 of 612 (43 skipped) on Linux. The full Linux CI job at the merge ran 1,283 tests: 1,216 passed, and the failures were network tests that need IPv6, which that machine lacks, and the `agc_driver_preparation_scope_settle` load flake. - On GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/38898366997)), the relocation, table-reuse, vouch and draw-cache reuse tests pass 5 runs in a row on Linux (the new test needs the fix's include path, so the previous head doesn't build it); on Windows they skip without a Vulkan device. The suites' only failures were libc's `precise_wait` on Linux, a timing test, and libkernel's `guest_kqueue` on Windows, which fails on `main` there too. - **The merge of `main` 72c5eed1ff** (with #4943), on GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/38887231696)): the draw-cache relocation, image-table, table-reuse, draw-cache reuse and BDA tests and those tied to the changed files pass 3 runs in a row on Linux (96 tests) and Windows (97 of 98; the GPU tests skip there). The only failures are libc's `precise_wait` on Linux, a timing test, and libkernel's `guest_kqueue` on Windows, which fails on `main` there too. - **The merge of `main` 3cc1fc8f11** (a53d23f810, with #6402, #6614 and #7101) **and of #6243's head** (9dcf408034, which expects a per-lane table `image_store` to be supported now that #6402 makes it so), at 6884e9c441, on GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39078549851)): this PR's tests and those tied to the files it changes, 3 runs in a row, and the `^agc` tests. Linux passes all of them. On Windows the only failures are `agc_driver_pm4_replay_tool` and `agc_shader_replay_tool`, which exit with 0xc0000139 when they start. They fail the same way on this runner for an unrelated branch today ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39061670036)), and this PR doesn't touch either tool. - **The merges of #6243's head 8c6765be71** (49788713ac, with `main` f1af6c5915 and #7325) **and of `main` b39d90bf14** (6720211da1, after #6243 merged), on GitHub's runners. The first merge adapts #7325's `verifyChainedTableOffset` to read `snapshot.words`, since this PR keeps a snapshot's words per table. At 49788713ac ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39084730639)) and at 6720211da1 ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39090046484)), this PR's tests pass 3 runs in a row on Linux, as do the `^agc` tests (688 and 694, 0 failed). On Windows the only failures are `agc_driver_pm4_replay_tool` and `agc_shader_replay_tool`, as at 6884e9c441. At 6720211da1 the Linux suite's one failure was libc's `precise_wait` timing test; this PR doesn't touch libc. - **The merges of `main` 3de84fa106** (db622e1c4f, with #7193) **and `main` bb2624a533** (a508aa03c4, after #6455 merged), on GitHub's runners: this PR's tests, `agc_shader_bindless` with #7193's scratch-reuse case among them, pass 3 runs in a row on Linux, as do the `^agc` tests (710, 0 failed at both; [run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39097119529), [run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39099945158)). On Windows the only failures are the same two replay tools. At a508aa03c4 the Linux suite's one failure was libc's `precise_wait` timing test. - **The merge of `main` 9caecfd2d5** (dad24e3a4f, with #6881) **and Scramblrrrr's 913b93635** (cherry-picked as 209f3ce87b), on GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39117369383)): the `^agc` tests pass 3 runs in a row on Linux (711, 0 failed), and the suites' only failure is libc's `precise_wait` timing test. On Windows the only failures are the same two replay tools. - **The merge of `main` 0d078f75d3** (54f2cf31b1, no conflicts) **and the `docs/dev/ENVIRONMENT.md` rows** for this PR's five switches (790fe18183, the head; `main` lists every switch there since #6078), on GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39126018992)): the `^agc` tests pass on Linux (712, 0 failed), and the libc and libkernel suites pass. On Windows the only failures are `agc_driver_pm4_replay_tool` and `agc_shader_replay_tool`, as in the runs above. - **The merge of `main` 61d3d3080c** (d0325058f7, the head), on GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39155128888)): #7527's new selected-record limit test read a record's descriptor words through the snapshot's shared `words` list. This branch keeps a snapshot's words per column, so the merge has the test read them from its column. On Linux the `^agc` tests pass 729 of 730. The one failure was this PR's `agc_driver_image_table_vouch_queued_draws` ("a queued draw writing outside the table: the table was not vouched for"); it then passed 3 runs in a row with the image-table and graphics tests ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39159515546)). The suites pass. On Windows, where 546 of the 730 skip without Vulkan, the only failures are the two replay tools (exit code 0xc0000139), as in the runs above. - **Resident Evil Village (PPSA01556), the reuse switch's A/B** asked for on this PR: one build of this PR's head 49788713ac (before the #7193 re-port) on `main` f1af6c5915, with #6366, #6451, #6470, #6146, #6682 and #6646, which the title needs to reach its menu and first scene. NVIDIA GeForce RTX 3070 Laptop GPU (driver 617.42), Windows 11, unprofiled, warm shader cache, `APS5_LAZY_SHADER_PREPARE=1 APS5_TRACE_SUMMARY_EVERY=1 APS5_NO_GPL=1 APS5_HOST_IMPORT_MIB=6400`, one run per arm. A is this PR as is, B adds `APS5_NO_TABLE_SNAPSHOT_REUSE=1`. Frame times are in seconds (about 0.1 fps on this build): - Main menu, minutes 5 to 15, no input: A 48 presents, p50 11.3 s, p90 14.0 s; B 44 presents, p50 12.0 s, p90 19.2 s. The bootstrap 95% interval of the median ratio, 0.98 to 1.25, includes no change. Clocks weren't held: P0 for 75.5% of A's samples (mean 1,304 MHz) and 96.4% of B's (mean 1,252 MHz). - First scene at control, minutes 30 to 40: A 44 presents, p50 12.6 s, p90 17.3 s; B 35 presents, p50 13.8 s, p90 28.3 s. A's frames are about 9% shorter at the median and 21% on average; the bootstrap 95% interval of the median ratio, 1.02 to 1.38, excludes no change. Clocks were held in both (P0 99.9%; mean 1,289 and 1,279 MHz). - Screenshots and details are in [this comment](https://github.com/boykopovar/AnyPS5/pull/6454#issuecomment-6246682007). - **Resident Evil Village (PPSA01556), the same A/B on the re-port** (a508aa03c4, before the merge of `main` 9caecfd2d5), with the same six PRs, setup and arms, menu only ([comment](https://github.com/boykopovar/AnyPS5/pull/6454#issuecomment-6248889935)): - Main menu, minutes 5 to 15, no input: A 306 presents (0.510 fps), p50 1.9 s, p90 2.3 s; B 153 presents (0.255 fps), p50 3.8 s, p90 4.7 s. A's frames are about half as long: median ratio 0.492 (one-sided rank test, p < 0.0001). Clocks weren't locked: P0 for 69.8% of A's samples and 98.6% of B's (mean 1,337 and 1,333 MHz), which, if anything, favours B. - In the shots past the menu's fade-in, the logo, menu items and prompt match; the rest of the view differs about as much as two runs with the reuse on. - **Resident Evil Village** (PPSA01556, 01.210.000) at the static main menu, on an NVIDIA GeForce RTX 3070 Laptop GPU (driver 617.42), Windows 11, unprofiled, with the game window in the foreground. The pair is on Resident Evil Village's test tree of `main` 0c4816f611, with the fixes it needs to reach the menu. A′ adds #6243 (090c0dad15). B is A′ plus this branch at ab82f50a1b, which also carries #6455, from before the branch merged #6537. Both ran with the same environment (`APS5_HOST_IMPORT_MIB=6400 APS5_NO_GPL=1 APS5_TRACE_SUMMARY_EVERY=60`, and the test tree's `APS5_LAZY_SHADER_PREPARE=1`): | | A′ (#6243) | B (+ this PR) | |---|---|---| | menu fps, median of the 60-s intervals 5-15 min after the menu stood | 0.134 | 0.147 | | those intervals | 0.129-0.139 (10) | 0.145-0.153 (9) | | frame p50 / p90 | 7.52 / 7.74 s | 6.75 / 6.85 s | | menu fps, first 5 min | 0.126 | 0.145 | | `Driver.Packet` per frame | 21.4-24.4 s | 19.4-20.4 s | | `Driver.Draw` per frame | 6.8-7.7 s | 6.1-6.5 s | - About 10%: the two runs' 60-s intervals don't overlap, and the per-frame driver time is about 10% lower throughout. It is one run per arm. - No minute was cut for paging (page reads stayed under 700/s), and neither run logged a FATAL, a null image or an invalid runtime value. - B logged one non-fatal `[gpu] guest snapshot differs from registered memory` line during boot, for a 128-byte snapshot in a live import region, which serves the GPU whatever the snapshot holds. A′ logged none. The log doesn't say which capture it was. This PR vouches for a table only while its whole range is write-watched and unwritten (the tests cover an unwatched table, a store across the heap's edge into unwatched memory and a GPU write through `MarkWritten`), and `main`'s check also fires when the guest writes captured words between the capture and the device lock. - The current head also carries #6537. - **Summary lines** (`APS5_TRACE_SUMMARY_EVERY=60`): one 60-s interval of each run, near the middle of that window. A′ is 9a4775d4cf and B 2393232bd4, captured on 2026-10-16, before this branch's later merges of `main`. GPU clocks weren't recorded for this pair. The traces are available on request. ``` {"commit":"9a4775d4cf90","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":"60"},"gpu":"NVIDIA GeForce RTX 3070 Laptop GPU","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","resolution":"3840x2160","window":{"spec":"summary_every 60","first_present":18679,"ms":62222.571},"interval_start_s":1638.576,"interval_end_s":1700.798,"presents":8,"frame_ms":{"p50":7728.611,"p90":8584.169,"p99":8584.169,"max":8584.169},"gpu_busy_ms_per_present":617.800,"worker_busy_pct":{"queue worker 0x0":99.938,"queue worker 0x38":0.044,"queue worker 0x28":99.163,"queue worker 0x20":97.639},"top_phases_ms_per_frame":{"Driver.Packet":23081.163,"Driver.Packet.memory_wait":14928.669,"Driver.Packet.draw":7366.612,"Driver.Draw":7365.400,"Driver.Draw.draw_and_resource_release":5141.658,"Graphics.Draw":5121.070,"Graphics.Draw.draw_and_resource_release":5095.563,"Resources.Complete":2384.252},"trace_dropped":false,"trace":""} {"commit":"2393232bd45e","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":"60"},"gpu":"NVIDIA GeForce RTX 3070 Laptop GPU","driver":"NVIDIA 617.42","os":"Windows 10.0.26300","resolution":"3840x2160","window":{"spec":"summary_every 60","first_present":19628,"ms":65549.916},"interval_start_s":1697.301,"interval_end_s":1762.851,"presents":10,"frame_ms":{"p50":6616.636,"p90":6973.376,"p99":6973.376,"max":6973.376},"gpu_busy_ms_per_present":574.870,"worker_busy_pct":{"queue worker 0x0":99.934,"queue worker 0x38":0.049,"queue worker 0x28":99.040,"queue worker 0x20":97.298},"top_phases_ms_per_frame":{"Driver.Packet":19415.223,"Driver.Packet.memory_wait":12436.242,"Driver.Packet.draw":6120.830,"Driver.Draw":6119.717,"Driver.Draw.draw_and_resource_release":4733.257,"Graphics.Draw":4716.208,"Graphics.Draw.draw_and_resource_release":4693.050,"Resources.Complete":2209.831},"trace_dropped":false,"trace":""} ``` `tools/trace_digest.py` on the two lines: **2 intervals**, 1638.6 to 1762.9 s, 18 presents NVIDIA GeForce RTX 3070 Laptop GPU, NVIDIA 617.42, Windows 10.0.26300, 3840x2160, commit 9a4775d4cf90 commit, environment, GPU, driver or OS changed at interval 2 | # | seconds | presents | p50 | p90 | p99 | max | GPU busy | busiest worker | largest phase | |---|---|---|---|---|---|---|---|---|---| | 1 | 1639-1701 | 8 | 7728.6 | 8584.2 | 8584.2 | 8584.2 | 617.8 | 100 % | Driver.Packet 23081.2 | | 2 | 1697-1763 | 10 | 6616.6 | 6973.4 | 6973.4 | 6973.4 | 574.9 | 100 % | Driver.Packet 19415.2 | ``` p99 ms @# 0-8584.2 gpu ms @% 0-617.8 ``` - **007 First Light** (PPSA11386, v01.018.000) at the main menu, run by SleglJan on Linux 7.2.10 with an NVIDIA GeForce RTX 3080 10 GB (driver 615.78.08), Ryzen 9 7950X3D, GCC 16.2.1, Release ([comment](https://github.com/boykopovar/AnyPS5/pull/6454#issuecomment-6237787331)). The base is `main` bc3c0fc13 with four open shader PRs the title needs (#5799, #6317, #6332, #6881). Each arm merges PR heads as they were, this PR at 1752c4a89, which carries #6243, #6455 and #6537. Every build has its own warm shader cache, `APS5_PROFILE_DRAW=1` and scripted pad input from a save; the window is 180 s in the menu. Frame p50: | arm | samples | frame p50 | |---|---|---| | base | 2 | 2219.9, 1943.0 ms | | + #5372 | 2 | 1497.7, 1501.0 ms | | + this PR | 1 | 1213.0 ms | | + #5372 + this PR | 1 | 441.6 ms | - Alone, this PR takes 868 ms off the base's mean; with #5372 the pair takes 1640 ms off, more than the two alone added up (1451 ms). - GPU busy is 177-205 ms per present in every sample but one (289; GPU clocks weren't reported), and queue worker 0 is busy for 99.8-100 % of every window, so the difference is on the CPU side. - On queue worker 0 this PR cuts the capture from 1,171 to 115 ms per present. Without #5372 about 450 ms of that reappears as draws waiting for room in the 8-deep draw pipeline (`draw_enqueued` 72 → 524 ms), behind the committer's CPU copies, which #5372 removes; with both, the committer takes 162 µs per commit. That's SleglJan's reading of the counters; the parts weren't tested apart. - Not covered: the arms with this PR have one sample each, the menu background is animated, and the base's two samples are 277 ms apart. #6243, #6455 and #6537 come with this branch's head and weren't separated from it. - **007 First Light again, on a newer `main`** (1b0c7cfa0, after #6243, #6537 and #6455 merged), run by SleglJan on the same machine with the same harness ([comment](https://github.com/boykopovar/AnyPS5/pull/6454#issuecomment-6251348118)). The base adds #5799, #6317, #6332 and #6881 to that `main`; the second arm adds #5372 at e5390612f; the third adds this PR at a508aa03c, whose code the current head 790fe18183 keeps (since then, besides two merges of `main`, it adds only the two-line adaptation of #6881's test fixture and the `docs/dev/ENVIRONMENT.md` rows). Every arm has its own warm shader cache and `APS5_PROFILE_DRAW=1`; the window is 180 s in the menu. Frame p50: | arm | samples | frame p50 | |---|---|---| | base | 2 | 1332.9, 1337.1 ms | | + #5372 | 1 | 611.6 ms | | + #5372 + this PR | 2 | 455.1, 456.8 ms | - On top of #5372, this PR takes the frame p50 from 612 to 456 ms (-25%); the pair takes it from 1,335 to 456 ms (-66%). - GPU busy is 181-187 ms per present in every sample (GPU clocks weren't reported), so the difference is on the CPU side. - On queue worker 0, with #5372, this PR takes `Shader.DrawStage.capture_resources` from 300 to 97 and 156 ms per present (the two samples), and `Driver.Packet.dispatch` from 94 to 78 and 76 ms. - Not covered: this PR wasn't run without #5372 on this base, the #5372 arm has one sample, the menu background is animated, and the runs cover the main menu only, with no gameplay, no other GPU and no Windows. - **Onimusha: Way of the Sword** (PPSA27836) at the language menu with no input, run by simonbronk on Windows 11 with an NVIDIA GeForce RTX 5070 (driver 617.42) at 3840x2160, warm shader cache, the trace summary over 30 s from 60 s after the first present ([comment](https://github.com/boykopovar/AnyPS5/pull/6454#issuecomment-6241965643)). The base is `main` 84b0d2f24 with #6557, #6727 and #6762, 6 runs; this PR merged on top, 3 runs. Frame p50 with this PR: 79.1 and 80.0 ms, inside the base's 77.9 to 84.5 ms (mean 82.0), and 71.7 ms in a run whose p90 was 129.9 ms, which simonbronk counts as noise. No measurable change in that scene. ### Checklist - [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 (#6243, #6455 and #6537, whose heads this branch merged, are in `main`) - [x] Unblocks: none (performance; measured on Resident Evil Village PPSA01556 #5169 and, by SleglJan, 007 First Light PPSA11386 #5714) - [x] GPUs tested: Mesa lavapipe (llvmpipe, Mesa 25.2.8), Ubuntu 24.04; the Windows runner (no Vulkan driver); NVIDIA GeForce RTX 3070 Laptop GPU (driver 617.42), Windows 11, for the Resident Evil Village pair and `agc_driver_image_table_reuse`; NVIDIA GeForce RTX 3080 10 GB (driver 615.78.08), Linux, for 007 First Light (SleglJan) - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-15 16:37:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T16:37:09Z.


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 6340 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp L1608-1609, L4571-4591, L4678-4679
PR 6440 core/shader/recompiler/Optimization/include/Optimization/ResourceMaterializer.hpp L44
core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp L20, L334, L343, L369, L371, L860-862, L929-959, L969-970
PR 6567 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp L85, L117
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp L3775
PR 7369 core/libs/prx/libSceAgcDriver/tests/execution/DrawCacheRelocation.cpp L2-3, L133
PR 7508 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRelocate.cpp L95-104
PR 7514 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp L1426, L1429-1430, L1433-1434, L1456-1457
PR 7650 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp L4563-4567
PR 7684 core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp L810-811
docs/dev/ARCHITECTURE.md L159

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 907 core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
PR 1341 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CMakeLists.txt
core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/ResourcePlan.hpp
core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
PR 1368 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 1395 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 2434 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 3247 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 4040 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 4072 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/shader/recompiler/Recompiler.cpp
PR 4448 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 4472 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 4650 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 4891 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 5021 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/shader/recompiler/Recompiler.cpp
PR 5371 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Optimization/include/Optimization/ResourceMaterializer.hpp
core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
PR 5404 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCache.cpp
PR 5426 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 5431 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ENVIRONMENT.md
PR 5441 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 5499 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 5500 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 5609 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCache.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRelocate.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 5925 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/shader/recompiler/CMakeLists.txt
core/shader/recompiler/ShaderDiskCache.cpp
docs/dev/ARCHITECTURE.md
PR 6044 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/ARCHITECTURE.md
PR 6177 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
PR 6185 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6186 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6188 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/VariantValidation.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCache.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
core/libs/prx/libSceAgcDriver/Execution/src/ShaderMemory.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6192 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6194 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6197 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6202 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6223 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/execution/ImageTableReuse.cpp
PR 6235 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 6273 core/libs/prx/libSceAgcDriver/tests/execution/ImageTableReuse.cpp
PR 6280 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Optimization/include/Optimization/ResourceMaterializer.hpp
core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 6300 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6360 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6472 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6481 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6486 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 6488 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/ResourcePlan.hpp
core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 6498 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 6501 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
PR 6503 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
docs/dev/ARCHITECTURE.md
docs/dev/ENVIRONMENT.md
PR 6505 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6529 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6530 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6535 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6539 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCache.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRelocate.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/libs/prx/libSceAgcDriver/tests/execution/DrawCacheRelocation.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 6548 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6563 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6571 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6606 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6612 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CMakeLists.txt
core/shader/recompiler/Recompiler.cpp
PR 6615 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Memory/WriteEvidence.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6639 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 6645 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 6679 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
PR 6701 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6718 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6747 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6759 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6762 core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
PR 6763 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
docs/dev/ARCHITECTURE.md
PR 6786 core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6788 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6801 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 6808 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6820 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6868 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6879 core/shader/recompiler/CMakeLists.txt
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 6924 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/ShaderDiskCache.cpp
docs/dev/ENVIRONMENT.md
PR 6931 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
docs/dev/ARCHITECTURE.md
PR 6937 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/execution/ImageTableReuse.cpp
PR 6941 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CMakeLists.txt
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 6946 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/VariantValidation.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCache.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
core/libs/prx/libSceAgcDriver/Execution/src/ShaderMemory.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/CMakeLists.txt
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/ShaderDiskCache.cpp
docs/dev/ARCHITECTURE.md
docs/dev/ENVIRONMENT.md
PR 6947 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/VariantValidation.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCache.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
core/libs/prx/libSceAgcDriver/Execution/src/ShaderMemory.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CMakeLists.txt
core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/ResourcePlan.hpp
core/shader/recompiler/Optimization/include/Optimization/SrtWalker.hpp
core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/ShaderDiskCache.cpp
docs/dev/ARCHITECTURE.md
docs/dev/ENVIRONMENT.md
PR 6959 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 6960 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6963 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp
PR 6970 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 6971 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6972 core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 6977 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/shader/recompiler/CMakeLists.txt
core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 7154 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 7201 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/shader/recompiler/CMakeLists.txt
core/shader/recompiler/Recompiler.cpp
PR 7223 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/ResourcePlan.hpp
core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 7233 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7254 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 7256 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
PR 7258 core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
PR 7332 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp
core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/CMakeLists.txt
core/shader/recompiler/Recompiler.cpp
docs/dev/ENVIRONMENT.md
PR 7371 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cpp
core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7388 core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
PR 7390 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp
core/shader/recompiler/Recompiler.cpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 7410 core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cpp
core/libs/prx/libSceAgcDriver/tests/Graphics.cpp
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp
core/shader/recompiler/Recompiler.cpp
PR 7450 docs/dev/ARCHITECTURE.md
PR 7505 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7550 core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp
core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp
core/shader/recompiler/ShaderDiskCache.cpp
PR 7604 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/ENVIRONMENT.md
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6197189389 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6454#issuecomment-6197189389). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-15T16:37:09Z. --- <!-- pr-overlap --> 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 6340](https://www.github.com/boykopovar/AnyPS5/pull/6340) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp` [L1608-1609](https://github.com/boykopovar/AnyPS5/blob/79d7d26b6d9cf02bdad1245436f6312654a06a82/core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp#L1608-L1609), [L4571-4591](https://github.com/boykopovar/AnyPS5/blob/79d7d26b6d9cf02bdad1245436f6312654a06a82/core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp#L4571-L4591), [L4678-4679](https://github.com/boykopovar/AnyPS5/blob/79d7d26b6d9cf02bdad1245436f6312654a06a82/core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp#L4678-L4679) | | | | [PR 6440](https://www.github.com/boykopovar/AnyPS5/pull/6440) | `core/shader/recompiler/Optimization/include/Optimization/ResourceMaterializer.hpp` [L44](https://github.com/boykopovar/AnyPS5/blob/79d7d26b6d9cf02bdad1245436f6312654a06a82/core/shader/recompiler/Optimization/include/Optimization/ResourceMaterializer.hpp#L44)<br>`core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp` [L20](https://github.com/boykopovar/AnyPS5/blob/79d7d26b6d9cf02bdad1245436f6312654a06a82/core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp#L20), [L334](https://github.com/boykopovar/AnyPS5/blob/79d7d26b6d9cf02bdad1245436f6312654a06a82/core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp#L334), [L343](https://github.com/boykopovar/AnyPS5/blob/79d7d26b6d9cf02bdad1245436f6312654a06a82/core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp#L343), [L369](https://github.com/boykopovar/AnyPS5/blob/79d7d26b6d9cf02bdad1245436f6312654a06a82/core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp#L369), [L371](https://github.com/boykopovar/AnyPS5/blob/79d7d26b6d9cf02bdad1245436f6312654a06a82/core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp#L371), [L860-862](https://github.com/boykopovar/AnyPS5/blob/79d7d26b6d9cf02bdad1245436f6312654a06a82/core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp#L860-L862), [L929-959](https://github.com/boykopovar/AnyPS5/blob/79d7d26b6d9cf02bdad1245436f6312654a06a82/core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp#L929-L959), [L969-970](https://github.com/boykopovar/AnyPS5/blob/79d7d26b6d9cf02bdad1245436f6312654a06a82/core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp#L969-L970) | | | | [PR 6567](https://www.github.com/boykopovar/AnyPS5/pull/6567) | `core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp` [L85](https://github.com/boykopovar/AnyPS5/blob/79d7d26b6d9cf02bdad1245436f6312654a06a82/core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp#L85), [L117](https://github.com/boykopovar/AnyPS5/blob/79d7d26b6d9cf02bdad1245436f6312654a06a82/core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp#L117)<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp` [L3775](https://github.com/boykopovar/AnyPS5/blob/79d7d26b6d9cf02bdad1245436f6312654a06a82/core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp#L3775) | | | | [PR 7369](https://www.github.com/boykopovar/AnyPS5/pull/7369) | `core/libs/prx/libSceAgcDriver/tests/execution/DrawCacheRelocation.cpp` [L2-3](https://github.com/boykopovar/AnyPS5/blob/79d7d26b6d9cf02bdad1245436f6312654a06a82/core/libs/prx/libSceAgcDriver/tests/execution/DrawCacheRelocation.cpp#L2-L3), [L133](https://github.com/boykopovar/AnyPS5/blob/79d7d26b6d9cf02bdad1245436f6312654a06a82/core/libs/prx/libSceAgcDriver/tests/execution/DrawCacheRelocation.cpp#L133) | | | | [PR 7508](https://www.github.com/boykopovar/AnyPS5/pull/7508) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRelocate.cpp` [L95-104](https://github.com/boykopovar/AnyPS5/blob/79d7d26b6d9cf02bdad1245436f6312654a06a82/core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRelocate.cpp#L95-L104) | | | | [PR 7514](https://www.github.com/boykopovar/AnyPS5/pull/7514) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` [L1426](https://github.com/boykopovar/AnyPS5/blob/79d7d26b6d9cf02bdad1245436f6312654a06a82/core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp#L1426), [L1429-1430](https://github.com/boykopovar/AnyPS5/blob/79d7d26b6d9cf02bdad1245436f6312654a06a82/core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp#L1429-L1430), [L1433-1434](https://github.com/boykopovar/AnyPS5/blob/79d7d26b6d9cf02bdad1245436f6312654a06a82/core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp#L1433-L1434), [L1456-1457](https://github.com/boykopovar/AnyPS5/blob/79d7d26b6d9cf02bdad1245436f6312654a06a82/core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp#L1456-L1457) | | | | [PR 7650](https://www.github.com/boykopovar/AnyPS5/pull/7650) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp` [L4563-4567](https://github.com/boykopovar/AnyPS5/blob/79d7d26b6d9cf02bdad1245436f6312654a06a82/core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp#L4563-L4567) | | | | [PR 7684](https://www.github.com/boykopovar/AnyPS5/pull/7684) | `core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp` [L810-811](https://github.com/boykopovar/AnyPS5/blob/79d7d26b6d9cf02bdad1245436f6312654a06a82/core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp#L810-L811)<br>`docs/dev/ARCHITECTURE.md` [L159](https://github.com/boykopovar/AnyPS5/blob/79d7d26b6d9cf02bdad1245436f6312654a06a82/docs/dev/ARCHITECTURE.md#L159) | | | 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 907](https://www.github.com/boykopovar/AnyPS5/pull/907) | `core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp` | | [PR 1341](https://www.github.com/boykopovar/AnyPS5/pull/1341) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/CMakeLists.txt`<br>`core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/ResourcePlan.hpp`<br>`core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp` | | [PR 1368](https://www.github.com/boykopovar/AnyPS5/pull/1368) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 1395](https://www.github.com/boykopovar/AnyPS5/pull/1395) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 2434](https://www.github.com/boykopovar/AnyPS5/pull/2434) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 3247](https://www.github.com/boykopovar/AnyPS5/pull/3247) | `core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/ShaderDiskCache.cpp` | | [PR 4040](https://www.github.com/boykopovar/AnyPS5/pull/4040) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 4072](https://www.github.com/boykopovar/AnyPS5/pull/4072) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/shader/recompiler/Recompiler.cpp` | | [PR 4448](https://www.github.com/boykopovar/AnyPS5/pull/4448) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 4472](https://www.github.com/boykopovar/AnyPS5/pull/4472) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 4650](https://www.github.com/boykopovar/AnyPS5/pull/4650) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/ShaderDiskCache.cpp` | | [PR 4891](https://www.github.com/boykopovar/AnyPS5/pull/4891) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 5021](https://www.github.com/boykopovar/AnyPS5/pull/5021) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/shader/recompiler/Recompiler.cpp` | | [PR 5371](https://www.github.com/boykopovar/AnyPS5/pull/5371) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/Optimization/include/Optimization/ResourceMaterializer.hpp`<br>`core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp` | | [PR 5404](https://www.github.com/boykopovar/AnyPS5/pull/5404) | `core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCache.cpp` | | [PR 5426](https://www.github.com/boykopovar/AnyPS5/pull/5426) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 5431](https://www.github.com/boykopovar/AnyPS5/pull/5431) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`docs/dev/ENVIRONMENT.md` | | [PR 5441](https://www.github.com/boykopovar/AnyPS5/pull/5441) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 5499](https://www.github.com/boykopovar/AnyPS5/pull/5499) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 5500](https://www.github.com/boykopovar/AnyPS5/pull/5500) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/ShaderDiskCache.cpp` | | [PR 5609](https://www.github.com/boykopovar/AnyPS5/pull/5609) | `core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCache.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRelocate.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/ShaderDiskCache.cpp` | | [PR 5925](https://www.github.com/boykopovar/AnyPS5/pull/5925) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`core/shader/recompiler/CMakeLists.txt`<br>`core/shader/recompiler/ShaderDiskCache.cpp`<br>`docs/dev/ARCHITECTURE.md` | | [PR 6044](https://www.github.com/boykopovar/AnyPS5/pull/6044) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`docs/dev/ARCHITECTURE.md` | | [PR 6177](https://www.github.com/boykopovar/AnyPS5/pull/6177) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/Recompiler.cpp` | | [PR 6185](https://www.github.com/boykopovar/AnyPS5/pull/6185) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6186](https://www.github.com/boykopovar/AnyPS5/pull/6186) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6188](https://www.github.com/boykopovar/AnyPS5/pull/6188) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/VariantValidation.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCache.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/ShaderMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6192](https://www.github.com/boykopovar/AnyPS5/pull/6192) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6194](https://www.github.com/boykopovar/AnyPS5/pull/6194) | `core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6197](https://www.github.com/boykopovar/AnyPS5/pull/6197) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6202](https://www.github.com/boykopovar/AnyPS5/pull/6202) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6223](https://www.github.com/boykopovar/AnyPS5/pull/6223) | `core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/execution/ImageTableReuse.cpp` | | [PR 6235](https://www.github.com/boykopovar/AnyPS5/pull/6235) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 6273](https://www.github.com/boykopovar/AnyPS5/pull/6273) | `core/libs/prx/libSceAgcDriver/tests/execution/ImageTableReuse.cpp` | | [PR 6280](https://www.github.com/boykopovar/AnyPS5/pull/6280) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp`<br>`core/shader/recompiler/Optimization/include/Optimization/ResourceMaterializer.hpp`<br>`core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp`<br>`core/shader/recompiler/ShaderDiskCache.cpp` | | [PR 6300](https://www.github.com/boykopovar/AnyPS5/pull/6300) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6360](https://www.github.com/boykopovar/AnyPS5/pull/6360) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 6472](https://www.github.com/boykopovar/AnyPS5/pull/6472) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6481](https://www.github.com/boykopovar/AnyPS5/pull/6481) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6486](https://www.github.com/boykopovar/AnyPS5/pull/6486) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp`<br>`core/shader/recompiler/ShaderDiskCache.cpp` | | [PR 6488](https://www.github.com/boykopovar/AnyPS5/pull/6488) | `core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/ResourcePlan.hpp`<br>`core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/ShaderDiskCache.cpp` | | [PR 6498](https://www.github.com/boykopovar/AnyPS5/pull/6498) | `core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp` | | [PR 6501](https://www.github.com/boykopovar/AnyPS5/pull/6501) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp` | | [PR 6503](https://www.github.com/boykopovar/AnyPS5/pull/6503) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`docs/dev/ARCHITECTURE.md`<br>`docs/dev/ENVIRONMENT.md` | | [PR 6505](https://www.github.com/boykopovar/AnyPS5/pull/6505) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 6529](https://www.github.com/boykopovar/AnyPS5/pull/6529) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6530](https://www.github.com/boykopovar/AnyPS5/pull/6530) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6535](https://www.github.com/boykopovar/AnyPS5/pull/6535) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6539](https://www.github.com/boykopovar/AnyPS5/pull/6539) | `core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCache.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRelocate.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/execution/DrawCacheRelocation.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/ShaderDiskCache.cpp` | | [PR 6548](https://www.github.com/boykopovar/AnyPS5/pull/6548) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6563](https://www.github.com/boykopovar/AnyPS5/pull/6563) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6571](https://www.github.com/boykopovar/AnyPS5/pull/6571) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6606](https://www.github.com/boykopovar/AnyPS5/pull/6606) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6612](https://www.github.com/boykopovar/AnyPS5/pull/6612) | `core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/CMakeLists.txt`<br>`core/shader/recompiler/Recompiler.cpp` | | [PR 6615](https://www.github.com/boykopovar/AnyPS5/pull/6615) | `core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Memory/WriteEvidence.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6639](https://www.github.com/boykopovar/AnyPS5/pull/6639) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 6645](https://www.github.com/boykopovar/AnyPS5/pull/6645) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 6679](https://www.github.com/boykopovar/AnyPS5/pull/6679) | `core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/Recompiler.cpp` | | [PR 6701](https://www.github.com/boykopovar/AnyPS5/pull/6701) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6718](https://www.github.com/boykopovar/AnyPS5/pull/6718) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6747](https://www.github.com/boykopovar/AnyPS5/pull/6747) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6759](https://www.github.com/boykopovar/AnyPS5/pull/6759) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6762](https://www.github.com/boykopovar/AnyPS5/pull/6762) | `core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/Recompiler.cpp` | | [PR 6763](https://www.github.com/boykopovar/AnyPS5/pull/6763) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`docs/dev/ARCHITECTURE.md` | | [PR 6786](https://www.github.com/boykopovar/AnyPS5/pull/6786) | `core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 6788](https://www.github.com/boykopovar/AnyPS5/pull/6788) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 6801](https://www.github.com/boykopovar/AnyPS5/pull/6801) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 6808](https://www.github.com/boykopovar/AnyPS5/pull/6808) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6820](https://www.github.com/boykopovar/AnyPS5/pull/6820) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6868](https://www.github.com/boykopovar/AnyPS5/pull/6868) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6879](https://www.github.com/boykopovar/AnyPS5/pull/6879) | `core/shader/recompiler/CMakeLists.txt`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/ShaderDiskCache.cpp` | | [PR 6924](https://www.github.com/boykopovar/AnyPS5/pull/6924) | `core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/ShaderDiskCache.cpp`<br>`docs/dev/ENVIRONMENT.md` | | [PR 6931](https://www.github.com/boykopovar/AnyPS5/pull/6931) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp`<br>`docs/dev/ARCHITECTURE.md` | | [PR 6937](https://www.github.com/boykopovar/AnyPS5/pull/6937) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/execution/ImageTableReuse.cpp` | | [PR 6941](https://www.github.com/boykopovar/AnyPS5/pull/6941) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/CMakeLists.txt`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/ShaderDiskCache.cpp` | | [PR 6946](https://www.github.com/boykopovar/AnyPS5/pull/6946) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/VariantValidation.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCache.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/ShaderMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp`<br>`core/shader/recompiler/CMakeLists.txt`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/ShaderDiskCache.cpp`<br>`docs/dev/ARCHITECTURE.md`<br>`docs/dev/ENVIRONMENT.md` | | [PR 6947](https://www.github.com/boykopovar/AnyPS5/pull/6947) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/VariantValidation.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCache.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/ShaderMemory.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/CMakeLists.txt`<br>`core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/ResourcePlan.hpp`<br>`core/shader/recompiler/Optimization/include/Optimization/SrtWalker.hpp`<br>`core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/ShaderDiskCache.cpp`<br>`docs/dev/ARCHITECTURE.md`<br>`docs/dev/ENVIRONMENT.md` | | [PR 6959](https://www.github.com/boykopovar/AnyPS5/pull/6959) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/ShaderDiskCache.cpp` | | [PR 6960](https://www.github.com/boykopovar/AnyPS5/pull/6960) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6963](https://www.github.com/boykopovar/AnyPS5/pull/6963) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hpp` | | [PR 6970](https://www.github.com/boykopovar/AnyPS5/pull/6970) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp`<br>`core/shader/recompiler/ShaderDiskCache.cpp` | | [PR 6971](https://www.github.com/boykopovar/AnyPS5/pull/6971) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6972](https://www.github.com/boykopovar/AnyPS5/pull/6972) | `core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 6977](https://www.github.com/boykopovar/AnyPS5/pull/6977) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/shader/recompiler/CMakeLists.txt`<br>`core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/ShaderDiskCache.cpp` | | [PR 7154](https://www.github.com/boykopovar/AnyPS5/pull/7154) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 7201](https://www.github.com/boykopovar/AnyPS5/pull/7201) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/shader/recompiler/CMakeLists.txt`<br>`core/shader/recompiler/Recompiler.cpp` | | [PR 7223](https://www.github.com/boykopovar/AnyPS5/pull/7223) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp`<br>`core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/ResourcePlan.hpp`<br>`core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/ShaderDiskCache.cpp` | | [PR 7233](https://www.github.com/boykopovar/AnyPS5/pull/7233) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 7254](https://www.github.com/boykopovar/AnyPS5/pull/7254) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 7256](https://www.github.com/boykopovar/AnyPS5/pull/7256) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp` | | [PR 7258](https://www.github.com/boykopovar/AnyPS5/pull/7258) | `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp` | | [PR 7332](https://www.github.com/boykopovar/AnyPS5/pull/7332) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/CMakeLists.txt`<br>`core/shader/recompiler/Recompiler.cpp`<br>`docs/dev/ENVIRONMENT.md` | | [PR 7371](https://www.github.com/boykopovar/AnyPS5/pull/7371) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cpp`<br>`core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 7388](https://www.github.com/boykopovar/AnyPS5/pull/7388) | `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` | | [PR 7390](https://www.github.com/boykopovar/AnyPS5/pull/7390) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp`<br>`core/shader/recompiler/Recompiler.cpp`<br>`core/shader/recompiler/ShaderDiskCache.cpp` | | [PR 7410](https://www.github.com/boykopovar/AnyPS5/pull/7410) | `core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Graphics.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp`<br>`core/shader/recompiler/Recompiler.cpp` | | [PR 7450](https://www.github.com/boykopovar/AnyPS5/pull/7450) | `docs/dev/ARCHITECTURE.md` | | [PR 7505](https://www.github.com/boykopovar/AnyPS5/pull/7505) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7550](https://www.github.com/boykopovar/AnyPS5/pull/7550) | `core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp`<br>`core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp`<br>`core/shader/recompiler/ShaderDiskCache.cpp` | | [PR 7604](https://www.github.com/boykopovar/AnyPS5/pull/7604) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`docs/dev/ENVIRONMENT.md` |
SleglJan commented 2026-10-15 22:09:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by SleglJan on 2026-10-15T22:09:51Z.


Data from 007 First Light's menu on Linux, measured at 5a31a9c67, this PR's head when it opened. The current head adds #6455's merge, a refactor, a test registration and merges of main. None of them changes PrepareDrawBindings or DescriptorCache.

  • Linux 7.2.10 (CachyOS), RTX 3080 with NVIDIA 615.78.08, GCC 16.2.1, Release.
  • On its own, the title stops before the menu with VOP3 source modifiers are not implemented. So this PR was merged onto main 4186f06a9 plus local changes the title needs to get there.
  • Without this PR and without #6537's change, that base runs the menu at 0.68 to 0.74 frames per second (frames 215 to 255, 3 runs).
  • Merged with no other change, all 12 runs ended on SIGSEGV (exit 139) before the menu. The run with a fault dump faulted inside the NVIDIA driver.
    • 7 runs without a switch ended between frames 104 and 175. One of them ran under the validation layer, one with a fault dump and one with APS5_PROFILE_DRAW=1.
    • One run each with APS5_KEPT_DESCRIPTOR_SETS=0, APS5_NO_TABLE_REPLAY=1, APS5_NO_TABLE_RESOLUTION_REUSE=1 and APS5_NO_TABLE_SNAPSHOT_REUSE=1 ended between frames 171 and 178.
    • One run with APS5_PIPELINED_DRAWS=0 ended at frame 106.
  • Under the validation layer, VUID-VkWriteDescriptorSet-dstArrayElement-00321 reported 339 image-table descriptors written at binding 260 into a set allocated with a variable count of 1. That matches the PrepareDrawBindings pairing that #6537 fixes, where the fragment table's write lands in the vertex stage's snapshot set.
  • With #6537's change added and nothing else, 3 of 3 runs reached frame 260, at a menu rate of 2.90, 2.89 and 2.98 frames per second (median 2.90).
  • With an adaptation of #6567's change alone (the two conflict), 2 of 2 runs still ended on SIGSEGV, at frames 176 and 183.
  • With both changes, 3 of 3 runs reached frame 260 at 2.83, 2.96 and 2.90 (median 2.90).

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6203311647 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6454#issuecomment-6203311647). Originally posted by [SleglJan](https://github.com/SleglJan) on 2026-10-15T22:09:51Z. --- Data from 007 First Light's menu on Linux, measured at 5a31a9c67, this PR's head when it opened. The current head adds #6455's merge, a refactor, a test registration and merges of `main`. None of them changes `PrepareDrawBindings` or `DescriptorCache`. - Linux 7.2.10 (CachyOS), RTX 3080 with NVIDIA 615.78.08, GCC 16.2.1, Release. - On its own, the title stops before the menu with `VOP3 source modifiers are not implemented`. So this PR was merged onto `main` 4186f06a9 plus local changes the title needs to get there. - Without this PR and without #6537's change, that base runs the menu at 0.68 to 0.74 frames per second (frames 215 to 255, 3 runs). - Merged with no other change, all 12 runs ended on SIGSEGV (exit 139) before the menu. The run with a fault dump faulted inside the NVIDIA driver. - 7 runs without a switch ended between frames 104 and 175. One of them ran under the validation layer, one with a fault dump and one with `APS5_PROFILE_DRAW=1`. - One run each with `APS5_KEPT_DESCRIPTOR_SETS=0`, `APS5_NO_TABLE_REPLAY=1`, `APS5_NO_TABLE_RESOLUTION_REUSE=1` and `APS5_NO_TABLE_SNAPSHOT_REUSE=1` ended between frames 171 and 178. - One run with `APS5_PIPELINED_DRAWS=0` ended at frame 106. - Under the validation layer, `VUID-VkWriteDescriptorSet-dstArrayElement-00321` reported 339 image-table descriptors written at binding 260 into a set allocated with a variable count of 1. That matches the `PrepareDrawBindings` pairing that #6537 fixes, where the fragment table's write lands in the vertex stage's snapshot set. - With #6537's change added and nothing else, 3 of 3 runs reached frame 260, at a menu rate of 2.90, 2.89 and 2.98 frames per second (median 2.90). - With an adaptation of #6567's change alone (the two conflict), 2 of 2 runs still ended on SIGSEGV, at frames 176 and 183. - With both changes, 3 of 3 runs reached frame 260 at 2.83, 2.96 and 2.90 (median 2.90). AI-assisted: yes (Claude Code)
EagleBearerYS commented 2026-10-15 22:55:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-15T22:55:25Z.


Thanks for the runs and the validation output on 007 First Light (PPSA11386). The VUID matches the PrepareDrawBindings pairing on main that #6537 fixes, where the fragment table's writes land in the vertex stage's snapshot set. With this PR, the title runs into that pairing before its menu. I've merged #6537 into this branch, with AnthonyClemens kept as author, so the two can't land apart, and listed it under Depends on. The 2.90 fps menu with both, against 0.68–0.74 with neither, is good to see. The #6567 resolution is noted in the description for whichever of the two merges second.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6203980262 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6454#issuecomment-6203980262). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-15T22:55:25Z. --- Thanks for the runs and the validation output on 007 First Light (PPSA11386). The VUID matches the `PrepareDrawBindings` pairing on `main` that #6537 fixes, where the fragment table's writes land in the vertex stage's snapshot set. With this PR, the title runs into that pairing before its menu. I've merged #6537 into this branch, with AnthonyClemens kept as author, so the two can't land apart, and listed it under Depends on. The 2.90 fps menu with both, against 0.68–0.74 with neither, is good to see. The #6567 resolution is noted in the description for whichever of the two merges second.
LeandroLP23 commented 2026-10-16 09:33:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-16T09:33:56Z.


Small doc mismatch: this PR bumps FormatVersion in ShaderDiskCache.hpp to 37, but the docs/dev/ARCHITECTURE.md line it edits says FormatVersion 36. On main the same line already lags (33 there vs 36 in the code). Dropping the number, so it reads "The disk cache stores the table...", would keep the line from going stale on every bump. It would also stop the two PRs that touch it from conflicting on that line.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6212557751 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6454#issuecomment-6212557751). Originally posted by [LeandroLP23](https://github.com/LeandroLP23) on 2026-10-16T09:33:56Z. --- Small doc mismatch: this PR bumps `FormatVersion` in `ShaderDiskCache.hpp` to 37, but the `docs/dev/ARCHITECTURE.md` line it edits says `FormatVersion` 36. On `main` the same line already lags (33 there vs 36 in the code). Dropping the number, so it reads "The disk cache stores the table...", would keep the line from going stale on every bump. It would also stop the two PRs that touch it from conflicting on that line.
EagleBearerYS commented 2026-10-16 09:43:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-16T09:43:18Z.


Thanks, @LeandroLP23. The line now reads "The disk cache stores ...", without the number (#6243's ca174bc7e6, merged in here).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6212718054 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6454#issuecomment-6212718054). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-16T09:43:18Z. --- Thanks, @LeandroLP23. The line now reads "The disk cache stores ...", without the number (#6243's ca174bc7e6, merged in here).
Scramblrrrr commented 2026-10-16 16:38:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Scramblrrrr on 2026-10-16T16:38:08Z.


Preparing a Windows/RTX5070Ti cross-test for PPSA11386 (#5714). I reviewed current head1752c4a89b5c82f5d82166979790c61885b47045 and its #6243/#6455/#6537 dependencies, plus your test/v3-x-6440-6340 branch1d77e1d54. I will merge that older combined test branch into your current head, retain all current #6537 fixes, then update to main66e290f1c and add our separate 007 startup fixes. The merge-tree preview has only a CMake test-registration conflict; production merges automatically. #6471 bulk reads, #6868 repeated stores and #6567 recycled-set sizing will be checked explicitly. No competing implementation/PR planned.

Our preceding e0382e08e stack (main452 + #5799/#6317/#6332/#6881/#6440/#6471/#6868) reached a correctly rendered offline menu,44 presents/69.779s=0.631FPS with draw entries disabled. A setting-only1024-entry draw-cache test is still running; it has ~5% lookup hits with frequent entry evictions, not a demonstrated steady-scene gain yet. Separate cache reuse/bounds/snapshot/verification controls6/6PASS3.03s on this machine. Will report exact combined heads/native outcomes before title staging. AI-assisted: Codex; all title code, logs and captures stay local, aggregates only.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6220165247 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6454#issuecomment-6220165247). Originally posted by [Scramblrrrr](https://github.com/Scramblrrrr) on 2026-10-16T16:38:08Z. --- Preparing a Windows/RTX5070Ti cross-test for PPSA11386 (#5714). I reviewed current head1752c4a89b5c82f5d82166979790c61885b47045 and its #6243/#6455/#6537 dependencies, plus your test/v3-x-6440-6340 branch1d77e1d54. I will merge that older combined test branch into your current head, retain all current #6537 fixes, then update to main66e290f1c and add our separate 007 startup fixes. The merge-tree preview has only a CMake test-registration conflict; production merges automatically. #6471 bulk reads, #6868 repeated stores and #6567 recycled-set sizing will be checked explicitly. No competing implementation/PR planned. Our preceding e0382e08e stack (main452 + #5799/#6317/#6332/#6881/#6440/#6471/#6868) reached a correctly rendered offline menu,44 presents/69.779s=0.631FPS with draw entries disabled. A setting-only1024-entry draw-cache test is still running; it has ~5% lookup hits with frequent entry evictions, not a demonstrated steady-scene gain yet. Separate cache reuse/bounds/snapshot/verification controls6/6PASS3.03s on this machine. Will report exact combined heads/native outcomes before title staging. AI-assisted: Codex; all title code, logs and captures stay local, aggregates only.
Scramblrrrr commented 2026-10-16 16:58:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Scramblrrrr on 2026-10-16T16:58:52Z.


Windows RTX 5070 Ti (617.42) cross-test: public integration Scramblrrrr/AnyPS5@517d4cce9a37018082325b50aab3dcab58f285d2 combines current #6454 1752c4a89 (including #6537), current main 66e290f1c, #6340 b05c53750, #6567 544e7afb3, #6440/#6471/#6868, plus the separately listed 007 shader correctness prerequisites. All 22 selected native checks passed, no skips (11.25 s), including queued-draw vouches, image-table reuse, column memo, draw reuse/verify/inline, serializer, and shader disk cache. The image-table test also passed with table replay and kept descriptor sets disabled. Conventions pass. No title performance result yet for this integration.

I found fixture issues while combining the current heads, with a synthetic-only repair in 517d4cce9:

  • The mixed-DCC case uses TableCode's R128 image instruction (0xf09c8f08). Its descriptor words 4–7 are zero by definition, so the DCC enable bit never reaches the driver. The repair uses a full image descriptor for this case, widens the scalar load to include it, and asserts that a materialized table entry actually carries the DCC bit. With an isolated guest block it gets the intended 1 reuse / 2 resolutions and both texel readbacks pass.
  • Windows CPU-write cases give 2 reuse / 2 resolution and 3 reuse / 3 resolution: one dispatch can count both. Existing texel checks retained.
  • In the separate-block store case, UnwatchSerial changes (2→3) while Store runs. CurrentTableState therefore invalidates the whole table; the next dispatch correctly resolves it (0 reuse / 1 resolution), with correct stored texels. The test now checks whether watch coverage changed rather than demanding partial reuse after the global proof was invalidated.

These are test-only integration adjustments, not a new production cache shortcut. Sharing the findings before the 007 run so authors can review the expectations independently. AI-assisted.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6220528080 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6454#issuecomment-6220528080). Originally posted by [Scramblrrrr](https://github.com/Scramblrrrr) on 2026-10-16T16:58:52Z. --- Windows RTX 5070 Ti (617.42) cross-test: public integration `Scramblrrrr/AnyPS5@517d4cce9a37018082325b50aab3dcab58f285d2` combines current #6454 `1752c4a89` (including #6537), current main `66e290f1c`, #6340 `b05c53750`, #6567 `544e7afb3`, #6440/#6471/#6868, plus the separately listed 007 shader correctness prerequisites. All 22 selected native checks passed, no skips (11.25 s), including queued-draw vouches, image-table reuse, column memo, draw reuse/verify/inline, serializer, and shader disk cache. The image-table test also passed with table replay and kept descriptor sets disabled. Conventions pass. No title performance result yet for this integration. I found fixture issues while combining the current heads, with a synthetic-only repair in `517d4cce9`: - The mixed-DCC case uses TableCode's R128 image instruction (`0xf09c8f08`). Its descriptor words 4–7 are zero by definition, so the DCC enable bit never reaches the driver. The repair uses a full image descriptor for this case, widens the scalar load to include it, and asserts that a materialized table entry actually carries the DCC bit. With an isolated guest block it gets the intended 1 reuse / 2 resolutions and both texel readbacks pass. - Windows CPU-write cases give 2 reuse / 2 resolution and 3 reuse / 3 resolution: one dispatch can count both. Existing texel checks retained. - In the separate-block store case, UnwatchSerial changes (2→3) while Store runs. CurrentTableState therefore invalidates the whole table; the next dispatch correctly resolves it (0 reuse / 1 resolution), with correct stored texels. The test now checks whether watch coverage changed rather than demanding partial reuse after the global proof was invalidated. These are test-only integration adjustments, not a new production cache shortcut. Sharing the findings before the 007 run so authors can review the expectations independently. AI-assisted.
EagleBearerYS commented 2026-10-16 17:06:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-16T17:06:04Z.


@Scramblrrrr thank you for the cross-test and for sharing the fixture findings before the title run.

  • The mixed-DCC case and the separate-block store case come from #6340 (SetDccRecord, RunSelectivePendingWrite), which extends this PR's test file, so those two repairs belong with that test (cc @MarcZX100). Your point about the R128 instruction holds there: it reads only descriptor words 0–3, so the DCC bit in word 6 never reaches the driver.
  • The one changed count that is in this PR is "a CPU write collected in a new epoch, then two dispatches". This PR's test has so far run only on lavapipe and on GitHub's Windows runner, which skips it without a Vulkan device, so its Windows count hasn't run on a GPU. I'll run it on an RTX 3070 on its own and with #6340, and report back here with any fix.
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6220652740 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6454#issuecomment-6220652740). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-16T17:06:04Z. --- @Scramblrrrr thank you for the cross-test and for sharing the fixture findings before the title run. - The mixed-DCC case and the separate-block store case come from #6340 (`SetDccRecord`, `RunSelectivePendingWrite`), which extends this PR's test file, so those two repairs belong with that test (cc @MarcZX100). Your point about the R128 instruction holds there: it reads only descriptor words 0–3, so the DCC bit in word 6 never reaches the driver. - The one changed count that is in this PR is "a CPU write collected in a new epoch, then two dispatches". This PR's test has so far run only on lavapipe and on GitHub's Windows runner, which skips it without a Vulkan device, so its Windows count hasn't run on a GPU. I'll run it on an RTX 3070 on its own and with #6340, and report back here with any fix.
Scramblrrrr commented 2026-10-16 17:15:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Scramblrrrr on 2026-10-16T17:15:30Z.


007 Windows title result for integration517d4cce9 (not an isolated #6454 benchmark): correctly rendered title screen and offline rocky main menu. No-input menu measured85presents/76.929s =1.10491FPS, frames946–1031,17:12:16.712–17:13:33.641UTC. Earlier e038 combined baseline with draw entries disabled was0.63056FPS. This run additionally changes draw-cache setting to1024, shared-table/per-entry/recycling code and the reviewed later main changes; do not attribute the difference to one PR.

Owned stop17:13:55.731UTC after measurement, exit-1record17:13:57.592; not a crash or guard termination. Peak sampled private27.06GiB/minfree3.90GiB, two bounded working-set trims, same2GiBfree/28GiBprivate guards. Same4GiBimports/2GiBtexture/16resource entries. No descriptor VUID or terminal title fault observed. Still far from playable.

Recent menu window:5511draw-cache lookups/10s,368hits (6.7%),4366no-entry,1024keys/3259variants, estimated877MiB. Most draws still rebuild (5366/5506 in another interval), resource phase3.07s/10s (upload1.96s), image-table0.69s/10s. GPU timing1689ms/11presents in one10s window (~154ms/present), so CPU table work is not the only limit. Large repeated CPU copies still predominantly come from one partially backed guest heap. Next separate experiment is #4339 at98e8a22e0 (building), with its safe per-program eligibility analysis and a two-lane control planned. No forced one-lane mode. Thanks @EagleBearerYS for confirming the R128 fixture finding; the test-only fixes remain available in517d4cce9 for #6340. AI-assisted: Codex; raw title data local.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6220816811 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6454#issuecomment-6220816811). Originally posted by [Scramblrrrr](https://github.com/Scramblrrrr) on 2026-10-16T17:15:30Z. --- 007 Windows title result for integration517d4cce9 (not an isolated #6454 benchmark): correctly rendered title screen and offline rocky main menu. No-input menu measured85presents/76.929s =1.10491FPS, frames946–1031,17:12:16.712–17:13:33.641UTC. Earlier e038 combined baseline with draw entries disabled was0.63056FPS. This run additionally changes draw-cache setting to1024, shared-table/per-entry/recycling code and the reviewed later main changes; do not attribute the difference to one PR. Owned stop17:13:55.731UTC after measurement, exit-1record17:13:57.592; not a crash or guard termination. Peak sampled private27.06GiB/minfree3.90GiB, two bounded working-set trims, same2GiBfree/28GiBprivate guards. Same4GiBimports/2GiBtexture/16resource entries. No descriptor VUID or terminal title fault observed. Still far from playable. Recent menu window:5511draw-cache lookups/10s,368hits (6.7%),4366no-entry,1024keys/3259variants, estimated877MiB. Most draws still rebuild (~5366/5506 in another interval), resource phase~3.07s/10s (upload~1.96s), image-table~0.69s/10s. GPU timing1689ms/11presents in one10s window (~154ms/present), so CPU table work is not the only limit. Large repeated CPU copies still predominantly come from one partially backed guest heap. Next separate experiment is #4339 at98e8a22e0 (building), with its safe per-program eligibility analysis and a two-lane control planned. No forced one-lane mode. Thanks @EagleBearerYS for confirming the R128 fixture finding; the test-only fixes remain available in517d4cce9 for #6340. AI-assisted: Codex; raw title data local.
EagleBearerYS commented 2026-10-16 18:54:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-16T18:54:30Z.


@Scramblrrrr as promised: on an RTX 3070 Laptop GPU (Windows 11), this PR's agc_driver_image_table_reuse passes 5 of 5, with the count you changed at "a CPU write collected in a new epoch, then two dispatches" as written (3 - CpuWriteResolutions reuses, CpuWriteResolutions = 2 on Windows). The tree was main 66e290f1c0 with this PR and two PRs that don't touch image tables. So the 2-reuse count you saw comes from another PR in your integration; #6340's per-entry reuse, where one dispatch can count both a reuse and a resolution, is the likely one. That run with #6340 merged is still to do.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6222545007 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6454#issuecomment-6222545007). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-16T18:54:30Z. --- @Scramblrrrr as promised: on an RTX 3070 Laptop GPU (Windows 11), this PR's `agc_driver_image_table_reuse` passes 5 of 5, with the count you changed at "a CPU write collected in a new epoch, then two dispatches" as written (`3 - CpuWriteResolutions` reuses, `CpuWriteResolutions` = 2 on Windows). The tree was `main` 66e290f1c0 with this PR and two PRs that don't touch image tables. So the 2-reuse count you saw comes from another PR in your integration; #6340's per-entry reuse, where one dispatch can count both a reuse and a resolution, is the likely one. That run with #6340 merged is still to do.
SleglJan commented 2026-10-17 17:37:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by SleglJan on 2026-10-17T17:37:07Z.


007 First Light (PPSA11386 v01.018.000), main menu, on main bc3c0fc13 plus four open shader PRs: #5372 and #6454 together cut the frame p50 from 2081 to 442 ms. That's 4.7×, from one sample of the pair. #5372 alone takes 582 ms off, #6454 alone 868 ms, and the two together 1640 ms. The same text is on #5372 and #6454.

Setup:

  • Linux 7.2.10, Ryzen 9 7950X3D, RTX 3080 10 GB, NVIDIA 615.78.08, GCC 16.2.1, Release, bubblewrap sandbox. The title renders 3840x2160, shown in a 1500x844 window.
  • Base: main bc3c0fc13 (2026-10-16) plus four open shader PRs 007 needs on main (#5799, #6317, #6332, #6881).
  • Each arm merges the PR heads as they are now: #5372 e5390612f, #6454 1752c4a89, #6918 955e7c3c7, #6471 726ef5f9a, #6440 cdb140f49.
    • #6454's head merges the heads of #6243, #6455 and #6537, so C, E and F carry those three too.
    • In E, #6440 goes on top of #6454 with the ResourceMaterializer and ShaderMemory.cpp side of Scramblrrrr's 817a9fda4. #6340, which 817a9fda4 also merges, is not in E.
  • No other local changes, and the title's executable is not patched (no #6172 change). Scripted pad input goes through APS5_PAD_INPUT_FILE, starting from an existing save.
  • main's defaults plus APS5_PROFILE_DRAW=1 (for the [buffers] counters), APS5_TRACE_EVENTS=2097152 and SDL_VIDEODRIVER=x11. Each arm runs from its own warm shader cache, made by a warm-up run on the same build.
  • Window: APS5_TRACE_SECONDS=1320:180, i.e. 180 s in the main menu. Every sample reaches the menu before the window opens, from about 50 s before it (A1) to 16 min before (E).

Main menu, frame p50 per sample:

arm samples frame p50 ms menu reached, s after launch
A: base 2 2219.9, 1943.0 ~1170-1280
B: + #5372 2 1497.7, 1501.0 ~900
C: + #6454 1 1213.0 ~765
D: + #6918 1 1927.0 ~1145
F: + #5372 + #6454 1 441.6 ~395
E: + #5372 + #6918 + #6454 + #6471 + #6440 2 367.8, 365.3 ~360
  • GPU busy is 177-205 ms per present in every sample except A1 (289). Queue worker 0 is busy 99.8-100% of every window, so the difference between arms is on the CPU side.
  • From A's mean, B takes 34% of the A→E gain, C 51% and F 96%. A1 and A2 are 277 ms apart; against A1 or A2 alone the shares are 28-39%, 46-54% and 95-96%.
  • D1 (1927.0) is 16 ms below A2 and has A2's counters: about 500 CPU copies and 1927 ms of Driver.Packet per present. No effect was measured for #6918 alone on this base.
  • Together, #5372 and #6454 gain 1640 ms, against 1451 ms for the two alone added up. That's 189 ms more from A's mean, 51 ms more against A1 alone, and 328 ms more against A2 alone.

Queue worker 0, ms per present, one sample each (A2 / B1 / C1 / F1 / E2). The rows nest: draw and dispatch are inside Driver.Packet, and capture is inside them.

A B C F E
Driver.Packet 1931 1486 1199 432 355
draw 1489 1396 796 359 291
dispatch 418 85 370 70 62
capture (draw stage + dispatch) 1171 1190 115 168 91
Resources.Complete (all threads) 389 55 387 61 61
draw_enqueued (all threads) 72 41 524 81 83

[buffers] per present:

  • A, C and D copy guest memory on the CPU, all outside imports: about 495 copies and 5,800 MiB read per present.
  • B, F and E print no CPU-copy line. The line comes every 1,000 copies, so they made fewer than 1,000 in the whole run.
  • GPU copies out of imports are about 42 per present on B, F and E, against 34-35 on A, C and D.
  • No run has an import budget refusal or a failed import.

How the two interact. This is our reading of these counters; the parts were not tested apart.

  • #5372 removes the CPU copies. Dispatch drops to 85 ms, Resources.Complete to 55 ms, and the committer's time per commit from 1.37 ms (A2) to 0.22 ms. Capture stays at ~1190 ms.
  • #6454 cuts the capture from 1171 to 115 ms. Its committer still has the CPU copies: it takes 1.04 ms per commit, and draws wait 741 µs each for room in the 8-deep draw pipeline (4.2 queued ahead on average, against 2.0 on A2). About 450 ms of the saved capture time reappears in draw_enqueued (72 → 524 ms).
  • With both, the committer takes 162 µs per commit, draws wait 109 µs, and draw_enqueued is 81 ms. That fits the pair beating the sum: each PR removes the limit the other one leaves.
  • F is 75 ms slower than E. Its worker-0 capture is 77 ms higher (168 vs 91 ms), the same as its Driver.Packet difference (432 vs 355). F lacks #6918, #6471 and #6440, and capture is the path #6440 changes. But C1 captures in 115 ms on the same #6454 code without #6440, so these runs don't pin the 75 ms on any of the three.

Not covered:

  • C, D and F have one sample each, and the menu background is animated. A's two samples are 277 ms apart. A1's GPU busy (289 ms) is above every other sample's, which these counters don't explain.
  • Not rerun on a newer main.
  • #6243, #6455 and #6537 come with #6454's head and weren't separated from it. #6918, #6471 and #6440 weren't run one at a time on top of the pair.
  • C, E and F build without agc_shader_memory_tests: #6881's new test doesn't compile against #6454's snapshot layout (noted on #6881). Their ctest otherwise passes like the base.
  • agc_driver_store_over_untracked fails on every arm, base included, at "the result did not reach a block the CPU left alone", the Linux failure reported on #5671. #6359 and #6385, merged after bc3c0fc13, change that test.
  • My 2026-10-15 numbers on #6454 came from another stack (main 4186f06a9 plus local changes) and frames 215-260, so they don't compare with these.
  • No gameplay, no other GPU, no Windows.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6237787331 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6454#issuecomment-6237787331). Originally posted by [SleglJan](https://github.com/SleglJan) on 2026-10-17T17:37:07Z. --- 007 First Light (PPSA11386 v01.018.000), main menu, on `main` bc3c0fc13 plus four open shader PRs: #5372 and #6454 together cut the frame p50 from 2081 to 442 ms. That's 4.7×, from one sample of the pair. #5372 alone takes 582 ms off, #6454 alone 868 ms, and the two together 1640 ms. The same text is on #5372 and #6454. Setup: - Linux 7.2.10, Ryzen 9 7950X3D, RTX 3080 10 GB, NVIDIA 615.78.08, GCC 16.2.1, Release, bubblewrap sandbox. The title renders 3840x2160, shown in a 1500x844 window. - Base: `main` bc3c0fc13 (2026-10-16) plus four open shader PRs 007 needs on `main` (#5799, #6317, #6332, #6881). - Each arm merges the PR heads as they are now: #5372 e5390612f, #6454 1752c4a89, #6918 955e7c3c7, #6471 726ef5f9a, #6440 cdb140f49. - #6454's head merges the heads of #6243, #6455 and #6537, so C, E and F carry those three too. - In E, #6440 goes on top of #6454 with the `ResourceMaterializer` and `ShaderMemory.cpp` side of Scramblrrrr's 817a9fda4. #6340, which 817a9fda4 also merges, is not in E. - No other local changes, and the title's executable is not patched (no #6172 change). Scripted pad input goes through `APS5_PAD_INPUT_FILE`, starting from an existing save. - `main`'s defaults plus `APS5_PROFILE_DRAW=1` (for the `[buffers]` counters), `APS5_TRACE_EVENTS=2097152` and `SDL_VIDEODRIVER=x11`. Each arm runs from its own warm shader cache, made by a warm-up run on the same build. - Window: `APS5_TRACE_SECONDS=1320:180`, i.e. 180 s in the main menu. Every sample reaches the menu before the window opens, from about 50 s before it (A1) to 16 min before (E). Main menu, frame p50 per sample: | arm | samples | frame p50 ms | menu reached, s after launch | |---|---|---|---| | A: base | 2 | 2219.9, 1943.0 | ~1170-1280 | | B: + #5372 | 2 | 1497.7, 1501.0 | ~900 | | C: + #6454 | 1 | 1213.0 | ~765 | | D: + #6918 | 1 | 1927.0 | ~1145 | | F: + #5372 + #6454 | 1 | 441.6 | ~395 | | E: + #5372 + #6918 + #6454 + #6471 + #6440 | 2 | 367.8, 365.3 | ~360 | - GPU busy is 177-205 ms per present in every sample except A1 (289). Queue worker 0 is busy 99.8-100% of every window, so the difference between arms is on the CPU side. - From A's mean, B takes 34% of the A→E gain, C 51% and F 96%. A1 and A2 are 277 ms apart; against A1 or A2 alone the shares are 28-39%, 46-54% and 95-96%. - D1 (1927.0) is 16 ms below A2 and has A2's counters: about 500 CPU copies and 1927 ms of `Driver.Packet` per present. No effect was measured for #6918 alone on this base. - Together, #5372 and #6454 gain 1640 ms, against 1451 ms for the two alone added up. That's 189 ms more from A's mean, 51 ms more against A1 alone, and 328 ms more against A2 alone. Queue worker 0, ms per present, one sample each (A2 / B1 / C1 / F1 / E2). The rows nest: draw and dispatch are inside `Driver.Packet`, and capture is inside them. | | A | B | C | F | E | |---|---|---|---|---|---| | `Driver.Packet` | 1931 | 1486 | 1199 | 432 | 355 | | draw | 1489 | 1396 | 796 | 359 | 291 | | dispatch | 418 | 85 | 370 | 70 | 62 | | capture (draw stage + dispatch) | 1171 | 1190 | 115 | 168 | 91 | | `Resources.Complete` (all threads) | 389 | 55 | 387 | 61 | 61 | | `draw_enqueued` (all threads) | 72 | 41 | 524 | 81 | 83 | `[buffers]` per present: - A, C and D copy guest memory on the CPU, all outside imports: about 495 copies and 5,800 MiB read per present. - B, F and E print no CPU-copy line. The line comes every 1,000 copies, so they made fewer than 1,000 in the whole run. - GPU copies out of imports are about 42 per present on B, F and E, against 34-35 on A, C and D. - No run has an import budget refusal or a failed import. How the two interact. This is our reading of these counters; the parts were not tested apart. - #5372 removes the CPU copies. Dispatch drops to 85 ms, `Resources.Complete` to 55 ms, and the committer's time per commit from 1.37 ms (A2) to 0.22 ms. Capture stays at ~1190 ms. - #6454 cuts the capture from 1171 to 115 ms. Its committer still has the CPU copies: it takes 1.04 ms per commit, and draws wait 741 µs each for room in the 8-deep draw pipeline (4.2 queued ahead on average, against 2.0 on A2). About 450 ms of the saved capture time reappears in `draw_enqueued` (72 → 524 ms). - With both, the committer takes 162 µs per commit, draws wait 109 µs, and `draw_enqueued` is 81 ms. That fits the pair beating the sum: each PR removes the limit the other one leaves. - F is 75 ms slower than E. Its worker-0 capture is 77 ms higher (168 vs 91 ms), the same as its `Driver.Packet` difference (432 vs 355). F lacks #6918, #6471 and #6440, and capture is the path #6440 changes. But C1 captures in 115 ms on the same #6454 code without #6440, so these runs don't pin the 75 ms on any of the three. Not covered: - C, D and F have one sample each, and the menu background is animated. A's two samples are 277 ms apart. A1's GPU busy (289 ms) is above every other sample's, which these counters don't explain. - Not rerun on a newer `main`. - #6243, #6455 and #6537 come with #6454's head and weren't separated from it. #6918, #6471 and #6440 weren't run one at a time on top of the pair. - C, E and F build without `agc_shader_memory_tests`: #6881's new test doesn't compile against #6454's snapshot layout (noted on #6881). Their ctest otherwise passes like the base. - `agc_driver_store_over_untracked` fails on every arm, base included, at "the result did not reach a block the CPU left alone", the Linux failure reported on #5671. #6359 and #6385, merged after bc3c0fc13, change that test. - My 2026-10-15 numbers on #6454 came from another stack (`main` 4186f06a9 plus local changes) and frames 215-260, so they don't compare with these. - No gameplay, no other GPU, no Windows. AI-assisted: yes (Claude Code)
EagleBearerYS commented 2026-10-17 17:46:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-17T17:46:43Z.


Thanks @SleglJan, that's a very clear set: the single-PR arms, the counters per stage and your reading of how the two interact. The capture drop on queue worker 0 (1,171 → 115 ms per present) is what this PR targets, and your committer numbers suggest why it pays in full only with #5372. I've added the run to Tested, and #6881's test to the overlap list.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6237952264 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6454#issuecomment-6237952264). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-17T17:46:43Z. --- Thanks @SleglJan, that's a very clear set: the single-PR arms, the counters per stage and your reading of how the two interact. The capture drop on queue worker 0 (1,171 → 115 ms per present) is what this PR targets, and your committer numbers suggest why it pays in full only with #5372. I've added the run to Tested, and #6881's test to the overlap list.
simonbronk commented 2026-10-17 22:08:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by simonbronk on 2026-10-17T22:08:25Z.


Tested on Onimusha's menu: no measurable change in this scene.

Setup: Onimusha: Way of the Sword (PPSA27836), boot to the language menu with no input, APS5_TRACE_SECONDS=60:30, warm cache. Windows 11 26200, RTX 5070 (617.42), 3840x2160. Base main 84b0d2f24 + #6557 #6727 #6762 (5c521efea), 6 runs (3 before and 3 after the PR runs). The PR is merged on top of it (clean merge), 3 runs.

  • Base frame p50 (ms): 84.5, 82.6, 81.8, 81.5, 77.9, 83.5 (mean 82.0); p90 84.3-93.6.
  • With this PR, p50: 71.7, 79.1, 80.0. Within the base's run-to-run range.
  • Run 1 had p50 71.7 but p90 129.9; runs 2-3 are 79.1 and 80.0, so I count it as noise.

This scene may simply not exercise the path this PR speeds up. Summary lines and traces available on request. AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6241965643 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6454#issuecomment-6241965643). Originally posted by [simonbronk](https://github.com/simonbronk) on 2026-10-17T22:08:25Z. --- Tested on Onimusha's menu: no measurable change in this scene. Setup: Onimusha: Way of the Sword (PPSA27836), boot to the language menu with no input, `APS5_TRACE_SECONDS=60:30`, warm cache. Windows 11 26200, RTX 5070 (617.42), 3840x2160. Base `main` 84b0d2f24 + #6557 #6727 #6762 (5c521efea), 6 runs (3 before and 3 after the PR runs). The PR is merged on top of it (clean merge), 3 runs. - Base frame p50 (ms): 84.5, 82.6, 81.8, 81.5, 77.9, 83.5 (mean 82.0); p90 84.3-93.6. - With this PR, p50: 71.7, 79.1, 80.0. Within the base's run-to-run range. - Run 1 had p50 71.7 but p90 129.9; runs 2-3 are 79.1 and 80.0, so I count it as noise. This scene may simply not exercise the path this PR speeds up. Summary lines and traces available on request. AI-assisted: yes.
oneandonlydean commented 2026-10-17 22:19:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-17T22:19:13Z.


#7101 has merged, and it conflicts textually with this PR. Could you rebase onto current main? We'll run full CI on the new head from there.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6242113517 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6454#issuecomment-6242113517). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-17T22:19:13Z. --- #7101 has merged, and it conflicts textually with this PR. Could you rebase onto current main? We'll run full CI on the new head from there.
EagleBearerYS commented 2026-10-18 00:01:10 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-18T00:01:10Z.


@oneandonlydean main is merged in at 6884e9c441 (main 3cc1fc8f11), so the conflict with #7101 is resolved: ResourceMaterializer.cpp keeps #7101's bulk key read, and its unmapped-page skips count as this branch's unmapped reason. The same merge brings in #6402 and #6614: a table with a written entry takes the fresh path as on main, and #6614's per-set frees touch only the shared pools, not this PR's kept sets. The head also takes #6243's new head, which expects a per-lane table image_store to be supported now that #6402 makes it so. I merged rather than rebased, so the branch keeps its history.

On GitHub's runners (run), this PR's tests and those tied to the files it changes pass 3 runs in a row on Linux, as do the ^agc tests. On Windows the only failures are agc_driver_pm4_replay_tool and agc_shader_replay_tool, which exit with 0xc0000139 when they start. They fail the same way on this runner for an unrelated branch today (run), and this PR doesn't touch either tool. It's ready for the full CI you offered.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6243462181 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6454#issuecomment-6243462181). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-18T00:01:10Z. --- @oneandonlydean `main` is merged in at 6884e9c441 (`main` 3cc1fc8f11), so the conflict with #7101 is resolved: `ResourceMaterializer.cpp` keeps #7101's bulk key read, and its unmapped-page skips count as this branch's `unmapped` reason. The same merge brings in #6402 and #6614: a table with a written entry takes the fresh path as on `main`, and #6614's per-set frees touch only the shared pools, not this PR's kept sets. The head also takes #6243's new head, which expects a per-lane table `image_store` to be supported now that #6402 makes it so. I merged rather than rebased, so the branch keeps its history. On GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39078549851)), this PR's tests and those tied to the files it changes pass 3 runs in a row on Linux, as do the `^agc` tests. On Windows the only failures are `agc_driver_pm4_replay_tool` and `agc_shader_replay_tool`, which exit with 0xc0000139 when they start. They fail the same way on this runner for an unrelated branch today ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39061670036)), and this PR doesn't touch either tool. It's ready for the full CI you offered.
oneandonlydean commented 2026-10-18 00:57:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-18T00:57:14Z.


Thanks for the detailed numbers. We're working through the review, starting with the PRs this branch builds on: #6243, #6455 and #6537 will be reviewed and merged one at a time first, then this PR after #7193 (the two overlap in ResourceMaterializer.cpp, so this will need a rebase once #7193 lands).

One request in the meantime. None of the titles we can run locally goes through image tables (our runs log 0 tables reused and 0 resolved), so we can't check the reuse path on a real game ourselves. Could you post a before/after from Resident Evil Village (PPSA01556) on the same build:

  • with this PR as is, and with APS5_NO_TABLE_SNAPSHOT_REUSE=1;
  • frame time (p50/p90) in the menu and in one in-game scene;
  • screenshots of the same views from both runs, showing there are no stale or wrong textures.

That's the evidence we'd most like before merging, since the reuse is on by default and skips reads and compares.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6243965737 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6454#issuecomment-6243965737). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-18T00:57:14Z. --- Thanks for the detailed numbers. We're working through the review, starting with the PRs this branch builds on: #6243, #6455 and #6537 will be reviewed and merged one at a time first, then this PR after #7193 (the two overlap in `ResourceMaterializer.cpp`, so this will need a rebase once #7193 lands). One request in the meantime. None of the titles we can run locally goes through image tables (our runs log 0 tables reused and 0 resolved), so we can't check the reuse path on a real game ourselves. Could you post a before/after from Resident Evil Village (PPSA01556) on the same build: - with this PR as is, and with `APS5_NO_TABLE_SNAPSHOT_REUSE=1`; - frame time (p50/p90) in the menu and in one in-game scene; - screenshots of the same views from both runs, showing there are no stale or wrong textures. That's the evidence we'd most like before merging, since the reuse is on by default and skips reads and compares.
EagleBearerYS commented 2026-10-18 01:04:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-18T01:04:27Z.


@oneandonlydean thanks, that order works for us. The Resident Evil Village (PPSA01556) pair you describe is queued on our test PC: one build carrying this PR (our Village tree, which adds what the title needs on top of main; the post will list it), run as is and with APS5_NO_TABLE_SNAPSHOT_REUSE=1, with p50/p90 frame times in the menu and in the first in-game scene, and screenshots of the same views from both runs. We'll post it here. #7325 landed after our last update, so main is merged in again; that head goes up once its runners pass, and the Village pair runs on it.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6244026649 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6454#issuecomment-6244026649). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-18T01:04:27Z. --- @oneandonlydean thanks, that order works for us. The Resident Evil Village (PPSA01556) pair you describe is queued on our test PC: one build carrying this PR (our Village tree, which adds what the title needs on top of `main`; the post will list it), run as is and with `APS5_NO_TABLE_SNAPSHOT_REUSE=1`, with p50/p90 frame times in the menu and in the first in-game scene, and screenshots of the same views from both runs. We'll post it here. #7325 landed after our last update, so `main` is merged in again; that head goes up once its runners pass, and the Village pair runs on it.
oneandonlydean commented 2026-10-18 02:20:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-18T02:20:45Z.


#6243 is now merged. This branch carries its old head, so please rebase onto current main (or merge it in) so the diff shows only what's left of the stack. #7193 still goes before this PR, as noted earlier. Once the new head is up, we'll review what remains.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6244666709 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6454#issuecomment-6244666709). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-18T02:20:45Z. --- #6243 is now merged. This branch carries its old head, so please rebase onto current `main` (or merge it in) so the diff shows only what's left of the stack. #7193 still goes before this PR, as noted earlier. Once the new head is up, we'll review what remains.
EagleBearerYS commented 2026-10-18 03:22:36 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-18T03:22:36Z.


@oneandonlydean main is merged in at 6720211da1 (main b39d90bf14), so the diff now holds only this PR's commits and #6455's, which this branch still merges. I merged rather than rebased: the head you saw, 49788713ac, is the merge's first parent, and the merge had no conflicts. FormatVersion stays 37, as main has it since #6243. The head also merges cleanly with main as of now (2626e5ee7e, after #7339 and #7189). On GitHub's runners (run), this PR's tests pass 3 runs in a row on Linux, as do the ^agc tests (694, 0 failed). On Windows the only failures are agc_driver_pm4_replay_tool and agc_shader_replay_tool, which fail the same way on that runner for an unrelated branch today (run). The Linux suite's one failure was libc's precise_wait timing test; this PR doesn't touch libc. Understood on #7193 going first; when it lands, main gets merged in here again.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6245146785 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6454#issuecomment-6245146785). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-18T03:22:36Z. --- @oneandonlydean `main` is merged in at 6720211da1 (`main` b39d90bf14), so the diff now holds only this PR's commits and #6455's, which this branch still merges. I merged rather than rebased: the head you saw, 49788713ac, is the merge's first parent, and the merge had no conflicts. `FormatVersion` stays 37, as `main` has it since #6243. The head also merges cleanly with `main` as of now (2626e5ee7e, after #7339 and #7189). On GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39090046484)), this PR's tests pass 3 runs in a row on Linux, as do the `^agc` tests (694, 0 failed). On Windows the only failures are `agc_driver_pm4_replay_tool` and `agc_shader_replay_tool`, which fail the same way on that runner for an unrelated branch today ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39061670036)). The Linux suite's one failure was libc's `precise_wait` timing test; this PR doesn't touch libc. Understood on #7193 going first; when it lands, `main` gets merged in here again.
oneandonlydean commented 2026-10-18 04:21:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-18T04:21:25Z.


@EagleBearerYS #7193 is merged now (dbafca0d05), so this can be re-ported onto it. The overlap is semantic, not a plain union: #7193 replaced the words-index scratch with a per-thread dense hash (SlotScratch/SlotLease) in ResourceMaterializer.cpp, while this PR changes WordsIndex to (records, value) and adds its own per-thread ColumnMemo in the same blocks. tests/ShaderMemory.cpp also conflicts (3 blocks). Could you merge main and rework those blocks on top of #7193's version? We'll review the resolved ResourceMaterializer.cpp first, then run full CI on the new head.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6245599574 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6454#issuecomment-6245599574). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-18T04:21:25Z. --- @EagleBearerYS #7193 is merged now (dbafca0d05), so this can be re-ported onto it. The overlap is semantic, not a plain union: #7193 replaced the words-index scratch with a per-thread dense hash (`SlotScratch`/`SlotLease`) in `ResourceMaterializer.cpp`, while this PR changes `WordsIndex` to `(records, value)` and adds its own per-thread `ColumnMemo` in the same blocks. tests/ShaderMemory.cpp also conflicts (3 blocks). Could you merge main and rework those blocks on top of #7193's version? We'll review the resolved `ResourceMaterializer.cpp` first, then run full CI on the new head.
EagleBearerYS commented 2026-10-18 06:12:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-18T06:12:02Z.


@oneandonlydean main is merged in with #7193 at db622e1c4f (main 3de84fa106), and those blocks are reworked on #7193's version. a508aa03c4 then merges main bb2624a533, so #6455's merge is in the branch's history and the diff holds only this PR's commits. Both are merges, not rebases; 6720211da1 is the first parent of the first.

In ResourceMaterializer.cpp:

  • TableSnapshotter::WordsIndex(records, value) now uses #7193's HashScratchIndex, hashed with hashWords as #7193 does, but it indexes the column's own records.distinct, since this PR keeps a snapshot's words per table. ReadColumn cleared the old map for each column; it now calls a new HashScratchIndex::Clear(), which bumps the lease's stamp and resets the entry count, as DenseScratchMap::Clear() does.
  • In ResolveImageTables, the records are #7193's DenseScratchMap, cleared per table as before. It's sized by the largest column's word count, and a missed code reads column.words.at(code), so a code past its column's words still throws std::out_of_range.
  • ColumnMemo keeps its per-thread vector through ThreadOwned, the helper the shader disk cache already uses for its per-thread state. #7193's poisonIndex, elementIndex and expected-poison bit vector are unchanged.

In tests/ShaderMemory.cpp both sides' tests stay, and #7193's verifyImageTableScratchReuse counts the distinct records as warm.snapshot.tables.at(0).words.size(), since snapshot words are per table here.

On GitHub's runners, this PR's tests, agc_shader_bindless with #7193's scratch-reuse case among them, pass 3 runs in a row on Linux, as do the ^agc tests: 710, 0 failed, at db622e1c4f (run) and at a508aa03c4 (run). On Windows the only failures are agc_driver_pm4_replay_tool and agc_shader_replay_tool, which fail the same way on that runner for an unrelated branch (run). At a508aa03c4 the Linux suite's one failure was libc's precise_wait timing test; this PR doesn't touch libc.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6246433308 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6454#issuecomment-6246433308). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-18T06:12:02Z. --- @oneandonlydean `main` is merged in with #7193 at db622e1c4f (`main` 3de84fa106), and those blocks are reworked on #7193's version. a508aa03c4 then merges `main` bb2624a533, so #6455's merge is in the branch's history and the diff holds only this PR's commits. Both are merges, not rebases; 6720211da1 is the first parent of the first. In `ResourceMaterializer.cpp`: - `TableSnapshotter::WordsIndex(records, value)` now uses #7193's `HashScratchIndex`, hashed with `hashWords` as #7193 does, but it indexes the column's own `records.distinct`, since this PR keeps a snapshot's words per table. `ReadColumn` cleared the old map for each column; it now calls a new `HashScratchIndex::Clear()`, which bumps the lease's stamp and resets the entry count, as `DenseScratchMap::Clear()` does. - In `ResolveImageTables`, the records are #7193's `DenseScratchMap`, cleared per table as before. It's sized by the largest column's word count, and a missed code reads `column.words.at(code)`, so a code past its column's words still throws `std::out_of_range`. - `ColumnMemo` keeps its per-thread vector through `ThreadOwned`, the helper the shader disk cache already uses for its per-thread state. #7193's `poisonIndex`, `elementIndex` and expected-poison bit vector are unchanged. In `tests/ShaderMemory.cpp` both sides' tests stay, and #7193's `verifyImageTableScratchReuse` counts the distinct records as `warm.snapshot.tables.at(0).words.size()`, since snapshot words are per table here. On GitHub's runners, this PR's tests, `agc_shader_bindless` with #7193's scratch-reuse case among them, pass 3 runs in a row on Linux, as do the `^agc` tests: 710, 0 failed, at db622e1c4f ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39097119529)) and at a508aa03c4 ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39099945158)). On Windows the only failures are `agc_driver_pm4_replay_tool` and `agc_shader_replay_tool`, which fail the same way on that runner for an unrelated branch ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39061670036)). At a508aa03c4 the Linux suite's one failure was libc's `precise_wait` timing test; this PR doesn't touch libc.
EagleBearerYS commented 2026-10-18 06:43:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-18T06:43:08Z.


@oneandonlydean here is the Resident Evil Village (PPSA01556) pair you asked for: one build, with the image-table snapshot reuse on (A, this PR as is) and off (B, APS5_NO_TABLE_SNAPSHOT_REUSE=1).

Build: this PR's head before the #7193 re-port, 49788713ac, on main f1af6c5915, plus #6366, #6451, #6470, #6146, #6682 and #6646, which the title needs on main to reach its menu and first scene. Windows 11, NVIDIA GeForce RTX 3070 Laptop GPU (driver 617.42), Release, unprofiled, warm shader cache (no cache misses in either window), with APS5_LAZY_SHADER_PREPARE=1 APS5_NO_GPL=1 APS5_HOST_IMPORT_MIB=6400. One run per arm, back to back. On this build the title runs at about 0.1 fps, so frame times are in seconds.

Main menu, minutes 5 to 15 after it stands, no input:

A (reuse on) B (reuse off)
presents 48 44
frame p50 11.3 s 12.0 s
frame p90 14.0 s 19.2 s
GPU clocks (nvidia-smi every 100 ms) P0 75.5%, P5 22.5%, P3 2.0% of samples; mean 1,304 MHz P0 96.4%, P3 3.6%; mean 1,252 MHz

A's frames are about 6% shorter at the median (one-sided rank test, p ≈ 0.04), but with one run per arm the bootstrap 95% interval of the median ratio, 0.98 to 1.25, includes no change. Clocks weren't held: the GPU was in P0 for 75.5% of A's window and 96.4% of B's.

First in-game scene, at control after Continue and the save load, minutes 30 to 40 after the menu stood:

A (reuse on) B (reuse off)
presents 44 35
frame p50 12.6 s 13.8 s
frame p90 17.3 s 28.3 s
GPU clocks (nvidia-smi every 100 ms) P0 99.9% of samples; mean 1,289 MHz P0 99.9%; mean 1,279 MHz

Here the clocks were held in both arms. A's frames are about 9% shorter at the median and about 21% on average (one-sided rank test, p ≈ 0.004), and the bootstrap 95% interval of the median ratio, 1.02 to 1.38, excludes no change. This is still one run per arm.

Screenshots of the same views from both arms, below. The menu frames are matched by present count, at the menu's first-seen count + 12. They show the same view with no missing, black or stale textures in either; the pixels that differ (1.2% of them by more than 16 levels) are the menu's animated grass and fog. The scene frames are only near-matched: B's load ran longer, and it closed before reaching the planned "Yes" + 900 frame, so both are counted from the end of each load (A at + 46 presents, B at + 35). They show the same room with no missing or stale textures; B's frame is darker, and it was taken 11 presents sooner after its load. An exact pair needs one more run of B, which we can do if you'd like.

A (reuse on) B (reuse off)
Menu A, reuse on, menu B, reuse off, menu
Scene A, reuse on, scene B, reuse off, scene

The [image-table] reuse counters print only with APS5_PROFILE_DRAW, so these unprofiled runs don't have them; a short profiled pair can show them if you'd like.

This pair was measured before the #7193 re-port. A menu pair on the re-ported head (a508aa03c4, with the same six PRs) follows.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6246682007 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6454#issuecomment-6246682007). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-18T06:43:08Z. --- @oneandonlydean here is the Resident Evil Village (PPSA01556) pair you asked for: one build, with the image-table snapshot reuse on (A, this PR as is) and off (B, `APS5_NO_TABLE_SNAPSHOT_REUSE=1`). **Build:** this PR's head before the #7193 re-port, 49788713ac, on `main` f1af6c5915, plus #6366, #6451, #6470, #6146, #6682 and #6646, which the title needs on `main` to reach its menu and first scene. Windows 11, NVIDIA GeForce RTX 3070 Laptop GPU (driver 617.42), Release, unprofiled, warm shader cache (no cache misses in either window), with `APS5_LAZY_SHADER_PREPARE=1 APS5_NO_GPL=1 APS5_HOST_IMPORT_MIB=6400`. One run per arm, back to back. On this build the title runs at about 0.1 fps, so frame times are in seconds. **Main menu**, minutes 5 to 15 after it stands, no input: | | A (reuse on) | B (reuse off) | |---|---|---| | presents | 48 | 44 | | frame p50 | 11.3 s | 12.0 s | | frame p90 | 14.0 s | 19.2 s | | GPU clocks (nvidia-smi every 100 ms) | P0 75.5%, P5 22.5%, P3 2.0% of samples; mean 1,304 MHz | P0 96.4%, P3 3.6%; mean 1,252 MHz | A's frames are about 6% shorter at the median (one-sided rank test, p ≈ 0.04), but with one run per arm the bootstrap 95% interval of the median ratio, 0.98 to 1.25, includes no change. Clocks weren't held: the GPU was in P0 for 75.5% of A's window and 96.4% of B's. **First in-game scene**, at control after Continue and the save load, minutes 30 to 40 after the menu stood: | | A (reuse on) | B (reuse off) | |---|---|---| | presents | 44 | 35 | | frame p50 | 12.6 s | 13.8 s | | frame p90 | 17.3 s | 28.3 s | | GPU clocks (nvidia-smi every 100 ms) | P0 99.9% of samples; mean 1,289 MHz | P0 99.9%; mean 1,279 MHz | Here the clocks were held in both arms. A's frames are about 9% shorter at the median and about 21% on average (one-sided rank test, p ≈ 0.004), and the bootstrap 95% interval of the median ratio, 1.02 to 1.38, excludes no change. This is still one run per arm. **Screenshots** of the same views from both arms, below. The menu frames are matched by present count, at the menu's first-seen count + 12. They show the same view with no missing, black or stale textures in either; the pixels that differ (1.2% of them by more than 16 levels) are the menu's animated grass and fog. The scene frames are only near-matched: B's load ran longer, and it closed before reaching the planned "Yes" + 900 frame, so both are counted from the end of each load (A at + 46 presents, B at + 35). They show the same room with no missing or stale textures; B's frame is darker, and it was taken 11 presents sooner after its load. An exact pair needs one more run of B, which we can do if you'd like. | | A (reuse on) | B (reuse off) | |---|---|---| | Menu | ![A, reuse on, menu](https://raw.githubusercontent.com/EagleBearerYS/AnyPS5/pr-assets/6454/6454-A-reuse-on-menu.png) | ![B, reuse off, menu](https://raw.githubusercontent.com/EagleBearerYS/AnyPS5/pr-assets/6454/6454-B-reuse-off-menu.png) | | Scene | ![A, reuse on, scene](https://raw.githubusercontent.com/EagleBearerYS/AnyPS5/pr-assets/6454/6454-A-reuse-on-scene.png) | ![B, reuse off, scene](https://raw.githubusercontent.com/EagleBearerYS/AnyPS5/pr-assets/6454/6454-B-reuse-off-scene.png) | The `[image-table]` reuse counters print only with `APS5_PROFILE_DRAW`, so these unprofiled runs don't have them; a short profiled pair can show them if you'd like. This pair was measured before the #7193 re-port. A menu pair on the re-ported head (a508aa03c4, with the same six PRs) follows.
oneandonlydean commented 2026-10-18 09:51:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-18T09:51:59Z.


#6881 just merged, and its new test in tests/ShaderMemory.cpp still uses the old codes/snapshot.tables.words layout, so this branch no longer compiles once merged with main. @Scramblrrrr's 913b93635 adapts those 2 lines to the shared columns. Could you cherry-pick it onto this branch?

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6248445824 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6454#issuecomment-6248445824). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-18T09:51:59Z. --- #6881 just merged, and its new test in tests/ShaderMemory.cpp still uses the old `codes`/`snapshot.tables.words` layout, so this branch no longer compiles once merged with main. @Scramblrrrr's 913b93635 adapts those 2 lines to the shared columns. Could you cherry-pick it onto this branch?
Scramblrrrr commented 2026-10-18 09:53:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Scramblrrrr on 2026-10-18T09:53:02Z.


Confirmed: the two-line shared-column adaptation from 913b93635 is already retained in our current 007 integration c872fab891d4f5776b72fdcfe973392c0998e957, with #6454 a508aa03c. All 54 focused native controls pass there (24.30 s, zero skips), including shader memory and the volume fixture. The standalone #6881 test intentionally stayed on main's layout while this PR was unmerged.

A separate WIP on my fork, codex/sparse-relocation-runs (890660892; original change 4d515a405), replaces tagVariantRuns' per-word origin searches with a sparse address walk. It overlaps this PR's shared-word append in DrawRelocate.cpp, so our integration puts AppendSharedWords inside the new run callback, using offset + first and the [first,last) byte span. That combination is included in the 54 passing controls. It is not an upstream PR yet; the first 007 menu timing is promising and a repeat control is running. No change requested to your broader table work. AI-assisted: Codex.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6248455061 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6454#issuecomment-6248455061). Originally posted by [Scramblrrrr](https://github.com/Scramblrrrr) on 2026-10-18T09:53:02Z. --- Confirmed: the two-line shared-column adaptation from 913b93635 is already retained in our current 007 integration c872fab891d4f5776b72fdcfe973392c0998e957, with #6454 a508aa03c. All 54 focused native controls pass there (24.30 s, zero skips), including shader memory and the volume fixture. The standalone #6881 test intentionally stayed on main's layout while this PR was unmerged. A separate WIP on my fork, codex/sparse-relocation-runs (890660892; original change 4d515a405), replaces tagVariantRuns' per-word origin searches with a sparse address walk. It overlaps this PR's shared-word append in DrawRelocate.cpp, so our integration puts AppendSharedWords inside the new run callback, using offset + first and the [first,last) byte span. That combination is included in the 54 passing controls. It is not an upstream PR yet; the first 007 menu timing is promising and a repeat control is running. No change requested to your broader table work. AI-assisted: Codex.
EagleBearerYS commented 2026-10-18 10:36:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-18T10:36:44Z.


@oneandonlydean done: main 9caecfd2d5 is merged in (dad24e3a4f), and @Scramblrrrr's 913b93635 (thanks!) is cherry-picked on top as 209f3ce87b, with Scramblrrrr as its author. That adapts #6881's volume rejection fixture to the shared columns. On GitHub's runners (run) the ^agc tests pass 3 runs in a row on Linux (711, 0 failed), and the libkernel suite passes; the libc suite's only failure is its precise_wait timing test. On Windows the only failures are agc_driver_pm4_replay_tool and agc_shader_replay_tool, which fail the same way on that runner for an unrelated branch (run).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6248828787 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6454#issuecomment-6248828787). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-18T10:36:44Z. --- @oneandonlydean done: `main` 9caecfd2d5 is merged in (dad24e3a4f), and @Scramblrrrr's 913b93635 (thanks!) is cherry-picked on top as 209f3ce87b, with Scramblrrrr as its author. That adapts #6881's volume rejection fixture to the shared columns. On GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39117369383)) the `^agc` tests pass 3 runs in a row on Linux (711, 0 failed), and the libkernel suite passes; the libc suite's only failure is its `precise_wait` timing test. On Windows the only failures are `agc_driver_pm4_replay_tool` and `agc_shader_replay_tool`, which fail the same way on that runner for an unrelated branch ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39061670036)).
EagleBearerYS commented 2026-10-18 10:43:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-18T10:43:52Z.


The menu pair on the re-port onto #7193, as promised above. Resident Evil Village (PPSA01556), one run with the table snapshot reuse on (A) and one with APS5_NO_TABLE_SNAPSHOT_REUSE=1 (B).

Build: a508aa03c4, this PR's re-port before tonight's merge of main, plus #6366, #6451, #6470, #6146, #6682 and #6646, which the title needs on main to reach its menu. Windows 11, NVIDIA GeForce RTX 3070 Laptop GPU (driver 617.42), Release, unprofiled, APS5_LAZY_SHADER_PREPARE=1 APS5_TRACE_SUMMARY_EVERY=1 APS5_NO_GPL=1 APS5_HOST_IMPORT_MIB=6400. The shader cache was warmed by an earlier run of the same build; neither run had a disk-cache miss after the menu stood.

Main menu, minutes 5 to 15 after it stands, no input:

A, reuse on B, reuse off
presents 306 153
frames per second 0.510 0.255
frame time p50 / p90 1.9 s / 2.3 s 3.8 s / 4.7 s
  • A's frames are about half as long as B's: median ratio 0.492 (one-sided rank test, p < 0.0001).
  • GPU clocks weren't locked. From 100 ms samples, A spent 69.8% of the window in P0 and B 98.6% (mean 1,337 and 1,333 MHz). A's GPU idles more and drops state, so the clock state, if anything, favours B.
  • In B's per-frame phase timings (APS5_TRACE_SUMMARY_EVERY=1, on in both runs), Shader.DrawStage (2.2 s) and Driver.Draw.shader_compile_and_link (1.9 s) appear among the top phases. These are in-memory pipeline links, since neither run touched the disk cache in the window. Driver.Packet takes 5.3 s per frame in A and 11.1 s in B.

Screenshots: both runs show the same menu, with no missing, black or stale textures. In the shots taken 5 minutes after the menu stood (presents 4,924 and 2,613), both past its fade-in, the logo, the menu items and the prompt match: no pixel of their text differs by more than 16 levels. The whole view differs on 3.41% of pixels by more than 16, about what two runs with the reuse on differ by (4.12%), from the menu's animated background. The shots at the menu's first-seen count + 12 don't compare this time: at these frame rates that count caught B's menu still fading in.

All three runs of this build (the warm-up and both arms) crashed at exit, in the NVIDIA driver's presenter (nvoglv64), after the measured window and with the reuse on and off. It also happens on our builds without this PR, so far only with APS5_NO_GPL=1.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6248889935 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6454#issuecomment-6248889935). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-18T10:43:52Z. --- The menu pair on the re-port onto #7193, as promised above. Resident Evil Village (PPSA01556), one run with the table snapshot reuse on (A) and one with `APS5_NO_TABLE_SNAPSHOT_REUSE=1` (B). **Build:** a508aa03c4, this PR's re-port before tonight's merge of `main`, plus #6366, #6451, #6470, #6146, #6682 and #6646, which the title needs on `main` to reach its menu. Windows 11, NVIDIA GeForce RTX 3070 Laptop GPU (driver 617.42), Release, unprofiled, `APS5_LAZY_SHADER_PREPARE=1 APS5_TRACE_SUMMARY_EVERY=1 APS5_NO_GPL=1 APS5_HOST_IMPORT_MIB=6400`. The shader cache was warmed by an earlier run of the same build; neither run had a disk-cache miss after the menu stood. **Main menu**, minutes 5 to 15 after it stands, no input: | | A, reuse on | B, reuse off | |---|---|---| | presents | 306 | 153 | | frames per second | 0.510 | 0.255 | | frame time p50 / p90 | 1.9 s / 2.3 s | 3.8 s / 4.7 s | - A's frames are about half as long as B's: median ratio 0.492 (one-sided rank test, p < 0.0001). - GPU clocks weren't locked. From 100 ms samples, A spent 69.8% of the window in P0 and B 98.6% (mean 1,337 and 1,333 MHz). A's GPU idles more and drops state, so the clock state, if anything, favours B. - In B's per-frame phase timings (`APS5_TRACE_SUMMARY_EVERY=1`, on in both runs), `Shader.DrawStage` (2.2 s) and `Driver.Draw.shader_compile_and_link` (1.9 s) appear among the top phases. These are in-memory pipeline links, since neither run touched the disk cache in the window. `Driver.Packet` takes 5.3 s per frame in A and 11.1 s in B. **Screenshots:** both runs show the same menu, with no missing, black or stale textures. In the shots taken 5 minutes after the menu stood (presents 4,924 and 2,613), both past its fade-in, the logo, the menu items and the prompt match: no pixel of their text differs by more than 16 levels. The whole view differs on 3.41% of pixels by more than 16, about what two runs with the reuse on differ by (4.12%), from the menu's animated background. The shots at the menu's first-seen count + 12 don't compare this time: at these frame rates that count caught B's menu still fading in. All three runs of this build (the warm-up and both arms) crashed at exit, in the NVIDIA driver's presenter (nvoglv64), after the measured window and with the reuse on and off. It also happens on our builds without this PR, so far only with `APS5_NO_GPL=1`.
SleglJan commented 2026-10-18 14:55:10 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by SleglJan on 2026-10-18T14:55:10Z.


007 First Light (PPSA11386 v01.018.000), main menu, measured again on main 1b0c7cfa0 (2026-10-18). Since my earlier comment, #6243, #6537 and #6455 have merged; all three were part of #6454's head. On this base:

  • #5372 alone takes the frame p50 from 1335 to 612 ms (−54%);
  • #5372 and #6454 together take it to 456 ms (−66%).
    The same text is on #5372 and #6454. There is a note on #5372's conflict with main at the end.

Setup:

  • Linux 7.2.10, Ryzen 9 7950X3D, RTX 3080 10 GB, NVIDIA 615.78.08, GCC 16.2.1, Release, bubblewrap sandbox. The title renders 3840x2160, shown in a 1500x844 window.
  • Each arm is built from main 1b0c7cfa0 plus a local commit that logs the window-title FPS:
    • A: #5799, #6317, #6332 and #6881. #6881 has merged since.
    • B: A + #5372 at e5390612f.
    • F: B + #6454 at a508aa03c, plus a two-line test adaptation of #6881's fixture to #6454's shared columns (tests only). That adaptation is the same change as Scramblrrrr's 913b93635, which #6454 now carries as 209f3ce87. Against main, #6454's current head 790fe1818 differs from a508aa03c only by those two test lines and five rows in docs/dev/ENVIRONMENT.md, so F has its code.
    • E: F + #6346, #6868, #6465, #6471, #6918 and #6567. #6567 conflicts with #6454 in ShaderResources. In E it keeps #6454's SetAllocation fields, and fills their variable count on the two pooled-pool returns instead of adding its own field. The other conflicts on this base (#6317, #6881, #6868) are in docs and tests only.
  • The title's executable is not patched (no #6172 change). Pad input is scripted through APS5_PAD_INPUT_FILE, from an existing save.
  • main's defaults plus APS5_PROFILE_DRAW=1, APS5_TRACE_EVENTS=2097152 and SDL_VIDEODRIVER=x11. Each arm runs from its own warm shader cache, made by a warm-up run on the same build; all warm-ups started from one common cache.
  • Window: APS5_TRACE_SECONDS=1320:180, 180 s. Every sample is in the menu before the window opens, from about 8.5 min before it (A) to 16.5 min (E).
arm samples frame p50 ms GPU busy ms/present worker 0 Driver.Packet ms/present
A 2 1332.9, 1337.1 186.7, 181.2 1317, 1320
B: + #5372 1 611.6 185.0 606
F: + #5372 + #6454 2 455.1, 456.8 183.8, 185.3 448, 449
E: F + six more 1 362.4 181.8 353
  • The two samples of an arm are 4.2 ms apart on A and 1.7 ms on F. GPU busy is 181–187 ms in every sample, so the difference between arms is on the CPU side.
  • [buffers] on the CPU: A copies guest memory on the CPU, all outside imports: about 496 copies and 5.7 GiB per present. B, F and E print no CPU-copy line. That line comes every 1,000 copies, so they made fewer than 1,000 in the whole run.
  • [buffers] on the GPU, copies out of imports, regions and MiB per present: A 34.5/34.3 and 19.2/19.1, B 42.7 and 31.0, F 44.1/43.5 and 32.0/31.5, E 42.5 and 30.8.
  • Worker 0, ms per present, A → B → F → E (two values: both samples):
    • Driver.Packet.dispatch 388/387 → 94 → 78/76 → 61;
    • Shader.DrawStage.capture_resources 248/244 → 300 → 97/156 → 85;
    • shader_compile_and_link 391/401 → 420 → 216/279 → 205. capture_resources runs inside it.
  • In F, about 60 ms moves between draw_enqueued and shader_compile_and_link from one sample to the other: 140/82 and 216/279, of which capture_resources is 97/156. Driver.Draw stays at 361/365, and the p50s agree within 1.7 ms.

Against my earlier comment, on main bc3c0fc13 with the same four PRs and harness:

  • A went from 2081 ms (mean of two) to 1335 ms on this main.
  • #5372 alone gave −28% there and −54% here.
  • F (then with #6454's older head 1752c4a89) was 442 ms there and 456 ms here.

#5372 and current main: they conflict in importJoined. #7061 replaced findImport with peekImport on the two lines where this PR drops && low->joined and && high->joined. Arms B, F and E use main's peekImport without the joined condition:
if (const auto* low = peekImport(state, begin, begin + 1); low != nullptr) begin = low->base;, and the same for high. The joinedRun line, tests/BdaResources.cpp and the debt line merge without a conflict.

Not covered:

  • B and E have one sample each, and the menu background is animated.
  • #6454 was not run without #5372 on this base (C in my earlier comment).
  • Main menu only: no gameplay, no other GPU, no Windows.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6251348118 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6454#issuecomment-6251348118). Originally posted by [SleglJan](https://github.com/SleglJan) on 2026-10-18T14:55:10Z. --- 007 First Light (PPSA11386 v01.018.000), main menu, measured again on `main` 1b0c7cfa0 (2026-10-18). Since my earlier comment, #6243, #6537 and #6455 have merged; all three were part of #6454's head. On this base: - #5372 alone takes the frame p50 from 1335 to 612 ms (−54%); - #5372 and #6454 together take it to 456 ms (−66%). The same text is on #5372 and #6454. There is a note on #5372's conflict with `main` at the end. Setup: - Linux 7.2.10, Ryzen 9 7950X3D, RTX 3080 10 GB, NVIDIA 615.78.08, GCC 16.2.1, Release, bubblewrap sandbox. The title renders 3840x2160, shown in a 1500x844 window. - Each arm is built from `main` 1b0c7cfa0 plus a local commit that logs the window-title FPS: - A: #5799, #6317, #6332 and #6881. #6881 has merged since. - B: A + #5372 at e5390612f. - F: B + #6454 at a508aa03c, plus a two-line test adaptation of #6881's fixture to #6454's shared columns (tests only). That adaptation is the same change as Scramblrrrr's 913b93635, which #6454 now carries as 209f3ce87. Against `main`, #6454's current head 790fe1818 differs from a508aa03c only by those two test lines and five rows in `docs/dev/ENVIRONMENT.md`, so F has its code. - E: F + #6346, #6868, #6465, #6471, #6918 and #6567. #6567 conflicts with #6454 in `ShaderResources`. In E it keeps #6454's `SetAllocation` fields, and fills their variable count on the two pooled-pool returns instead of adding its own field. The other conflicts on this base (#6317, #6881, #6868) are in docs and tests only. - The title's executable is not patched (no #6172 change). Pad input is scripted through `APS5_PAD_INPUT_FILE`, from an existing save. - `main`'s defaults plus `APS5_PROFILE_DRAW=1`, `APS5_TRACE_EVENTS=2097152` and `SDL_VIDEODRIVER=x11`. Each arm runs from its own warm shader cache, made by a warm-up run on the same build; all warm-ups started from one common cache. - Window: `APS5_TRACE_SECONDS=1320:180`, 180 s. Every sample is in the menu before the window opens, from about 8.5 min before it (A) to 16.5 min (E). | arm | samples | frame p50 ms | GPU busy ms/present | worker 0 `Driver.Packet` ms/present | |---|---|---|---|---| | A | 2 | 1332.9, 1337.1 | 186.7, 181.2 | 1317, 1320 | | B: + #5372 | 1 | 611.6 | 185.0 | 606 | | F: + #5372 + #6454 | 2 | 455.1, 456.8 | 183.8, 185.3 | 448, 449 | | E: F + six more | 1 | 362.4 | 181.8 | 353 | - The two samples of an arm are 4.2 ms apart on A and 1.7 ms on F. GPU busy is 181–187 ms in every sample, so the difference between arms is on the CPU side. - `[buffers]` on the CPU: A copies guest memory on the CPU, all outside imports: about 496 copies and 5.7 GiB per present. B, F and E print no CPU-copy line. That line comes every 1,000 copies, so they made fewer than 1,000 in the whole run. - `[buffers]` on the GPU, copies out of imports, regions and MiB per present: A 34.5/34.3 and 19.2/19.1, B 42.7 and 31.0, F 44.1/43.5 and 32.0/31.5, E 42.5 and 30.8. - Worker 0, ms per present, A → B → F → E (two values: both samples): - `Driver.Packet.dispatch` 388/387 → 94 → 78/76 → 61; - `Shader.DrawStage.capture_resources` 248/244 → 300 → 97/156 → 85; - `shader_compile_and_link` 391/401 → 420 → 216/279 → 205. `capture_resources` runs inside it. - In F, about 60 ms moves between `draw_enqueued` and `shader_compile_and_link` from one sample to the other: 140/82 and 216/279, of which `capture_resources` is 97/156. `Driver.Draw` stays at 361/365, and the p50s agree within 1.7 ms. Against my earlier comment, on `main` bc3c0fc13 with the same four PRs and harness: - A went from 2081 ms (mean of two) to 1335 ms on this `main`. - #5372 alone gave −28% there and −54% here. - F (then with #6454's older head 1752c4a89) was 442 ms there and 456 ms here. **#5372 and current `main`:** they conflict in `importJoined`. #7061 replaced `findImport` with `peekImport` on the two lines where this PR drops `&& low->joined` and `&& high->joined`. Arms B, F and E use `main`'s `peekImport` without the `joined` condition: `if (const auto* low = peekImport(state, begin, begin + 1); low != nullptr) begin = low->base;`, and the same for `high`. The `joinedRun` line, `tests/BdaResources.cpp` and the debt line merge without a conflict. Not covered: - B and E have one sample each, and the menu background is animated. - #6454 was not run without #5372 on this base (C in my earlier comment). - Main menu only: no gameplay, no other GPU, no Windows. AI-assisted: yes (Claude Code)
EagleBearerYS commented 2026-10-18 15:07:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-18T15:07:14Z.


@SleglJan thanks for measuring it again on main 1b0c7cfa0. Your new numbers are now in the Tested section next to the earlier ones: on top of #5372, this PR takes the menu frame p50 of 007 First Light (PPSA11386) from 612 to 456 ms, and the two together take it from 1,335 to 456 ms. The row carries your setup and what wasn't covered, as you list them.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6251468075 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6454#issuecomment-6251468075). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-18T15:07:14Z. --- @SleglJan thanks for measuring it again on `main` 1b0c7cfa0. Your new numbers are now in the Tested section next to the earlier ones: on top of #5372, this PR takes the menu frame p50 of 007 First Light (PPSA11386) from 612 to 456 ms, and the two together take it from 1,335 to 456 ms. The row carries your setup and what wasn't covered, as you list them.
github-actions[bot] commented 2026-10-18 19:52:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-18T19:52:07Z.


This pull request is labeled perf, so it needs the summary line of a capture on main and one with the change, from the same title, scene and machine, as the Performance report form asks. Please paste both aps5-summary.jsonl lines, attach the two traces and add the output of tools/trace_digest.py.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6254395557 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6454#issuecomment-6254395557). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-18T19:52:07Z. --- <!-- pr-labels-perf --> This pull request is labeled `perf`, so it needs the summary line of a capture on `main` and one with the change, from the same title, scene and machine, as the Performance report form asks. Please paste both `aps5-summary.jsonl` lines, attach the two traces and add the output of `tools/trace_digest.py`.
adriadam10 commented 2026-10-19 00:54:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-19T00:54:41Z.

Review: CHANGES_REQUESTED


Thanks for the detailed numbers and for the Village/007 runs. Three things block this head:

  • Merge with current main doesn't build/merge cleanly.
    • Driver.hpp: keep both dumpRequest(..., std::string_view suffix = {}) and tagVariantRuns.
    • Dispatch/DataHitVerification.cpp: the data-hit capture is now CaptureInvocation(*verifyMemory, ...); build the ShaderMemory with &QueryPendingSpan as before.
    • tests/ShaderMemory.cpp:3386 (verifyChainedTableOffset, from #7527) still reads tables.words; with per-column words it must read snapshot.words.
  • agc_driver_image_table_vouch_queued_draws fails on CI's lavapipe (Mesa 25.2.8 / LLVM 20.1.2) on the merged tree, at ImageTableCacheBounds.cpp:319: "a queued draw writing outside the table: the table was not vouched for". Your own description reports the same failure once, passing afterwards. A test of this PR that fails intermittently will turn the Linux job red for everyone, so please find the cause (an elsewhere range at OutputOffset sharing a write-tracked page/granule with the table, or QueryPendingSpan being coarser than the span, would explain a layout-dependent result) and make the expectation deterministic.
  • Please keep the perf label's requirement in mind: the bot asks for both aps5-summary.jsonl lines for each capture and the traces; the body has the lines for one pair, the Village A/B only has the figures.

Once these are fixed and CI is green on the new head we'll look at the rest again.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5565933488 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6454#pullrequestreview-5565933488). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-19T00:54:41Z. **Review:** CHANGES_REQUESTED --- Thanks for the detailed numbers and for the Village/007 runs. Three things block this head: - **Merge with current `main` doesn't build/merge cleanly.** - `Driver.hpp`: keep both `dumpRequest(..., std::string_view suffix = {})` and `tagVariantRuns`. - `Dispatch/DataHitVerification.cpp`: the data-hit capture is now `CaptureInvocation(*verifyMemory, ...)`; build the `ShaderMemory` with `&QueryPendingSpan` as before. - `tests/ShaderMemory.cpp:3386` (`verifyChainedTableOffset`, from #7527) still reads `tables.words`; with per-column words it must read `snapshot.words`. - **`agc_driver_image_table_vouch_queued_draws` fails on CI's lavapipe (Mesa 25.2.8 / LLVM 20.1.2)** on the merged tree, at `ImageTableCacheBounds.cpp:319`: "a queued draw writing outside the table: the table was not vouched for". Your own description reports the same failure once, passing afterwards. A test of this PR that fails intermittently will turn the Linux job red for everyone, so please find the cause (an `elsewhere` range at `OutputOffset` sharing a write-tracked page/granule with the table, or `QueryPendingSpan` being coarser than the span, would explain a layout-dependent result) and make the expectation deterministic. - Please keep the `perf` label's requirement in mind: the bot asks for both `aps5-summary.jsonl` lines for each capture and the traces; the body has the lines for one pair, the Village A/B only has the figures. Once these are fixed and CI is green on the new head we'll look at the rest again.
Scramblrrrr commented 2026-10-19 01:31:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Scramblrrrr on 2026-10-19T01:31:23Z.


Current-main Windows integration update: 9f9a532b1 on main 876bd17af passes 90/90 selected native checks (32.37 s), including shared-table reuse, vouched lookups/queued draws, image-table cases, draw relocation, shutdown, and the new APR read tests. Public stack: https://github.com/Scramblrrrr/AnyPS5/tree/codex/first-light-oct18-resume-main . Title run is still cold-starting; no new FPS claim.

Two test-only adaptations for newer main if useful:

  • e6e57054b updates newly introduced selected-record/pointer-chain assertions from the old global table words to the shared per-column words.
  • 9f9a532b1 initializes Driver::Get before taking the queued-vouch fixture's allocation stamp. Main now lazily maps/registers the driver's FS-table memory. Without initialization, the first pending-span query changes the allocation-layout generation after the fixture's stamp; the next unchanged-vouch check fails correctly. Temporary diagnostics confirmed layout 2 -> 3 with unchanged table words; removed afterwards. Revised fixture passed five repeats, then the full selected set. Production validation was not weakened.

AI-assisted: Codex; raw title data remains local.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6257744519 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6454#issuecomment-6257744519). Originally posted by [Scramblrrrr](https://github.com/Scramblrrrr) on 2026-10-19T01:31:23Z. --- Current-main Windows integration update: 9f9a532b1 on main 876bd17af passes 90/90 selected native checks (32.37 s), including shared-table reuse, vouched lookups/queued draws, image-table cases, draw relocation, shutdown, and the new APR read tests. Public stack: https://github.com/Scramblrrrr/AnyPS5/tree/codex/first-light-oct18-resume-main . Title run is still cold-starting; no new FPS claim. Two test-only adaptations for newer main if useful: - e6e57054b updates newly introduced selected-record/pointer-chain assertions from the old global table words to the shared per-column words. - 9f9a532b1 initializes Driver::Get before taking the queued-vouch fixture's allocation stamp. Main now lazily maps/registers the driver's FS-table memory. Without initialization, the first pending-span query changes the allocation-layout generation after the fixture's stamp; the next unchanged-vouch check fails correctly. Temporary diagnostics confirmed layout 2 -> 3 with unchanged table words; removed afterwards. Revised fixture passed five repeats, then the full selected set. Production validation was not weakened. AI-assisted: Codex; raw title data remains local.
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!6454
No description provided.