fix(shader): follow a conditional pointer chase through a V# behind a pointer-keyed record pointer #9633

Open
EagleBearerYS wants to merge 39 commits from upstream-pr/9633 into main
EagleBearerYS commented 2026-10-22 05:25:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-22T05:25:27Z.


What

On Ratchet & Clank: Rift Apart (PPSA01474), with #8939, a compute shader stopped with GetImageResource dword 0 is not a valid runtime value at LoadAddressU32@pc=0x10b84. #8939 itself got it past its earlier stop at 0x9a30. The sources are a retail run on #8939 (comment), and two IR readings of the shader (1, 2).

Ratchet & Clank: Rift Apart (PPSA01474), 11-13: this PR got the title past 0x10b84 in Tamalero's run; the next stop, a third chased read at 0x13bc0, was #9749's. On current main the title doesn't stop there. #14636 removed the title's pc=0x62d4 GetSamplerResource refusal: with #14636's merge reverted, main f57c971559 aborts on it again (dantdmdarealguy's run). Tamalero's run of main 4e2acc2120 with #18522, on RADV with APS5_MAX_COMPUTE_SPIRV_WORDS=2000000 and APS5_SKIP_REFUSED_DISPATCHES=1 (which skips and logs any compute shader whose recompile fails, code), reaches the first gameplay; the only shaders it skipped were two dropped for size (comment). main still refuses this PR's shapes: on main 7201da4f0e, which has #14636, this PR's three tests fail 3 of 3 with #9457 merged and this PR's code left out, and pass 3 of 3 with this PR merged (llvmpipe, a cloud Linux machine).

The descriptor pointer is a Phi of the record's pointer R and up to two chased pointers. The shader conditionally replaces P by the 64-bit pointer read at offset 0 of a buffer whose V# sits at P+0x60, up to twice. It then loads the T# at the final P+0. So the pointer is R, H(R) or H(H(R)).

  • #9457's hops follow only unconditional chains of direct address loads, and a Phi at the descriptor pointer stops them at the first step.
  • PointerRecordRead then refuses the chased arms as reads of another buffer at offset 0.

The change:

  • Tracker: a chase arm is a buffer read at dwords 0/1 of one handle whose V# is four words loaded through GetAddressResource(P) at an immediate offset, where P resolves to R or to another chase arm.
    • Each distinct handle and word pair is a chase site (PointerChase {offset, immediate, readOffset, readImmediate}). Since 2c1a65045c, two links read through one V# at different words each get their own site, and so their own snapshot entry. No serialized field changes there.
    • The column's depth is the longest chain of distinct sites.
    • A chase that reaches itself through a Phi (a loop), or a depth over 4, is refused.
    • The edge-paired walk of #8939 and #9457's hops are unchanged.
  • Materializer: for each record's pointer, the column also publishes H(R), H(H(R)) and so on up to its depth, breadth-first, as pointer-keyed entries, each with its own T#.
    • The V# and the next pointer are read from the snapshot, and both join the snapshot's ranges.
    • A read outside the snapshot adds no entry, so a GPU that reaches that pointer faults "outside the snapshot", as #9457's hops do.
    • A pointer already captured is kept once.
  • The disk cache format goes to 96, above #9457's 95 (see Tested).
  • A V# whose words the shader edits (6c139245aa): a chased V# word may also be the word as read, shifted left, ANDed or ORed by one constant. The chase keeps that edit per word, the snapshot applies it to the words it reads before it decodes the V#, and the shader disk cache stores it; other edits of a V# word stay refused. The format then stayed 55, since the source version already kept this recompiler's caches apart; this PR's format is now 96 (see Tested). This is Ghostrunner (PPSA03685)'s compute shader 0x200c520000 (see Tested).
  • A debt entry for the depth cap and refused loops.

Overlap: checked with git merge-tree against every open PR touching these files, on main da54c652e3, and rechecked at 792854306f (with main 3ca07d086d) against the PRs below: the conflicts are the same. #9508's other conflict there, in GuestMemory.cpp, is with main itself.

  • The stack: #9457, #8939 and #7395 overlap because this PR is stacked on them; #7223, at the stack's base, has merged. It changes nothing of theirs outside the chase.
  • #7880 (klosixgaming-arch) collapses a table column pointer whose Phi arms are equivalent record reads, in main's TryMakeIndirectColumn. The stack's walk takes Phis whose arms differ, so the two compose. Whichever lands second carries the other's case through the same loop.
  • #9969 (ours, on #9457 like this PR): conflicts in ResourceTracker.cpp, ShaderDiskCache.cpp, FormatVersion and the image-table test lists. #9969 sends every merged read through PointerRecordPairs and removes PointerRecordReads; this PR adds the chases and chaseDepth arguments to PointerRecordPairs. Whichever of the two merges first, the other takes the resolution on test/d10195-9633-15555-18107 (fecb7dd9b0, this PR's ae857ccc9b with #18107, which carries #9969):
    • every merged read calls PointerRecordPairs with this PR's chase arguments, then #9969's same-read check, and a buffer record reached through a chase is refused, which neither PR covers;
    • the plan encoder's checks take this PR's DescriptorSource and TableColumn and #9969's KeyDomain;
    • FormatVersion and the test lists keep both.
      On that branch every #9633 and #9969 test passes 3 of 3 on Linux; on Windows the GPU tests skip (no Vulkan device on the runner) and nothing fails (run). The run's one red is #18107's agc_driver_pointer_vsharp_sampler_pair_spill_table, which fails the same way on #18107 without this PR (run). hugodearaujo's #15555 and #18107, stacked on #9969, add no conflict of their own.
  • The disk-cache format: this PR moves it to 96, above #9457's 95. main is at 88 since Pipodi's #18455. Ours take one number each: #7642 62 (a draft, held; it takes a free number at its refresh), #7395 93, #8939 94, #9457 95, #9633 96, #9749 97, #9790 98 and #9969 99. The other open PRs changing it hold 89 (#14871, #19852, #21199 and #21240), 90 (#6416, and #16812 and #16814, both stacked on #9969), 91 (#10351) and 92 (#14853), and the rest hold numbers at or below main's, from a check of every open PR's head on 11-16. Whichever lands later takes the next number, and the format this PR ends at is settled when its base merges.
  • #20519 and #22424 (slopezjur, the opt-in bindless image heap and, on it, layout-only pointer tables): #7395's and #9457's conflicts (see #7395's Overlap), plus this PR's own. This PR moves the pointer-hop read into a readEntry lambda, so #20519's records.addresses[record] = first; moves into it. With #20519's dynamic, the encoder's checks need 23 TableColumn fields. Its own test options keep both, and its FormatVersion conflict keeps this PR's number, above #20519's 89. Merge order: this stack first, as proposed in #20519's thread (comment). If #20519 lands first, a merge of main resolves it here.

