perf(agc): share one image table per heap and write epoch through capture, compare, resolution and descriptors #6454
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6454"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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_resourcescosts 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 onmain(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:
vkUpdateDescriptorSetswhen 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:
WRITE_DATA, a compute or storage-image result, or an unwatched range falls back to reading and comparing exactly as before.Each case has a test.
APS5_NO_TABLE_SNAPSHOT_REUSE=1turns the reuse off.APS5_NO_VOUCHED_VALIDATION=1,APS5_NO_TABLE_REPLAY=1andAPS5_KEPT_DESCRIPTOR_SETS=0turn the later stages off one at a time.It also closes two stamp ordering races found on the way:
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.
FormatVersionstays 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-6340andtest/v3-x-6440-6340.ResourceMaterializer).ResourceMaterializer.cpp/.hppandtests/ShaderMemory.cpp.test/v3-x-6440passesctest -R '^agc'606/606 with both PRs' tests. Two things git doesn't flag: #6440's nestedColumnMemo,ColumnKey()andColumnMemoEntrieswould 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 withAPS5_NO_TABLE_SNAPSHOT_REUSE=1, since this PR's compare otherwise serves every repeated compile first.ShaderResources::resolveImageTables).resolveImageTables; the composed resolution is ontest/v3-x-6340.mainkeeps 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 onmain. It still conflicts with #6340 inresolveImageTables.ControlFlowInfo.hpp,ResourcePlan.hpp,ResourceMaterializer.cpp,Recompiler.cppandtests/ShaderMemory.cppare unions of both sides, plus four changes git doesn't flag:WordsIndex(records, value)inLaneRecords, areturn;in thevoidReadColumn,fieldCount<TableColumn>() == 19, and the next freeFormatVersion.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.main,DescriptorCache::AllocateRewrittenhands 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 inShaderResources.hpp(SetAllocationand therecycledmap's key:variableCountis astd::optionalhere and a count there) and inShaderResources.cpp(the returns ofAllocate). Whichever merges second keeps this PR'sSetAllocationfields (layout,sizes, the optionalvariableCountandtable) and itskeptlist, keysrecycledby layout andvariableCount.value_or(0)in bothAllocateRewrittenandRecycle, and setsvariableCountin each ofAllocate's returns.main,PrepareDrawBindingsmatched 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, withVUID-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.verifyVolumeBiasTableRejectionintests/ShaderMemory.cppdidn't compile against this PR's snapshot layout, wherecodesandwordsare per-columnSharedValues(SleglJan's report on #6881). Scramblrrrr's 913b93635 adapts the fixture's two lines; it's cherry-picked here as209f3ce87b, right after this branch's merge ofmain9caecfd2d5(dad24e3a4f).Other conflicts, in shared lines (an overlap check against
main668a7ddc19and the open PRs, 2026-10-16). Whichever merges second keeps both sides:DescriptorCache's constructor keeps this PR'sKeptSets()helper andkept.reservebody with #6614'sfreeDescriptorSets(...)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.DrawCapture.cppthat builds a draw variant's runs and words withtagVariantRuns, and added a user-data-use pointer to the SRT walker's options. This branch mergesmainwith it:tagVariantRunsalso 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 ofmainrecorded the shared words by capture region, which names the wrong run once relocation splits a region;e448df1ea8records them by run, so a split variant's runs are validated as before (SplitRunsNameTheirSharedWords).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 oftests/execution/DrawCacheRelocation.cpp; keep both.DrawStageVariantand renames the variant merge inDrawCache.cpp. Move this PR's shared-words build intoDrawStageVariant, 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 inDriver.hpp.ShaderMemorywith this PR'sQueryPendingSpanand captures through #5958'sCaptureInvocation.Driver.hpp, kept both in this branch's merge ofmain.dumpRequest's declaration inDriver.hpp, next to this PR'stagVariantRuns. Keep both lines.EntryHeaderBytesnext toFormatVersioninShaderDiskCache.hpp. Keep it, and this PR'sFormatVersion.main.main3de84fa106(db622e1c4f) reworksTableSnapshotter::WordsIndex(records, value)on #7193'sHashScratchIndex, indexing the column's ownrecords.distinct, since this PR keeps a snapshot's words per table, with a newHashScratchIndex::Clear()called for each column.ResolveImageTablesuses #7193'sDenseScratchMap, sized by the largest column's word count and cleared per table, readingcolumn.words.at(code). #7193'sverifyImageTableScratchReusecounts the distinct records assnapshot.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:
mainhasFormatVersion37 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:¹ 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):
resolveImageTables, p50 per buildWith 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 intests/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, andcheck_skips.pyflags onlyguest_sce_net, skipped for the same reason.check_test_registration.pypasses.GitHub runners:
fae2221c47): v3's tests and the recorder tests pass 3 of 3 on Linux and Windows (run), and #6537'sdrawSnapshotTableSetTests(agc_driver_recorder_tests --draw-descriptors-only, registered for that check only) passes on Linux lavapipe (run). Both runs are marked failed only forguest_kqueueon Windows, and the first also forprecise_waitin the libc suite on Linux; this change touches neither.agc_draw_descriptors):agc_draw_descriptors,agc_driver_draw_cache_relocationandagc_driver_image_table_reusepass 3 of 3 on Linux, and skip on Windows without a Vulkan device (run).5a31a9c674) and then #6455's (ab82f50a1b):agc_shader_table_snapshot_reuse,agc_write_trackingand the relatedagctests pass 20 of 20 on Linux and Windows (run, run).^agcsweep at5a31a9c674, next to the same sweep ofmain4186f06a9aon the same runners (this branch, main): Linux 603 of 604 (41 skip), the one failure the known parallel-load flakeagc_driver_preparation_scope_settle, againstmain's 601 of 601. Windows 597 of 598 (465 skip without a Vulkan device) againstmain's 594 of 595, both failing onlyagc_driver_pm4_replay_tool(0xc0000139).d816062960,97590db998,dc6c346de7and the merge ofmain,d21b0801a4) pass the snapshot reuse and related tests on both runners.guest_kqueuefails, which fails onmainon the same runners.Windows 11, NVIDIA GeForce RTX 3070 Laptop GPU (driver 617.42), on
main66e290f1c0with this PR, #6678 and #6911 merged (the other two don't touch this path):agc_driver_image_table_reusepasses 5 of 5, with the Windows counts of its CPU-write cases (3 - CpuWriteResolutionsreuses withCpuWriteResolutionsresolutions 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
mprotectalso callsVirtualProtect. The test now protects the page the waymprotectdoes 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
main4e9a2a871and with draws pipelined atmain's default:ctest -R '^agc'passes 599 of 600 (41 skip on lavapipe). The one failure is the known parallel-load flakeagc_driver_preparation_scope_settle, which passes 5 of 5 alone and fails the same way onmain4e9a2a871. Stage 1's head and the head of stages 2-3 also passed the suite on their own, before the merge withmain.New and extended tests:
agc_driver_image_table_vouched_lookups: dispatches over a write-watched heap are vouched for. A CPU store, a CPWRITE_DATApending ahead of the dispatch, and a driver store each refuse the vouch and capture again;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;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
main4e9a2a871against this PR's code, two interleaved rounds. µs per call: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% abovemain's, insidemain'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'sSplitRunsNameTheirSharedWordsgives 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, andctest -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 theagc_driver_preparation_scope_settleload flake.precise_waiton Linux, a timing test, and libkernel'sguest_kqueueon Windows, which fails onmainthere too.The merge of
main72c5eed1ff(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'sprecise_waiton Linux, a timing test, and libkernel'sguest_kqueueon Windows, which fails onmainthere too.The merge of
main3cc1fc8f11(a53d23f810, with #6402, #6614 and #7101) and of #6243's head (9dcf408034, which expects a per-lane tableimage_storeto be supported now that #6402 makes it so), at6884e9c441, on GitHub's runners (run): this PR's tests and those tied to the files it changes, 3 runs in a row, and the^agctests. Linux passes all of them. On Windows the only failures areagc_driver_pm4_replay_toolandagc_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, withmainf1af6c5915and #7325) and ofmainb39d90bf14(6720211da1, after #6243 merged), on GitHub's runners. The first merge adapts #7325'sverifyChainedTableOffsetto readsnapshot.words, since this PR keeps a snapshot's words per table. At49788713ac(run) and at6720211da1(run), this PR's tests pass 3 runs in a row on Linux, as do the^agctests (688 and 694, 0 failed). On Windows the only failures areagc_driver_pm4_replay_toolandagc_shader_replay_tool, as at6884e9c441. At6720211da1the Linux suite's one failure was libc'sprecise_waittiming test; this PR doesn't touch libc.The merges of
main3de84fa106(db622e1c4f, with #7193) andmainbb2624a533(a508aa03c4, after #6455 merged), on GitHub's runners: this PR's tests,agc_shader_bindlesswith #7193's scratch-reuse case among them, pass 3 runs in a row on Linux, as do the^agctests (710, 0 failed at both; run, run). On Windows the only failures are the same two replay tools. Ata508aa03c4the Linux suite's one failure was libc'sprecise_waittiming test.The merge of
main9caecfd2d5(dad24e3a4f, with #6881) and Scramblrrrr's 913b93635 (cherry-picked as209f3ce87b), on GitHub's runners (run): the^agctests pass 3 runs in a row on Linux (711, 0 failed), and the suites' only failure is libc'sprecise_waittiming test. On Windows the only failures are the same two replay tools.The merge of
main0d078f75d3(54f2cf31b1, no conflicts) and thedocs/dev/ENVIRONMENT.mdrows for this PR's five switches (790fe18183, the head;mainlists every switch there since #6078), on GitHub's runners (run): the^agctests pass on Linux (712, 0 failed), and the libc and libkernel suites pass. On Windows the only failures areagc_driver_pm4_replay_toolandagc_shader_replay_tool, as in the runs above.The merge of
main61d3d3080c(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 sharedwordslist. This branch keeps a snapshot's words per column, so the merge has the test read them from its column. On Linux the^agctests pass 729 of 730. The one failure was this PR'sagc_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) onmainf1af6c5915, 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 addsAPS5_NO_TABLE_SNAPSHOT_REUSE=1. Frame times are in seconds (about 0.1 fps on this build):Resident Evil Village (PPSA01556), the same A/B on the re-port (
a508aa03c4, before the merge ofmain9caecfd2d5), with the same six PRs, setup and arms, menu only (comment):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
main0c4816f611, with the fixes it needs to reach the menu. A′ adds #6243 (090c0dad15). B is A′ plus this branch atab82f50a1b, 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'sAPS5_LAZY_SHADER_PREPARE=1):Driver.Packetper frameDriver.Drawper frameAbout 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 memoryline 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 throughMarkWritten), andmain'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 ofmain. GPU clocks weren't recorded for this pair. The traces are available on request.tools/trace_digest.pyon 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
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
mainbc3c0fc13with four open shader PRs the title needs (#5799, #6317, #6332, #6881). Each arm merges PR heads as they were, this PR at1752c4a89, which carries #6243, #6455 and #6537. Every build has its own warm shader cache,APS5_PROFILE_DRAW=1and scripted pad input from a save; the window is 180 s in the menu. Frame p50:draw_enqueued72 → 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.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 thatmain; the second arm adds #5372 at e5390612f; the third adds this PR ata508aa03c, whose code the current head790fe18183keeps (since then, besides two merges ofmain, it adds only the two-line adaptation of #6881's test fixture and thedocs/dev/ENVIRONMENT.mdrows). Every arm has its own warm shader cache andAPS5_PROFILE_DRAW=1; the window is 180 s in the menu. Frame p50:Shader.DrawStage.capture_resourcesfrom 300 to 97 and 156 ms per present (the two samples), andDriver.Packet.dispatchfrom 94 to 78 and 76 ms.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
main84b0d2f24with #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
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)main)agc_driver_image_table_reuse; NVIDIA GeForce RTX 3080 10 GB (driver 615.78.08), Linux, for 007 First Light (SleglJan)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.
main)core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppL1608-1609, L4571-4591, L4678-4679core/shader/recompiler/Optimization/include/Optimization/ResourceMaterializer.hppL44core/shader/recompiler/Optimization/src/ResourceMaterializer.cppL20, L334, L343, L369, L371, L860-862, L929-959, L969-970core/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hppL85, L117core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppL3775core/libs/prx/libSceAgcDriver/tests/execution/DrawCacheRelocation.cppL2-3, L133core/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRelocate.cppL95-104core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppL1426, L1429-1430, L1433-1434, L1456-1457core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppL4563-4567core/shader/recompiler/Optimization/src/ResourceMaterializer.cppL810-811docs/dev/ARCHITECTURE.mdL159Some 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.
core/shader/recompiler/Optimization/src/ResourceMaterializer.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/shader/recompiler/CMakeLists.txtcore/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/ResourcePlan.hppcore/shader/recompiler/Optimization/src/ResourceMaterializer.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/shader/recompiler/Recompiler.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/shader/recompiler/Recompiler.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/shader/recompiler/Optimization/include/Optimization/ResourceMaterializer.hppcore/shader/recompiler/Optimization/src/ResourceMaterializer.cppcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCache.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppdocs/dev/ENVIRONMENT.mdcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hppcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hppcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCache.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRelocate.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/shader/recompiler/CMakeLists.txtcore/shader/recompiler/ShaderDiskCache.cppdocs/dev/ARCHITECTURE.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtdocs/dev/ARCHITECTURE.mdcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/shader/recompiler/Recompiler.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hppcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/VariantValidation.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCache.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cppcore/libs/prx/libSceAgcDriver/Execution/src/ShaderMemory.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/tests/execution/ImageTableReuse.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/libs/prx/libSceAgcDriver/tests/execution/ImageTableReuse.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/shader/recompiler/Optimization/include/Optimization/ResourceMaterializer.hppcore/shader/recompiler/Optimization/src/ResourceMaterializer.cppcore/shader/recompiler/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/shader/recompiler/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/ResourcePlan.hppcore/shader/recompiler/Optimization/src/ResourceMaterializer.cppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/shader/recompiler/Recompiler.cppdocs/dev/ARCHITECTURE.mddocs/dev/ENVIRONMENT.mdcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hppcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hppcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCache.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawRelocate.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/tests/execution/DrawCacheRelocation.cppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/shader/recompiler/CMakeLists.txtcore/shader/recompiler/Recompiler.cppcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Memory/WriteEvidence.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cppcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/shader/recompiler/Recompiler.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/shader/recompiler/Recompiler.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppdocs/dev/ARCHITECTURE.mdcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/shader/recompiler/CMakeLists.txtcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/ShaderDiskCache.cppdocs/dev/ENVIRONMENT.mdcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cppdocs/dev/ARCHITECTURE.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/tests/execution/ImageTableReuse.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cppcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/shader/recompiler/CMakeLists.txtcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hppcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hppcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/VariantValidation.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCache.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cppcore/libs/prx/libSceAgcDriver/Execution/src/ShaderMemory.cppcore/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/shader/recompiler/CMakeLists.txtcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/ShaderDiskCache.cppdocs/dev/ARCHITECTURE.mddocs/dev/ENVIRONMENT.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Dispatch/DispatchCache.hppcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Draw/DrawCache.hppcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/VariantValidation.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCache.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cppcore/libs/prx/libSceAgcDriver/Execution/src/ShaderMemory.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/shader/recompiler/CMakeLists.txtcore/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/ResourcePlan.hppcore/shader/recompiler/Optimization/include/Optimization/SrtWalker.hppcore/shader/recompiler/Optimization/src/ResourceMaterializer.cppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/ShaderDiskCache.cppdocs/dev/ARCHITECTURE.mddocs/dev/ENVIRONMENT.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/include/Driver/Driver.hppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/shader/recompiler/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/shader/recompiler/CMakeLists.txtcore/shader/recompiler/Optimization/src/ResourceMaterializer.cppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/shader/recompiler/CMakeLists.txtcore/shader/recompiler/Recompiler.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/ResourcePlan.hppcore/shader/recompiler/Optimization/src/ResourceMaterializer.cppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/Draw.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Draw/DrawCapture.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/shader/recompiler/CMakeLists.txtcore/shader/recompiler/Recompiler.cppdocs/dev/ENVIRONMENT.mdcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cppcore/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/shader/recompiler/Recompiler.cppcore/shader/recompiler/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cppcore/libs/prx/libSceAgcDriver/tests/Graphics.cppcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/shader/recompiler/Recompiler.cppdocs/dev/ARCHITECTURE.mdcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppcore/shader/recompiler/Optimization/src/ResourceMaterializer.cppcore/shader/recompiler/ShaderDiskCache.cppcore/libs/prx/libSceAgcDriver/CMakeLists.txtcore/libs/prx/libSceAgcDriver/Graphics/src/Texture.cppdocs/dev/ENVIRONMENT.mdImported 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 ofmain. None of them changesPrepareDrawBindingsorDescriptorCache.VOP3 source modifiers are not implemented. So this PR was merged ontomain4186f06a9plus local changes the title needs to get there.APS5_PROFILE_DRAW=1.APS5_KEPT_DESCRIPTOR_SETS=0,APS5_NO_TABLE_REPLAY=1,APS5_NO_TABLE_RESOLUTION_REUSE=1andAPS5_NO_TABLE_SNAPSHOT_REUSE=1ended between frames 171 and 178.APS5_PIPELINED_DRAWS=0ended at frame 106.VUID-VkWriteDescriptorSet-dstArrayElement-00321reported 339 image-table descriptors written at binding 260 into a set allocated with a variable count of 1. That matches thePrepareDrawBindingspairing that #6537 fixes, where the fragment table's write lands in the vertex stage's snapshot set.AI-assisted: yes (Claude Code)
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
PrepareDrawBindingspairing onmainthat #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.Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-10-16T09:33:56Z.
Small doc mismatch: this PR bumps
FormatVersioninShaderDiskCache.hppto 37, but thedocs/dev/ARCHITECTURE.mdline it edits saysFormatVersion36. Onmainthe 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.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).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.
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@517d4cce9a37018082325b50aab3dcab58f285d2combines current #64541752c4a89(including #6537), current main66e290f1c, #6340b05c53750, #6567544e7afb3, #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: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.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.
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.
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.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.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_reusepasses 5 of 5, with the count you changed at "a CPU write collected in a new epoch, then two dispatches" as written (3 - CpuWriteResolutionsreuses,CpuWriteResolutions= 2 on Windows). The tree wasmain66e290f1c0with 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.Imported from boykopovar/AnyPS5. Originally posted by SleglJan on 2026-10-17T17:37:07Z.
007 First Light (PPSA11386 v01.018.000), main menu, on
mainbc3c0fc13plus 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:
mainbc3c0fc13(2026-10-16) plus four open shader PRs 007 needs onmain(#5799, #6317, #6332, #6881).1752c4a89, #6918955e7c3c7, #6471726ef5f9a, #6440 cdb140f49.ResourceMaterializerandShaderMemory.cppside of Scramblrrrr's 817a9fda4. #6340, which 817a9fda4 also merges, is not in E.APS5_PAD_INPUT_FILE, starting from an existing save.main's defaults plusAPS5_PROFILE_DRAW=1(for the[buffers]counters),APS5_TRACE_EVENTS=2097152andSDL_VIDEODRIVER=x11. Each arm runs from its own warm shader cache, made by a warm-up run on the same build.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:
Driver.Packetper present. No effect was measured for #6918 alone on this base.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.Driver.PacketResources.Complete(all threads)draw_enqueued(all threads)[buffers]per present:How the two interact. This is our reading of these counters; the parts were not tested apart.
Resources.Completeto 55 ms, and the committer's time per commit from 1.37 ms (A2) to 0.22 ms. Capture stays at ~1190 ms.draw_enqueued(72 → 524 ms).draw_enqueuedis 81 ms. That fits the pair beating the sum: each PR removes the limit the other one leaves.Driver.Packetdifference (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:
main.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_untrackedfails 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 afterbc3c0fc13, change that test.main4186f06a9plus local changes) and frames 215-260, so they don't compare with these.AI-assisted: yes (Claude Code)
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.
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. Basemain84b0d2f24+ #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.This scene may simply not exercise the path this PR speeds up. Summary lines and traces available on request. AI-assisted: yes.
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.
Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-18T00:01:10Z.
@oneandonlydean
mainis merged in at6884e9c441(main3cc1fc8f11), so the conflict with #7101 is resolved:ResourceMaterializer.cppkeeps #7101's bulk key read, and its unmapped-page skips count as this branch'sunmappedreason. The same merge brings in #6402 and #6614: a table with a written entry takes the fresh path as onmain, 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 tableimage_storeto 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
^agctests. On Windows the only failures areagc_driver_pm4_replay_toolandagc_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.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:
APS5_NO_TABLE_SNAPSHOT_REUSE=1;That's the evidence we'd most like before merging, since the reuse is on by default and skips reads and compares.
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 withAPS5_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, somainis merged in again; that head goes up once its runners pass, and the Village pair runs on it.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.Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-18T03:22:36Z.
@oneandonlydean
mainis merged in at6720211da1(mainb39d90bf14), 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.FormatVersionstays 37, asmainhas it since #6243. The head also merges cleanly withmainas 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^agctests (694, 0 failed). On Windows the only failures areagc_driver_pm4_replay_toolandagc_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'sprecise_waittiming test; this PR doesn't touch libc. Understood on #7193 going first; when it lands,maingets merged in here again.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) inResourceMaterializer.cpp, while this PR changesWordsIndexto(records, value)and adds its own per-threadColumnMemoin 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 resolvedResourceMaterializer.cppfirst, then run full CI on the new head.Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-18T06:12:02Z.
@oneandonlydean
mainis merged in with #7193 atdb622e1c4f(main3de84fa106), and those blocks are reworked on #7193's version.a508aa03c4then mergesmainbb2624a533, so #6455's merge is in the branch's history and the diff holds only this PR's commits. Both are merges, not rebases;6720211da1is the first parent of the first.In
ResourceMaterializer.cpp:TableSnapshotter::WordsIndex(records, value)now uses #7193'sHashScratchIndex, hashed withhashWordsas #7193 does, but it indexes the column's ownrecords.distinct, since this PR keeps a snapshot's words per table.ReadColumncleared the old map for each column; it now calls a newHashScratchIndex::Clear(), which bumps the lease's stamp and resets the entry count, asDenseScratchMap::Clear()does.ResolveImageTables, the records are #7193'sDenseScratchMap, cleared per table as before. It's sized by the largest column's word count, and a missed code readscolumn.words.at(code), so a code past its column's words still throwsstd::out_of_range.ColumnMemokeeps its per-thread vector throughThreadOwned, the helper the shader disk cache already uses for its per-thread state. #7193'spoisonIndex,elementIndexand expected-poison bit vector are unchanged.In
tests/ShaderMemory.cppboth sides' tests stay, and #7193'sverifyImageTableScratchReusecounts the distinct records aswarm.snapshot.tables.at(0).words.size(), since snapshot words are per table here.On GitHub's runners, this PR's tests,
agc_shader_bindlesswith #7193's scratch-reuse case among them, pass 3 runs in a row on Linux, as do the^agctests: 710, 0 failed, atdb622e1c4f(run) and ata508aa03c4(run). On Windows the only failures areagc_driver_pm4_replay_toolandagc_shader_replay_tool, which fail the same way on that runner for an unrelated branch (run). Ata508aa03c4the Linux suite's one failure was libc'sprecise_waittiming test; this PR doesn't touch libc.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, onmainf1af6c5915, plus #6366, #6451, #6470, #6146, #6682 and #6646, which the title needs onmainto 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), withAPS5_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'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:
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.
The
[image-table]reuse counters print only withAPS5_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.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.wordslayout, 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?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 change4d515a405), 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.Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-18T10:36:44Z.
@oneandonlydean done:
main9caecfd2d5is merged in (dad24e3a4f), and @Scramblrrrr's 913b93635 (thanks!) is cherry-picked on top as209f3ce87b, with Scramblrrrr as its author. That adapts #6881's volume rejection fixture to the shared columns. On GitHub's runners (run) the^agctests pass 3 runs in a row on Linux (711, 0 failed), and the libkernel suite passes; the libc suite's only failure is itsprecise_waittiming test. On Windows the only failures areagc_driver_pm4_replay_toolandagc_shader_replay_tool, which fail the same way on that runner for an unrelated branch (run).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 ofmain, plus #6366, #6451, #6470, #6146, #6682 and #6646, which the title needs onmainto 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:
APS5_TRACE_SUMMARY_EVERY=1, on in both runs),Shader.DrawStage(2.2 s) andDriver.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.Packettakes 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.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
main1b0c7cfa0(2026-10-18). Since my earlier comment, #6243, #6537 and #6455 have merged; all three were part of #6454's head. On this base:The same text is on #5372 and #6454. There is a note on #5372's conflict with
mainat the end.Setup:
main1b0c7cfa0plus a local commit that logs the window-title FPS: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 as209f3ce87. Againstmain, #6454's current head790fe1818differs froma508aa03conly by those two test lines and five rows indocs/dev/ENVIRONMENT.md, so F has its code.ShaderResources. In E it keeps #6454'sSetAllocationfields, 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.APS5_PAD_INPUT_FILE, from an existing save.main's defaults plusAPS5_PROFILE_DRAW=1,APS5_TRACE_EVENTS=2097152andSDL_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.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).Driver.Packetms/present[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.Driver.Packet.dispatch388/387 → 94 → 78/76 → 61;Shader.DrawStage.capture_resources248/244 → 300 → 97/156 → 85;shader_compile_and_link391/401 → 420 → 216/279 → 205.capture_resourcesruns inside it.draw_enqueuedandshader_compile_and_linkfrom one sample to the other: 140/82 and 216/279, of whichcapture_resourcesis 97/156.Driver.Drawstays at 361/365, and the p50s agree within 1.7 ms.Against my earlier comment, on
mainbc3c0fc13with the same four PRs and harness:main.1752c4a89) was 442 ms there and 456 ms here.#5372 and current
main: they conflict inimportJoined. #7061 replacedfindImportwithpeekImporton the two lines where this PR drops&& low->joinedand&& high->joined. Arms B, F and E usemain'speekImportwithout thejoinedcondition:if (const auto* low = peekImport(state, begin, begin + 1); low != nullptr) begin = low->base;, and the same forhigh. ThejoinedRunline,tests/BdaResources.cppand the debt line merge without a conflict.Not covered:
AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-18T15:07:14Z.
@SleglJan thanks for measuring it again on
main1b0c7cfa0. 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.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 onmainand one with the change, from the same title, scene and machine, as the Performance report form asks. Please paste bothaps5-summary.jsonllines, attach the two traces and add the output oftools/trace_digest.py.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:
maindoesn't build/merge cleanly.Driver.hpp: keep bothdumpRequest(..., std::string_view suffix = {})andtagVariantRuns.Dispatch/DataHitVerification.cpp: the data-hit capture is nowCaptureInvocation(*verifyMemory, ...); build theShaderMemorywith&QueryPendingSpanas before.tests/ShaderMemory.cpp:3386(verifyChainedTableOffset, from #7527) still readstables.words; with per-column words it must readsnapshot.words.agc_driver_image_table_vouch_queued_drawsfails on CI's lavapipe (Mesa 25.2.8 / LLVM 20.1.2) on the merged tree, atImageTableCacheBounds.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 (anelsewhererange atOutputOffsetsharing a write-tracked page/granule with the table, orQueryPendingSpanbeing coarser than the span, would explain a layout-dependent result) and make the expectation deterministic.perflabel's requirement in mind: the bot asks for bothaps5-summary.jsonllines 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.
Imported from boykopovar/AnyPS5. Originally posted by Scramblrrrr on 2026-10-19T01:31:23Z.
Current-main Windows integration update: 9f9a532b1 on main
876bd17afpasses 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:
AI-assisted: Codex; raw title data remains local.