Tested

  • GitHub's Linux runner (run): agc_driver_pointer_chase_table fails ×2 with #9457's code, and passes ×5 with this change. agc_driver_pointer_hop_table and agc_shader_disk_cache pass. GitHub's Windows runner builds it, and its Vulkan tests skip there.
  • 2c1a65045c on GitHub's runners (run, against 6a72841083): agc_driver_pointer_chase_words_table fails 3 of 3 without the change ("pointer table with two chase links in one V#: the T# behind one of the two links faulted") and passes 10 of 10 with it. With agc_driver_pointer_chase_table, _hop_table, _phi_high_table, _vsharp_fixed_table and agc_driver_nested_image_table, it passes 10 of 10 on Linux, all six passing and none skipped; on Windows they build, and all six skip, as the runner has no Vulkan device. libc's precise_wait failed on both arms of that run.
    • Validation, 6a72841083 against 2c1a65045c on one GitHub Linux runner (run), every test named: the layer loads in both runs, both log only VUID-VkDeviceCreateInfo-pNext-pNext, and the commit adds no VUID- message.
  • 792854306f, #9457's head 2a5db7ae45 and then main 3ca07d086d merged in (both clean; this PR's own diff is unchanged), on GitHub's runners (run): the 18 nested_/pointer_ table tests, agc_driver_image_table_vouched_lookups, agc_driver_image_table_vouch_queued_draws and the disk-cache tests pass 10 of 10 on Linux, none skipped. On Windows they build and pass, with the Vulkan tests skipping.
    • The suites: libkernel passes on Linux and libc on Windows. On Linux libc's one failure, precise_wait, failed with main's implementation too. On Windows libkernel's one failure is guest_raise_in_system_call, a 30 s timeout in a libkernel test this PR doesn't touch.
    • Validation layer, main against this head, in the same run: one GitHub Linux runner, Ubuntu 24.04.5, llvmpipe (Mesa 25.2.8, LLVM 20.1.2), with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, VK_LAYER_KHRONOS_validation and ctest -V. main's arm runs the 2 image-table tests and the disk-cache tests it has, and this head's arm runs all of them. The layer loads in both runs, with no "was not found" line. Both log only VUID-VkDeviceCreateInfo-pNext-pNext, and this head adds no VUID- message.
  • Linux, Mesa llvmpipe:
    • The test shader: an RDNA2 compute shader with the title's shape, assembled with llvm-mc -arch=amdgcn -mcpu=gfx1030. A record pointer is keyed by a first-lane read, then two conditional chase steps each load a V# at P+0x60 and a pointer at offset 0, then a T# at the final P+0.
    • Cases:
      • all 16 lane classes read the T# of the node they reach;
      • a moved link is followed without a recompile;
      • a link outside the snapshot faults "outside the snapshot" with the output untouched;
      • a chase in a loop and a five-step chase were refused, and disabling each rule turned its case red. ee8767ff0d removed those two checks under the test rule (see Tested), so the loop and depth-cap refusals in PointerRecordPairs no longer have a test.
    • Red: with the tracker change reverted, the shader refuses the way the title does: GetImageResource dword 0 is not a valid runtime value; chain: LoadAddressU32@pc=0x000000c0(GetAddressResource(Phi(Phi(ReadConstBuffer….
    • Wider set: the 41 image-table, pointer, nested-table and disk-cache tests pass.
    • CI's Linux job mirrored: only the build machine's IPv6 tests and one timing test that passes alone fail. ^agc and ^shader show the same failure set on #9457's head and on this change.
  • Validation layer, #9457 against this PR (CONTRIBUTING's AGC rule), on one GitHub Linux runner (run). Both runs used VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ANYPS5_NO_SHADER_CACHE=1, ANYPS5_REQUIRE_VULKAN=1 and ctest -V, with VK_LOADER_DEBUG=layer to show the layer loading. The device was llvmpipe (LLVM 20.1.2) on Mesa 25.2.8, Ubuntu 24.04.5, Khronos validation layers 1.3.275.
    • Tests: this PR's agc_driver_pointer_chase_table, and #9457's agc_driver_pointer_hop_table on the same pointer-keyed path. #9457's tree has only the second.
    • The layer was inserted once on #9457's tree and 6 times with this PR, with no was not found.
    • Both logs report only VUID-VkDeviceCreateInfo-pNext-pNext. This PR adds no VUID- message.
  • jotitadev's run on an RTX 3070 and lavapipe (review): Ubuntu 26.04, GCC 15.2, Release, 6a7284108 with its stack merged into main da54c652e.
    • agc_driver_pointer_chase_table passes 3 of 3 on both devices, including the moved link, the link outside the snapshot, and the refused loop and five-step chase (at that head; ee8767ff0d later removed those two checks).
    • With this PR's ResourceTracker.cpp change reverse-applied, it fails on both the way the title does: GetImageResource dword 0 is not a valid runtime value; chain: LoadAddressU32@pc=0x000000c0(GetAddressResource(Phi(Phi(ReadConstBuffer….
    • ^agc, without the flip, display DCC and lds_atomics64 tests: 875 of 878 on the 3070 and 877 of 878 on lavapipe. The failures are the same as on main on that machine: the three sample_order tests on the 3070, and multisample_retirement on lavapipe.
    • As jotitadev notes, that covers the chase at a subgroup size of 32 on a real GPU as well as llvmpipe's 8.
  • check_conventions.py passes, with no comment lines added.
  • Ratchet & Clank: Rift Apart (PPSA01474), by @Tamalero (comment): Linux (CachyOS), GCC 16.2.1, Release, RTX 4090 (NVIDIA 615.78.08), content 01.005.003. Both builds used the same relinked executable and a cold shader cache, with no input.
    • With this PR's parent c00cb0f87 (the same stack without the chase), it stops after 321 s at LoadAddressU32@pc=0x10b84, the stop from #8939.
    • With this PR (6a7284108) there's no refusal at 0x10b84. It stops later, after 351 s, in another compute shader at LoadAddressU32@pc=0x13bc0: a T# load whose pointer goes through a third chased read.
    • Replaying a sibling shader's prepare request offline with agc_shader_replay, the parent refuses at the same site (pc=0xf898). This PR passes it and refuses at a later T# load (pc=0x128d4), so the chase is followed on the title's own shader.
    • The third read (Tamalero's trace), in both shaders: the pointer's high word is read at its own immediate, 0x6c against a low word at 0x54, from one s_buffer_load_dwordx16. ChaseHighRead takes a high word only at readImmediate + 4, so the walk refuses there. That step needs a follow-up. In Tamalero's scratch build with only that check relaxed, both shaders then stop on sampler resource limit exceeded (MaxSamplers = 32).
  • 6b64604048, a merge of #9457's 7f3a25e0cb, which merges main 0db47b263d. The only conflict was ShaderDiskCache.hpp's FormatVersion line: main moved to 45 (#7831), and this branch keeps its 47. On GitHub's runners (run), the pointer, nested, image-table and disk-cache sets (27 tests) pass 10 runs in a row on Linux. On Windows the set has 29, with two Windows-only disk-cache tests: they build, 5 pass 10 runs in a row, and the other 24, which need a Vulkan device, skip. The libc and libkernel suites pass on both, run with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners. An earlier run linked here didn't run this set, so it's replaced.
  • 5b6c96f938, a merge of #9457's dc18bf7bf7 (which carries #7395's and #8939's merges of main 379b1dca32). The one conflict was in ResourceTracker.cpp: #8939's new check on a pointer-keyed Phi edge sits in the paired loop this PR moves into its walk lambda, so the check moves there with it. That's the only change to this PR's own diff. FormatVersion stays at 48, one above #9457's 47.
    • The planner behaviour changes underneath it: It brings the planner changes of #7395's and #8939's merges: a record pointer counts as merged only when its Phi isn't a single record read; an unmerged pointer's low word is unwrapped as #7880 does, and refused when it isn't a table read; and #8939's new commit refuses a pointer-keyed Phi edge whose two words are both immediates.
    • Focused, ×10 (run): agc_shader_bindless, agc_shader_memory and the ^agc_driver_pointer_, ^agc_driver_nested_, ^agc_driver_image_table and ^agc_shader_disk_cache tests. Linux: 29 run, 29 pass, 0 skip, 0 fail. Windows: 31 run, 7 pass, 24 skip (Vulkan device tests; the runner has none), 0 fail.
    • The libc and libkernel suites pass on both runners, run with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • 72f48b702f, a merge of #7395's 2525821ac9 (which merges main c9b2660d56). The only conflict was FormatVersion, which goes to 51, one above #7395's 50. This PR's own diff is otherwise unchanged. On GitHub's runners, 10 runs (run) of the pointer, nested, image-table and disk-cache sets (agc_shader_bindless, agc_shader_memory, ^agc_driver_pointer_, ^agc_driver_nested_, ^agc_driver_image_table, ^agc_shader_disk_cache): Linux: 29 run, 29 pass, 0 skip, 0 fail. Windows: 31 run, 7 pass, 24 skip (no Vulkan device), 0 fail. The libc and libkernel suites pass on both, run with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • 839cad8ea1, a merge of #7395's 71741a70b6, which merges #7223's f1cc524085 (yabanana's merge of main c8d34aa8f4). Clean: FormatVersion stays at 51, one above #7395's 50, and this PR's own diff is unchanged: the merge brings in exactly what #7395's merge did (249 files). On GitHub's runners, 10 runs (run) of the pointer, nested, image-table and disk-cache sets (agc_shader_bindless, agc_shader_memory, ^agc_driver_pointer_, ^agc_driver_nested_, ^agc_driver_image_table, ^agc_shader_disk_cache): Linux: 29 run, 29 pass, 0 skip, 0 fail. Windows: 31 run, 7 pass, 24 skip (no Vulkan device), 0 fail. The libc and libkernel suites pass on both (143 and 206 tests on Linux, 170 and 222 on Windows), run with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • NVIDIA GeForce RTX 5070 Ti (621.01, subgroup 32) and an AMD Radeon RDNA2 iGPU (AMD 2026.04.17, subgroup 64), Windows 11, by @wachi35676 (comment): WinLibs GCC 15.2.0, Release, this PR's 839cad8ea1, which carries #9457, merged cleanly onto main aeff26bd9, ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1, no validation layer.
    • The pointer_ and nested_ table tests, image_table, vouch, disk_cache and the agc_shader_ tests, 68 entries, pass on both GPUs. On the subgroup-64 AMD device all 18 pointer and nested modes run, with no per-wave case skipped.
    • With this PR's non-test files taken from main + #9457 and this PR's tests kept, agc_driver_pointer_chase_table and agc_driver_pointer_chase_words_table fail on both GPUs with GetImageResource dword 0 is not a valid runtime value (chain LoadAddressU32@pc=0x000000c0(GetAddressResource(Phi(Phi(...), and the rest pass.
    • Of 269 agc_ entries, the same ones fail with and without the stack on both GPUs, none of them table tests.
  • a0308d1c19: 37311118a8, a merge of #9457's 62992d7437, the format commit 68d04647f3, and a0308d1c19, a merge of #9457's merge of main 0cd07dc4ab (run).
    • 37311118a8 takes #9457's merge of #8939 (with #7223's 153400ba2b and the test-only commits of #7395 and #8939) and #9457's format commit. Clean, and this PR's own diff is unchanged.
    • 68d04647f3 gives this PR its own disk-cache format, 55 (54 is #10489's). The open bumps take one number each: #7223 49 (as do #9508, #9748 and other open PRs), #7395 50, #8939 51, #10000 52, #9457 53, #10489 54, #9633 55, #9749 56, #9790 57, #9969 58, #10846 59.
    • a0308d1c19 merges #9457's merge of main 0cd07dc4ab, with #9457's resolution of mrfelek's #10228. Clean here, and this PR's changed lines are the same.
    • The chase, hop, vouch and nested-image tests with the disk-cache, bindless and shader-memory tests ran 10 times with no failure. Linux: 10 run, 10 pass, 0 skip, 0 fail. Windows: 12 run, 6 pass, 6 skip (the Vulkan device tests), 0 fail.
    • Suites: libc and libkernel pass on Linux (166 and 264). On Windows libc passes (194), and libkernel passes 283 of 286: exec_arguments, guest_timed_join_import_libkernel_sys and guest_timed_join_import_libkernel_web fail at their setup in the verify's Windows build (FileNotFoundError starting the title, or copying the libraries they load), and pass in main's own Windows job at 1829def9bf (job). The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • b5a199bac2, a merge of #9457's 88620551d5, which carries #7395's test-only commit ca14648806 (the nested-sampler test no longer asserts that an S# with another consumer is refused) (run). Clean, and this PR's changed lines are the same. The chase, hop, vouch, nested-image and nested-sampler tests with the disk-cache, bindless and shader-memory tests ran 10 times with no failure. Linux: 11 run, 11 pass, 0 skip, 0 fail. Windows: 13 run, 6 pass, 7 skip (the Vulkan device tests), 0 fail. Suites: libc and libkernel pass on Linux (166 and 264). On Windows libc passes (194), and libkernel has 4 failures of 286. guest_raise_exception failed after "address waking round 38: the handler did not run within 5 s", as main 9fc181dde5 does in the same verify setup (run); that is #11813, and this PR doesn't touch libkernel. exec_arguments, guest_timed_join_import_libkernel_sys and guest_timed_join_import_libkernel_web fail at their setup in the verify's Windows build (FileNotFoundError starting the title, or copying the libraries they load), and pass in main's own Windows job at 1829def9bf (job). The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • 6c139245aa: 037f579a20, a merge of #9457's 9a44f18aeb, which carries main 38ccd50f83 and with it #11507's FormatVersion 49, and the edited-V# chase on top (run). The merge is clean, FormatVersion stays 55 (see What), and this PR's diff over #9457 is the same apart from the new commit.
    • The edited-V# chase (6c139245aa: ba85d6743f, written on b5a199bac2, moved onto the merge with the same changed lines): Ghostrunner (PPSA03685)'s compute shader 0x200c520000 reads its T# pointer as Phi(R, H(R)), with H(R) read at 0x30 of a buffer whose V# comes from R+0x30, word 1 ANDed with 0xffff, word 2 shifted left by 4 and word 3 ORed with 0x30000000 before use (TheSovietWaffle's IR on #8939). Without this commit the request stopped at LoadAddressU32@pc=0x0002ef78 with GetImageResource dword 0 is not a valid runtime value. agc_driver_pointer_chase_edited_table models that arm, for taken and skipped chase steps and a moved link. On GitHub's Linux runner it fails without the change, with that message, and passes 10 runs in a row with it, on #9633's earlier head a0308d1c19 (run); on b5a199bac2 the same, 3 runs (run). The validation comparison on llvmpipe adds no VUID- message: both sides report only VUID-VkDeviceCreateInfo-pNext-pNext (run). TheSovietWaffle's replay of the title's request, the last bullet, gets past 0x2ef78 with it.
    • ×10 on 6c139245aa: the chase, hop, vouch, nested-image, nested-sampler and edited-chase tests with the disk-cache, bindless and shader-memory tests and #11507's agc_driver_image_sample_short_cube ran 10 times with no failure. Linux: 13 run, 13 pass, 0 skip, 0 fail. Windows: 15 run, 6 pass, 9 skip (the Vulkan device tests), 0 fail. Suites: libc and libkernel pass on Linux (166 and 265). On Windows libc passes (194), and libkernel passes 284 of 287: exec_arguments, guest_timed_join_import_libkernel_sys and guest_timed_join_import_libkernel_web fail at their setup in the verify's Windows build (FileNotFoundError starting the title, or copying the libraries they load), with main's code too, and pass in main's own Windows job at 1829def9bf (job). The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
    • On 037f579a20 alone (run), Windows' libkernel suite failed guest_filesystem once, which aborted right after creating its test junctions, and guest_raise_exception at round 46 (#11813). A rerun of that job passed both, and both pass on 6c139245aa.
  • ee8767ff0d: 185c62a117, a merge of #9457's 19bed84013, the format commit b6c114935d, and the test-only commit ee8767ff0d (run).
    • 185c62a117 takes #7395's test-only commit d908758281, which drops agc_driver_nested_image_table's two checks that a valid shader is refused (a V# with another buffer consumer and a T# with another consumer), #7395's merge of #7223's 0dbf5478b2 (yabanana's merge of main f7e84c4cf1) and the format commits below this PR. Clean.
    • b6c114935d gives this PR its own disk-cache format, 56, one above #9457's 55.
    • ee8767ff0d drops the conditional pointer chase test's two checks that a valid shader is refused, one that repeats the chase in a loop and one with five conditional chase steps, with their helper and their shader words, under the same test rule. Neither shape is implemented. The taken and skipped steps, the moved link and the link outside the snapshot are still checked. Apart from these and the format line, this PR's diff over #9457 is unchanged.
    • The pointer, nested, image-table and disk-cache tests with agc_shader_bindless and agc_shader_memory ran 10 times with no failure. Linux: 30 run, 30 pass, 0 skip, 0 fail. Windows: 32 run, 8 pass, 24 skip (the Vulkan device tests; the Windows runner has no Vulkan device), 0 fail. The libc and libkernel suites run 191 and 291 tests on Linux and 220 and 314 on Windows, with 0 failed. They ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • a727b7653f, a merge of #9457's 31bd0dea17, which carries #7395's 4769d5a745, which drops "and refusals" from two nested-table test summary lines (run). It's clean and brings only that change. The image-table, nested, pointer, disk-cache, bindless and shader-memory tests ran 10 times with no failure. Linux: 30 run, 30 pass, 0 skip, 0 fail. Windows: 32 run, 8 pass, 24 skip, 0 fail; the 24 skip because the runner has no Vulkan device. The libc and libkernel suites run 191 and 291 tests on Linux and 220 and 314 on Windows, with 0 failed. The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • Ghostrunner (PPSA03685), a replay by @TheSovietWaffle (comment): this PR's 217e3d7b1f, which carries 6c139245aa, merged with #10000's e7b14b0e8e. The only conflicts were FormatVersion, kept at 56, and the debt docs, kept from both sides. agc_shader_replay --prepare with ANYPS5_NO_SHADER_CACHE=1 ran on the shader_200c520000.prepare.req dumped on main 74acfad65. Windows 10 22H2, WinLibs GCC 15.2.0, Release; CPU replay only, no title run.
    • The request no longer stops at LoadAddressU32@pc=0x0002ef78 on GetImageResource.
    • It now stops on image resource limit exceeded, the 64-image cap that frankea's replay reached on #10000.
  • NVIDIA RTX 2000 Ada Generation at 43036c344c, from TechLevelZero's NVIDIA bot (report): driver 595.99.02, Ubuntu 26.04.1, this head merged onto main 3741ca9, 2,541 of 3,121 tests selected.
    • 2,492 passed, 5 failed and 44 skipped. None of the failures is new: 3 also fail on main, and 2 are unstable on main.
    • With VK_LAYER_KHRONOS_validation, over 948 tests on the GPU, the one new validation ID is VUID-vkCmdCopyBuffer-commonparent in agc_driver_depth_clear_hle. That is #10791's idle store with two live devices (fix: #10940), in a test the same run lists as unstable on main, and it isn't in this PR's code. 18 of the stack's nested and pointer table tests ran with the layer but aren't in main's baseline, so they weren't compared.
  • 280d6d6c44: bc6733b0e2, a merge of #9457's 04d09eef56, and the format commit 280d6d6c44 (run). The merge also brings the #9457 commits this branch didn't have yet: oneandonlydean's merge of main 4eaf19b304, #9457's merge of #8939 and its move to 67. Three conflicts. In ShaderDiskCache.cpp's static checks, this PR's TableColumn (144 bytes, 22 fields) and #7694's requiredBlocks each grow DescriptorSource by 24 bytes; both sides had written the same 224 there, which git kept, so the merge sets 248, with 4 fields. FormatVersion moves from 56 to 70 in the format commit, above #9457's 67, a number no other open PR seen uses. In agc_driver_image_table_tests.cmake, this PR's three pointer-chase registrations are kept. This PR's own diff is otherwise unchanged. The image-table, disk-cache, BDA anchor-read, shader-memory, nested and pointer tests, with #7694's agc_shader_descriptor_phis, pass 10 runs in a row. Linux: 33 run, 33 pass, 0 skip, 0 fail. Windows: 35 run, 10 pass, 25 skip, 0 fail. Suites: libc and libkernel pass on Linux (210 and 310) and on Windows (237 and 331). The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners. TechLevelZero's NVIDIA bot ran this head merged onto main 88e804b on an RTX 2000 Ada (report): 2,571 passed, 5 failed, none new (3 also fail on main, 2 unstable on main), 45 skipped, with no new validation IDs (991 tests on the GPU).
  • b9fab3f82e, a merge of #9457's 0a4f7cdbed, which carries #7395's merge of main 4f64f81ef7 (run). Clean: FormatVersion stays 70, and this PR's own diff is unchanged. The ResourceMaterializer.cpp resolution, with #12246's view loop moved back into Snapshot, comes from #7395's merge (see #7395). The image-table, disk-cache, BDA anchor-read, shader-memory, nested and pointer tests, with #7694's agc_shader_descriptor_phis, pass 10 runs in a row. Linux: 33 run, 33 pass, 0 skip, 0 fail. Windows: 35 run, 10 pass, 25 skip (no Vulkan device), 0 fail. Suites: libc and libkernel pass on Linux (217 and 318) and on Windows (244 and 339). The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • ce7a09f3f1, a merge of main 4f41f4c375 (×10, the PR's own tests ×10).
    • The conflicts: ShaderDiskCache.hpp's FormatVersion, where main is now at 52 (#10000) and this PR keeps its 70; and docs/dev/debt/shader.md, where this PR's entries and main's new entries are adjacent and both stay. This PR's own lines are unchanged apart from the FormatVersion line's old value.
    • ×10: agc_driver_image_table, agc_driver_many_direct_samplers and every test matching ^agc_shader_memory, ^agc_shader_disk_cache, ^agc_shader_sampler_limits, ^agc_shader_nested or ^agc_shader_table. Linux: 11 run, 11 pass, 0 skip, 0 fail. Windows: 13 run, 11 pass, 2 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 300 and 322 tests on Linux and 327 and 342 on Windows, with 0 failed. The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
    • ×10 of every ^agc_driver_pointer_ and ^agc_driver_nested_ test, the image-table tests in this PR's diff over main, which the first run's names left out. Linux: 18 run, 18 pass, 0 skip, 0 fail. Windows: 18 run, 0 pass, 18 skip (no Vulkan device), 0 fail.
  • 6089e589a8, a merge of #9457's 20cc916ce9, which carries main c2eafe4461 with yabanana's #7223 through #8939 and #7395 (×10).
    • The conflicts: ShaderDiskCache.hpp's FormatVersion, which stays 70 (main is at 56 since #7223), and docs/dev/debt/shader.md, where this PR's pointer-keyed chase entry stays. This PR's own lines are unchanged apart from the FormatVersion line's old value.
    • ×10: agc_driver_many_direct_samplers and every test matching ^agc_driver_pointer_, ^agc_driver_nested_, ^agc_shader_nested_, ^agc_driver_image_table, ^agc_shader_memory, ^agc_shader_disk_cache or ^agc_shader_sampler_limits, which takes in every test in this PR's diff over main. Linux: 33 run, 33 pass, 0 skip, 0 fail. Windows: 35 run, 10 pass, 25 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 301 and 325 tests on Linux and 331 and 343 on Windows, with 0 failed. The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
    • NVIDIA RTX 2000 Ada Generation at this head, from TechLevelZero's NVIDIA bot (report): merged onto main b8efa62, driver 595.99.02, Ubuntu 26.04.1, 2,909 of 3,878 tests selected. 2,852 passed, 7 failed and 50 skipped. None of the failures is new: 3 also fail on main, and 4 are unstable on main. With VK_LAYER_KHRONOS_validation, there are no new validation IDs against main, over 988 tests on the GPU. agc_shader_nested_sampler_snapshot_retry ran with the layer but isn't in main's baseline, so it wasn't compared.
  • 527a907ad8, a merge of #9457's e75a7104b9, which carries main 8eaf82f315 through #8939 and #7395 (×10).
    • Clean: #7395's merge takes the one conflict with main, JJenkx's #15305's debt entry, and this PR's own lines are unchanged.
    • ×10: agc_driver_many_direct_samplers and every test matching ^agc_driver_pointer_, ^agc_driver_nested_, ^agc_shader_nested_, ^agc_driver_image_table, ^agc_shader_memory, ^agc_shader_disk_cache or ^agc_shader_sampler_limits, which takes in every test in this PR's diff over main. Linux: 34 run, 34 pass, 0 skip, 0 fail. Windows: 36 run, 10 pass, 26 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 327 and 344 tests on Linux and 358 and 371 on Windows, with 0 failed. The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • 0fd3c90456, a merge of #9457's 2bbcdd60fc, which carries main 006d11fca5 through #8939 and #7395 (×10).
    • Clean: #7395's merge takes the one conflict with main, frankea's #9020's FormatVersion 57, and FormatVersion stays 70 here. This PR's own lines are unchanged apart from the FormatVersion line's old value.
    • ×10: agc_driver_many_direct_samplers and every test matching ^agc_driver_pointer_, ^agc_driver_nested_, ^agc_shader_nested_, ^agc_driver_image_table, ^agc_shader_memory, ^agc_shader_disk_cache or ^agc_shader_sampler_limits, which takes in every test in this PR's diff over main. Linux: 34 run, 34 pass, 0 skip, 0 fail. Windows: 36 run, 10 pass, 26 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 327 and 344 tests on Linux and 358 and 371 on Windows, with 0 failed. The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • f086739418, a merge of #9457's e2c68c094a, which carries main dd7c8de5de through #8939 and #7395 (×10).
    • The conflict: docs/dev/debt/shader.md, where this PR's pointer-keyed chase entry sits next to #10489's rewording of the image-table entry (the image limit is now 128). Both are kept. FormatVersion stays 70, and this PR's own lines are unchanged apart from the FormatVersion line's old value.
    • ×10: agc_driver_many_direct_samplers and every test matching ^agc_driver_pointer_, ^agc_driver_nested_, ^agc_shader_nested_, ^agc_driver_image_table, ^agc_shader_memory, ^agc_shader_disk_cache or ^agc_shader_sampler_limits, which takes in every test in this PR's diff over main. Linux: 48 run, 48 pass, 0 skip, 0 fail. Windows: 50 run, 10 pass, 40 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 344 and 346 tests on Linux and 375 and 373 on Windows, with 0 failed. The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • b55705b34f: 0a581f4a15, a merge of #9457's 5be1abeb41, and the format commit b55705b34f, which carries main 017bd95f5f through #9457, #8939 and #7395 (×10).
    • The conflict: FormatVersion, where #9457 now takes 81, above this PR's 70. The merge takes 81, and the format commit moves this PR to 82. This PR's own lines are unchanged apart from the FormatVersion line.
    • ×10: agc_driver_many_direct_samplers and every test matching ^agc_driver_pointer_, ^agc_driver_nested_, ^agc_shader_nested_, ^agc_driver_image_table, ^agc_shader_memory, ^agc_shader_disk_cache or ^agc_shader_sampler_limits, which takes in every test in this PR's diff over main. Linux: 48 run, 48 pass, 0 skip, 0 fail. Windows: 50 run, 10 pass, 40 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 350 and 348 tests on Linux with 0 failed, and 380 and 375 on Windows. On Windows, libkernel's guest_kernel_resident_fmem_export and guest_kernel_resident_fmem_export_patched fail: the same harness fails them on main 7259cce111 alone (run), and main's own Windows job passes them, so they come from the verify harness, not this PR. The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
    • Every agc test: Every agc test also ran once on #9749's tree, which holds this PR (run): Linux 1,530 run, 1,437 pass, 93 skip, 0 fail; Windows 1,573 run, 467 pass, 1,106 skip (no Vulkan device), 0 fail.
  • 56416624f1, a merge of #9457's d007acef13, without conflicts, which carries main e22c5fb941 through #9457, #8939 and #7395 (×10).
    • ×10: agc_driver_many_direct_samplers and every test matching ^agc_driver_pointer_, ^agc_driver_nested_, ^agc_shader_nested_, ^agc_driver_image_table, ^agc_shader_memory, ^agc_shader_disk_cache or ^agc_shader_sampler_limits, which takes in every test in this PR's diff over main and main's new agc_shader_memory_coherent_atomic_loads. Linux: 49 run, 49 pass, 0 skip, 0 fail. Windows: 51 run, 11 pass, 40 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 379 and 372 tests on Linux and 406 and 400 on Windows, with 0 failed. The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • Validation on #9749's 39b162b371, which holds this PR's 56416624f1 (the run tested ad2a93618b, which has the same tree): main e22c5fb941 against that head on GitHub's Linux runner (lavapipe, layer 1.3.275), with VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ANYPS5_NO_SHADER_CACHE=1 and ANYPS5_REQUIRE_VULKAN=1 under ctest -V, over the stack's focused tests (run). The loader inserted the layer 27 times on main and 43 on the head. The only VUID in either log is VUID-VkDeviceCreateInfo-pNext-pNext, which that layer logs at vkCreateDevice on main too, for a structure newer than its 1.3.275 header (VkStructureType 1000574000), so the head adds none. That message fails the same 14 tests in both arms, agc_driver_image_table and its 13 _packed variants, because the run's failure regex matches any VUID-; the other tests pass, 19 on main and 36 on the head, the head's including this PR's three agc_driver_pointer_chase_* tests, which main doesn't have. The run counts 14 "was not found but was requested" matches per arm, and each is ctest printing that failure regex for one of the 14; no loader line in either log says the layer was missing.
    • NVIDIA GeForce RTX 3080 Ti, by @mrfelek (comment): the same pair on #9749's 39b162b371, which holds this PR's 56416624f1, Linux, driver 615.71.09, layer 1.4.357. The head passes its 49 tests in 3 of 3 runs with no VUID- line. The main e22c5fb941 arm is his earlier run on the same machine (comment), 32 of 32 in 3 of 3 runs with none. No run printed "was not found but was requested", and the only tests without Insert instance layer "VK_LAYER_KHRONOS_validation" are nine CPU-only ones that print no Vulkan output.
  • ae857ccc9b, a merge of #9457's b0b62f859b, without conflicts, which carries main bd278f3654 through #9457, #8939 and #7395 (×10).
    • FormatVersion: main's 69, this PR's 82. #7395's merge takes #19530's move of main from 68 to 69, and this PR's own diff over #9457 is unchanged.
    • ×10: the same tests as on 56416624f1. Linux: 49 run, 49 pass, 0 skip, 0 fail. Windows: 51 run, 11 pass, 40 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 380 and 376 tests on Linux and 410 and 404 on Windows, with 0 failed. The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes only precise_wait's median bounds on GitHub's hosted runners.
    • The Windows tree: the run's tree had Sankalp7317's 4-line _putenv_s test fix (#19899) on top, because main's Windows test build breaks without it ("'setenv' was not declared" in UploadCacheReadOnlyFlush.cpp, from #18037); it isn't on this branch.
  • 99e3511c6a, a merge of #9457's d896ff422b, which carries main 328cbf673e through #9457, #8939 and #7395 (×10, with #21255's test change).
    • The conflict: only FormatVersion, where #9457 now takes 95, above this PR's 82. The merge moves this PR to 96. This PR's own lines are unchanged apart from the FormatVersion line.
    • ×10: the same tests as on ae857ccc9b. Linux: 56 run, 55 pass, 0 skip, 1 fail. Windows: 58 run, 11 pass, 47 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 391 and 390 tests on Linux and 421 and 417 on Windows, with 0 failed. The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes only precise_wait's median bounds on GitHub's hosted runners.
    • The Linux failure, agc_driver_image_table_packed_guards, fails as on main: three identical "stage 4 pc 0x68" records, then "unrecoverable packed table format was not poisoned", the same lines as in main's own Linux job at e249fc47b5 (job). fernandomcrsilva's open #21255 changes that test. With #21255's test change on top of #9749's 510fd2384d, which holds this PR's 99e3511c6a (run), agc_driver_image_table_packed_guards passes 10 of 10, and so do the same tests on that tree: Linux 57 run, 57 pass, 0 skip, 0 fail; Windows 59 run, 11 pass, 48 skip (no Vulkan device), 0 fail.
    • guest_thermal_sensors in that run: libkernel's guest_thermal_sensors reached its 20 s timeout in the Linux suite. It times out in every run I have on GitHub's Intel Xeon 6975P-C runners, main 0694c4cbd6 alone included (run), and passes in this PR's own ×10 above and in main's own job. This PR changes no libkernel file.
    • The Windows tree: the runs' trees had Sankalp7317's 4-line _putenv_s test fix (#19899) on top, because main's Windows test build breaks without it ("'setenv' was not declared" in UploadCacheReadOnlyFlush.cpp, from #18037); it isn't on this branch.
  • NVIDIA GeForce RTX 4090, by @domx4q, with the Khronos validation layer (comment): Arch Linux (kernel 7.3.4), GCC 16.2.1 Release, driver 620.70.06, Vulkan 1.4.357, validation layer 1.4.363.1, with ANYPS5_REQUIRE_VULKAN=1 and ANYPS5_NO_SHADER_CACHE=1. This head 99e3511c6a merged onto main e4caa07950 (their merge ee7d6e9091, clean), against main e4caa07950 alone, ctest -R 'pointer|image_table|nested|agc_shader_disk_cache|agc_shader_memory|bda_anchor'. main: 78 of 78 pass. This PR: 94 of 94 pass, including the 16 tests main doesn't have: this PR's three (agc_driver_pointer_chase_table, _words_table and _edited_table) and the 13 of #9457, #8939 and #7395. No test skips on either side. The layer was inserted 43 times on main and 58 times with this PR; the tests without an insert are CPU-only. No VUID- line on either side, and every test that creates a device selected the RTX 4090.
  • #8939's null record pointer fix, by the merge 3fb58d68c5 of #9457's new head (test only, tests/execution/ImageTable.cpp), for #8939's agc_driver_pointer_phi_lane_and_table and agc_driver_pointer_phi_lane_not_table. @frankea's Windows 11 RTX 4090 run (comment) failed them on #8939, #9457, #9790 and #9969, with selected the descriptor at 0x0: unmapped; this PR carries the same tests. The cause, the fix and a verify-only Linux run with the records mapped at 1 GiB, red before the fix and green after, are in #8939's Tested: the records sat below 4 GiB, so an arm whose low word is 0 selected a null pointer. old..new touches only ImageTable.cpp.
    • Linux at the normal layout, ×10 (job, on an earlier commit with the same tree): the 18 ^agc_driver_pointer_ and ^agc_driver_nested_ tests pass, none skipped.
    • Windows (run), with Sankalp7317's 4-line _putenv_s fix (#19899) merged for the run only: the first attempt failed in the libkernel suite, where guest_timed_wait_cpu exited with 0xc0000409. The re-run of the Windows job (attempt 2) passed: the build, the libc and libkernel suites with 421 and 417 tests and 0 failed, and the 18 tests skipping (no Vulkan device). old..new touches only ImageTable.cpp. The Windows GPU case itself can only be re-run by a tester.
  • 2f104ac486, a merge of #9457's dbe3b94942, which carries main d89f26516c through #9457, without conflicts (×10, with #21255's test change).
    • No conflicts: this PR's FormatVersion stays 96, and its own lines are unchanged.
    • ×10: agc_driver_many_direct_samplers and every test matching ^agc_driver_pointer_, ^agc_driver_nested_, ^agc_shader_nested_, ^agc_driver_image_table, ^agc_shader_memory, ^agc_shader_disk_cache or ^agc_shader_sampler_limits, which takes in every test in this PR's diff over main. Linux: 56 run, 55 pass, 0 skip, 1 fail. Windows: 58 run, 11 pass, 47 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 410 and 411 tests on Linux and 439 and 432 on Windows, with 0 failed apart from guest_thermal_sensors (below). The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes only precise_wait's median bounds on GitHub's hosted runners.
    • The Linux failure, agc_driver_image_table_packed_guards, also fails on main d89f26516c alone in the same harness on GitHub's runners (run: the ^agc_driver_image_table tests ×10, 29 run, only this one fails). main's own Linux job, on the project's self-hosted runner, passes it at 244b338dd0 (job). fernandomcrsilva's open #21255 changes that test. With #21255's test change on top of #9749's bee5a91996, which holds this PR's 2f104ac486 (run), agc_driver_image_table_packed_guards passes 10 of 10, and so do the same tests on that tree: Linux 57 run, 57 pass, 0 skip, 0 fail; Windows 59 run, 11 pass, 48 skip (no Vulkan device), 0 fail.
    • guest_thermal_sensors: libkernel's guest_thermal_sensors reached its 20 s timeout in the Linux suite, on one of GitHub's Intel Xeon 6975P-C runners. It times out in every run I have on those runners, main 0694c4cbd6 alone included (run), and passed in this refresh's runs on AMD EPYC runners. This PR changes no libkernel file.
    • The Windows tree: the runs' trees had Sankalp7317's 4-line _putenv_s test fix (#19899) on top, because main's Windows test build breaks without it ("'setenv' was not declared" in UploadCacheReadOnlyFlush.cpp, from #18037); it isn't on this branch.
  • AMD Radeon RX 9070 XT (RADV GFX1201), by @hugodearaujo, with the Khronos validation layer, in #9749's arm (comment): Arch Linux (kernel 7.3.4), RADV (Mesa 26.2.7), GCC 16.2.1 Release, BUILD_TESTING=ON, validation layer 1.4.363, with ANYPS5_REQUIRE_VULKAN=1 and ANYPS5_NO_SHADER_CACHE=1, ctest -V -R '^agc_driver_pointer_|^agc_driver_nested_|^agc_shader_nested_|^agc_driver_image_table|^agc_shader_memory|^agc_shader_disk_cache|^agc_shader_sampler_limits', 3 runs per arm. #9749's bee5a91996 (with #7395, #8939, #9457 and #9633; their merge b726f51423), merged onto main e1ab104e0a (clean), against main e1ab104e0a alone; it carries this PR's head 2f104ac486. main: 39 tests, 38 pass, 1 skip in each run. The arm: 56 tests, 55 pass, 1 skip in each run; the counts include the tests of the arm's other PRs. The one skip is the same in every arm, main's included: agc_driver_image_table_vouched_lookups (the device reports host-imported pages written after a GPU read). The layer was inserted 32 times on main and 48 times in each arm, and never reported missing. No VUID- line in any arm, and every Vulkan test selected the RX 9070 XT.
  • NVIDIA RTX 4060 (driver 616.56), Windows 11, by @ShootanoJumper (comment): Windows 11 23H2 (22631), Ryzen 7 5700X, WinLibs GCC 15.2.0 r7, Release, merged into main ed1def4dd4 with git merge --no-ff. No validation layer was installed, so these runs say nothing about VUID- errors. This head 2f104ac486: the new tests pass, and of the 1302 tests the change reaches, the only failures are ones main also fails on that GPU (#23232, #23711, #23942).
  • f96acd992d, a merge of #9457's ef586f90ca, which carries main d50640e264 through #9457, without conflicts (×10, with #21255's test change).
    • No conflicts: this PR's FormatVersion stays 96, and its own lines are unchanged.
    • ×10: agc_driver_many_direct_samplers and every test matching ^agc_driver_pointer_, ^agc_driver_nested_, ^agc_shader_nested_, ^agc_driver_image_table, ^agc_shader_memory, ^agc_shader_disk_cache or ^agc_shader_sampler_limits, which takes in every test in this PR's diff over main. Linux: 56 run, 55 pass, 0 skip, 1 fail. Windows: 58 run, 11 pass, 47 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 410 and 417 tests on Linux and 439 and 438 on Windows, with 0 failed apart from guest_thermal_sensors (below). The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes only precise_wait's median bounds on GitHub's hosted runners.
    • The Linux failure, agc_driver_image_table_packed_guards, also fails on main d89f26516c alone in the same harness on GitHub's runners (run: the ^agc_driver_image_table tests ×10, 29 run, only this one fails). main's own Linux job, on the project's self-hosted runner, passes it at 244b338dd0 (job). fernandomcrsilva's open #21255 changes that test. With #21255's test change on top of #9749's dd2c6b1aee, which holds this PR's f96acd992d (run), agc_driver_image_table_packed_guards passes 10 of 10, and so do the same tests on that tree: Linux 57 run, 57 pass, 0 skip, 0 fail. That run's Windows job reached the job time limit while building on an AMD EPYC 7763 runner, before any test ran.
    • guest_thermal_sensors: libkernel's guest_thermal_sensors reached its 20 s timeout in the Linux suite, on one of GitHub's Intel Xeon 6975P-C runners. It times out in every run I have on those runners, main 0694c4cbd6 alone included (run), and passed in this refresh's runs on Intel Xeon Platinum 8573C and AMD EPYC runners. This PR changes no libkernel file.
    • The Windows tree: the runs' trees had Sankalp7317's 4-line _putenv_s test fix (#19899) on top, because main's Windows test build breaks without it ("'setenv' was not declared" in UploadCacheReadOnlyFlush.cpp, from #18037); it isn't on this branch.

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: #9457 (stacked on #8939)
  • Fixes: none
  • Unblocks: Ghostrunner (PPSA03685) #7320: compute shader 0x200c520000 past LoadAddressU32@pc=0x0002ef78 with #10000, in TheSovietWaffle's replay (the next stop is the 64-image cap)
  • GPUs tested: Mesa llvmpipe (LLVM 20.1.2), Ubuntu 24.04, on GitHub's Linux runner and a cloud Linux machine, with the validation comparison (Mesa 25.2.8) on GitHub's runner; NVIDIA RTX 2000 Ada Generation (driver 595.99.02, Ubuntu 26.04.1; TechLevelZero's NVIDIA bot); NVIDIA GeForce RTX 3070 (driver 595.99.02) and lavapipe (Mesa 26.0.3, LLVM 21.1.8), Ubuntu 26.04, in jotitadev's run; NVIDIA GeForce RTX 5070 Ti (621.01) and an AMD Radeon RDNA2 iGPU (AMD 2026.04.17), Windows 11, in wachi35676's run; NVIDIA GeForce RTX 4090 (driver 620.70.06, Arch Linux, with the validation layer), by @domx4q; AMD Radeon RX 9070 XT (RADV, Mesa 26.2.7, Arch Linux, with the validation layer), by @hugodearaujo; NVIDIA RTX 4060 (driver 616.56, Windows 11, no validation layer), by @ShootanoJumper
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4962566091 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9633). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-22T05:25:27Z. --- ### What On Ratchet & Clank: Rift Apart (PPSA01474), with #8939, a compute shader stopped with `GetImageResource dword 0 is not a valid runtime value` at `LoadAddressU32@pc=0x10b84`. #8939 itself got it past its earlier stop at 0x9a30. The sources are a retail run on #8939 ([comment](https://github.com/boykopovar/AnyPS5/pull/8939#issuecomment-6324523895)), and two IR readings of the shader ([1](https://github.com/boykopovar/AnyPS5/pull/8939#issuecomment-6330515099), [2](https://github.com/boykopovar/AnyPS5/pull/8939#issuecomment-6331222512)). **Ratchet & Clank: Rift Apart (PPSA01474), 11-13:** this PR got the title past 0x10b84 in [Tamalero's run](https://github.com/boykopovar/AnyPS5/pull/9633#issuecomment-6338006613); the next stop, a third chased read at 0x13bc0, was #9749's. On current `main` the title doesn't stop there. #14636 removed the title's `pc=0x62d4` `GetSamplerResource` refusal: with #14636's merge reverted, `main` f57c971559 aborts on it again ([dantdmdarealguy's run](https://github.com/boykopovar/AnyPS5/issues/13538#issuecomment-6805706990)). Tamalero's run of `main` 4e2acc2120 with #18522, on RADV with `APS5_MAX_COMPUTE_SPIRV_WORDS=2000000` and `APS5_SKIP_REFUSED_DISPATCHES=1` (which skips and logs any compute shader whose recompile fails, [code](https://github.com/boykopovar/AnyPS5/blob/4e2acc2120998222c6d1ad02278f43da149c43e2/core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cpp#L430-L443)), reaches the first gameplay; the only shaders it skipped were two dropped for size ([comment](https://github.com/boykopovar/AnyPS5/issues/13538#issuecomment-6848831524)). `main` still refuses this PR's shapes: on `main` 7201da4f0e, which has #14636, this PR's three tests fail 3 of 3 with #9457 merged and this PR's code left out, and pass 3 of 3 with this PR merged (llvmpipe, a cloud Linux machine). The descriptor pointer is a Phi of the record's pointer R and up to two chased pointers. The shader conditionally replaces P by the 64-bit pointer read at offset 0 of a buffer whose V# sits at P+0x60, up to twice. It then loads the T# at the final P+0. So the pointer is R, H(R) or H(H(R)). - #9457's hops follow only unconditional chains of direct address loads, and a Phi at the descriptor pointer stops them at the first step. - `PointerRecordRead` then refuses the chased arms as reads of another buffer at offset 0. **The change:** - **Tracker:** a chase arm is a buffer read at dwords 0/1 of one handle whose V# is four words loaded through `GetAddressResource(P)` at an immediate offset, where P resolves to R or to another chase arm. - Each distinct handle and word pair is a chase site (`PointerChase {offset, immediate, readOffset, readImmediate}`). Since 2c1a65045c, two links read through one V# at different words each get their own site, and so their own snapshot entry. No serialized field changes there. - The column's depth is the longest chain of distinct sites. - A chase that reaches itself through a Phi (a loop), or a depth over 4, is refused. - The edge-paired walk of #8939 and #9457's hops are unchanged. - **Materializer:** for each record's pointer, the column also publishes H(R), H(H(R)) and so on up to its depth, breadth-first, as pointer-keyed entries, each with its own T#. - The V# and the next pointer are read from the snapshot, and both join the snapshot's ranges. - A read outside the snapshot adds no entry, so a GPU that reaches that pointer faults "outside the snapshot", as #9457's hops do. - A pointer already captured is kept once. - The disk cache format goes to 96, above #9457's 95 (see Tested). - **A V# whose words the shader edits** (6c139245aa): a chased V# word may also be the word as read, shifted left, ANDed or ORed by one constant. The chase keeps that edit per word, the snapshot applies it to the words it reads before it decodes the V#, and the shader disk cache stores it; other edits of a V# word stay refused. The format then stayed 55, since the source version already kept this recompiler's caches apart; this PR's format is now 96 (see Tested). This is Ghostrunner (PPSA03685)'s compute shader 0x200c520000 (see Tested). - A debt entry for the depth cap and refused loops. **Overlap:** checked with `git merge-tree` against every open PR touching these files, on `main` da54c652e3, and rechecked at 792854306f (with `main` 3ca07d086d) against the PRs below: the conflicts are the same. #9508's other conflict there, in `GuestMemory.cpp`, is with `main` itself. - **The stack:** #9457, #8939 and #7395 overlap because this PR is stacked on them; #7223, at the stack's base, has merged. It changes nothing of theirs outside the chase. - **#7880 (klosixgaming-arch)** collapses a table column pointer whose Phi arms are equivalent record reads, in `main`'s `TryMakeIndirectColumn`. The stack's walk takes Phis whose arms differ, so the two compose. Whichever lands second carries the other's case through the same loop. - **#9969 (ours, on #9457 like this PR): conflicts in `ResourceTracker.cpp`, `ShaderDiskCache.cpp`, `FormatVersion` and the image-table test lists.** #9969 sends every merged read through `PointerRecordPairs` and removes `PointerRecordReads`; this PR adds the `chases` and `chaseDepth` arguments to `PointerRecordPairs`. Whichever of the two merges first, the other takes the resolution on [test/d10195-9633-15555-18107](https://github.com/EagleBearerYS/AnyPS5/tree/test/d10195-9633-15555-18107) (`fecb7dd9b0`, this PR's ae857ccc9b with #18107, which carries #9969): - every merged read calls `PointerRecordPairs` with this PR's chase arguments, then #9969's same-read check, and a buffer record reached through a chase is refused, which neither PR covers; - the plan encoder's checks take this PR's `DescriptorSource` and `TableColumn` and #9969's `KeyDomain`; - `FormatVersion` and the test lists keep both. On that branch every #9633 and #9969 test passes 3 of 3 on Linux; on Windows the GPU tests skip (no Vulkan device on the runner) and nothing fails ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/43596432863)). The run's one red is #18107's `agc_driver_pointer_vsharp_sampler_pair_spill_table`, which fails the same way on #18107 without this PR ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/43603797749)). hugodearaujo's #15555 and #18107, stacked on #9969, add no conflict of their own. - **The disk-cache format:** this PR moves it to 96, above #9457's 95. `main` is at 88 since Pipodi's #18455. Ours take one number each: #7642 62 (a draft, held; it takes a free number at its refresh), #7395 93, #8939 94, #9457 95, #9633 96, #9749 97, #9790 98 and #9969 99. The other open PRs changing it hold 89 (#14871, #19852, #21199 and #21240), 90 (#6416, and #16812 and #16814, both stacked on #9969), 91 (#10351) and 92 (#14853), and the rest hold numbers at or below `main`'s, from a check of every open PR's head on 11-16. Whichever lands later takes the next number, and the format this PR ends at is settled when its base merges. - **#20519 and #22424 (slopezjur, the opt-in bindless image heap and, on it, layout-only pointer tables):** #7395's and #9457's conflicts (see #7395's Overlap), plus this PR's own. This PR moves the pointer-hop read into a `readEntry` lambda, so #20519's `records.addresses[record] = first;` moves into it. With #20519's `dynamic`, the encoder's checks need 23 `TableColumn` fields. Its own test options keep both, and its `FormatVersion` conflict keeps this PR's number, above #20519's 89. Merge order: this stack first, as proposed in #20519's thread ([comment](https://github.com/boykopovar/AnyPS5/pull/20519#issuecomment-6953598764)). If #20519 lands first, a merge of `main` resolves it here. ### Tested - **GitHub's Linux runner** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39724490784)): `agc_driver_pointer_chase_table` fails ×2 with #9457's code, and passes ×5 with this change. `agc_driver_pointer_hop_table` and `agc_shader_disk_cache` pass. GitHub's Windows runner builds it, and its Vulkan tests skip there. - **2c1a65045c on GitHub's runners** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39768450995), against 6a72841083): `agc_driver_pointer_chase_words_table` fails 3 of 3 without the change ("pointer table with two chase links in one V#: the T# behind one of the two links faulted") and passes 10 of 10 with it. With `agc_driver_pointer_chase_table`, `_hop_table`, `_phi_high_table`, `_vsharp_fixed_table` and `agc_driver_nested_image_table`, it passes 10 of 10 on Linux, all six passing and none skipped; on Windows they build, and all six skip, as the runner has no Vulkan device. libc's `precise_wait` failed on both arms of that run. - Validation, 6a72841083 against 2c1a65045c on one GitHub Linux runner ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39768492855)), every test named: the layer loads in both runs, both log only `VUID-VkDeviceCreateInfo-pNext-pNext`, and the commit adds no `VUID-` message. - **792854306f, #9457's head 2a5db7ae45 and then `main` 3ca07d086d merged in** (both clean; this PR's own diff is unchanged), on GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39784553108)): the 18 `nested_`/`pointer_` table tests, `agc_driver_image_table_vouched_lookups`, `agc_driver_image_table_vouch_queued_draws` and the disk-cache tests pass 10 of 10 on Linux, none skipped. On Windows they build and pass, with the Vulkan tests skipping. - The suites: libkernel passes on Linux and libc on Windows. On Linux libc's one failure, `precise_wait`, failed with `main`'s implementation too. On Windows libkernel's one failure is `guest_raise_in_system_call`, a 30 s timeout in a libkernel test this PR doesn't touch. - **Validation layer, `main` against this head**, in the same run: one GitHub Linux runner, Ubuntu 24.04.5, llvmpipe (Mesa 25.2.8, LLVM 20.1.2), with `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1`, `VK_LAYER_KHRONOS_validation` and `ctest -V`. `main`'s arm runs the 2 image-table tests and the disk-cache tests it has, and this head's arm runs all of them. The layer loads in both runs, with no "was not found" line. Both log only `VUID-VkDeviceCreateInfo-pNext-pNext`, and this head adds no `VUID-` message. - **Linux, Mesa llvmpipe:** - **The test shader:** an RDNA2 compute shader with the title's shape, assembled with `llvm-mc -arch=amdgcn -mcpu=gfx1030`. A record pointer is keyed by a first-lane read, then two conditional chase steps each load a V# at P+0x60 and a pointer at offset 0, then a T# at the final P+0. - **Cases:** - all 16 lane classes read the T# of the node they reach; - a moved link is followed without a recompile; - a link outside the snapshot faults "outside the snapshot" with the output untouched; - a chase in a loop and a five-step chase were refused, and disabling each rule turned its case red. ee8767ff0d removed those two checks under the test rule (see Tested), so the loop and depth-cap refusals in `PointerRecordPairs` no longer have a test. - **Red:** with the tracker change reverted, the shader refuses the way the title does: `GetImageResource dword 0 is not a valid runtime value; chain: LoadAddressU32@pc=0x000000c0(GetAddressResource(Phi(Phi(ReadConstBuffer…`. - **Wider set:** the 41 image-table, pointer, nested-table and disk-cache tests pass. - **CI's Linux job mirrored:** only the build machine's IPv6 tests and one timing test that passes alone fail. `^agc` and `^shader` show the same failure set on #9457's head and on this change. - **Validation layer, #9457 against this PR** (CONTRIBUTING's AGC rule), on one GitHub Linux runner ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39730320704)). Both runs used `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, `ANYPS5_NO_SHADER_CACHE=1`, `ANYPS5_REQUIRE_VULKAN=1` and `ctest -V`, with `VK_LOADER_DEBUG=layer` to show the layer loading. The device was llvmpipe (LLVM 20.1.2) on Mesa 25.2.8, Ubuntu 24.04.5, Khronos validation layers 1.3.275. - Tests: this PR's `agc_driver_pointer_chase_table`, and #9457's `agc_driver_pointer_hop_table` on the same pointer-keyed path. #9457's tree has only the second. - The layer was inserted once on #9457's tree and 6 times with this PR, with no `was not found`. - Both logs report only `VUID-VkDeviceCreateInfo-pNext-pNext`. This PR adds no `VUID-` message. - **jotitadev's run on an RTX 3070 and lavapipe** ([review](https://github.com/boykopovar/AnyPS5/pull/9633#pullrequestreview-5610393609)): Ubuntu 26.04, GCC 15.2, Release, 6a7284108 with its stack merged into `main` da54c652e. - `agc_driver_pointer_chase_table` passes 3 of 3 on both devices, including the moved link, the link outside the snapshot, and the refused loop and five-step chase (at that head; ee8767ff0d later removed those two checks). - With this PR's `ResourceTracker.cpp` change reverse-applied, it fails on both the way the title does: `GetImageResource dword 0 is not a valid runtime value; chain: LoadAddressU32@pc=0x000000c0(GetAddressResource(Phi(Phi(ReadConstBuffer…`. - `^agc`, without the flip, display DCC and `lds_atomics64` tests: 875 of 878 on the 3070 and 877 of 878 on lavapipe. The failures are the same as on `main` on that machine: the three `sample_order` tests on the 3070, and `multisample_retirement` on lavapipe. - As jotitadev notes, that covers the chase at a subgroup size of 32 on a real GPU as well as llvmpipe's 8. - `check_conventions.py` passes, with no comment lines added. - **Ratchet & Clank: Rift Apart (PPSA01474), by @Tamalero** ([comment](https://github.com/boykopovar/AnyPS5/pull/9633#issuecomment-6338006613)): Linux (CachyOS), GCC 16.2.1, Release, RTX 4090 (NVIDIA 615.78.08), content 01.005.003. Both builds used the same relinked executable and a cold shader cache, with no input. - With this PR's parent c00cb0f87 (the same stack without the chase), it stops after 321 s at `LoadAddressU32@pc=0x10b84`, the stop from #8939. - With this PR (6a7284108) there's no refusal at 0x10b84. It stops later, after 351 s, in another compute shader at `LoadAddressU32@pc=0x13bc0`: a T# load whose pointer goes through a third chased read. - Replaying a sibling shader's prepare request offline with `agc_shader_replay`, the parent refuses at the same site (`pc=0xf898`). This PR passes it and refuses at a later T# load (`pc=0x128d4`), so the chase is followed on the title's own shader. - **The third read** ([Tamalero's trace](https://github.com/boykopovar/AnyPS5/pull/9633#issuecomment-6338256607)), in both shaders: the pointer's high word is read at its own immediate, 0x6c against a low word at 0x54, from one `s_buffer_load_dwordx16`. `ChaseHighRead` takes a high word only at `readImmediate + 4`, so the walk refuses there. That step needs a follow-up. In Tamalero's scratch build with only that check relaxed, both shaders then stop on `sampler resource limit exceeded` (`MaxSamplers = 32`). - **6b64604048, a merge of #9457's 7f3a25e0cb, which merges `main` 0db47b263d.** The only conflict was `ShaderDiskCache.hpp`'s `FormatVersion` line: `main` moved to 45 (#7831), and this branch keeps its 47. On GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39930142940)), the pointer, nested, image-table and disk-cache sets (27 tests) pass 10 runs in a row on Linux. On Windows the set has 29, with two Windows-only disk-cache tests: they build, 5 pass 10 runs in a row, and the other 24, which need a Vulkan device, skip. The libc and libkernel suites pass on both, run with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. An earlier run linked here didn't run this set, so it's replaced. - **5b6c96f938, a merge of #9457's dc18bf7bf7** (which carries #7395's and #8939's merges of `main` 379b1dca32). The one conflict was in `ResourceTracker.cpp`: #8939's new check on a pointer-keyed Phi edge sits in the paired loop this PR moves into its `walk` lambda, so the check moves there with it. That's the only change to this PR's own diff. `FormatVersion` stays at 48, one above #9457's 47. - **The planner behaviour changes underneath it:** It brings the planner changes of #7395's and #8939's merges: a record pointer counts as merged only when its Phi isn't a single record read; an unmerged pointer's low word is unwrapped as #7880 does, and refused when it isn't a table read; and #8939's new commit refuses a pointer-keyed Phi edge whose two words are both immediates. - Focused, ×10 ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40077163401)): `agc_shader_bindless`, `agc_shader_memory` and the `^agc_driver_pointer_`, `^agc_driver_nested_`, `^agc_driver_image_table` and `^agc_shader_disk_cache` tests. Linux: 29 run, 29 pass, 0 skip, 0 fail. Windows: 31 run, 7 pass, 24 skip (Vulkan device tests; the runner has none), 0 fail. - The libc and libkernel suites pass on both runners, run with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **72f48b702f, a merge of #7395's 2525821ac9** (which merges `main` c9b2660d56). The only conflict was `FormatVersion`, which goes to 51, one above #7395's 50. This PR's own diff is otherwise unchanged. On GitHub's runners, 10 runs ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40100110868)) of the pointer, nested, image-table and disk-cache sets (`agc_shader_bindless`, `agc_shader_memory`, `^agc_driver_pointer_`, `^agc_driver_nested_`, `^agc_driver_image_table`, `^agc_shader_disk_cache`): Linux: 29 run, 29 pass, 0 skip, 0 fail. Windows: 31 run, 7 pass, 24 skip (no Vulkan device), 0 fail. The libc and libkernel suites pass on both, run with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **839cad8ea1, a merge of #7395's 71741a70b6, which merges #7223's f1cc524085 (yabanana's merge of `main` c8d34aa8f4).** Clean: `FormatVersion` stays at 51, one above #7395's 50, and this PR's own diff is unchanged: the merge brings in exactly what #7395's merge did (249 files). On GitHub's runners, 10 runs ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40136011444)) of the pointer, nested, image-table and disk-cache sets (`agc_shader_bindless`, `agc_shader_memory`, `^agc_driver_pointer_`, `^agc_driver_nested_`, `^agc_driver_image_table`, `^agc_shader_disk_cache`): Linux: 29 run, 29 pass, 0 skip, 0 fail. Windows: 31 run, 7 pass, 24 skip (no Vulkan device), 0 fail. The libc and libkernel suites pass on both (143 and 206 tests on Linux, 170 and 222 on Windows), run with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **NVIDIA GeForce RTX 5070 Ti (621.01, subgroup 32) and an AMD Radeon RDNA2 iGPU (AMD 2026.04.17, subgroup 64), Windows 11, by @wachi35676** ([comment](https://github.com/boykopovar/AnyPS5/pull/9633#issuecomment-6404842274)): WinLibs GCC 15.2.0, Release, this PR's 839cad8ea1, which carries #9457, merged cleanly onto `main` aeff26bd9, `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1`, no validation layer. - The `pointer_` and `nested_` table tests, `image_table`, `vouch`, `disk_cache` and the `agc_shader_` tests, 68 entries, pass on both GPUs. On the subgroup-64 AMD device all 18 pointer and nested modes run, with no per-wave case skipped. - With this PR's non-test files taken from `main` + #9457 and this PR's tests kept, `agc_driver_pointer_chase_table` and `agc_driver_pointer_chase_words_table` fail on both GPUs with `GetImageResource dword 0 is not a valid runtime value` (chain `LoadAddressU32@pc=0x000000c0(GetAddressResource(Phi(Phi(...`), and the rest pass. - Of 269 `agc_` entries, the same ones fail with and without the stack on both GPUs, none of them table tests. - **a0308d1c19: 37311118a8, a merge of #9457's 62992d7437, the format commit 68d04647f3, and a0308d1c19, a merge of #9457's merge of `main` 0cd07dc4ab** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40641983195)). - **37311118a8** takes #9457's merge of #8939 (with #7223's 153400ba2b and the test-only commits of #7395 and #8939) and #9457's format commit. Clean, and this PR's own diff is unchanged. - **68d04647f3** gives this PR its own disk-cache format, 55 (54 is #10489's). The open bumps take one number each: #7223 49 (as do #9508, #9748 and other open PRs), #7395 50, #8939 51, #10000 52, #9457 53, #10489 54, #9633 55, #9749 56, #9790 57, #9969 58, #10846 59. - **a0308d1c19** merges #9457's merge of `main` 0cd07dc4ab, with #9457's resolution of mrfelek's #10228. Clean here, and this PR's changed lines are the same. - The chase, hop, vouch and nested-image tests with the disk-cache, bindless and shader-memory tests ran 10 times with no failure. Linux: 10 run, 10 pass, 0 skip, 0 fail. Windows: 12 run, 6 pass, 6 skip (the Vulkan device tests), 0 fail. - Suites: libc and libkernel pass on Linux (166 and 264). On Windows libc passes (194), and libkernel passes 283 of 286: `exec_arguments`, `guest_timed_join_import_libkernel_sys` and `guest_timed_join_import_libkernel_web` fail at their setup in the verify's Windows build (`FileNotFoundError` starting the title, or copying the libraries they load), and pass in `main`'s own Windows job at 1829def9bf ([job](https://github.com/boykopovar/AnyPS5/actions/runs/40627345977/job/122615375186)). The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **b5a199bac2, a merge of #9457's 88620551d5**, which carries #7395's test-only commit ca14648806 (the nested-sampler test no longer asserts that an S# with another consumer is refused) ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40656431382)). Clean, and this PR's changed lines are the same. The chase, hop, vouch, nested-image and nested-sampler tests with the disk-cache, bindless and shader-memory tests ran 10 times with no failure. Linux: 11 run, 11 pass, 0 skip, 0 fail. Windows: 13 run, 6 pass, 7 skip (the Vulkan device tests), 0 fail. Suites: libc and libkernel pass on Linux (166 and 264). On Windows libc passes (194), and libkernel has 4 failures of 286. `guest_raise_exception` failed after "address waking round 38: the handler did not run within 5 s", as `main` 9fc181dde5 does in the same verify setup ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40631927722)); that is #11813, and this PR doesn't touch libkernel. `exec_arguments`, `guest_timed_join_import_libkernel_sys` and `guest_timed_join_import_libkernel_web` fail at their setup in the verify's Windows build (`FileNotFoundError` starting the title, or copying the libraries they load), and pass in `main`'s own Windows job at 1829def9bf ([job](https://github.com/boykopovar/AnyPS5/actions/runs/40627345977/job/122615375186)). The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **6c139245aa: 037f579a20, a merge of #9457's 9a44f18aeb, which carries `main` 38ccd50f83 and with it #11507's `FormatVersion` 49, and the edited-V# chase on top** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40679469245)). The merge is clean, `FormatVersion` stays 55 (see What), and this PR's diff over #9457 is the same apart from the new commit. - **The edited-V# chase** (6c139245aa: ba85d6743f, written on b5a199bac2, moved onto the merge with the same changed lines): Ghostrunner (PPSA03685)'s compute shader 0x200c520000 reads its T# pointer as Phi(R, H(R)), with H(R) read at 0x30 of a buffer whose V# comes from R+0x30, word 1 ANDed with 0xffff, word 2 shifted left by 4 and word 3 ORed with 0x30000000 before use (TheSovietWaffle's IR on #8939). Without this commit the request stopped at `LoadAddressU32@pc=0x0002ef78` with `GetImageResource dword 0 is not a valid runtime value`. `agc_driver_pointer_chase_edited_table` models that arm, for taken and skipped chase steps and a moved link. On GitHub's Linux runner it fails without the change, with that message, and passes 10 runs in a row with it, on #9633's earlier head a0308d1c19 ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40657310185)); on b5a199bac2 the same, 3 runs ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40666536680)). The validation comparison on llvmpipe adds no `VUID-` message: both sides report only `VUID-VkDeviceCreateInfo-pNext-pNext` ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40666291665)). TheSovietWaffle's replay of the title's request, the last bullet, gets past 0x2ef78 with it. - **×10 on 6c139245aa:** the chase, hop, vouch, nested-image, nested-sampler and edited-chase tests with the disk-cache, bindless and shader-memory tests and #11507's `agc_driver_image_sample_short_cube` ran 10 times with no failure. Linux: 13 run, 13 pass, 0 skip, 0 fail. Windows: 15 run, 6 pass, 9 skip (the Vulkan device tests), 0 fail. Suites: libc and libkernel pass on Linux (166 and 265). On Windows libc passes (194), and libkernel passes 284 of 287: `exec_arguments`, `guest_timed_join_import_libkernel_sys` and `guest_timed_join_import_libkernel_web` fail at their setup in the verify's Windows build (`FileNotFoundError` starting the title, or copying the libraries they load), with `main`'s code too, and pass in `main`'s own Windows job at 1829def9bf ([job](https://github.com/boykopovar/AnyPS5/actions/runs/40627345977/job/122615375186)). The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **On 037f579a20 alone** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40665621552)), Windows' libkernel suite failed `guest_filesystem` once, which aborted right after creating its test junctions, and `guest_raise_exception` at round 46 (#11813). A rerun of that job passed both, and both pass on 6c139245aa. - **ee8767ff0d: 185c62a117, a merge of #9457's 19bed84013, the format commit b6c114935d, and the test-only commit ee8767ff0d** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40862155806)). - **185c62a117** takes #7395's test-only commit d908758281, which drops `agc_driver_nested_image_table`'s two checks that a valid shader is refused (a V# with another buffer consumer and a T# with another consumer), #7395's merge of #7223's 0dbf5478b2 (yabanana's merge of `main` f7e84c4cf1) and the format commits below this PR. Clean. - **b6c114935d** gives this PR its own disk-cache format, 56, one above #9457's 55. - **ee8767ff0d** drops the conditional pointer chase test's two checks that a valid shader is refused, one that repeats the chase in a loop and one with five conditional chase steps, with their helper and their shader words, under the same test rule. Neither shape is implemented. The taken and skipped steps, the moved link and the link outside the snapshot are still checked. Apart from these and the format line, this PR's diff over #9457 is unchanged. - The pointer, nested, image-table and disk-cache tests with `agc_shader_bindless` and `agc_shader_memory` ran 10 times with no failure. Linux: 30 run, 30 pass, 0 skip, 0 fail. Windows: 32 run, 8 pass, 24 skip (the Vulkan device tests; the Windows runner has no Vulkan device), 0 fail. The libc and libkernel suites run 191 and 291 tests on Linux and 220 and 314 on Windows, with 0 failed. They ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **a727b7653f, a merge of #9457's 31bd0dea17, which carries #7395's 4769d5a745, which drops "and refusals" from two nested-table test summary lines** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40947565494)). It's clean and brings only that change. The image-table, nested, pointer, disk-cache, bindless and shader-memory tests ran 10 times with no failure. Linux: 30 run, 30 pass, 0 skip, 0 fail. Windows: 32 run, 8 pass, 24 skip, 0 fail; the 24 skip because the runner has no Vulkan device. The libc and libkernel suites run 191 and 291 tests on Linux and 220 and 314 on Windows, with 0 failed. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **Ghostrunner (PPSA03685), a replay by @TheSovietWaffle** ([comment](https://github.com/boykopovar/AnyPS5/pull/8939#issuecomment-6542038051)): this PR's 217e3d7b1f, which carries 6c139245aa, merged with #10000's e7b14b0e8e. The only conflicts were `FormatVersion`, kept at 56, and the debt docs, kept from both sides. `agc_shader_replay --prepare` with `ANYPS5_NO_SHADER_CACHE=1` ran on the `shader_200c520000.prepare.req` dumped on `main` 74acfad65. Windows 10 22H2, WinLibs GCC 15.2.0, Release; CPU replay only, no title run. - The request no longer stops at `LoadAddressU32@pc=0x0002ef78` on `GetImageResource`. - It now stops on `image resource limit exceeded`, the 64-image cap that frankea's replay reached on #10000. - **NVIDIA RTX 2000 Ada Generation** at 43036c344c, from TechLevelZero's NVIDIA bot ([report](https://github.com/boykopovar/AnyPS5/pull/9633#issuecomment-6555062627)): driver 595.99.02, Ubuntu 26.04.1, this head merged onto `main` 3741ca9, 2,541 of 3,121 tests selected. - 2,492 passed, 5 failed and 44 skipped. None of the failures is new: 3 also fail on `main`, and 2 are unstable on `main`. - With `VK_LAYER_KHRONOS_validation`, over 948 tests on the GPU, the one new validation ID is `VUID-vkCmdCopyBuffer-commonparent` in `agc_driver_depth_clear_hle`. That is #10791's idle store with two live devices (fix: #10940), in a test the same run lists as unstable on `main`, and it isn't in this PR's code. 18 of the stack's nested and pointer table tests ran with the layer but aren't in `main`'s baseline, so they weren't compared. - **280d6d6c44: bc6733b0e2, a merge of #9457's 04d09eef56, and the format commit 280d6d6c44** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41415019019)). The merge also brings the #9457 commits this branch didn't have yet: oneandonlydean's merge of `main` 4eaf19b304, #9457's merge of #8939 and its move to 67. Three conflicts. In `ShaderDiskCache.cpp`'s static checks, this PR's `TableColumn` (144 bytes, 22 fields) and #7694's `requiredBlocks` each grow `DescriptorSource` by 24 bytes; both sides had written the same `224` there, which git kept, so the merge sets 248, with 4 fields. `FormatVersion` moves from 56 to 70 in the format commit, above #9457's 67, a number no other open PR seen uses. In `agc_driver_image_table_tests.cmake`, this PR's three pointer-chase registrations are kept. This PR's own diff is otherwise unchanged. The image-table, disk-cache, BDA anchor-read, shader-memory, nested and pointer tests, with #7694's `agc_shader_descriptor_phis`, pass 10 runs in a row. Linux: 33 run, 33 pass, 0 skip, 0 fail. Windows: 35 run, 10 pass, 25 skip, 0 fail. Suites: libc and libkernel pass on Linux (210 and 310) and on Windows (237 and 331). The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. TechLevelZero's NVIDIA bot ran this head merged onto `main` 88e804b on an RTX 2000 Ada ([report](https://github.com/boykopovar/AnyPS5/pull/9633#issuecomment-6575645240)): 2,571 passed, 5 failed, none new (3 also fail on `main`, 2 unstable on `main`), 45 skipped, with no new validation IDs (991 tests on the GPU). - **b9fab3f82e, a merge of #9457's 0a4f7cdbed, which carries #7395's merge of `main` 4f64f81ef7** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41461247660)). Clean: `FormatVersion` stays 70, and this PR's own diff is unchanged. The `ResourceMaterializer.cpp` resolution, with #12246's view loop moved back into `Snapshot`, comes from #7395's merge (see #7395). The image-table, disk-cache, BDA anchor-read, shader-memory, nested and pointer tests, with #7694's `agc_shader_descriptor_phis`, pass 10 runs in a row. Linux: 33 run, 33 pass, 0 skip, 0 fail. Windows: 35 run, 10 pass, 25 skip (no Vulkan device), 0 fail. Suites: libc and libkernel pass on Linux (217 and 318) and on Windows (244 and 339). The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **ce7a09f3f1, a merge of `main` 4f41f4c375** ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41610926495), [the PR's own tests ×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41619842431)). - **The conflicts:** `ShaderDiskCache.hpp`'s `FormatVersion`, where `main` is now at 52 (#10000) and this PR keeps its 70; and `docs/dev/debt/shader.md`, where this PR's entries and `main`'s new entries are adjacent and both stay. This PR's own lines are unchanged apart from the `FormatVersion` line's old value. - **×10:** `agc_driver_image_table`, `agc_driver_many_direct_samplers` and every test matching `^agc_shader_memory`, `^agc_shader_disk_cache`, `^agc_shader_sampler_limits`, `^agc_shader_nested` or `^agc_shader_table`. Linux: 11 run, 11 pass, 0 skip, 0 fail. Windows: 13 run, 11 pass, 2 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 300 and 322 tests on Linux and 327 and 342 on Windows, with 0 failed. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **×10 of every `^agc_driver_pointer_` and `^agc_driver_nested_` test**, the image-table tests in this PR's diff over `main`, which the first run's names left out. Linux: 18 run, 18 pass, 0 skip, 0 fail. Windows: 18 run, 0 pass, 18 skip (no Vulkan device), 0 fail. - **6089e589a8, a merge of #9457's 20cc916ce9,** which carries `main` c2eafe4461 with yabanana's #7223 through #8939 and #7395 ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41775997150)). - **The conflicts:** `ShaderDiskCache.hpp`'s `FormatVersion`, which stays 70 (`main` is at 56 since #7223), and `docs/dev/debt/shader.md`, where this PR's pointer-keyed chase entry stays. This PR's own lines are unchanged apart from the `FormatVersion` line's old value. - **×10:** `agc_driver_many_direct_samplers` and every test matching `^agc_driver_pointer_`, `^agc_driver_nested_`, `^agc_shader_nested_`, `^agc_driver_image_table`, `^agc_shader_memory`, `^agc_shader_disk_cache` or `^agc_shader_sampler_limits`, which takes in every test in this PR's diff over `main`. Linux: 33 run, 33 pass, 0 skip, 0 fail. Windows: 35 run, 10 pass, 25 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 301 and 325 tests on Linux and 331 and 343 on Windows, with 0 failed. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **NVIDIA RTX 2000 Ada Generation** at this head, from TechLevelZero's NVIDIA bot ([report](https://github.com/boykopovar/AnyPS5/pull/9633#issuecomment-6624965782)): merged onto `main` b8efa62, driver 595.99.02, Ubuntu 26.04.1, 2,909 of 3,878 tests selected. 2,852 passed, 7 failed and 50 skipped. None of the failures is new: 3 also fail on `main`, and 4 are unstable on `main`. With `VK_LAYER_KHRONOS_validation`, there are no new validation IDs against `main`, over 988 tests on the GPU. `agc_shader_nested_sampler_snapshot_retry` ran with the layer but isn't in `main`'s baseline, so it wasn't compared. - **527a907ad8, a merge of #9457's e75a7104b9,** which carries `main` 8eaf82f315 through #8939 and #7395 ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/42336896951)). - **Clean:** #7395's merge takes the one conflict with `main`, JJenkx's #15305's debt entry, and this PR's own lines are unchanged. - **×10:** `agc_driver_many_direct_samplers` and every test matching `^agc_driver_pointer_`, `^agc_driver_nested_`, `^agc_shader_nested_`, `^agc_driver_image_table`, `^agc_shader_memory`, `^agc_shader_disk_cache` or `^agc_shader_sampler_limits`, which takes in every test in this PR's diff over `main`. Linux: 34 run, 34 pass, 0 skip, 0 fail. Windows: 36 run, 10 pass, 26 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 327 and 344 tests on Linux and 358 and 371 on Windows, with 0 failed. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **0fd3c90456, a merge of #9457's 2bbcdd60fc,** which carries `main` 006d11fca5 through #8939 and #7395 ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/42370694779)). - **Clean:** #7395's merge takes the one conflict with `main`, frankea's #9020's `FormatVersion` 57, and `FormatVersion` stays 70 here. This PR's own lines are unchanged apart from the `FormatVersion` line's old value. - **×10:** `agc_driver_many_direct_samplers` and every test matching `^agc_driver_pointer_`, `^agc_driver_nested_`, `^agc_shader_nested_`, `^agc_driver_image_table`, `^agc_shader_memory`, `^agc_shader_disk_cache` or `^agc_shader_sampler_limits`, which takes in every test in this PR's diff over `main`. Linux: 34 run, 34 pass, 0 skip, 0 fail. Windows: 36 run, 10 pass, 26 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 327 and 344 tests on Linux and 358 and 371 on Windows, with 0 failed. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **f086739418, a merge of #9457's e2c68c094a,** which carries `main` dd7c8de5de through #8939 and #7395 ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/42510095923)). - **The conflict:** `docs/dev/debt/shader.md`, where this PR's pointer-keyed chase entry sits next to #10489's rewording of the image-table entry (the image limit is now 128). Both are kept. `FormatVersion` stays 70, and this PR's own lines are unchanged apart from the `FormatVersion` line's old value. - **×10:** `agc_driver_many_direct_samplers` and every test matching `^agc_driver_pointer_`, `^agc_driver_nested_`, `^agc_shader_nested_`, `^agc_driver_image_table`, `^agc_shader_memory`, `^agc_shader_disk_cache` or `^agc_shader_sampler_limits`, which takes in every test in this PR's diff over `main`. Linux: 48 run, 48 pass, 0 skip, 0 fail. Windows: 50 run, 10 pass, 40 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 344 and 346 tests on Linux and 375 and 373 on Windows, with 0 failed. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **b55705b34f: 0a581f4a15, a merge of #9457's 5be1abeb41, and the format commit b55705b34f,** which carries `main` 017bd95f5f through #9457, #8939 and #7395 ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/42749048270)). - **The conflict:** `FormatVersion`, where #9457 now takes 81, above this PR's 70. The merge takes 81, and the format commit moves this PR to 82. This PR's own lines are unchanged apart from the `FormatVersion` line. - **×10:** `agc_driver_many_direct_samplers` and every test matching `^agc_driver_pointer_`, `^agc_driver_nested_`, `^agc_shader_nested_`, `^agc_driver_image_table`, `^agc_shader_memory`, `^agc_shader_disk_cache` or `^agc_shader_sampler_limits`, which takes in every test in this PR's diff over `main`. Linux: 48 run, 48 pass, 0 skip, 0 fail. Windows: 50 run, 10 pass, 40 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 350 and 348 tests on Linux with 0 failed, and 380 and 375 on Windows. On Windows, libkernel's `guest_kernel_resident_fmem_export` and `guest_kernel_resident_fmem_export_patched` fail: the same harness fails them on `main` 7259cce111 alone ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/42693594401)), and `main`'s own Windows job passes them, so they come from the verify harness, not this PR. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **Every `agc` test:** Every `agc` test also ran once on #9749's tree, which holds this PR ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/42749191754)): Linux 1,530 run, 1,437 pass, 93 skip, 0 fail; Windows 1,573 run, 467 pass, 1,106 skip (no Vulkan device), 0 fail. - **56416624f1, a merge of #9457's d007acef13, without conflicts,** which carries `main` e22c5fb941 through #9457, #8939 and #7395 ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/43483090708)). - **×10:** `agc_driver_many_direct_samplers` and every test matching `^agc_driver_pointer_`, `^agc_driver_nested_`, `^agc_shader_nested_`, `^agc_driver_image_table`, `^agc_shader_memory`, `^agc_shader_disk_cache` or `^agc_shader_sampler_limits`, which takes in every test in this PR's diff over `main` and `main`'s new `agc_shader_memory_coherent_atomic_loads`. Linux: 49 run, 49 pass, 0 skip, 0 fail. Windows: 51 run, 11 pass, 40 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 379 and 372 tests on Linux and 406 and 400 on Windows, with 0 failed. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **Validation on #9749's 39b162b371**, which holds this PR's 56416624f1 (the run tested ad2a93618b, which has the same tree): `main` e22c5fb941 against that head on GitHub's Linux runner (lavapipe, layer 1.3.275), with `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, `ANYPS5_NO_SHADER_CACHE=1` and `ANYPS5_REQUIRE_VULKAN=1` under `ctest -V`, over the stack's focused tests ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/43482127375)). The loader inserted the layer 27 times on `main` and 43 on the head. The only VUID in either log is `VUID-VkDeviceCreateInfo-pNext-pNext`, which that layer logs at `vkCreateDevice` on `main` too, for a structure newer than its 1.3.275 header (`VkStructureType` 1000574000), so the head adds none. That message fails the same 14 tests in both arms, `agc_driver_image_table` and its 13 `_packed` variants, because the run's failure regex matches any `VUID-`; the other tests pass, 19 on `main` and 36 on the head, the head's including this PR's three `agc_driver_pointer_chase_*` tests, which `main` doesn't have. The run counts 14 "was not found but was requested" matches per arm, and each is ctest printing that failure regex for one of the 14; no loader line in either log says the layer was missing. - **NVIDIA GeForce RTX 3080 Ti, by @mrfelek** ([comment](https://github.com/boykopovar/AnyPS5/pull/9969#issuecomment-6863894448)): the same pair on #9749's 39b162b371, which holds this PR's 56416624f1, Linux, driver 615.71.09, layer 1.4.357. The head passes its 49 tests in 3 of 3 runs with no `VUID-` line. The `main` e22c5fb941 arm is his earlier run on the same machine ([comment](https://github.com/boykopovar/AnyPS5/pull/9969#issuecomment-6863039829)), 32 of 32 in 3 of 3 runs with none. No run printed "was not found but was requested", and the only tests without `Insert instance layer "VK_LAYER_KHRONOS_validation"` are nine CPU-only ones that print no Vulkan output. - **ae857ccc9b, a merge of #9457's b0b62f859b, without conflicts,** which carries `main` bd278f3654 through #9457, #8939 and #7395 ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/43576618865)). - **`FormatVersion`:** `main`'s 69, this PR's 82. #7395's merge takes #19530's move of `main` from 68 to 69, and this PR's own diff over #9457 is unchanged. - **×10:** the same tests as on 56416624f1. Linux: 49 run, 49 pass, 0 skip, 0 fail. Windows: 51 run, 11 pass, 40 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 380 and 376 tests on Linux and 410 and 404 on Windows, with 0 failed. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes only `precise_wait`'s median bounds on GitHub's hosted runners. - **The Windows tree:** the run's tree had Sankalp7317's 4-line `_putenv_s` test fix ([#19899](https://github.com/boykopovar/AnyPS5/pull/19899)) on top, because `main`'s Windows test build breaks without it ("'setenv' was not declared" in `UploadCacheReadOnlyFlush.cpp`, from #18037); it isn't on this branch. - **99e3511c6a, a merge of #9457's d896ff422b,** which carries `main` 328cbf673e through #9457, #8939 and #7395 ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/43816572690), [with #21255's test change](https://github.com/EagleBearerYS/AnyPS5/actions/runs/43832108152)). - **The conflict:** only `FormatVersion`, where #9457 now takes 95, above this PR's 82. The merge moves this PR to 96. This PR's own lines are unchanged apart from the `FormatVersion` line. - **×10:** the same tests as on ae857ccc9b. Linux: 56 run, 55 pass, 0 skip, 1 fail. Windows: 58 run, 11 pass, 47 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 391 and 390 tests on Linux and 421 and 417 on Windows, with 0 failed. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes only `precise_wait`'s median bounds on GitHub's hosted runners. - **The Linux failure, `agc_driver_image_table_packed_guards`, fails as on `main`:** three identical "stage 4 pc 0x68" records, then "unrecoverable packed table format was not poisoned", the same lines as in `main`'s own Linux job at e249fc47b5 ([job](https://github.com/boykopovar/AnyPS5/actions/runs/43816702928/job/133145283420)). fernandomcrsilva's open #21255 changes that test. With #21255's test change on top of #9749's 510fd2384d, which holds this PR's 99e3511c6a ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/43832108152)), `agc_driver_image_table_packed_guards` passes 10 of 10, and so do the same tests on that tree: Linux 57 run, 57 pass, 0 skip, 0 fail; Windows 59 run, 11 pass, 48 skip (no Vulkan device), 0 fail. - **`guest_thermal_sensors` in that run:** libkernel's `guest_thermal_sensors` reached its 20 s timeout in the Linux suite. It times out in every run I have on GitHub's Intel Xeon 6975P-C runners, `main` 0694c4cbd6 alone included ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/43832502375)), and passes in this PR's own ×10 above and in `main`'s own job. This PR changes no libkernel file. - **The Windows tree:** the runs' trees had Sankalp7317's 4-line `_putenv_s` test fix ([#19899](https://github.com/boykopovar/AnyPS5/pull/19899)) on top, because `main`'s Windows test build breaks without it ("'setenv' was not declared" in `UploadCacheReadOnlyFlush.cpp`, from #18037); it isn't on this branch. - **NVIDIA GeForce RTX 4090, by @domx4q, with the Khronos validation layer** ([comment](https://github.com/boykopovar/AnyPS5/pull/9633#issuecomment-6927286873)): Arch Linux (kernel 7.3.4), GCC 16.2.1 Release, driver 620.70.06, Vulkan 1.4.357, validation layer 1.4.363.1, with `ANYPS5_REQUIRE_VULKAN=1` and `ANYPS5_NO_SHADER_CACHE=1`. This head 99e3511c6a merged onto `main` e4caa07950 (their merge ee7d6e9091, clean), against `main` e4caa07950 alone, `ctest -R 'pointer|image_table|nested|agc_shader_disk_cache|agc_shader_memory|bda_anchor'`. `main`: 78 of 78 pass. This PR: 94 of 94 pass, including the 16 tests `main` doesn't have: this PR's three (`agc_driver_pointer_chase_table`, `_words_table` and `_edited_table`) and the 13 of #9457, #8939 and #7395. No test skips on either side. The layer was inserted 43 times on `main` and 58 times with this PR; the tests without an insert are CPU-only. No `VUID-` line on either side, and every test that creates a device selected the RTX 4090. - **#8939's null record pointer fix, by the merge 3fb58d68c5** of #9457's new head (test only, `tests/execution/ImageTable.cpp`), for #8939's `agc_driver_pointer_phi_lane_and_table` and `agc_driver_pointer_phi_lane_not_table`. @frankea's Windows 11 RTX 4090 run ([comment](https://github.com/boykopovar/AnyPS5/pull/8939#issuecomment-6963380582)) failed them on #8939, #9457, #9790 and #9969, with `selected the descriptor at 0x0: unmapped`; this PR carries the same tests. The cause, the fix and a verify-only Linux run with the records mapped at 1 GiB, red before the fix and green after, are in #8939's Tested: the records sat below 4 GiB, so an arm whose low word is 0 selected a null pointer. old..new touches only `ImageTable.cpp`. - **Linux at the normal layout, ×10** ([job](https://github.com/EagleBearerYS/AnyPS5/actions/runs/44197642805/job/134443162689), on an earlier commit with the same tree): the 18 `^agc_driver_pointer_` and `^agc_driver_nested_` tests pass, none skipped. - **Windows** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/44211186787)), with Sankalp7317's 4-line `_putenv_s` fix ([#19899](https://github.com/boykopovar/AnyPS5/pull/19899)) merged for the run only: the first attempt failed in the libkernel suite, where `guest_timed_wait_cpu` exited with `0xc0000409`. The re-run of the Windows job ([attempt 2](https://github.com/EagleBearerYS/AnyPS5/actions/runs/44211186787/attempts/2)) passed: the build, the libc and libkernel suites with 421 and 417 tests and 0 failed, and the 18 tests skipping (no Vulkan device). old..new touches only `ImageTable.cpp`. The Windows GPU case itself can only be re-run by a tester. - **2f104ac486, a merge of #9457's dbe3b94942,** which carries `main` d89f26516c through #9457, without conflicts ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/44433376792), [with #21255's test change](https://github.com/EagleBearerYS/AnyPS5/actions/runs/44451782929)). - **No conflicts:** this PR's `FormatVersion` stays 96, and its own lines are unchanged. - **×10:** `agc_driver_many_direct_samplers` and every test matching `^agc_driver_pointer_`, `^agc_driver_nested_`, `^agc_shader_nested_`, `^agc_driver_image_table`, `^agc_shader_memory`, `^agc_shader_disk_cache` or `^agc_shader_sampler_limits`, which takes in every test in this PR's diff over `main`. Linux: 56 run, 55 pass, 0 skip, 1 fail. Windows: 58 run, 11 pass, 47 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 410 and 411 tests on Linux and 439 and 432 on Windows, with 0 failed apart from `guest_thermal_sensors` (below). The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes only `precise_wait`'s median bounds on GitHub's hosted runners. - **The Linux failure, `agc_driver_image_table_packed_guards`, also fails on `main` d89f26516c alone** in the same harness on GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/44469816375): the `^agc_driver_image_table` tests ×10, 29 run, only this one fails). `main`'s own Linux job, on the project's self-hosted runner, passes it at 244b338dd0 ([job](https://github.com/boykopovar/AnyPS5/actions/runs/44455102712/job/135332957346)). fernandomcrsilva's open #21255 changes that test. With #21255's test change on top of #9749's bee5a91996, which holds this PR's 2f104ac486 ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/44451782929)), `agc_driver_image_table_packed_guards` passes 10 of 10, and so do the same tests on that tree: Linux 57 run, 57 pass, 0 skip, 0 fail; Windows 59 run, 11 pass, 48 skip (no Vulkan device), 0 fail. - **`guest_thermal_sensors`:** libkernel's `guest_thermal_sensors` reached its 20 s timeout in the Linux suite, on one of GitHub's Intel Xeon 6975P-C runners. It times out in every run I have on those runners, `main` 0694c4cbd6 alone included ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/43832502375)), and passed in this refresh's runs on AMD EPYC runners. This PR changes no libkernel file. - **The Windows tree:** the runs' trees had Sankalp7317's 4-line `_putenv_s` test fix ([#19899](https://github.com/boykopovar/AnyPS5/pull/19899)) on top, because `main`'s Windows test build breaks without it ("'setenv' was not declared" in `UploadCacheReadOnlyFlush.cpp`, from #18037); it isn't on this branch. - **AMD Radeon RX 9070 XT (RADV GFX1201), by @hugodearaujo, with the Khronos validation layer, in #9749's arm** ([comment](https://github.com/boykopovar/AnyPS5/pull/9969#issuecomment-7013222450)): Arch Linux (kernel 7.3.4), RADV (Mesa 26.2.7), GCC 16.2.1 Release, `BUILD_TESTING=ON`, validation layer 1.4.363, with `ANYPS5_REQUIRE_VULKAN=1` and `ANYPS5_NO_SHADER_CACHE=1`, `ctest -V -R '^agc_driver_pointer_|^agc_driver_nested_|^agc_shader_nested_|^agc_driver_image_table|^agc_shader_memory|^agc_shader_disk_cache|^agc_shader_sampler_limits'`, 3 runs per arm. #9749's bee5a91996 (with #7395, #8939, #9457 and #9633; their merge b726f51423), merged onto `main` e1ab104e0a (clean), against `main` e1ab104e0a alone; it carries this PR's head 2f104ac486. `main`: 39 tests, 38 pass, 1 skip in each run. The arm: 56 tests, 55 pass, 1 skip in each run; the counts include the tests of the arm's other PRs. The one skip is the same in every arm, `main`'s included: `agc_driver_image_table_vouched_lookups` (the device reports host-imported pages written after a GPU read). The layer was inserted 32 times on `main` and 48 times in each arm, and never reported missing. No `VUID-` line in any arm, and every Vulkan test selected the RX 9070 XT. - **NVIDIA RTX 4060 (driver 616.56), Windows 11, by @ShootanoJumper** ([comment](https://github.com/boykopovar/AnyPS5/pull/9633#issuecomment-7024113752)): Windows 11 23H2 (22631), Ryzen 7 5700X, WinLibs GCC 15.2.0 r7, Release, merged into `main` ed1def4dd4 with `git merge --no-ff`. No validation layer was installed, so these runs say nothing about `VUID-` errors. This head 2f104ac486: the new tests pass, and of the 1302 tests the change reaches, the only failures are ones `main` also fails on that GPU (#23232, #23711, #23942). - **f96acd992d, a merge of #9457's ef586f90ca,** which carries `main` d50640e264 through #9457, without conflicts ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/44659243242), [with #21255's test change](https://github.com/EagleBearerYS/AnyPS5/actions/runs/44660709077)). - **No conflicts:** this PR's `FormatVersion` stays 96, and its own lines are unchanged. - **×10:** `agc_driver_many_direct_samplers` and every test matching `^agc_driver_pointer_`, `^agc_driver_nested_`, `^agc_shader_nested_`, `^agc_driver_image_table`, `^agc_shader_memory`, `^agc_shader_disk_cache` or `^agc_shader_sampler_limits`, which takes in every test in this PR's diff over `main`. Linux: 56 run, 55 pass, 0 skip, 1 fail. Windows: 58 run, 11 pass, 47 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 410 and 417 tests on Linux and 439 and 438 on Windows, with 0 failed apart from `guest_thermal_sensors` (below). The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes only `precise_wait`'s median bounds on GitHub's hosted runners. - **The Linux failure, `agc_driver_image_table_packed_guards`, also fails on `main` d89f26516c alone** in the same harness on GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/44469816375): the `^agc_driver_image_table` tests ×10, 29 run, only this one fails). `main`'s own Linux job, on the project's self-hosted runner, passes it at 244b338dd0 ([job](https://github.com/boykopovar/AnyPS5/actions/runs/44455102712/job/135332957346)). fernandomcrsilva's open #21255 changes that test. With #21255's test change on top of #9749's dd2c6b1aee, which holds this PR's f96acd992d ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/44660709077)), `agc_driver_image_table_packed_guards` passes 10 of 10, and so do the same tests on that tree: Linux 57 run, 57 pass, 0 skip, 0 fail. That run's Windows job reached the job time limit while building on an AMD EPYC 7763 runner, before any test ran. - **`guest_thermal_sensors`:** libkernel's `guest_thermal_sensors` reached its 20 s timeout in the Linux suite, on one of GitHub's Intel Xeon 6975P-C runners. It times out in every run I have on those runners, `main` 0694c4cbd6 alone included ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/43832502375)), and passed in this refresh's runs on Intel Xeon Platinum 8573C and AMD EPYC runners. This PR changes no libkernel file. - **The Windows tree:** the runs' trees had Sankalp7317's 4-line `_putenv_s` test fix ([#19899](https://github.com/boykopovar/AnyPS5/pull/19899)) on top, because `main`'s Windows test build breaks without it ("'setenv' was not declared" in `UploadCacheReadOnlyFlush.cpp`, from #18037); it isn't on this branch. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: #9457 (stacked on #8939) - [x] Fixes: none - [x] Unblocks: Ghostrunner (PPSA03685) #7320: compute shader 0x200c520000 past `LoadAddressU32@pc=0x0002ef78` with #10000, in [TheSovietWaffle's replay](https://github.com/boykopovar/AnyPS5/pull/8939#issuecomment-6542038051) (the next stop is the 64-image cap) - [x] GPUs tested: Mesa llvmpipe (LLVM 20.1.2), Ubuntu 24.04, on GitHub's Linux runner and a cloud Linux machine, with the validation comparison (Mesa 25.2.8) on GitHub's runner; NVIDIA RTX 2000 Ada Generation (driver 595.99.02, Ubuntu 26.04.1; TechLevelZero's NVIDIA bot); NVIDIA GeForce RTX 3070 (driver 595.99.02) and lavapipe (Mesa 26.0.3, LLVM 21.1.8), Ubuntu 26.04, in jotitadev's run; NVIDIA GeForce RTX 5070 Ti (621.01) and an AMD Radeon RDNA2 iGPU (AMD 2026.04.17), Windows 11, in wachi35676's run; NVIDIA GeForce RTX 4090 (driver 620.70.06, Arch Linux, with the validation layer), by @domx4q; AMD Radeon RX 9070 XT (RADV, Mesa 26.2.7, Arch Linux, with the validation layer), by @hugodearaujo; NVIDIA RTX 4060 (driver 616.56, Windows 11, no validation layer), by @ShootanoJumper - [x] AI-assisted: yes
EagleBearerYS commented 2026-10-22 05:38:06 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-22T05:38:06Z.


@Tamalero @oneandonlydean this draft follows a conditional pointer chase through a V# behind a pointer-keyed record pointer, the shape we read behind the 0x10b84 refusal on #8939. Its branch, fix/shader-pointer-chase-closure at 6a72841083, includes #9457, #8939, #7395 and #7223, so one build of it is enough. Would you run Ratchet & Clank: Rift Apart (PPSA01474) on it and post where it stops after 0x10b84, or that it doesn't? If it still stops at 0x10b84, please post the stderr lines around the refusal: they show whether the chase's two words come from Phis in different blocks, a join this PR still refuses.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6333615832 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9633#issuecomment-6333615832). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-22T05:38:06Z. --- @Tamalero @oneandonlydean this draft follows a conditional pointer chase through a V# behind a pointer-keyed record pointer, the shape we read behind the 0x10b84 refusal on #8939. Its branch, `fix/shader-pointer-chase-closure` at 6a72841083, includes #9457, #8939, #7395 and #7223, so one build of it is enough. Would you run Ratchet & Clank: Rift Apart (PPSA01474) on it and post where it stops after 0x10b84, or that it doesn't? If it still stops at 0x10b84, please post the stderr lines around the refusal: they show whether the chase's two words come from Phis in different blocks, a join this PR still refuses.
oneandonlydean commented 2026-10-22 06:13:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-22T06:13:56Z.


@EagleBearerYS thanks, I'll build your branch at 6a72841083 as is and run PPSA01474 on it. If it stops at or near 0x10b84 again, I'll post the stop and the stderr lines around the refusal here. It's queued behind today's PR runs, so it'll be a few hours.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6334113029 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9633#issuecomment-6334113029). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-22T06:13:56Z. --- @EagleBearerYS thanks, I'll build your branch at 6a72841083 as is and run PPSA01474 on it. If it stops at or near 0x10b84 again, I'll post the stop and the stderr lines around the refusal here. It's queued behind today's PR runs, so it'll be a few hours.
jotitadev commented 2026-10-22 07:03:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-22T07:03:18Z.

Review: COMMENTED


Run on NVIDIA, since the tests so far are llvmpipe only.

Machine: Ubuntu 26.04, i7-8700, GCC 15.2, Release, full build with BUILD_TESTING=ON. GPUs: NVIDIA GeForce RTX 3070 (driver 595.99.02, Linux) and lavapipe (Mesa 26.0.3, LLVM 21.1.8). Head 6a7284108 (with its stack) merged into main da54c652e.

  • agc_driver_pointer_chase_table (agc_driver_image_table_tests --pointer-chase) passes 3 of 3 on both devices, including the moved link, the link outside the snapshot, and the refused loop and five-step chase.
  • Control: the same tree with this PR's own ResourceTracker.cpp change reverse-applied (the diff from #9457's head to this head) fails on both devices the way the title does: GetImageResource dword 0 is not a valid runtime value; chain: LoadAddressU32@pc=0x000000c0(GetAddressResource(Phi(Phi(ReadConstBuffer@pc=0x00000074(....
  • ^agc suite, excluding the flip, display DCC and lds_atomics64 tests: 875/878 on the 3070 and 877/878 on lavapipe. The failures are the same as on main on this machine: the three sample_order tests on the 3070 (no 2x2 sample-location grid at 2 samples) and multisample_retirement on lavapipe.

So the chase also works on a real GPU with subgroup 32, not only on llvmpipe's subgroup 8.

GPUs tested: NVIDIA GeForce RTX 3070 (595.99.02, Linux), lavapipe

Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5610393609 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9633#pullrequestreview-5610393609). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-22T07:03:18Z. **Review:** COMMENTED --- Run on NVIDIA, since the tests so far are llvmpipe only. Machine: Ubuntu 26.04, i7-8700, GCC 15.2, Release, full build with `BUILD_TESTING=ON`. GPUs: NVIDIA GeForce RTX 3070 (driver 595.99.02, Linux) and lavapipe (Mesa 26.0.3, LLVM 21.1.8). Head 6a7284108 (with its stack) merged into `main` da54c652e. - `agc_driver_pointer_chase_table` (`agc_driver_image_table_tests --pointer-chase`) passes 3 of 3 on both devices, including the moved link, the link outside the snapshot, and the refused loop and five-step chase. - Control: the same tree with this PR's own `ResourceTracker.cpp` change reverse-applied (the diff from #9457's head to this head) fails on both devices the way the title does: `GetImageResource dword 0 is not a valid runtime value; chain: LoadAddressU32@pc=0x000000c0(GetAddressResource(Phi(Phi(ReadConstBuffer@pc=0x00000074(...`. - `^agc` suite, excluding the flip, display DCC and `lds_atomics64` tests: 875/878 on the 3070 and 877/878 on lavapipe. The failures are the same as on `main` on this machine: the three `sample_order` tests on the 3070 (no 2x2 sample-location grid at 2 samples) and `multisample_retirement` on lavapipe. So the chase also works on a real GPU with subgroup 32, not only on llvmpipe's subgroup 8. GPUs tested: NVIDIA GeForce RTX 3070 (595.99.02, Linux), lavapipe Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
EagleBearerYS commented 2026-10-22 08:42:03 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-22T08:42:03Z.


@jotitadev thanks for the RTX 3070 run with the reverse-applied control. A real GPU at subgroup 32 was the gap in this draft's testing. It's in Tested and on the GPUs tested line now.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6336566016 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9633#issuecomment-6336566016). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-22T08:42:03Z. --- @jotitadev thanks for the RTX 3070 run with the reverse-applied control. A real GPU at subgroup 32 was the gap in this draft's testing. It's in Tested and on the GPUs tested line now.
MarcZX10 commented 2026-10-22 09:21:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T09:21:43Z.


The current evidence is strong for the modeled pointer-chase path: the focused test has a reverse-applied negative control, Linux validation-layer A/B shows no new VUIDs, and an independent RTX 3070 run confirms subgroup-32 behavior. The remaining title-specific gate is the promised PPSA01474 run on this exact stack; the body correctly says Unblocks: none yet until that confirms the 0x10b84 stop is passed. Please keep the draft until that result is available, then update the Game bring-up discussion and Unblocks checklist with its link. Also keep the declared stack order and disk-cache version coordinated with the listed overlapping PRs before merge.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6337316728 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9633#issuecomment-6337316728). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T09:21:43Z. --- The current evidence is strong for the modeled pointer-chase path: the focused test has a reverse-applied negative control, Linux validation-layer A/B shows no new VUIDs, and an independent RTX 3070 run confirms subgroup-32 behavior. The remaining title-specific gate is the promised PPSA01474 run on this exact stack; the body correctly says `Unblocks: none yet` until that confirms the 0x10b84 stop is passed. Please keep the draft until that result is available, then update the Game bring-up discussion and `Unblocks` checklist with its link. Also keep the declared stack order and disk-cache version coordinated with the listed overlapping PRs before merge.
Tamalero commented 2026-10-22 09:59:01 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Tamalero on 2026-10-22T09:59:01Z.


@EagleBearerYS ran it: PPSA01474 (content 01.005.003) gets past the 0x10b84 stop with this PR, and stops on the next T# load, whose pointer goes through a third chased read.

Setup: Linux (CachyOS, kernel 7.2.9), GCC 16.2.1, Release, RTX 4090 (NVIDIA 615.78.08). The same relinked executable for both builds, a cold shader cache, no input (the stop is in the black load after the logos).

Build Result
Control: c00cb0f87 (this PR's parent, so the same stack without the chase) 321 s, compute 0x116bb67b00, LoadAddressU32@pc=0x10b84, chain through ReadConstBuffer@pc=0xfd94 and @pc=0x10350 (the stop from #8939)
This PR: 6a7284108 351 s, no refusal at 0x10b84; new stop in compute 0x116bb67100 at LoadAddressU32@pc=0x13bc0

Same shader on both builds: a second control run with APS5_DUMP_SHADERS=1 stopped on a sibling, compute 0x116bb5e100, at the same site at pc=0xf898 (its chase reads are at 0xeaa8 and 0xf064). Replaying its prepare request offline with agc_shader_replay from each build:

  • control: refused at LoadAddressU32@pc=0xf898;
  • this PR: passes 0xf898, refused at LoadAddressU32@pc=0x128d4, a later T# load.

So the chase is followed on the title's own shader, not only on the test one.

The next stop: in both refusals (0x13bc0 in game, 0x128d4 in the replay), the pointer Phi has the two chase reads you modelled plus a third read:

  • in game: ReadConstBuffer@pc=0x12e9c(GetBufferResource(LoadAddressU32@pc=0x12de8(GetAddressResource, …)));
  • in the replay: ReadConstBuffer@pc=0x11bb0 through a V# loaded at pc=0x11afc from the current pointer.

In the replayed shader that third read is an s_buffer_load_dwordx16, where the two reads you modelled are x4 (0xeaa8) and x8 (0xf064). The pointer also still passes through the lane-mask BitwiseAnd32(…, CompositeExtractU32x4(Ballot, Immediate)) arms. This log can't show whether the refusal comes from the third read's offset or word position, a V# at an offset other than 0x60, or the Phi join you mentioned. The tracker logs nothing before the throw, so the chain below is all the stderr has. If it helps, I can run APS5_DUMP_IR on 0x116bb67100 and post the blocks around the third read.

Full refusal, in game (compute 0x116bb67100)
compute shader 0x116bb67100: shader 0x116bb67100 stage 0: ShaderRecompiler::Recompile: GetImageResource dword 0 is not a valid runtime value; chain: LoadAddressU32@pc=0x00013bc0(GetAddressResource(Phi(Phi(Phi(Phi(Phi(Phi(Phi, Phi), Phi(Phi, Phi)), BitwiseAnd32(Phi(Phi, Phi), CompositeExtractU32x4(Ballot, Immediate))), Phi(Phi(Phi(Phi, Phi), Phi(Phi, ReadConstBuffer@pc=0x00010350)), Phi(Phi(Phi, Phi), Phi(Phi, Phi)))), Phi(Phi(Phi(Phi(Phi, Phi), BitwiseAnd32(Phi, CompositeExtractU32x4)), Phi(Phi(Phi, Phi), Phi(Phi, Phi))), ReadConstBuffer@pc=0x00012e9c(GetBufferResource(LoadAddressU32@pc=0x00012de8(GetAddressResource, Immediate, Immediate, Immediate), LoadAddressU32@pc=0x00012de8(GetAddressResource, Immediate, Immediate, Immediate), LoadAddressU32@pc=0x00012de8(GetAddressResource, Immediate, Immediate, Immediate), LoadAddressU32@pc=0x00012de8(GetAddressResource, Immediate, Immediate, Immediate)), Immediate))), Phi(Phi(Phi(Phi(Phi(Phi, Phi), Phi(Phi, ReadConstBuffer@pc=0x00010350)), Phi(Phi(Phi, Phi), Phi(Phi, Phi))), BitwiseAnd32(Phi(Phi(Phi, BitwiseAnd32), Phi(Phi, Phi)), CompositeExtractU32x4(Ballot(Immediate), Immediate))), Phi(Phi(Phi(Phi(Phi, Phi), Phi(Phi, Phi)), Phi(Phi(Phi, Phi), ReadConstBuffer@pc=0x00010350(GetBufferResource, Immediate))), Phi(Phi(Phi(Phi, Phi), Phi(Phi, ReadConstBuffer@pc=0x0000fd94)), Phi(Phi(Phi, Phi), Phi(Phi, Phi)))))), Phi(Phi(Phi(Phi(Phi(Phi(Phi, Phi), Phi(Phi, Phi)), Phi(Phi(Phi, Phi), ReadConstBuffer@pc=0x00010350(GetBufferResource, Immediate))), Phi(Phi(Phi(Phi, Phi), Phi(Phi, ReadConstBuffer@pc=0x0000fd94)), Phi(Phi(Phi, Phi), Phi(Phi, Phi)))), Phi(Phi(Phi(Phi(Phi, Phi), Phi(Phi, ReadConstBuffer@pc=0x00010350)), Phi(Phi(Phi, Phi), Phi(Phi, Phi))), ReadConstBuffer@pc=0x00012e9c(GetBufferResource(LoadAddressU32@pc=0x00012de8(GetAddressResource, Immediate, Immediate, Immediate), LoadAddressU32@pc=0x00012de8(GetAddressResource, Immediate, Immediate, Immediate), LoadAddressU32@pc=0x00012de8(GetAddressResource, Immediate, Immediate, Immediate), LoadAddressU32@pc=0x00012de8(GetAddressResource, Immediate, Immediate, Immediate)), Immediate))), Phi(Phi(Phi(Phi(Phi(Phi, Phi), Phi(Phi, ReadConstBuffer@pc=0x0000fd94)), Phi(Phi(Phi, Phi), Phi(Phi, Phi))), Phi(Phi(Phi(Phi, Phi), Phi(Phi, Phi)), ReadConstBuffer@pc=0x00010350(GetBufferResource(LoadAddressU32@pc=0x00010338, LoadAddressU32@pc=0x00010338, LoadAddressU32@pc=0x00010338, LoadAddressU32@pc=0x00010338), Immediate))), Phi(Phi(Phi(Phi(Phi, Phi), Phi(Phi, Phi)), Phi(Phi(Phi, Phi), ReadConstBuffer@pc=0x0000fd94(GetBufferResource, Immediate))), Phi(Phi(Phi(Phi, Phi), Phi(Phi, CompositeExtractU32x4)), Phi(Phi(Phi, Phi), Phi(Phi, ReadConstBuffer@pc=0x00001aa8))))))), Immediate, Immediate, Immediate)

Tested and written by Claude (AI assistant) on a contributor's machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6338006613 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9633#issuecomment-6338006613). Originally posted by [Tamalero](https://github.com/Tamalero) on 2026-10-22T09:59:01Z. --- @EagleBearerYS ran it: PPSA01474 (content 01.005.003) gets past the 0x10b84 stop with this PR, and stops on the next T# load, whose pointer goes through a third chased read. **Setup:** Linux (CachyOS, kernel 7.2.9), GCC 16.2.1, Release, RTX 4090 (NVIDIA 615.78.08). The same relinked executable for both builds, a cold shader cache, no input (the stop is in the black load after the logos). | Build | Result | |---|---| | Control: c00cb0f87 (this PR's parent, so the same stack without the chase) | 321 s, compute 0x116bb67b00, `LoadAddressU32@pc=0x10b84`, chain through `ReadConstBuffer@pc=0xfd94` and `@pc=0x10350` (the stop from #8939) | | This PR: 6a7284108 | 351 s, **no refusal at 0x10b84**; new stop in compute 0x116bb67100 at `LoadAddressU32@pc=0x13bc0` | **Same shader on both builds:** a second control run with `APS5_DUMP_SHADERS=1` stopped on a sibling, compute 0x116bb5e100, at the same site at `pc=0xf898` (its chase reads are at 0xeaa8 and 0xf064). Replaying its `prepare` request offline with `agc_shader_replay` from each build: - control: refused at `LoadAddressU32@pc=0xf898`; - this PR: passes 0xf898, refused at `LoadAddressU32@pc=0x128d4`, a later T# load. So the chase is followed on the title's own shader, not only on the test one. **The next stop:** in both refusals (0x13bc0 in game, 0x128d4 in the replay), the pointer Phi has the two chase reads you modelled plus a third read: - in game: `ReadConstBuffer@pc=0x12e9c(GetBufferResource(LoadAddressU32@pc=0x12de8(GetAddressResource, …)))`; - in the replay: `ReadConstBuffer@pc=0x11bb0` through a V# loaded at `pc=0x11afc` from the current pointer. In the replayed shader that third read is an `s_buffer_load_dwordx16`, where the two reads you modelled are `x4` (0xeaa8) and `x8` (0xf064). The pointer also still passes through the lane-mask `BitwiseAnd32(…, CompositeExtractU32x4(Ballot, Immediate))` arms. This log can't show whether the refusal comes from the third read's offset or word position, a V# at an offset other than 0x60, or the Phi join you mentioned. The tracker logs nothing before the throw, so the chain below is all the stderr has. If it helps, I can run `APS5_DUMP_IR` on 0x116bb67100 and post the blocks around the third read. <details><summary>Full refusal, in game (compute 0x116bb67100)</summary> ``` compute shader 0x116bb67100: shader 0x116bb67100 stage 0: ShaderRecompiler::Recompile: GetImageResource dword 0 is not a valid runtime value; chain: LoadAddressU32@pc=0x00013bc0(GetAddressResource(Phi(Phi(Phi(Phi(Phi(Phi(Phi, Phi), Phi(Phi, Phi)), BitwiseAnd32(Phi(Phi, Phi), CompositeExtractU32x4(Ballot, Immediate))), Phi(Phi(Phi(Phi, Phi), Phi(Phi, ReadConstBuffer@pc=0x00010350)), Phi(Phi(Phi, Phi), Phi(Phi, Phi)))), Phi(Phi(Phi(Phi(Phi, Phi), BitwiseAnd32(Phi, CompositeExtractU32x4)), Phi(Phi(Phi, Phi), Phi(Phi, Phi))), ReadConstBuffer@pc=0x00012e9c(GetBufferResource(LoadAddressU32@pc=0x00012de8(GetAddressResource, Immediate, Immediate, Immediate), LoadAddressU32@pc=0x00012de8(GetAddressResource, Immediate, Immediate, Immediate), LoadAddressU32@pc=0x00012de8(GetAddressResource, Immediate, Immediate, Immediate), LoadAddressU32@pc=0x00012de8(GetAddressResource, Immediate, Immediate, Immediate)), Immediate))), Phi(Phi(Phi(Phi(Phi(Phi, Phi), Phi(Phi, ReadConstBuffer@pc=0x00010350)), Phi(Phi(Phi, Phi), Phi(Phi, Phi))), BitwiseAnd32(Phi(Phi(Phi, BitwiseAnd32), Phi(Phi, Phi)), CompositeExtractU32x4(Ballot(Immediate), Immediate))), Phi(Phi(Phi(Phi(Phi, Phi), Phi(Phi, Phi)), Phi(Phi(Phi, Phi), ReadConstBuffer@pc=0x00010350(GetBufferResource, Immediate))), Phi(Phi(Phi(Phi, Phi), Phi(Phi, ReadConstBuffer@pc=0x0000fd94)), Phi(Phi(Phi, Phi), Phi(Phi, Phi)))))), Phi(Phi(Phi(Phi(Phi(Phi(Phi, Phi), Phi(Phi, Phi)), Phi(Phi(Phi, Phi), ReadConstBuffer@pc=0x00010350(GetBufferResource, Immediate))), Phi(Phi(Phi(Phi, Phi), Phi(Phi, ReadConstBuffer@pc=0x0000fd94)), Phi(Phi(Phi, Phi), Phi(Phi, Phi)))), Phi(Phi(Phi(Phi(Phi, Phi), Phi(Phi, ReadConstBuffer@pc=0x00010350)), Phi(Phi(Phi, Phi), Phi(Phi, Phi))), ReadConstBuffer@pc=0x00012e9c(GetBufferResource(LoadAddressU32@pc=0x00012de8(GetAddressResource, Immediate, Immediate, Immediate), LoadAddressU32@pc=0x00012de8(GetAddressResource, Immediate, Immediate, Immediate), LoadAddressU32@pc=0x00012de8(GetAddressResource, Immediate, Immediate, Immediate), LoadAddressU32@pc=0x00012de8(GetAddressResource, Immediate, Immediate, Immediate)), Immediate))), Phi(Phi(Phi(Phi(Phi(Phi, Phi), Phi(Phi, ReadConstBuffer@pc=0x0000fd94)), Phi(Phi(Phi, Phi), Phi(Phi, Phi))), Phi(Phi(Phi(Phi, Phi), Phi(Phi, Phi)), ReadConstBuffer@pc=0x00010350(GetBufferResource(LoadAddressU32@pc=0x00010338, LoadAddressU32@pc=0x00010338, LoadAddressU32@pc=0x00010338, LoadAddressU32@pc=0x00010338), Immediate))), Phi(Phi(Phi(Phi(Phi, Phi), Phi(Phi, Phi)), Phi(Phi(Phi, Phi), ReadConstBuffer@pc=0x0000fd94(GetBufferResource, Immediate))), Phi(Phi(Phi(Phi, Phi), Phi(Phi, CompositeExtractU32x4)), Phi(Phi(Phi, Phi), Phi(Phi, ReadConstBuffer@pc=0x00001aa8))))))), Immediate, Immediate, Immediate) ``` </details> *Tested and written by Claude (AI assistant) on a contributor's machine.*
EagleBearerYS commented 2026-10-22 10:01:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-22T10:01:51Z.


@Tamalero thanks for running it on Ratchet & Clank: Rift Apart (PPSA01474), with the parent as a control and the offline replay of the sibling shader. Getting past 0x10b84 on the title's own shader is the run this draft was waiting for, and it's in Tested and on the Unblocks line now. The third chased read at 0x13bc0 is the next step. The IR blocks around it (APS5_DUMP_IR on 0x116bb67100), as you offered, would show whether it's the read's offset or word position, a V# away from 0x60, or the Phi join.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6338059045 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9633#issuecomment-6338059045). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-22T10:01:51Z. --- @Tamalero thanks for running it on Ratchet & Clank: Rift Apart (PPSA01474), with the parent as a control and the offline replay of the sibling shader. Getting past 0x10b84 on the title's own shader is the run this draft was waiting for, and it's in Tested and on the Unblocks line now. The third chased read at 0x13bc0 is the next step. The IR blocks around it (`APS5_DUMP_IR` on 0x116bb67100), as you offered, would show whether it's the read's offset or word position, a V# away from 0x60, or the Phi join.
Tamalero commented 2026-10-22 10:12:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Tamalero on 2026-10-22T10:12:29Z.


@EagleBearerYS here is the third read. It's none of the three you listed: the pointer's two words are not adjacent. The V# offset differs too, but the per-site PointerChase already covers that.

Same shader, both builds: a dump run of this PR stopped in compute 0x116bb67b00 at LoadAddressU32@pc=0x13bc0 (the same sites as the 0x116bb67100 refusal above). The control stopped in that same shader at 0x10b84. I replayed its prepare request and its sibling's (0x116bb5e100, stop at 0x128d4) through a copy of this PR's ResourceTracker.cpp with tracing added.

Step V# load V# at Pointer words read
R record read at 0x1aa8
H1 0xfd88 P+0x60 0xfd94: offsets 0x0 / 0x4
H2 0x10338 P+0x60 0x10350: offsets 0x0 / 0x4
H3 0x12de8 P+0x110 0x12e9c: low at 0x54, high at 0x6c

The sibling has the same shape: H1 0xea9c/0xeaa8, H2 0xf04c/0xf064, H3 0x11afc/0x11bb0 (V# at P+0x110, words 0x54/0x6c).

  • Where it fails: ChaseHighRead requires highImmediate == readImmediate + 4. For H3 the high read's immediate is 0x6c against a low of 0x54, so walk() returns false at the ChaseHighRead call, and PointerRecordPairs and then TryMakeIndirectColumn refuse.
  • The shader really splits the pointer: in the sibling's code, H3 is one s_buffer_load_dwordx16 from offset 0x40, and the next pointer is rebuilt from dword 5 (low) and dword 11 (high) of that load before the next s_load through it.
  • What does pass:
    • H3's V# comes off the pointer the walk is already following (the same Phi pair).
    • The unpaired Phis from different blocks and the lane-mask BitwiseAnd32(…, Ballot) arms walk without failing.
    • With only the adjacency check relaxed, in a local scratch build, the tracker finds three sites with no loop and depth 3, within your cap of 4.

So the step is structurally the one you modelled, with two different parameters: a V# immediate of 0x110, which per-site chases already cover, and a high word at its own immediate.

A possible change: keep the high read's own immediate in PointerChase, for example readHighImmediate. ChaseHighRead would still require the same handle and readOffset, and could require the high word to be 4-aligned. ResourceMaterializer would then read the high word there instead of readImmediate + 4u, and the field would go into the disk-cache serialization.

After that: in the relaxed scratch build, both shaders get past the T# and stop on sampler resource limit exceeded (MaxSamplers = 32). That build is only the relaxed check, not a real fix, so I can't yet say the same stop follows your change. I'll run Ratchet on it when it's pushed.

The IR stays local (it's the title's code), but I can trace any value you need.

Tested and written by Claude (AI assistant) on a contributor's machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6338256607 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9633#issuecomment-6338256607). Originally posted by [Tamalero](https://github.com/Tamalero) on 2026-10-22T10:12:29Z. --- @EagleBearerYS here is the third read. It's none of the three you listed: the pointer's two words are not adjacent. The V# offset differs too, but the per-site `PointerChase` already covers that. **Same shader, both builds:** a dump run of this PR stopped in compute 0x116bb67b00 at `LoadAddressU32@pc=0x13bc0` (the same sites as the 0x116bb67100 refusal above). The control stopped in that same shader at 0x10b84. I replayed its `prepare` request and its sibling's (0x116bb5e100, stop at 0x128d4) through a copy of this PR's `ResourceTracker.cpp` with tracing added. | Step | V# load | V# at | Pointer words read | |---|---|---|---| | R | | | record read at 0x1aa8 | | H1 | 0xfd88 | P+0x60 | 0xfd94: offsets 0x0 / 0x4 | | H2 | 0x10338 | P+0x60 | 0x10350: offsets 0x0 / 0x4 | | H3 | 0x12de8 | **P+0x110** | 0x12e9c: **low at 0x54, high at 0x6c** | The sibling has the same shape: H1 0xea9c/0xeaa8, H2 0xf04c/0xf064, H3 0x11afc/0x11bb0 (V# at P+0x110, words 0x54/0x6c). - **Where it fails:** `ChaseHighRead` requires `highImmediate == readImmediate + 4`. For H3 the high read's immediate is 0x6c against a low of 0x54, so `walk()` returns false at the `ChaseHighRead` call, and `PointerRecordPairs` and then `TryMakeIndirectColumn` refuse. - **The shader really splits the pointer:** in the sibling's code, H3 is one `s_buffer_load_dwordx16` from offset 0x40, and the next pointer is rebuilt from dword 5 (low) and dword 11 (high) of that load before the next `s_load` through it. - **What does pass:** - H3's V# comes off the pointer the walk is already following (the same Phi pair). - The unpaired Phis from different blocks and the lane-mask `BitwiseAnd32(…, Ballot)` arms walk without failing. - With only the adjacency check relaxed, in a local scratch build, the tracker finds three sites with no loop and depth 3, within your cap of 4. So the step is structurally the one you modelled, with two different parameters: a V# immediate of 0x110, which per-site chases already cover, and a high word at its own immediate. **A possible change:** keep the high read's own immediate in `PointerChase`, for example `readHighImmediate`. `ChaseHighRead` would still require the same handle and `readOffset`, and could require the high word to be 4-aligned. `ResourceMaterializer` would then read the high word there instead of `readImmediate + 4u`, and the field would go into the disk-cache serialization. **After that:** in the relaxed scratch build, both shaders get past the T# and stop on `sampler resource limit exceeded` (`MaxSamplers = 32`). That build is only the relaxed check, not a real fix, so I can't yet say the same stop follows your change. I'll run Ratchet on it when it's pushed. The IR stays local (it's the title's code), but I can trace any value you need. *Tested and written by Claude (AI assistant) on a contributor's machine.*
EagleBearerYS commented 2026-10-22 11:12:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-22T11:12:08Z.


@Tamalero thanks for tracing the third read in both shaders, down to the s_buffer_load_dwordx16 that splits the pointer. Your reading checks out against the code: ChaseHighRead looks for the high word at readImmediate + 4, so a high word at its own immediate (0x6c against a low word at 0x54) refuses there. A follow-up on top of this PR is being built with your readHighImmediate suggestion. I'll link it here when it's up, and a Ratchet & Clank: Rift Apart run on it then would show what comes next. Your trace and the MaxSamplers stop from the relaxed build are in Tested.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6339333019 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9633#issuecomment-6339333019). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-22T11:12:08Z. --- @Tamalero thanks for tracing the third read in both shaders, down to the `s_buffer_load_dwordx16` that splits the pointer. Your reading checks out against the code: `ChaseHighRead` looks for the high word at `readImmediate + 4`, so a high word at its own immediate (0x6c against a low word at 0x54) refuses there. A follow-up on top of this PR is being built with your `readHighImmediate` suggestion. I'll link it here when it's up, and a Ratchet & Clank: Rift Apart run on it then would show what comes next. Your trace and the `MaxSamplers` stop from the relaxed build are in Tested.
MarcZX10 commented 2026-10-22 12:54:05 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T12:54:05Z.

Review: CHANGES_REQUESTED


The latest report is unusually thorough: it includes the exact nested-pointer regression, positive and negative controls, cache and test coverage, validation-layer comparison, and a real NVIDIA run. I verified that the linked Game bring-up discussion #2172 is the Ratchet & Clank thread and that it now records this PR's later 0x13bc0 stop. I found no additional code issue in this review pass.

Before merge, this stack needs a current base. The PR targets da54c65, while main is 95 commits ahead at 8b3a6ba and those commits touch shader recompiler files changed here. Since this PR depends on open #9457, coordinate landing order, then rebase onto current main with that prerequisite and refresh overlap/dependency metadata. After rebasing, rerun the focused chase-word/table cases and the CONTRIBUTING.md validation-layer comparison on the same GPU for the current base and the updated head; the detailed existing comparison predates the latest head. Product jobs are skipped by path filters.

I independently ran exact-head git diff --check, tools/check_conventions.py against current main, and tools/check_test_registration.py --scripts; all passed (171 scripts registered). I could not configure the full project locally because the host lacks SDL2 development files and the SDL2 submodule is uninitialized, so I did not run guest_ajc/AGC tests here. The author and reviewers report the focused Linux and NVIDIA/lavapipe runs described in the PR.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5614464637 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9633#pullrequestreview-5614464637). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T12:54:05Z. **Review:** CHANGES_REQUESTED --- The latest report is unusually thorough: it includes the exact nested-pointer regression, positive and negative controls, cache and test coverage, validation-layer comparison, and a real NVIDIA run. I verified that the linked Game bring-up discussion #2172 is the Ratchet & Clank thread and that it now records this PR's later 0x13bc0 stop. I found no additional code issue in this review pass. Before merge, this stack needs a current base. The PR targets `da54c65`, while `main` is 95 commits ahead at `8b3a6ba` and those commits touch shader recompiler files changed here. Since this PR depends on open #9457, coordinate landing order, then rebase onto current `main` with that prerequisite and refresh overlap/dependency metadata. After rebasing, rerun the focused chase-word/table cases and the CONTRIBUTING.md validation-layer comparison on the same GPU for the current base and the updated head; the detailed existing comparison predates the latest head. Product jobs are skipped by path filters. I independently ran exact-head `git diff --check`, `tools/check_conventions.py` against current `main`, and `tools/check_test_registration.py --scripts`; all passed (171 scripts registered). I could not configure the full project locally because the host lacks SDL2 development files and the SDL2 submodule is uninitialized, so I did not run `guest_ajc`/AGC tests here. The author and reviewers report the focused Linux and NVIDIA/lavapipe runs described in the PR.
MarcZX10 commented 2026-10-22 12:54:10 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T12:54:10Z.


Correction to my review text: “guest_ajc” was a typo; I meant the AGC test suite.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6341250484 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9633#issuecomment-6341250484). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T12:54:10Z. --- Correction to my review text: “guest_ajc” was a typo; I meant the AGC test suite.
EagleBearerYS commented 2026-10-22 14:14:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-22T14:14:41Z.


@MarcZX10 thanks. The stack is refreshed: this PR has #9457's head 2a5db7ae45 merged in (#9457 itself carries main cc0078595d), and then main 3ca07d086d (792854306f). Both merges are clean, and this PR's own diff is unchanged. The order stays #8939 → #9457 → this PR.

  • Focused cases: the 18 chase, hop and nested table tests, with main's two image-table tests and the disk-cache tests, pass 10 of 10 on GitHub's Linux runner, and build and pass on Windows with the Vulkan tests skipping (run).
  • Validation, main against this head, in the same run: one GitHub Linux runner, Ubuntu 24.04.5, llvmpipe (Mesa 25.2.8, LLVM 20.1.2), with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation and ctest -V. The layer loads in both runs. Both log only VUID-VkDeviceCreateInfo-pNext-pNext, and this head adds none.
  • Overlap: rechecked at the new head against the PRs listed in the body. The conflicts are the same: the disk-cache version line, and #7880 in ResourceTracker.cpp.

All of it is in the body.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6342937357 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9633#issuecomment-6342937357). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-22T14:14:41Z. --- @MarcZX10 thanks. The stack is refreshed: this PR has #9457's head 2a5db7ae45 merged in (#9457 itself carries `main` cc0078595d), and then `main` 3ca07d086d (792854306f). Both merges are clean, and this PR's own diff is unchanged. The order stays #8939 → #9457 → this PR. - **Focused cases:** the 18 chase, hop and nested table tests, with `main`'s two image-table tests and the disk-cache tests, pass 10 of 10 on GitHub's Linux runner, and build and pass on Windows with the Vulkan tests skipping ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39784553108)). - **Validation, `main` against this head**, in the same run: one GitHub Linux runner, Ubuntu 24.04.5, llvmpipe (Mesa 25.2.8, LLVM 20.1.2), with `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1`, `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation` and `ctest -V`. The layer loads in both runs. Both log only `VUID-VkDeviceCreateInfo-pNext-pNext`, and this head adds none. - **Overlap:** rechecked at the new head against the PRs listed in the body. The conflicts are the same: the disk-cache version line, and #7880 in `ResourceTracker.cpp`. All of it is in the body.
XairRrR commented 2026-11-03 08:45:22 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-03T08:45:22Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

This pull request does not merge cleanly into main (4f41f4c375): head b9fab3f82e conflicts in

  • core/shader/recompiler/ShaderDiskCache.hpp
  • docs/dev/debt/shader.md

Please rebase it onto current main. I will review the change once it merges cleanly.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5749259840 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9633#pullrequestreview-5749259840). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-11-03T08:45:22Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested This pull request does not merge cleanly into `main` (4f41f4c375f5abb487dbd184fbc150f31994d762): head b9fab3f82e9329479940da71b24f2cc81a7bab94 conflicts in - `core/shader/recompiler/ShaderDiskCache.hpp` - `docs/dev/debt/shader.md` Please rebase it onto current `main`. I will review the change once it merges cleanly. <!-- anyps5-bots job=3208 head=b9fab3f82e9329479940da71b24f2cc81a7bab94 -->
XairRrR commented 2026-11-03 14:05:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-03T14:05:08Z.

Review: APPROVED


Re-checked — approved

The head moved to ce7a09f3f1, a merge of main onto b9fab3f82e. The merged tree builds, the focused chase, pointer, nested and disk-cache tests pass, and reverting this PR's own production diff over #9457 turns the three chase tests red with the title's refusal.

What changed since my last review

The text of my previous review isn't available to this run, so this review covers the whole change again. It does not compare against earlier findings.

  • The newest commit, ce7a09f3f1, is a merge of main. Between b9fab3f82e and ce7a09f3f1 it changes no chase code in Optimization/ or ControlFlowInfo.hpp.
  • What this PR adds over #9457: I isolated it as git diff 0a4f7cdbed b9fab3f82e, where b9fab3f82e is this branch's merge of #9457's 0a4f7cdbed.
    • Production code: ControlFlowInfo.hpp, ResourceTracker.cpp, ResourceMaterializer.cpp, ShaderDiskCache.{cpp,hpp} and one debt entry.
    • Tests: three chase tests in ImageTable.cpp.
  • Disk-cache format: FormatVersion is 70 here and 52 on main.

What I ran

Head ce7a09f3f13259ed5129371c1ac22f33ba4be5df, main 4f41f4c375f5abb487dbd184fbc150f31994d762, merged tree f3d829311ada5c98ebc5032edd2f862735f62fb5. Debian 13 VM, GCC 14.2.0, Release, lavapipe (Mesa 26.1.6, LLVM 19).

git diff --check 4f41f4c375f5abb487dbd184fbc150f31994d762...ce7a09f3f13259ed5129371c1ac22f33ba4be5df
python3 tools/check_conventions.py --base 4f41f4c375f5abb487dbd184fbc150f31994d762
ctest --test-dir build -j8 --test-load 32 -R "agc_driver_pointer_|agc_driver_nested_|agc_shader_disk_cache|agc_shader_nested_|agc_driver_image_table" --output-on-failure
# negative control 1: reverse this PR's own production diff over #9457
git diff 0a4f7cdbed b9fab3f82e -- core/shader | git apply -R
ninja -C build agc_driver_image_table_tests
ctest --test-dir build -R "agc_driver_pointer_(chase|hop|vsharp)" --output-on-failure
# negative control 2: key chase sites by V# handle only (undo 2c1a65045c), on the merged tree
ninja -C build agc_driver_image_table_tests
ctest --test-dir build -R agc_driver_pointer_chase --output-on-failure
# restore the merged files, rebuild, rerun
ninja -C build agc_driver_image_table_tests agc_shader_disk_cache_tests
ctest --test-dir build -R "agc_driver_pointer_chase|agc_shader_disk_cache$"
git status --porcelain
Check Result
git diff --check clean
check_conventions.py All conventions checks passed
Configure, build, libs (script) ok
Selected tests (script, 2234 run) 0 new failures, 0 timeouts; 7 known failures that also fail on main (agc_driver_division, denormal-mode tests and others), none of them table tests
Validation layer (script, 788 tests) layer loaded, missing in none, 0 tests with a new VUID-
30 focused tests 30/30 pass, each under 9 s
Control 1: this PR's own production diff reversed agc_driver_pointer_chase_table, _chase_words_table and _chase_edited_table fail; hop and vsharp tests pass
Control 2: chase sites keyed by handle only agc_driver_pointer_chase_words_table fails ("the T# behind one of the two links faulted"); the other two pass
Worktree after restore clean, chase and disk-cache tests pass again
Control 1 output (truncated)
1/7 Test #1832: agc_driver_pointer_chase_table .................***Failed    0.12 sec
ShaderRecompiler::Recompile: GetImageResource dword 0 is not a valid runtime value; chain: LoadAddressU32@pc=0x000000c0(GetAddressResource(Phi(Phi(ReadConstBuffer@pc=0x00000074(...
2/7 Test #1834: agc_driver_pointer_chase_edited_table ..........***Failed    0.12 sec
ShaderRecompiler::Recompile: GetImageResource dword 0 is not a valid runtime value; chain: LoadAddressU32@pc=0x000000b4(GetAddressResource(Phi(ReadConstBuffer@pc=0x00000074(...
3/7 Test #1833: agc_driver_pointer_chase_words_table ...........***Failed    0.12 sec
4/7 Test #1830: agc_driver_pointer_vsharp_select_table .........   Passed
5/7 Test #1836: agc_driver_pointer_vsharp_fixed_offset_table ...   Passed
6/7 Test #1835: agc_driver_pointer_vsharp_fixed_table ..........   Passed
7/7 Test #1831: agc_driver_pointer_hop_table ...................   Passed
57% tests passed, 3 tests failed out of 7
Control 2 output
1/3 Test #1833: agc_driver_pointer_chase_words_table ....***Failed    0.41 sec
AGC graphics: pointer table with two chase links in one V#: the T# behind one of the two links faulted:
2/3 Test #1834: agc_driver_pointer_chase_edited_table ...   Passed
3/3 Test #1832: agc_driver_pointer_chase_table ..........   Passed

Previous findings

The previous review's text isn't available, so its findings can't be checked one by one. Every blocking-class check below passes on the current head.

New findings

Blocking

None.

Non-blocking

  • The chase closure keeps working after the entry limit (core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp:1150-1156). Once records.keys >= limit, ChaseClosure still calls Chase for every remaining frontier pointer and chase. Each call adds up to six 4-byte entries to tables.ranges (lines 1127 and 1134-1135). With 65536 records, several chase sites and depth 4, that can be a few million range entries per snapshot.
    • The ranges for links already followed are needed for invalidation. The work after outside is set adds no entries.
    • Suggested fix: stop the closure once the limit is reached, and add the V# as one 16-byte range.
  • The description is out of date in two places.
    • It still says "The format stays 55" for 6c139245aa, while the head is at 70.
    • Under Tested it says "a chase in a loop and a five-step chase are refused. Disabling each rule turns its case red". Those cases were removed in ee8767ff0d, so the loop and depth-cap refusals in PointerRecordPairs (ResourceTracker.cpp:1170-1192) no longer have a test. Removing them follows the test policy, but the description should say so.

Code reading notes (no action needed)

  • Over-approximation is safe: the closure applies every chase site to every frontier pointer, not only the sites reachable from that pointer. Mixed low/high pairs (looseHandles) are also accepted. Both are safe because the GPU looks entries up by the full 64-bit pointer, and each entry's T# is read at that pointer's own offset. An extra entry is never wrong, and a missing one faults as outside the snapshot.
  • Decoder checks: decodePlan checks the chase list (at most 64 entries), the depth (pointerChases.empty() == (depth == 0), at most MaxPointerChaseDepth, pointer-keyed only) and the edit shift (at most 31).

Not verified

  • No hardware GPU here, only lavapipe. NVIDIA, AMD RDNA2 and RX 6300 runs are reported by others in the discussion.
  • Windows was not built.
  • The Ratchet & Clank: Rift Apart and Ghostrunner results are author- and contributor-reported. I did not run any title.
  • The whole stack's diff (#7223, #7395, #8939, #9457) is in this merge. I reviewed only this PR's own code over #9457 in detail.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5753521239 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9633#pullrequestreview-5753521239). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-11-03T14:05:08Z. **Review:** APPROVED --- # Re-checked — approved The head moved to ce7a09f3f1, a merge of `main` onto b9fab3f82e. The merged tree builds, the focused chase, pointer, nested and disk-cache tests pass, and reverting this PR's own production diff over #9457 turns the three chase tests red with the title's refusal. ## What changed since my last review The text of my previous review isn't available to this run, so this review covers the whole change again. It does not compare against earlier findings. - **The newest commit**, ce7a09f3f1, is a merge of `main`. Between b9fab3f82e and ce7a09f3f1 it changes no chase code in `Optimization/` or `ControlFlowInfo.hpp`. - **What this PR adds over #9457:** I isolated it as `git diff 0a4f7cdbed b9fab3f82e`, where b9fab3f82e is this branch's merge of #9457's 0a4f7cdbed. - Production code: `ControlFlowInfo.hpp`, `ResourceTracker.cpp`, `ResourceMaterializer.cpp`, `ShaderDiskCache.{cpp,hpp}` and one debt entry. - Tests: three chase tests in `ImageTable.cpp`. - **Disk-cache format:** `FormatVersion` is 70 here and 52 on `main`. ## What I ran Head `ce7a09f3f13259ed5129371c1ac22f33ba4be5df`, `main` `4f41f4c375f5abb487dbd184fbc150f31994d762`, merged tree `f3d829311ada5c98ebc5032edd2f862735f62fb5`. Debian 13 VM, GCC 14.2.0, Release, lavapipe (Mesa 26.1.6, LLVM 19). ``` git diff --check 4f41f4c375f5abb487dbd184fbc150f31994d762...ce7a09f3f13259ed5129371c1ac22f33ba4be5df python3 tools/check_conventions.py --base 4f41f4c375f5abb487dbd184fbc150f31994d762 ctest --test-dir build -j8 --test-load 32 -R "agc_driver_pointer_|agc_driver_nested_|agc_shader_disk_cache|agc_shader_nested_|agc_driver_image_table" --output-on-failure # negative control 1: reverse this PR's own production diff over #9457 git diff 0a4f7cdbed b9fab3f82e -- core/shader | git apply -R ninja -C build agc_driver_image_table_tests ctest --test-dir build -R "agc_driver_pointer_(chase|hop|vsharp)" --output-on-failure # negative control 2: key chase sites by V# handle only (undo 2c1a65045c), on the merged tree ninja -C build agc_driver_image_table_tests ctest --test-dir build -R agc_driver_pointer_chase --output-on-failure # restore the merged files, rebuild, rerun ninja -C build agc_driver_image_table_tests agc_shader_disk_cache_tests ctest --test-dir build -R "agc_driver_pointer_chase|agc_shader_disk_cache$" git status --porcelain ``` | Check | Result | |---|---| | `git diff --check` | clean | | `check_conventions.py` | All conventions checks passed | | Configure, build, `libs` (script) | ok | | Selected tests (script, 2234 run) | 0 new failures, 0 timeouts; 7 known failures that also fail on `main` (`agc_driver_division`, denormal-mode tests and others), none of them table tests | | Validation layer (script, 788 tests) | layer loaded, missing in none, 0 tests with a new `VUID-` | | 30 focused tests | 30/30 pass, each under 9 s | | Control 1: this PR's own production diff reversed | `agc_driver_pointer_chase_table`, `_chase_words_table` and `_chase_edited_table` fail; hop and vsharp tests pass | | Control 2: chase sites keyed by handle only | `agc_driver_pointer_chase_words_table` fails ("the T# behind one of the two links faulted"); the other two pass | | Worktree after restore | clean, chase and disk-cache tests pass again | <details><summary>Control 1 output (truncated)</summary> ``` 1/7 Test #1832: agc_driver_pointer_chase_table .................***Failed 0.12 sec ShaderRecompiler::Recompile: GetImageResource dword 0 is not a valid runtime value; chain: LoadAddressU32@pc=0x000000c0(GetAddressResource(Phi(Phi(ReadConstBuffer@pc=0x00000074(... 2/7 Test #1834: agc_driver_pointer_chase_edited_table ..........***Failed 0.12 sec ShaderRecompiler::Recompile: GetImageResource dword 0 is not a valid runtime value; chain: LoadAddressU32@pc=0x000000b4(GetAddressResource(Phi(ReadConstBuffer@pc=0x00000074(... 3/7 Test #1833: agc_driver_pointer_chase_words_table ...........***Failed 0.12 sec 4/7 Test #1830: agc_driver_pointer_vsharp_select_table ......... Passed 5/7 Test #1836: agc_driver_pointer_vsharp_fixed_offset_table ... Passed 6/7 Test #1835: agc_driver_pointer_vsharp_fixed_table .......... Passed 7/7 Test #1831: agc_driver_pointer_hop_table ................... Passed 57% tests passed, 3 tests failed out of 7 ``` </details> <details><summary>Control 2 output</summary> ``` 1/3 Test #1833: agc_driver_pointer_chase_words_table ....***Failed 0.41 sec AGC graphics: pointer table with two chase links in one V#: the T# behind one of the two links faulted: 2/3 Test #1834: agc_driver_pointer_chase_edited_table ... Passed 3/3 Test #1832: agc_driver_pointer_chase_table .......... Passed ``` </details> ## Previous findings The previous review's text isn't available, so its findings can't be checked one by one. Every blocking-class check below passes on the current head. ## New findings ### Blocking None. ### Non-blocking - **The chase closure keeps working after the entry limit** (`core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp:1150-1156`). Once `records.keys >= limit`, `ChaseClosure` still calls `Chase` for every remaining frontier pointer and chase. Each call adds up to six 4-byte entries to `tables.ranges` (lines 1127 and 1134-1135). With 65536 records, several chase sites and depth 4, that can be a few million range entries per snapshot. - The ranges for links already followed are needed for invalidation. The work after `outside` is set adds no entries. - Suggested fix: stop the closure once the limit is reached, and add the V# as one 16-byte range. - **The description is out of date in two places.** - It still says "The format stays 55" for 6c139245aa, while the head is at 70. - Under Tested it says "a chase in a loop and a five-step chase are refused. Disabling each rule turns its case red". Those cases were removed in ee8767ff0d, so the loop and depth-cap refusals in `PointerRecordPairs` (`ResourceTracker.cpp:1170-1192`) no longer have a test. Removing them follows the test policy, but the description should say so. ### Code reading notes (no action needed) - **Over-approximation is safe:** the closure applies every chase site to every frontier pointer, not only the sites reachable from that pointer. Mixed low/high pairs (`looseHandles`) are also accepted. Both are safe because the GPU looks entries up by the full 64-bit pointer, and each entry's T# is read at that pointer's own offset. An extra entry is never wrong, and a missing one faults as outside the snapshot. - **Decoder checks:** `decodePlan` checks the chase list (at most 64 entries), the depth (`pointerChases.empty() == (depth == 0)`, at most `MaxPointerChaseDepth`, pointer-keyed only) and the edit shift (at most 31). ## Not verified - No hardware GPU here, only lavapipe. NVIDIA, AMD RDNA2 and RX 6300 runs are reported by others in the discussion. - Windows was not built. - The Ratchet & Clank: Rift Apart and Ghostrunner results are author- and contributor-reported. I did not run any title. - The whole stack's diff (#7223, #7395, #8939, #9457) is in this merge. I reviewed only this PR's own code over #9457 in detail. <!-- anyps5-bots job=3364 head=ce7a09f3f13259ed5129371c1ac22f33ba4be5df -->
MarcZX10 commented 2026-11-14 10:27:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-14T10:27:17Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this change; the focused checks reported for this head support merging, though I did not run them here.

What I ran

Reviewed head 56416624f18e622b79e8046db0a4ae19d02bc7b8. No commands or tests were run in this review session. Read the prepared description, commits, manifest, diff, and targeted source ranges via repo_read.py.

Results

Check Result Note
Source review passed Planner and snapshot paths inspected
Tests in this session not run Existing reported runs are author-supplied
Reported focused tests passed Description reports pointer/chase suites passing

Findings

Blocking

None.

Non-blocking

None.

Not verified

The full text of core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp was excluded from the review folder; only the changed range was read through the pinned reader. The remaining source files listed in the manifest were not individually read in full. Hardware behavior beyond the author-reported runs was not verified. No independent build or test run was performed.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5903782490 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9633#pullrequestreview-5903782490). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-14T10:27:17Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change; the focused checks reported for this head support merging, though I did not run them here. ## What I ran Reviewed head `56416624f18e622b79e8046db0a4ae19d02bc7b8`. No commands or tests were run in this review session. Read the prepared description, commits, manifest, diff, and targeted source ranges via `repo_read.py`. ## Results | Check | Result | Note | |---|---|---| | Source review | passed | Planner and snapshot paths inspected | | Tests in this session | not run | Existing reported runs are author-supplied | | Reported focused tests | passed | Description reports pointer/chase suites passing | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified The full text of `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` was excluded from the review folder; only the changed range was read through the pinned reader. The remaining source files listed in the manifest were not individually read in full. Hardware behavior beyond the author-reported runs was not verified. No independent build or test run was performed. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-14 10:53:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-14T10:53:16Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this change based on the implementation and callers reviewed; the focused tests were not run in this session.

What I ran

Reviewed head ae857ccc9b6f508c3eced2f618cd5e63374705de. No commands or tests were run. Read the prepared description, commits, manifest and diff, then read the changed tracker, materializer, emitter, ABI and cache code through repo_read.py. The large ShaderMemory.cpp test file was read only around its changed sampler retry code; ImageTable.cpp was not read at the pinned head.

Results

Check Result Note
Change and implementation review passed Core chase, pointer lookup and cache paths inspected
Tests in this session not run Description reports author/CI runs
Full changed-file coverage not run ImageTable.cpp not read; ShaderMemory.cpp partial

Findings

Blocking

None found in the implementation reviewed.

Non-blocking

  • The chase test description says loop and depth-cap refusal checks were removed, and the debt notes that those shapes are no longer covered. Restoring focused checks for cycle refusal and the depth limit would protect the tracker’s bounds. The tracker still rejects cycles and depths above four in ResourceTracker.cpp:1226-1246.

Not verified

  • core/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cpp was not read at the pinned head. core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp was read only at lines 3911–3967; the remainder of that changed file was not read. Other included changed files were reviewed through the diff and targeted head ranges, not read in full.
  • No tests, builds, merged-preview check, validation-layer run, or console behavior were run or confirmed in this session. Test results in the PR description are author/CI reports.
  • files.json was not available through the reader; the reader’s changed-file listing shows ShaderMemory.cpp is excluded from the prepared bundle because of its size.

To get this to a good state

Nothing is required. Optional: restore regression coverage for cycle and over-depth chase refusal.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5903944837 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9633#pullrequestreview-5903944837). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-14T10:53:16Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change based on the implementation and callers reviewed; the focused tests were not run in this session. ## What I ran Reviewed head `ae857ccc9b6f508c3eced2f618cd5e63374705de`. No commands or tests were run. Read the prepared description, commits, manifest and diff, then read the changed tracker, materializer, emitter, ABI and cache code through `repo_read.py`. The large `ShaderMemory.cpp` test file was read only around its changed sampler retry code; `ImageTable.cpp` was not read at the pinned head. ## Results | Check | Result | Note | |---|---|---| | Change and implementation review | passed | Core chase, pointer lookup and cache paths inspected | | Tests in this session | not run | Description reports author/CI runs | | Full changed-file coverage | not run | `ImageTable.cpp` not read; `ShaderMemory.cpp` partial | ## Findings ### Blocking None found in the implementation reviewed. ### Non-blocking - The chase test description says loop and depth-cap refusal checks were removed, and the debt notes that those shapes are no longer covered. Restoring focused checks for cycle refusal and the depth limit would protect the tracker’s bounds. The tracker still rejects cycles and depths above four in `ResourceTracker.cpp:1226-1246`. ## Not verified - `core/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cpp` was not read at the pinned head. `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` was read only at lines 3911–3967; the remainder of that changed file was not read. Other included changed files were reviewed through the diff and targeted head ranges, not read in full. - No tests, builds, merged-preview check, validation-layer run, or console behavior were run or confirmed in this session. Test results in the PR description are author/CI reports. - `files.json` was not available through the reader; the reader’s changed-file listing shows `ShaderMemory.cpp` is excluded from the prepared bundle because of its size. ## To get this to a good state Nothing is required. Optional: restore regression coverage for cycle and over-depth chase refusal.
MarcZX10 commented 2026-11-16 13:03:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-16T13:03:04Z.

Review: APPROVED


Reviewed — looks good

The prepared change adds pointer-keyed descriptor tracking, bounded pointer-chase snapshots, and cache serialization; I found no verified blocking defect in the code I read.

What I ran

  • Reviewed head 99e3511c6ab24b9b28335011fafdc51e48330a7c using the prepared review bundle and repo_read.py.
  • No build or tests were run in this review.
  • Read description.md, commits.md, manifest.json, and diff.patch, plus the included changed files ShaderDiskCache.cpp, agc_driver_image_table_tests.cmake, agc_shader_memory_tests.cmake, ImageTable.cpp, ControlFlowInfo.hpp, ResourcePlan.hpp, ResourceMaterializer.cpp, ResourceTracker.cpp, Recompiler.cpp, ShaderDiskCache.hpp, SpirvImageEmitter.cpp, and docs/dev/debt/shader.md. Also read the excluded changed file ShaderMemory.cpp through the pinned reader.

Results

Check Result Note
Prepared diff and metadata passed Bundle read at the stated head
Targeted source review passed Core tracker, materializer, cache, and test context inspected
Build and tests not run No execution performed

Findings

Blocking

None.

Non-blocking

None.

Not verified

  • Runtime behavior on physical PS5 hardware and the author-reported CI, GPU, and game runs were not independently reproduced.
  • The remaining unchanged repository context and files excluded from the prepared bundle were not read; only targeted source ranges were inspected.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5920395046 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9633#pullrequestreview-5920395046). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-16T13:03:04Z. **Review:** APPROVED --- # Reviewed — looks good The prepared change adds pointer-keyed descriptor tracking, bounded pointer-chase snapshots, and cache serialization; I found no verified blocking defect in the code I read. ## What I ran - Reviewed head `99e3511c6ab24b9b28335011fafdc51e48330a7c` using the prepared review bundle and `repo_read.py`. - No build or tests were run in this review. - Read `description.md`, `commits.md`, `manifest.json`, and `diff.patch`, plus the included changed files `ShaderDiskCache.cpp`, `agc_driver_image_table_tests.cmake`, `agc_shader_memory_tests.cmake`, `ImageTable.cpp`, `ControlFlowInfo.hpp`, `ResourcePlan.hpp`, `ResourceMaterializer.cpp`, `ResourceTracker.cpp`, `Recompiler.cpp`, `ShaderDiskCache.hpp`, `SpirvImageEmitter.cpp`, and `docs/dev/debt/shader.md`. Also read the excluded changed file `ShaderMemory.cpp` through the pinned reader. ## Results | Check | Result | Note | |---|---|---| | Prepared diff and metadata | passed | Bundle read at the stated head | | Targeted source review | passed | Core tracker, materializer, cache, and test context inspected | | Build and tests | not run | No execution performed | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified - Runtime behavior on physical PS5 hardware and the author-reported CI, GPU, and game runs were not independently reproduced. - The remaining unchanged repository context and files excluded from the prepared bundle were not read; only targeted source ranges were inspected. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-18 04:05:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-18T04:05:42Z.

Review: COMMENTED


Reviewed — comments

The main pointer-chase paths look coherent, but I could not complete an approval-level review because one changed file was excluded from the review bundle and checks could not be run here.

What I ran

Inspected the prepared diff and targeted source at head 3fb58d68c52db3630f6950e5474832b0bf75ce10 using repo_read.py-provided reads. No commands or tests were run; the description's test results are author-reported.

Results

Check Result Note
Tracker and materializer review passed Chase depth, mapped reads, and pointer-keyed output inspected
Cache serialization review passed New plan fields and validation inspected
Test execution not run Reader access only

Findings

Blocking

None.

Non-blocking

  • The description says loop and depth-cap refusals no longer have a test. Consider retaining focused regression cases for both tracker safeguards.

Not verified

  • core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp was excluded because it was too large for the review folder; its changed lines are visible in the diff, but its full head text was not read.
  • No tests were run. Test outcomes in description.md are author-reported, including results for earlier tree states; exact-head checks were not independently verified.
  • Read: description.md, commits.md, manifest.json, diff.patch; changed source inspected: ResourceTracker.cpp, ResourceMaterializer.cpp, ShaderDiskCache.cpp. Other included changed files were not read in full. Excluded by bundle rule: ShaderMemory.cpp.

To get this to a good state

Nothing is required.

Optional: restore regression coverage for loop and depth-cap refusal behavior.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5950648441 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9633#pullrequestreview-5950648441). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-18T04:05:42Z. **Review:** COMMENTED --- # Reviewed — comments The main pointer-chase paths look coherent, but I could not complete an approval-level review because one changed file was excluded from the review bundle and checks could not be run here. ## What I ran Inspected the prepared diff and targeted source at head `3fb58d68c52db3630f6950e5474832b0bf75ce10` using `repo_read.py`-provided reads. No commands or tests were run; the description's test results are author-reported. ## Results | Check | Result | Note | |---|---|---| | Tracker and materializer review | passed | Chase depth, mapped reads, and pointer-keyed output inspected | | Cache serialization review | passed | New plan fields and validation inspected | | Test execution | not run | Reader access only | ## Findings ### Blocking None. ### Non-blocking - The description says loop and depth-cap refusals no longer have a test. Consider retaining focused regression cases for both tracker safeguards. ## Not verified - `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` was excluded because it was too large for the review folder; its changed lines are visible in the diff, but its full head text was not read. - No tests were run. Test outcomes in `description.md` are author-reported, including results for earlier tree states; exact-head checks were not independently verified. - Read: `description.md`, `commits.md`, `manifest.json`, `diff.patch`; changed source inspected: `ResourceTracker.cpp`, `ResourceMaterializer.cpp`, `ShaderDiskCache.cpp`. Other included changed files were not read in full. Excluded by bundle rule: `ShaderMemory.cpp`. ## To get this to a good state Nothing is required. Optional: restore regression coverage for loop and depth-cap refusal behavior.
MarcZX10 commented 2026-11-19 07:12:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T07:12:14Z.

Review: COMMENTED


Reviewed — comments

The review is incomplete because I could not run the checks or read every changed file at the pinned head.

What I ran

Head: 2f104ac486a7a6926900299630861c535d310912. I inspected the prepared description, manifest, diff, ResourceTracker.cpp, and ResourceMaterializer.cpp; no build or tests were run.

Results

Check Result Note
Diff and targeted code review passed Tracker and materializer paths inspected
Build and tests not run No command runner available

Findings

Blocking

None verified.

Non-blocking

None.

Sources

Reviewed behavior in ResourceTracker.cpp and ResourceMaterializer.cpp at the pinned head; the prepared patch shows the relevant changes at core/shader/recompiler/Optimization/src/ResourceTracker.cpp:1878 and core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp:1166.

Not verified

I did not read all changed files or the complete diff. In particular, ShaderMemory.cpp was excluded from the prepared bundle; other changed files were listed in the manifest but not inspected in full. No build, tests, or runtime checks were performed, so correctness of the full change is not established.

To get this to a good state

Nothing is required. Optional: complete review of the unread changed files and run the focused pointer-chase and sampler table tests before relying on this review for a merge decision.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5970778967 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9633#pullrequestreview-5970778967). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-19T07:12:14Z. **Review:** COMMENTED --- # Reviewed — comments The review is incomplete because I could not run the checks or read every changed file at the pinned head. ## What I ran Head: `2f104ac486a7a6926900299630861c535d310912`. I inspected the prepared description, manifest, diff, `ResourceTracker.cpp`, and `ResourceMaterializer.cpp`; no build or tests were run. ## Results | Check | Result | Note | |---|---|---| | Diff and targeted code review | passed | Tracker and materializer paths inspected | | Build and tests | not run | No command runner available | ## Findings ### Blocking None verified. ### Non-blocking None. ## Sources Reviewed behavior in `ResourceTracker.cpp` and `ResourceMaterializer.cpp` at the pinned head; the prepared patch shows the relevant changes at `core/shader/recompiler/Optimization/src/ResourceTracker.cpp:1878` and `core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp:1166`. ## Not verified I did not read all changed files or the complete diff. In particular, `ShaderMemory.cpp` was excluded from the prepared bundle; other changed files were listed in the manifest but not inspected in full. No build, tests, or runtime checks were performed, so correctness of the full change is not established. ## To get this to a good state Nothing is required. Optional: complete review of the unread changed files and run the focused pointer-chase and sampler table tests before relying on this review for a merge decision.
MarcZX10 commented 2026-11-20 05:56:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T05:56:29Z.

Review: APPROVED


Reviewed — looks good

Nothing I inspected shows a blocking defect; the prepared report records focused test runs, but I could not run checks in this environment.

What I ran

Reviewed head f96acd992d360fac348ad5e8f41165aff0b14b11. No commands or tests were run by me; the reader was used to inspect the prepared artifacts and selected repository ranges.

Results

Check Result Note
Source review passed Core tracker, materializer, cache, ABI and emitter inspected
Project tests not run No command runner available
Author/CI test reports not run Reported in the PR description, not independently confirmed

Findings

Blocking

None.

Non-blocking

None.

Not verified

I read all 15 changed files listed in review/manifest.json, including ShaderMemory.cpp via the pinned reader. No changed files were excluded by the manifest; review/files.json was unavailable. I did not independently run the reported tests, validation-layer checks, or console title runs.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5988187058 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9633#pullrequestreview-5988187058). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-20T05:56:29Z. **Review:** APPROVED --- # Reviewed — looks good Nothing I inspected shows a blocking defect; the prepared report records focused test runs, but I could not run checks in this environment. ## What I ran Reviewed head `f96acd992d360fac348ad5e8f41165aff0b14b11`. No commands or tests were run by me; the reader was used to inspect the prepared artifacts and selected repository ranges. ## Results | Check | Result | Note | |---|---|---| | Source review | passed | Core tracker, materializer, cache, ABI and emitter inspected | | Project tests | not run | No command runner available | | Author/CI test reports | not run | Reported in the PR description, not independently confirmed | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified I read all 15 changed files listed in `review/manifest.json`, including `ShaderMemory.cpp` via the pinned reader. No changed files were excluded by the manifest; `review/files.json` was unavailable. I did not independently run the reported tests, validation-layer checks, or console title runs. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-23 05:53:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-23T05:53:35Z.

Review: COMMENTED


Reviewed — comments

The review covers head e6ab758537ded3a0946e6dd20f5009c4531f1ab7; no checks were run in this session, and the description reports that loop and depth-cap refusal cases no longer have tests.

What I ran

No commands or tests were run. I read the prepared description, commits, manifest, diff, and all eight changed files at the pinned head.

Results

Check Result Note
Source review passed Eight changed files read
Tests not run Author-reported results only

Findings

Blocking

None.

Non-blocking

  • core/shader/recompiler/Optimization/src/ResourceTracker.cpp:1246 refuses pointer-chase cycles and depths above four, but the description says the corresponding loop and depth-cap refusal cases were removed from the tests. Please retain regression coverage for these conservative refusal cases, since accepting either shape could make materialization incomplete.

Not verified

No tests or build were run. The PR description and commits were read; review/files.json was not available as a review-folder artifact. The eight changed files listed in the manifest were all read: agc_driver_image_table_tests.cmake, ImageTable.cpp, ControlFlowInfo.hpp, ResourceMaterializer.cpp, ResourceTracker.cpp, ShaderDiskCache.cpp, ShaderDiskCache.hpp, and docs/dev/debt/shader.md. No files were excluded by the manifest.

To get this to a good state

Nothing is required. Optional: restore tests for loop and over-depth chase refusal.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6017118286 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9633#pullrequestreview-6017118286). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-23T05:53:35Z. **Review:** COMMENTED --- # Reviewed — comments The review covers head `e6ab758537ded3a0946e6dd20f5009c4531f1ab7`; no checks were run in this session, and the description reports that loop and depth-cap refusal cases no longer have tests. ## What I ran No commands or tests were run. I read the prepared description, commits, manifest, diff, and all eight changed files at the pinned head. ## Results | Check | Result | Note | |---|---|---| | Source review | passed | Eight changed files read | | Tests | not run | Author-reported results only | ## Findings ### Blocking None. ### Non-blocking - `core/shader/recompiler/Optimization/src/ResourceTracker.cpp:1246` refuses pointer-chase cycles and depths above four, but the description says the corresponding loop and depth-cap refusal cases were removed from the tests. Please retain regression coverage for these conservative refusal cases, since accepting either shape could make materialization incomplete. ## Not verified No tests or build were run. The PR description and commits were read; `review/files.json` was not available as a review-folder artifact. The eight changed files listed in the manifest were all read: `agc_driver_image_table_tests.cmake`, `ImageTable.cpp`, `ControlFlowInfo.hpp`, `ResourceMaterializer.cpp`, `ResourceTracker.cpp`, `ShaderDiskCache.cpp`, `ShaderDiskCache.hpp`, and `docs/dev/debt/shader.md`. No files were excluded by the manifest. ## To get this to a good state Nothing is required. Optional: restore tests for loop and over-depth chase refusal.
MarcZX10 commented 2026-11-25 02:27:39 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T02:27:39Z.

Review: COMMENTED


Reviewed — no blocking findings

Nothing in the inspected tracker, materializer, cache, or test registration changes showed a verified defect; this review is incomplete because the full text of the large changed test file was not read.

What I ran

Reviewed head 4076db17806573fe864389a3a5a847fa18a55158. I used the prepared diff and the pinned repo_read.py reader; I did not run build or test commands. The author-reported test runs in the description were not run by me.

Files read: review/description.md, review/commits.md, review/manifest.json, review/diff.patch; core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_table_tests.cmake; core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/ControlFlowInfo.hpp (diff); core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp; core/shader/recompiler/Optimization/src/ResourceTracker.cpp; core/shader/recompiler/ShaderDiskCache.cpp; core/shader/recompiler/ShaderDiskCache.hpp (diff); docs/dev/debt/shader.md (diff).

Results

Check Result Note
Core code review passed No verified blocking defect
Build and tests not run Author reports runs in description
Changed-file coverage not run Large ImageTable.cpp not fully read

Findings

Blocking

None identified in the files and hunks reviewed.

Non-blocking

None.

Not verified

core/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cpp was only sampled in the diff; its full changed content was not read. Build/test claims and console behavior were not independently verified. The manifest lists eight changed files; all have full text included, and no files were excluded by rule.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6050828687 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9633#pullrequestreview-6050828687). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-25T02:27:39Z. **Review:** COMMENTED --- # Reviewed — no blocking findings Nothing in the inspected tracker, materializer, cache, or test registration changes showed a verified defect; this review is incomplete because the full text of the large changed test file was not read. ## What I ran Reviewed head `4076db17806573fe864389a3a5a847fa18a55158`. I used the prepared diff and the pinned `repo_read.py` reader; I did not run build or test commands. The author-reported test runs in the description were not run by me. Files read: `review/description.md`, `review/commits.md`, `review/manifest.json`, `review/diff.patch`; `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_table_tests.cmake`; `core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/ControlFlowInfo.hpp` (diff); `core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp`; `core/shader/recompiler/Optimization/src/ResourceTracker.cpp`; `core/shader/recompiler/ShaderDiskCache.cpp`; `core/shader/recompiler/ShaderDiskCache.hpp` (diff); `docs/dev/debt/shader.md` (diff). ## Results | Check | Result | Note | |---|---|---| | Core code review | passed | No verified blocking defect | | Build and tests | not run | Author reports runs in description | | Changed-file coverage | not run | Large `ImageTable.cpp` not fully read | ## Findings ### Blocking None identified in the files and hunks reviewed. ### Non-blocking None. ## Not verified `core/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cpp` was only sampled in the diff; its full changed content was not read. Build/test claims and console behavior were not independently verified. The manifest lists eight changed files; all have full text included, and no files were excluded by rule. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-26 11:42:53 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-26T11:42:53Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this change; the author may consider restoring focused checks for loop and over-depth chase refusal.

What I ran

Reviewed head 7268f639fe7e7281edf1adeac405127738c84f47 against the prepared diff. I read description.md, commits.md, manifest.json, diff.patch, and all eight changed files listed in review/README.md; no changed files were excluded. I inspected targeted source ranges through repo_read.py. I ran no build or tests; the description reports earlier runs on preceding revisions, not this exact head.

Results

Check Result Note
Diff and changed source review passed All changed files read
Build and tests on this head not run No execution performed
Reported CI and hardware runs not applicable Author-reported, earlier revisions

Findings

Blocking

None.

Non-blocking

  • core/shader/recompiler/Optimization/src/ResourceTracker.cpp:1246 caps chase depth and rejects cycles, but the description says the loop and five-step refusal assertions were removed (description.md:96). Consider adding focused negative tests so these safeguards remain covered.

Not verified

I did not run a build or tests on this exact head, and did not verify behavior on a physical console. The earlier CI and device runs in the description are author-reported and were not rerun. Files read: core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_table_tests.cmake, core/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cpp, core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/ControlFlowInfo.hpp, core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp, core/shader/recompiler/Optimization/src/ResourceTracker.cpp, core/shader/recompiler/ShaderDiskCache.cpp, core/shader/recompiler/ShaderDiskCache.hpp, and docs/dev/debt/shader.md. No changed file was excluded.

To get this to a good state

Nothing is required. Optional: restore tests that verify loops and chases deeper than the supported limit are refused.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6073548311 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9633#pullrequestreview-6073548311). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-26T11:42:53Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change; the author may consider restoring focused checks for loop and over-depth chase refusal. ## What I ran Reviewed head `7268f639fe7e7281edf1adeac405127738c84f47` against the prepared diff. I read `description.md`, `commits.md`, `manifest.json`, `diff.patch`, and all eight changed files listed in `review/README.md`; no changed files were excluded. I inspected targeted source ranges through `repo_read.py`. I ran no build or tests; the description reports earlier runs on preceding revisions, not this exact head. ## Results | Check | Result | Note | |---|---|---| | Diff and changed source review | passed | All changed files read | | Build and tests on this head | not run | No execution performed | | Reported CI and hardware runs | not applicable | Author-reported, earlier revisions | ## Findings ### Blocking None. ### Non-blocking - `core/shader/recompiler/Optimization/src/ResourceTracker.cpp:1246` caps chase depth and rejects cycles, but the description says the loop and five-step refusal assertions were removed (`description.md:96`). Consider adding focused negative tests so these safeguards remain covered. ## Not verified I did not run a build or tests on this exact head, and did not verify behavior on a physical console. The earlier CI and device runs in the description are author-reported and were not rerun. Files read: `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_table_tests.cmake`, `core/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cpp`, `core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/ControlFlowInfo.hpp`, `core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp`, `core/shader/recompiler/Optimization/src/ResourceTracker.cpp`, `core/shader/recompiler/ShaderDiskCache.cpp`, `core/shader/recompiler/ShaderDiskCache.hpp`, and `docs/dev/debt/shader.md`. No changed file was excluded. ## To get this to a good state Nothing is required. Optional: restore tests that verify loops and chases deeper than the supported limit are refused.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/9633:upstream-pr/9633'
git switch 'upstream-pr/9633'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/9633'
git switch 'upstream-pr/9633'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/9633'
git switch 'upstream-pr/9633'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/9633'
git switch 'main'
git merge --squash 'upstream-pr/9633'
git switch 'main'
git merge --ff-only 'upstream-pr/9633'
git switch 'main'
git merge 'upstream-pr/9633'
git push origin 'main'
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!9633
No description provided.