fix(shader): read a chased pointer's high word at its own offset #9749

Open
EagleBearerYS wants to merge 82 commits from upstream-pr/9749 into main
EagleBearerYS commented 2026-10-22 12:19:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-22T12:19:33Z.


What

This is stacked on #9633.

With #9633, Ratchet & Clank: Rift Apart (PPSA01474) got past its 0x10b84 stop. It then stopped at the next T# load, in compute 0x116bb67100 (Tamalero's run):

ShaderRecompiler::Recompile: GetImageResource dword 0 is not a valid runtime value; chain: LoadAddressU32@pc=0x00013bc0(GetAddressResource(Phi(...

Ratchet & Clank: Rift Apart (PPSA01474), 11-13: this PR got the title past 0x13bc0 in Tamalero's run of 10-22 (see Tested). 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 shape: on main fb542a2b6f, which has #14636, agc_driver_pointer_chase_split_table fails 3 of 3 with #9633 merged and passes 3 of 3 with this PR merged (llvmpipe, a cloud Linux machine).

Tamalero's trace of the same shader (comment) shows a third chase step:

  • the V# is at the pointer plus 0x110;
  • the next pointer is dword 5 (low, 0x54) and dword 11 (high, 0x6c) of one s_buffer_load_dwordx16 from 0x40.

#9633's chase arm required the high word at the low word's immediate + 4, so the walk refused this step. Its V# offset and its depth (3 of 4) were already covered. #9633's 2c1a65045c already gives each word pair through a V# its own chase site, so the new high immediate becomes part of that site.

The change:

  • PointerChase gains readHighImmediate, the high word's own immediate. Tamalero's trace suggested the field.

  • The tracker takes the edge's high-word read when it has:

    • the low read's V# (or an equivalent one);
    • the same buffer offset;
    • a 4-aligned immediate that differs from the low word's.

    The old rule, low + 4, is one case of this.

  • The snapshot reads each chased pointer's high word at that immediate.

  • The shader disk cache encodes the field. FormatVersion goes from #9633's 96 to 97. 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. A decoded chase with an unaligned high immediate, or one equal to the low immediate, is refused.

  • Debt: #9633's chase line now says each word is read at its own fixed immediate, through the arm's V# at the arm's buffer offset.

The chased V#'s base (52ae6543ae): on a diagnostic build of this PR, Tamalero's run stopped after 781 s on AGC driver: invalid shader memory read address (comment), on a V# read as 4f81f1f 0 ffffffff 0. TableSnapshotter::Chase() checked the four words it reads as a V#, but not the alignment of the address it then reads through that V#, and the driver's shader memory reader throws on an unaligned address. Chase() now treats an unaligned base as unresolved, as the snapshot's other runtime-address reads do. That step isn't captured, so a dispatch that takes it faults as outside the snapshot, like a link to memory the snapshot can't read.

Overlap:

  • The stack: this PR's base is #9633, so #9633's overlaps apply. For every other open PR touching these files, this commit's git merge-tree conflicts are the same as #9633's head's, so it adds none: #9508, #8881, #7880, #7642, #9335, #9020, #8625, #8564, #8077, #7689 and #7684. #9671 and #7622 merge cleanly.
  • The format ladder: as in the shader disk cache bullet above. Whichever lands second on a number takes the next free one.
  • #20519 and #22424 (slopezjur, the opt-in bindless image heap and, on it, layout-only pointer tables): the same conflicts as #9633's (see #9633's Overlap). 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

  • Linux, Mesa llvmpipe: the new agc_driver_pointer_chase_split_table reproduces Rift Apart's shape in hand-written RDNA:

    • two chase steps through a V# at the pointer plus 0x60;
    • a third through a V# at the pointer plus 0x110, whose next pointer is dwords 5 and 11 of one 16-dword load from 0x40;
    • then the T#.

    It checks every taken and skipped step, including a node only the third step reaches, then a moved link, then a link outside the snapshot, which faults as outside the snapshot.

  • Refusal controls, refused on both trees until c4f25ba3fc removed them, since they required valid shapes to be refused:

    • the high word through another V#;
    • the high word at another buffer offset;
    • the high word at the low word's immediate.
  • Red: with #9633's tracker and materializer, the test fails with "GetImageResource dword 0 is not a valid runtime value", Rift Apart's text. A scratch build whose closure stops one step short makes the T# fault, so the test does prove the third step.

  • GitHub's runners (run):

    • Linux: the new test fails on #9633's head in all 3 runs. It and seven other pointer and image-table tests, including the shader disk cache test, pass 10 times each with the change.
    • Windows: the runner builds it, and its Vulkan tests skip there.
  • CI's Linux job mirrored on a cloud Linux machine. The failures are the machine's three IPv6 tests, a timing test that passes alone (agc_driver_sgpr_pattern_fill_keys), and two lavapipe JIT Illegal failures on a new host CPU, which also fail on an unrelated tree.

  • Validation layer, #9633 against this PR (CONTRIBUTING's shader rule), on one GitHub Linux runner (run):

    • Setup: both runs used VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ANYPS5_NO_SHADER_CACHE=1, ANYPS5_REQUIRE_VULKAN=1 and ctest -V. The device was llvmpipe (LLVM 20.1.2) on Mesa 25.2.8, Ubuntu 24.04.5.
    • The tests: the eight named tests; #9633's tree has six of them.
    • The layer: the loader inserted VK_LAYER_KHRONOS_validation 5 times on #9633's tree and 7 with this PR. Neither log has was not found but was requested by env var VK_INSTANCE_LAYERS.
    • The messages: both logs report only VUID-VkDeviceCreateInfo-pNext-pNext. This PR adds no VUID- message.
  • check_conventions.py: passes, with no comment lines added.

  • Ratchet & Clank: Rift Apart (PPSA01474), by @Tamalero (comment): content 01.005.003, Linux (CachyOS, kernel 7.2.9), GCC 16.2.1, Release, RTX 4090 (NVIDIA 615.78.08), the executable relinked once with this head's relinker, cold shader cache, no input.

    • Control, 6db7b36aef with only 7ab0765c37 reverted: at 294 s, compute 0x116bb66a00 stops at LoadAddressU32@pc=0x13bc0, at the same sites as on #9633.
    • This PR at 6db7b36aef: 425 s with no refusal at 0x13bc0. Then compute 0x116bb61900 stops on ShaderRecompiler::Recompile: sampler resource limit exceeded.
    • Replays: Tamalero replayed the two requests captured for #9633, 0x116bb67b00 (at 0x13bc0) and its sibling 0x116bb5e100 (at 0x128d4), with each build's agc_shader_replay. The control refuses both at the T# load; with this PR both pass it and stop on the sampler limit, ShaderInfo::MaxSamplers = 32 in AddSampler.
  • Rift Apart's later stops, in Tamalero's diagnostic runs of 10-24 and 10-25: after the sampler limit, invalid shader memory read address, which 52ae6543ae fixes (comment), and then runtime image descriptor is invalid at a storage image that is written and never read, with a TYPE 0 T# (comment). That last stop has its own PR, #10906, which binds such a slot as a null storage image: on gfx1030 a store through those words is dropped (Tamalero's measurement).

  • After merging #9633's refreshed head (820dc4070e; this PR's own diff is unchanged), on GitHub's runners (run):

    • Linux: the ten pointer, image-table and shader disk cache tests pass 10 times each with the validation layer. The loader inserted VK_LAYER_KHRONOS_validation 3 times on main's tree (the three of these tests it has) and 100 times with this PR, and neither log has was not found. Both logs report only VUID-VkDeviceCreateInfo-pNext-pNext, so this PR adds no VUID- message. The device was llvmpipe on Mesa 25.2.8, Ubuntu 24.04.5.
    • Windows: the runner builds it, and its Vulkan tests skip there.
    • Suites: libc and libkernel pass on both runners. The libc and libkernel suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • 6db7b36aef, main b7d1d47a5f merged in (clean; this PR's own diff is unchanged), on GitHub's runners (run):

    • Linux: the ten pointer, image-table and shader disk cache tests pass 10 of 10, none skipped, with the validation layer. main's tree ran the three of them it has. The loader inserted VK_LAYER_KHRONOS_validation 3 times on main and 100 times with this PR, and neither log has was not found. Both logs report only VUID-VkDeviceCreateInfo-pNext-pNext, so this PR adds no VUID- message.
    • Windows: the runner builds it, and its Vulkan tests skip there.
    • Suites: libc and libkernel pass on both runners. The libc and libkernel suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • b2d4afc64d, main c55d7c8e7b merged in (clean; this PR's own diff is unchanged), on GitHub's runners (run):

    • Linux: the ten pointer, image-table and shader disk cache tests pass 10 of 10, none skipped, with the validation layer. main's tree ran the three of them it has. The loader inserted VK_LAYER_KHRONOS_validation 3 times on main and 100 times with this PR, and neither log has was not found. Both logs report only VUID-VkDeviceCreateInfo-pNext-pNext, so this PR adds no VUID- message.
    • Windows: the runner builds it, and its Vulkan tests skip there.
    • Suites: libc and libkernel pass on both runners. The libc and libkernel suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • 8abb8a40a6, a merge of #9633's 6b64604048, which merges main 0db47b263d. The only conflict was ShaderDiskCache.hpp's FormatVersion line: main moved to 45 (#7831), and this branch keeps its 48. On GitHub's runners (run), the pointer, nested, image-table and disk-cache sets (28 tests) pass 10 runs in a row on Linux. On Windows the set has 30, with two Windows-only disk-cache tests: they build, 5 pass 10 runs in a row, and the other 25, 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.

  • a36e95bd11, a merge of #9633's 5b6c96f938 (which carries #7395's and #8939's merges of main 379b1dca32). It's clean apart from FormatVersion, which goes to 52: #9633 is at 48 now, and #10000, #9969 and #10489 take 49 to 51. This PR's own diff is otherwise unchanged.

    • 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: 30 run, 30 pass, 0 skip, 0 fail. Windows: 32 run, 7 pass, 25 skip (Vulkan device tests; the runner has none), 0 fail.
    • The full ^agc set once (run): Linux 985 run, 920 pass, 64 skip, 1 fail; Windows 1004 run, 272 pass, 730 skip, 2 fail. The failures are agc_driver_sgpr_pattern_fill_keys on Linux ("the dispatch completed 17 times without a pending write over the keys") and agc_driver_pipelined_metadata_pass and its _draw_pipeline variant on Windows (vkCreateInstance returns -9 on the device-less runner). main 379b1dca32 shows the same three with the same messages (run); agc_driver_sgpr_pattern_fill_keys failed 1 of 4 runs there.
    • 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.
  • Ratchet & Clank: Rift Apart (PPSA01474) with #10000's limits, by @oneandonlydean (comment), on test/9749-sampler-masks (b340d224db, #10000's sampler limits on this PR's earlier head b2d4afc64d): one 600 s run from a cold shader cache with APS5_DUMP_IR=all. No sampler resource limit exceeded line, no what() or terminate and no stop line: it ran the whole 600 s. 7840 IR blocks were dumped. The highest shader pc is 0x1f2c8, and 980 block lines are at or past 0x13bc0. This covers that branch, not this PR's current head.

  • 7bcb8f4239, a merge of #9633's 72f48b702f (which carries #7395's merge of main c9b2660d56). The only conflict was FormatVersion, which goes to 55. 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: 30 run, 30 pass, 0 skip, 0 fail. Windows: 32 run, 7 pass, 25 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.

  • 67053a3281, a merge of #9633's 839cad8ea1, which carries #7395's merge of #7223's f1cc524085 (yabanana's merge of main c8d34aa8f4). Clean: FormatVersion stays at 55, and this PR's own diff is unchanged: the merge brings in exactly what #9633'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: 30 run, 30 pass, 0 skip, 0 fail. Windows: 32 run, 7 pass, 25 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.

  • 52ae6543ae, the chased V#'s base, red/green against 67053a3281 on GitHub's runners (run). agc_driver_pointer_chase_table gains a case where the V# at a chased pointer that no group's step goes through has an unaligned base, and requires that the snapshot records no range that starts unaligned.

    • Linux: with 67053a3281's implementation it fails in all 3 runs, with "the snapshot read guest memory through a V# with an unaligned base on a step no group takes". With the fix it passes 10 runs in a row.
    • Windows: it skips, as the runner has no Vulkan device.
    • Not tested: a dispatch that takes that step, which should then fault as outside the snapshot, like any link the snapshot didn't capture. The case doesn't take it: a first version that did made lavapipe segfault on the garbage pointer on both trees.
    • The focused sets, 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: 30 run, 30 pass, 0 skip, 0 fail. Windows: 32 run, 7 pass, 25 skip (no Vulkan device), 0 fail.
    • Validation, 67053a3281 against 52ae6543ae (run), agc_driver_pointer_chase_table once on Linux (llvmpipe) with VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ANYPS5_NO_SHADER_CACHE=1 and ANYPS5_REQUIRE_VULKAN=1: the layer was inserted once on each tree, neither log has was not found but was requested, and both report only VUID-VkDeviceCreateInfo-pNext-pNext, so the commit adds no VUID- message.
    • 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.
  • 7d6ab8ab36: 5e0d923429, a merge of #9633's 68d04647f3, the format commit fc0c03d48e, and 7d6ab8ab36, a merge of #9633's merge of main 0cd07dc4ab (run).

    • 5e0d923429 takes #9633's merge of #9457 (with #7223's 153400ba2b, the test-only commits of #7395 and #8939, and the stack's format commits). Clean, and this PR's own diff is unchanged.
    • fc0c03d48e gives this PR its own disk-cache format, 56, one above #9633's 55. 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.
    • 7d6ab8ab36 merges #9633's merge of main 0cd07dc4ab. Clean here, and this PR's changed lines are the same.
    • The chase, split-chase, SGPR-fill and pipelined metadata tests with the disk-cache, bindless and shader-memory tests. Linux ran them 10 times with no failure: 8 run, 8 pass, 0 skip, 0 fail. Windows: 10 run, 6 pass, 3 skip (the Vulkan device tests), 1 fail: on our verify's Windows build, which compiles tests/execution, agc_driver_pipelined_metadata_pass fails at vkCreateInstance (-9) on GitHub's device-less runner, before this PR's code; main fails it the same way there (run), and upstream's Windows job builds it as a skipped stub.
    • 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.
  • ac64b90241, a merge of #9633's b5a199bac2, 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, split-chase, SGPR-fill, nested-sampler and pipelined metadata tests with the disk-cache, bindless and shader-memory tests. Linux ran them 10 times with no failure: 9 run, 9 pass, 0 skip, 0 fail. Windows: 11 run, 6 pass, 4 skip (the Vulkan device tests), 1 fail: on our verify's Windows build, which compiles tests/execution, agc_driver_pipelined_metadata_pass fails at vkCreateInstance (-9) on GitHub's device-less runner, before this PR's code; main fails it the same way there (run), and upstream's Windows job builds it as a skipped stub. 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.

  • 32ba4ec353, a merge of 037f579a20, #9633's merge of #9457's 9a44f18aeb, which carries main 38ccd50f83 and with it #11507's FormatVersion 49 (run). Clean: FormatVersion stays 56 (see What), and this PR's diff over #9633 is the same. The chase, split-chase, SGPR-fill, nested-sampler and pipelined metadata tests with the disk-cache, bindless and shader-memory tests and #11507's agc_driver_image_sample_short_cube. Linux ran them 10 times with no failure: 10 run, 10 pass, 0 skip, 0 fail. Windows: 12 run, 6 pass, 5 skip (the Vulkan device tests), 1 fail: on our verify's Windows build, which compiles tests/execution, agc_driver_pipelined_metadata_pass fails at vkCreateInstance (-9) on GitHub's device-less runner, before this PR's code; main fails it the same way there (run), and upstream's Windows job builds it as a skipped stub. 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.

  • f469f4d1b7, a merge of #9633's 6c139245aa, which adds the edited-V# chase (run). Four places conflicted, and the merge keeps both sides in each:

    • the CMake test properties take this PR's agc_driver_pointer_chase_split_table and #9633's agc_driver_pointer_chase_edited_table;
    • PointerChase keeps this PR's readHighImmediate and gains #9633's edits;
    • ShaderDiskCache.cpp writes and reads readHighImmediate and then the edits, in the same order, and keeps both validation checks;
    • the chase entry in docs/dev/debt/shader.md states both rules, this PR's two words at their own immediates and #9633's edited V# words, worded to stay under the checker's 1000 characters.
      FormatVersion stays 56. The chase, split-chase, edited-chase, chase-words, SGPR-fill, nested-sampler and pipelined metadata tests with the disk-cache, bindless and shader-memory tests and #11507's agc_driver_image_sample_short_cube. Linux ran them 10 times with no failure: 12 run, 12 pass, 0 skip, 0 fail. Windows: 14 run, 6 pass, 7 skip (the Vulkan device tests), 1 fail: on our verify's Windows build, which compiles tests/execution, agc_driver_pipelined_metadata_pass fails at vkCreateInstance (-9) on GitHub's device-less runner, before this PR's code; main fails it the same way there (run), and upstream's Windows job builds it as a skipped stub. 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.
  • c4f25ba3fc: 85d0352ef0, a merge of #9633's ee8767ff0d, the format commit f6b5d58d10, and the test-only commit c4f25ba3fc (run).

    • 85d0352ef0 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), the format commits below this PR and #9633's test-only commit ee8767ff0d. The one conflict was in tests/execution/ImageTable.cpp, in two places next to this PR's lines: the merge takes ee8767ff0d's removal of the looped and five-step chase shaders and of their refusal checks, and keeps this PR's split-word shaders and the speculative keys it adds to the conditional chase test.
    • f6b5d58d10 gives this PR its own disk-cache format, 57, one above #9633's 56.
    • c4f25ba3fc drops the split-word pointer chase test's three checks that a valid shader is refused (a high word read through another V#, at another buffer offset, and at the low word), with their helper and their shader words, under the same test rule. None of these shapes is implemented. The taken and skipped steps, the node only the third step reaches, the moved link and the link outside the snapshot are still checked. Apart from these and the format line, this PR's diff over #9633 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: 31 run, 31 pass, 0 skip, 0 fail. Windows: 33 run, 8 pass, 25 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.
  • eac5dce947 and babbb0eafd, for XairRrR's review, on a merge of #9633's a727b7653f (×10 run, negative control run).

    • 42a4f381ef merges #9633's head, which carries #7395's 4769d5a745, which drops "and refusals" from two nested-table test summary lines. It's clean and brings only that change.
    • eac5dce947 rewrites the chase entry in docs/dev/debt/shader.md to lead with what stays refused, and adds this PR's two refusals: a high word read at the low word's own immediate, and a chased V# whose base leaves either word's address unaligned (52ae6543ae), which ends the chase even inside the snapshot. Whether the console reads the dword-aligned address there instead is not measured. The entry is under the conventions check's 1,000 characters.
    • babbb0eafd adds a disk-cache round trip for a pointer-keyed column with one chase whose high word has its own immediate (agc_shader_disk_cache). The chase tests run with ANYPS5_NO_SHADER_CACHE=1, so nothing covered readHighImmediate in the cache before. As a negative control, a decoder that reads the field into a throwaway makes the new check fail on both runners: "a pointer chase whose high word has its own immediate changed in a disk-cache round trip".
    • The image-table, nested, pointer, disk-cache, bindless and shader-memory tests ran 10 times with no failure. Linux: 31 run, 31 pass, 0 skip, 0 fail. Windows: 33 run, 8 pass, 25 skip, 0 fail; the 25 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.
  • NVIDIA RTX 2000 Ada Generation at 99d77ab33a, from TechLevelZero's NVIDIA bot (report): driver 595.99.02, Ubuntu 26.04.1, this head merged onto main 3741ca9, 2,542 of 3,121 tests selected.

    • 2,494 passed, 4 failed and 44 skipped. None of the failures is new: 3 also fail on main, and 1 is unstable on main.
    • With VK_LAYER_KHRONOS_validation, over 949 tests on the GPU, there are no new validation IDs against main. 19 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.
  • 4699b25e2d: d4ef08da08, a merge of #9633's 280d6d6c44, and the format commit 4699b25e2d (run). Two conflicts: FormatVersion, which the format commit moves from 57 to 72, above #9633's 70, and agc_driver_image_table_tests.cmake, where this PR's split-chase registration is kept. ShaderDiskCache.cpp merged cleanly with #9633's numbers, which this PR doesn't change. 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: 34 run, 34 pass, 0 skip, 0 fail. Windows: 36 run, 10 pass, 26 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, 6 failed, none new (3 also fail on main, 3 unstable on main), 45 skipped, with no new validation IDs (992 tests on the GPU).

  • 8fa3da8d9e, a merge of #9633's b9fab3f82e, which carries #7395's merge of main 4f64f81ef7 (run). Clean: FormatVersion stays 72, 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: 34 run, 34 pass, 0 skip, 0 fail. Windows: 36 run, 10 pass, 26 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.

    • Every agc test, once (run): Linux: 1,261 run, 1,182 pass, 78 skip, 1 fail. Windows: 1,297 run, 390 pass, 907 skip (no Vulkan device), 0 fail. The one failure is agc_driver_pipeline_journal's 120-second timeout, which main 88e804b0a7's own run of every test hits too (run).
  • 13e0df876d, 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 72; 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: 19 run, 19 pass, 0 skip, 0 fail. Windows: 19 run, 0 pass, 19 skip (no Vulkan device), 0 fail.
    • @XairRrR approved this head (review), with the three non-blocking findings of their review of c4f25ba3fc resolved. On a Debian 13 VM (GCC 14.2.0, lavapipe on Mesa 26.1.6), the tree merged with main 4f41f4c375 builds. Their selected tests ran 2,235 with no new failures (7 known failures also fail on main), the validation comparison with main over 789 tests shows no new VUID-, and the focused tests pass 27 of 27. Their negative control, the decoder dropping readHighImmediate, fails agc_shader_disk_cache.
  • 18bc368ab1, a merge of #9633's 6089e589a8, which carries main c2eafe4461 with yabanana's #7223 through #9457, #8939 and #7395 (×10).

    • The conflicts: ShaderDiskCache.hpp's FormatVersion, which stays 72 (main is at 56 since #7223), and docs/dev/debt/shader.md, where this PR's wording of the 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: 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 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,911 of 3,878 tests selected. 2,855 passed, 6 failed and 50 skipped. None of the failures is new: 3 also fail on main, and 3 are unstable on main. With VK_LAYER_KHRONOS_validation, there are no new validation IDs against main, over 989 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.
  • da7bcad1d1, a merge of #9633's 527a907ad8, which carries main 8eaf82f315 through #9457, #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: 35 run, 35 pass, 0 skip, 0 fail. Windows: 37 run, 10 pass, 27 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.
  • e3c81a7714, a merge of #9633's 0fd3c90456, which carries main 006d11fca5 through #9457, #8939 and #7395 (×10).

    • Clean: #7395's merge takes the one conflict with main, frankea's #9020's FormatVersion 57, and FormatVersion stays 72 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: 35 run, 35 pass, 0 skip, 0 fail. Windows: 37 run, 10 pass, 27 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.
  • 54eab5bb7a, a merge of #9633's f086739418, which carries main dd7c8de5de through #9457, #8939 and #7395 (×10).

    • The conflict: docs/dev/debt/shader.md, where this PR's wording of the 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 72, 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: 49 run, 49 pass, 0 skip, 0 fail. Windows: 51 run, 10 pass, 41 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.
  • aec64b8636: fef555f82a, a merge of #9633's b55705b34f, and the format commit aec64b8636, which carries main 017bd95f5f through #9633, #9457, #8939 and #7395 (×10, every agc test).

    • The conflict: FormatVersion, where #9633 now takes 82, above this PR's 72. The merge takes 82, and the format commit moves this PR to 83. 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: 49 run, 49 pass, 0 skip, 0 fail. Windows: 51 run, 10 pass, 41 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, once, since #14636 is itself a recompiler change: 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.
  • 39b162b371: ad2a93618b, a merge of #9457's d007acef13, and 39b162b371, a merge of #9633's 56416624f1, both without conflicts, which carry main e22c5fb941 through #9633, #9457, #8939 and #7395 (×10). The second merge changes no file: 39b162b371 has ad2a93618b's tree, which the ×10 ran.

    • ×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: 50 run, 50 pass, 0 skip, 0 fail. Windows: 52 run, 11 pass, 41 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 at 39b162b371 (the run tested ad2a93618b, which has the same tree): main e22c5fb941 against this 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 focused tests above (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 the four 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 this head, 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.
  • b0e80e539e, a merge of #9633's ae857ccc9b, without conflicts, which carries main bd278f3654 through #9633, #9457, #8939 and #7395 (×10).

    • FormatVersion: main's 69, this PR's 83. #7395's merge takes #19530's move of main from 68 to 69, and this PR's own diff over #9633 is unchanged.
    • ×10: the same tests as on 39b162b371. Linux: 50 run, 50 pass, 0 skip, 0 fail. Windows: 52 run, 11 pass, 41 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.
  • 510fd2384d, a merge of #9633's 99e3511c6a, which carries main 328cbf673e through #9633, #9457, #8939 and #7395 (×10, with #21255's test change).

    • The conflict: only FormatVersion, where #9633 now takes 96, above this PR's 83. The merge moves this PR to 97. This PR's own lines are unchanged apart from the FormatVersion line.
    • ×10: the same tests as on b0e80e539e. Linux: 57 run, 56 pass, 0 skip, 1 fail. Windows: 59 run, 11 pass, 48 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 this head (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 510fd2384d merged onto main e4caa07950 (their merge 44a4f4bcdb, 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: 95 of 95 pass, including the 17 tests main doesn't have: this PR's agc_driver_pointer_chase_split_table, #9633'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 59 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 365f2b551f of #9633'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 19 ^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 build passes, the libc and libkernel suites run 421 and 417 tests with 0 failed, and the 19 tests skip (no Vulkan device). The Windows GPU case itself can only be re-run by a tester.
  • bee5a91996, a merge of #9633's 2f104ac486, which carries main d89f26516c through #9633, without conflicts (×10, with #21255's test change).

    • No conflicts: this PR's FormatVersion stays 97, 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: 57 run, 56 pass, 0 skip, 1 fail. Windows: 59 run, 11 pass, 48 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, this PR's own head (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 (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. This head bee5a91996 merged onto main e1ab104e0a (their merge b726f51423, clean), against main e1ab104e0a alone. main: 39 tests, 38 pass, 1 skip in each run. This PR: 56 tests, 55 pass, 1 skip in each run; the counts include the tests of #7395, #8939, #9457 and #9633, which this head carries. 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.

  • dd2c6b1aee, a merge of #9633's f96acd992d, which carries main d50640e264 through #9633, without conflicts (×10, with #21255's test change).

    • No conflicts: this PR's FormatVersion stays 97, 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: 57 run, 56 pass, 0 skip, 1 fail. Windows: 59 run, 11 pass, 48 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, this PR's own head (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: #9633
  • Fixes: none (related: #6191)
  • Unblocks: none on current main (see What)
  • GPUs tested: Mesa llvmpipe (LLVM 20.1.2), Ubuntu 24.04, on GitHub's Linux runner and a cloud Linux machine; NVIDIA RTX 2000 Ada Generation (driver 595.99.02, Ubuntu 26.04.1; TechLevelZero's NVIDIA bot); NVIDIA GeForce RTX 4090 (615.78.08), Linux, in Tamalero'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
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4967232053 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9749). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-22T12:19:33Z. --- ### What This is stacked on #9633. With #9633, Ratchet & Clank: Rift Apart (PPSA01474) got past its 0x10b84 stop. It then stopped at the next T# load, in compute 0x116bb67100 ([Tamalero's run](https://github.com/boykopovar/AnyPS5/pull/9633#issuecomment-6338006613)): ``` ShaderRecompiler::Recompile: GetImageResource dword 0 is not a valid runtime value; chain: LoadAddressU32@pc=0x00013bc0(GetAddressResource(Phi(... ``` **Ratchet & Clank: Rift Apart (PPSA01474), 11-13:** this PR got the title past 0x13bc0 in Tamalero's run of 10-22 (see Tested). 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 shape: on `main` fb542a2b6f, which has #14636, `agc_driver_pointer_chase_split_table` fails 3 of 3 with #9633 merged and passes 3 of 3 with this PR merged (llvmpipe, a cloud Linux machine). Tamalero's trace of the same shader ([comment](https://github.com/boykopovar/AnyPS5/pull/9633#issuecomment-6338256607)) shows a third chase step: - the V# is at the pointer plus 0x110; - the next pointer is dword 5 (low, 0x54) and dword 11 (high, 0x6c) of one `s_buffer_load_dwordx16` from 0x40. #9633's chase arm required the high word at the low word's immediate + 4, so the walk refused this step. Its V# offset and its depth (3 of 4) were already covered. #9633's 2c1a65045c already gives each word pair through a V# its own chase site, so the new high immediate becomes part of that site. **The change:** - **`PointerChase`** gains `readHighImmediate`, the high word's own immediate. Tamalero's trace suggested the field. - **The tracker** takes the edge's high-word read when it has: - the low read's V# (or an equivalent one); - the same buffer offset; - a 4-aligned immediate that differs from the low word's. The old rule, low + 4, is one case of this. - **The snapshot** reads each chased pointer's high word at that immediate. - **The shader disk cache** encodes the field. `FormatVersion` goes from #9633's 96 to 97. `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. A decoded chase with an unaligned high immediate, or one equal to the low immediate, is refused. - **Debt:** #9633's chase line now says each word is read at its own fixed immediate, through the arm's V# at the arm's buffer offset. **The chased V#'s base** (52ae6543ae): on a diagnostic build of this PR, Tamalero's run stopped after 781 s on `AGC driver: invalid shader memory read address` ([comment](https://github.com/boykopovar/AnyPS5/pull/9749#issuecomment-6390721035)), on a V# read as `4f81f1f 0 ffffffff 0`. `TableSnapshotter::Chase()` checked the four words it reads as a V#, but not the alignment of the address it then reads through that V#, and the driver's shader memory reader throws on an unaligned address. `Chase()` now treats an unaligned base as unresolved, as the snapshot's other runtime-address reads do. That step isn't captured, so a dispatch that takes it faults as outside the snapshot, like a link to memory the snapshot can't read. **Overlap:** - **The stack:** this PR's base is #9633, so #9633's overlaps apply. For every other open PR touching these files, this commit's `git merge-tree` conflicts are the same as #9633's head's, so it adds none: #9508, #8881, #7880, #7642, #9335, #9020, #8625, #8564, #8077, #7689 and #7684. #9671 and #7622 merge cleanly. - **The format ladder:** as in the shader disk cache bullet above. Whichever lands second on a number takes the next free one. - **#20519 and #22424 (slopezjur, the opt-in bindless image heap and, on it, layout-only pointer tables):** the same conflicts as #9633's (see #9633's Overlap). 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 - **Linux, Mesa llvmpipe:** the new `agc_driver_pointer_chase_split_table` reproduces Rift Apart's shape in hand-written RDNA: - two chase steps through a V# at the pointer plus 0x60; - a third through a V# at the pointer plus 0x110, whose next pointer is dwords 5 and 11 of one 16-dword load from 0x40; - then the T#. It checks every taken and skipped step, including a node only the third step reaches, then a moved link, then a link outside the snapshot, which faults as outside the snapshot. - **Refusal controls**, refused on both trees until c4f25ba3fc removed them, since they required valid shapes to be refused: - the high word through another V#; - the high word at another buffer offset; - the high word at the low word's immediate. - **Red:** with #9633's tracker and materializer, the test fails with "GetImageResource dword 0 is not a valid runtime value", Rift Apart's text. A scratch build whose closure stops one step short makes the T# fault, so the test does prove the third step. - **GitHub's runners** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39768557209)): - **Linux:** the new test fails on #9633's head in all 3 runs. It and seven other pointer and image-table tests, including the shader disk cache test, pass 10 times each with the change. - **Windows:** the runner builds it, and its Vulkan tests skip there. - **CI's Linux job mirrored** on a cloud Linux machine. The failures are the machine's three IPv6 tests, a timing test that passes alone (`agc_driver_sgpr_pattern_fill_keys`), and two lavapipe JIT `Illegal` failures on a new host CPU, which also fail on an unrelated tree. - **Validation layer, #9633 against this PR** (CONTRIBUTING's shader rule), on one GitHub Linux runner ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39768613749)): - **Setup:** both runs used `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, `ANYPS5_NO_SHADER_CACHE=1`, `ANYPS5_REQUIRE_VULKAN=1` and `ctest -V`. The device was llvmpipe (LLVM 20.1.2) on Mesa 25.2.8, Ubuntu 24.04.5. - **The tests:** the eight named tests; #9633's tree has six of them. - **The layer:** the loader inserted `VK_LAYER_KHRONOS_validation` 5 times on #9633's tree and 7 with this PR. Neither log has `was not found but was requested by env var VK_INSTANCE_LAYERS`. - **The messages:** both logs report only `VUID-VkDeviceCreateInfo-pNext-pNext`. This PR adds no `VUID-` message. - **`check_conventions.py`:** passes, with no comment lines added. - **Ratchet & Clank: Rift Apart (PPSA01474), by @Tamalero** ([comment](https://github.com/boykopovar/AnyPS5/pull/9749#issuecomment-6347108120)): content 01.005.003, Linux (CachyOS, kernel 7.2.9), GCC 16.2.1, Release, RTX 4090 (NVIDIA 615.78.08), the executable relinked once with this head's relinker, cold shader cache, no input. - **Control**, 6db7b36aef with only 7ab0765c37 reverted: at 294 s, compute 0x116bb66a00 stops at `LoadAddressU32@pc=0x13bc0`, at the same sites as on #9633. - **This PR** at 6db7b36aef: 425 s with no refusal at 0x13bc0. Then compute 0x116bb61900 stops on `ShaderRecompiler::Recompile: sampler resource limit exceeded`. - **Replays:** Tamalero replayed the two requests captured for #9633, 0x116bb67b00 (at 0x13bc0) and its sibling 0x116bb5e100 (at 0x128d4), with each build's `agc_shader_replay`. The control refuses both at the T# load; with this PR both pass it and stop on the sampler limit, `ShaderInfo::MaxSamplers = 32` in `AddSampler`. - **Rift Apart's later stops, in Tamalero's diagnostic runs of 10-24 and 10-25:** after the sampler limit, `invalid shader memory read address`, which 52ae6543ae fixes ([comment](https://github.com/boykopovar/AnyPS5/pull/9749#issuecomment-6390721035)), and then `runtime image descriptor is invalid` at a storage image that is written and never read, with a TYPE 0 T# ([comment](https://github.com/boykopovar/AnyPS5/pull/9749#issuecomment-6394778216)). That last stop has its own PR, #10906, which binds such a slot as a null storage image: on gfx1030 a store through those words is dropped ([Tamalero's measurement](https://github.com/boykopovar/AnyPS5/pull/9749#issuecomment-6395119897)). - **After merging #9633's refreshed head** (820dc4070e; this PR's own diff is unchanged), on GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39794572353)): - **Linux:** the ten pointer, image-table and shader disk cache tests pass 10 times each with the validation layer. The loader inserted `VK_LAYER_KHRONOS_validation` 3 times on `main`'s tree (the three of these tests it has) and 100 times with this PR, and neither log has `was not found`. Both logs report only `VUID-VkDeviceCreateInfo-pNext-pNext`, so this PR adds no `VUID-` message. The device was llvmpipe on Mesa 25.2.8, Ubuntu 24.04.5. - **Windows:** the runner builds it, and its Vulkan tests skip there. - **Suites:** libc and libkernel pass on both runners. The libc and libkernel suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **6db7b36aef, `main` b7d1d47a5f merged in** (clean; this PR's own diff is unchanged), on GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39802870645)): - **Linux:** the ten pointer, image-table and shader disk cache tests pass 10 of 10, none skipped, with the validation layer. `main`'s tree ran the three of them it has. The loader inserted `VK_LAYER_KHRONOS_validation` 3 times on `main` and 100 times with this PR, and neither log has `was not found`. Both logs report only `VUID-VkDeviceCreateInfo-pNext-pNext`, so this PR adds no `VUID-` message. - **Windows:** the runner builds it, and its Vulkan tests skip there. - **Suites:** libc and libkernel pass on both runners. The libc and libkernel suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **b2d4afc64d, `main` c55d7c8e7b merged in** (clean; this PR's own diff is unchanged), on GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39825138685)): - **Linux:** the ten pointer, image-table and shader disk cache tests pass 10 of 10, none skipped, with the validation layer. `main`'s tree ran the three of them it has. The loader inserted `VK_LAYER_KHRONOS_validation` 3 times on `main` and 100 times with this PR, and neither log has `was not found`. Both logs report only `VUID-VkDeviceCreateInfo-pNext-pNext`, so this PR adds no `VUID-` message. - **Windows:** the runner builds it, and its Vulkan tests skip there. - **Suites:** libc and libkernel pass on both runners. The libc and libkernel suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **8abb8a40a6, a merge of #9633's 6b64604048, which merges `main` 0db47b263d.** The only conflict was `ShaderDiskCache.hpp`'s `FormatVersion` line: `main` moved to 45 (#7831), and this branch keeps its 48. On GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39930340627)), the pointer, nested, image-table and disk-cache sets (28 tests) pass 10 runs in a row on Linux. On Windows the set has 30, with two Windows-only disk-cache tests: they build, 5 pass 10 runs in a row, and the other 25, 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. - **a36e95bd11, a merge of #9633's 5b6c96f938** (which carries #7395's and #8939's merges of `main` 379b1dca32). It's clean apart from `FormatVersion`, which goes to 52: #9633 is at 48 now, and #10000, #9969 and #10489 take 49 to 51. This PR's own diff is otherwise unchanged. - **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/40077269176)): `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: 30 run, 30 pass, 0 skip, 0 fail. Windows: 32 run, 7 pass, 25 skip (Vulkan device tests; the runner has none), 0 fail. - The full `^agc` set once ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40077557928)): Linux 985 run, 920 pass, 64 skip, 1 fail; Windows 1004 run, 272 pass, 730 skip, 2 fail. The failures are `agc_driver_sgpr_pattern_fill_keys` on Linux ("the dispatch completed 17 times without a pending write over the keys") and `agc_driver_pipelined_metadata_pass` and its `_draw_pipeline` variant on Windows (`vkCreateInstance` returns -9 on the device-less runner). `main` 379b1dca32 shows the same three with the same messages ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40067086619)); `agc_driver_sgpr_pattern_fill_keys` failed 1 of 4 runs there. - 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. - **Ratchet & Clank: Rift Apart (PPSA01474) with #10000's limits, by @oneandonlydean** ([comment](https://github.com/boykopovar/AnyPS5/pull/9749#issuecomment-6383415584)), on `test/9749-sampler-masks` (b340d224db, #10000's sampler limits on this PR's earlier head b2d4afc64d): one 600 s run from a cold shader cache with `APS5_DUMP_IR=all`. No `sampler resource limit exceeded` line, no `what()` or terminate and no stop line: it ran the whole 600 s. 7840 IR blocks were dumped. The highest shader pc is 0x1f2c8, and 980 block lines are at or past 0x13bc0. This covers that branch, not this PR's current head. - **7bcb8f4239, a merge of #9633's 72f48b702f** (which carries #7395's merge of `main` c9b2660d56). The only conflict was `FormatVersion`, which goes to 55. This PR's own diff is otherwise unchanged. On GitHub's runners, 10 runs ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40100152486)) 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: 30 run, 30 pass, 0 skip, 0 fail. Windows: 32 run, 7 pass, 25 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. - **67053a3281, a merge of #9633's 839cad8ea1, which carries #7395's merge of #7223's f1cc524085 (yabanana's merge of `main` c8d34aa8f4).** Clean: `FormatVersion` stays at 55, and this PR's own diff is unchanged: the merge brings in exactly what #9633's merge did (249 files). On GitHub's runners, 10 runs ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40136925812)) 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: 30 run, 30 pass, 0 skip, 0 fail. Windows: 32 run, 7 pass, 25 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. - **52ae6543ae, the chased V#'s base,** red/green against 67053a3281 on GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40150516884)). `agc_driver_pointer_chase_table` gains a case where the V# at a chased pointer that no group's step goes through has an unaligned base, and requires that the snapshot records no range that starts unaligned. - **Linux:** with 67053a3281's implementation it fails in all 3 runs, with "the snapshot read guest memory through a V# with an unaligned base on a step no group takes". With the fix it passes 10 runs in a row. - **Windows:** it skips, as the runner has no Vulkan device. - **Not tested:** a dispatch that takes that step, which should then fault as outside the snapshot, like any link the snapshot didn't capture. The case doesn't take it: a first version that did made lavapipe segfault on the garbage pointer on both trees. - **The focused sets,** 10 runs ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40153450334)) 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: 30 run, 30 pass, 0 skip, 0 fail. Windows: 32 run, 7 pass, 25 skip (no Vulkan device), 0 fail. - **Validation, 67053a3281 against 52ae6543ae** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40150650958)), `agc_driver_pointer_chase_table` once on Linux (llvmpipe) with `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, `ANYPS5_NO_SHADER_CACHE=1` and `ANYPS5_REQUIRE_VULKAN=1`: the layer was inserted once on each tree, neither log has `was not found but was requested`, and both report only `VUID-VkDeviceCreateInfo-pNext-pNext`, so the commit adds no `VUID-` message. - 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. - **7d6ab8ab36: 5e0d923429, a merge of #9633's 68d04647f3, the format commit fc0c03d48e, and 7d6ab8ab36, a merge of #9633's merge of `main` 0cd07dc4ab** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40642021187)). - **5e0d923429** takes #9633's merge of #9457 (with #7223's 153400ba2b, the test-only commits of #7395 and #8939, and the stack's format commits). Clean, and this PR's own diff is unchanged. - **fc0c03d48e** gives this PR its own disk-cache format, 56, one above #9633's 55. 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. - **7d6ab8ab36** merges #9633's merge of `main` 0cd07dc4ab. Clean here, and this PR's changed lines are the same. - The chase, split-chase, SGPR-fill and pipelined metadata tests with the disk-cache, bindless and shader-memory tests. Linux ran them 10 times with no failure: 8 run, 8 pass, 0 skip, 0 fail. Windows: 10 run, 6 pass, 3 skip (the Vulkan device tests), 1 fail: on our verify's Windows build, which compiles `tests/execution`, `agc_driver_pipelined_metadata_pass` fails at `vkCreateInstance` (-9) on GitHub's device-less runner, before this PR's code; `main` fails it the same way there ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40109333265)), and upstream's Windows job builds it as a skipped stub. - 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. - **ac64b90241, a merge of #9633's b5a199bac2**, 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/40656471951)). Clean, and this PR's changed lines are the same. The chase, split-chase, SGPR-fill, nested-sampler and pipelined metadata tests with the disk-cache, bindless and shader-memory tests. Linux ran them 10 times with no failure: 9 run, 9 pass, 0 skip, 0 fail. Windows: 11 run, 6 pass, 4 skip (the Vulkan device tests), 1 fail: on our verify's Windows build, which compiles `tests/execution`, `agc_driver_pipelined_metadata_pass` fails at `vkCreateInstance` (-9) on GitHub's device-less runner, before this PR's code; `main` fails it the same way there ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40109333265)), and upstream's Windows job builds it as a skipped stub. 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. - **32ba4ec353, a merge of 037f579a20**, #9633's merge of #9457's 9a44f18aeb, which carries `main` 38ccd50f83 and with it #11507's `FormatVersion` 49 ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40665667294)). Clean: `FormatVersion` stays 56 (see What), and this PR's diff over #9633 is the same. The chase, split-chase, SGPR-fill, nested-sampler and pipelined metadata tests with the disk-cache, bindless and shader-memory tests and #11507's `agc_driver_image_sample_short_cube`. Linux ran them 10 times with no failure: 10 run, 10 pass, 0 skip, 0 fail. Windows: 12 run, 6 pass, 5 skip (the Vulkan device tests), 1 fail: on our verify's Windows build, which compiles `tests/execution`, `agc_driver_pipelined_metadata_pass` fails at `vkCreateInstance` (-9) on GitHub's device-less runner, before this PR's code; `main` fails it the same way there ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40109333265)), and upstream's Windows job builds it as a skipped stub. 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. - **f469f4d1b7, a merge of #9633's 6c139245aa**, which adds the edited-V# chase ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40679996289)). Four places conflicted, and the merge keeps both sides in each: - the CMake test properties take this PR's `agc_driver_pointer_chase_split_table` and #9633's `agc_driver_pointer_chase_edited_table`; - `PointerChase` keeps this PR's `readHighImmediate` and gains #9633's `edits`; - `ShaderDiskCache.cpp` writes and reads `readHighImmediate` and then the edits, in the same order, and keeps both validation checks; - the chase entry in `docs/dev/debt/shader.md` states both rules, this PR's two words at their own immediates and #9633's edited V# words, worded to stay under the checker's 1000 characters. `FormatVersion` stays 56. The chase, split-chase, edited-chase, chase-words, SGPR-fill, nested-sampler and pipelined metadata tests with the disk-cache, bindless and shader-memory tests and #11507's `agc_driver_image_sample_short_cube`. Linux ran them 10 times with no failure: 12 run, 12 pass, 0 skip, 0 fail. Windows: 14 run, 6 pass, 7 skip (the Vulkan device tests), 1 fail: on our verify's Windows build, which compiles `tests/execution`, `agc_driver_pipelined_metadata_pass` fails at `vkCreateInstance` (-9) on GitHub's device-less runner, before this PR's code; `main` fails it the same way there ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40109333265)), and upstream's Windows job builds it as a skipped stub. 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. - **c4f25ba3fc: 85d0352ef0, a merge of #9633's ee8767ff0d, the format commit f6b5d58d10, and the test-only commit c4f25ba3fc** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40862229513)). - **85d0352ef0** 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), the format commits below this PR and #9633's test-only commit ee8767ff0d. The one conflict was in `tests/execution/ImageTable.cpp`, in two places next to this PR's lines: the merge takes ee8767ff0d's removal of the looped and five-step chase shaders and of their refusal checks, and keeps this PR's split-word shaders and the speculative keys it adds to the conditional chase test. - **f6b5d58d10** gives this PR its own disk-cache format, 57, one above #9633's 56. - **c4f25ba3fc** drops the split-word pointer chase test's three checks that a valid shader is refused (a high word read through another V#, at another buffer offset, and at the low word), with their helper and their shader words, under the same test rule. None of these shapes is implemented. The taken and skipped steps, the node only the third step reaches, the moved link and the link outside the snapshot are still checked. Apart from these and the format line, this PR's diff over #9633 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: 31 run, 31 pass, 0 skip, 0 fail. Windows: 33 run, 8 pass, 25 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. - **eac5dce947 and babbb0eafd, for XairRrR's review, on a merge of #9633's a727b7653f** (×10 [run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40947807524), negative control [run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40948992625)). - **42a4f381ef** merges #9633's head, which carries #7395's 4769d5a745, which drops "and refusals" from two nested-table test summary lines. It's clean and brings only that change. - **eac5dce947** rewrites the chase entry in `docs/dev/debt/shader.md` to lead with what stays refused, and adds this PR's two refusals: a high word read at the low word's own immediate, and a chased V# whose base leaves either word's address unaligned (52ae6543ae), which ends the chase even inside the snapshot. Whether the console reads the dword-aligned address there instead is not measured. The entry is under the conventions check's 1,000 characters. - **babbb0eafd** adds a disk-cache round trip for a pointer-keyed column with one chase whose high word has its own immediate (`agc_shader_disk_cache`). The chase tests run with `ANYPS5_NO_SHADER_CACHE=1`, so nothing covered `readHighImmediate` in the cache before. As a negative control, a decoder that reads the field into a throwaway makes the new check fail on both runners: "a pointer chase whose high word has its own immediate changed in a disk-cache round trip". - The image-table, nested, pointer, disk-cache, bindless and shader-memory tests ran 10 times with no failure. Linux: 31 run, 31 pass, 0 skip, 0 fail. Windows: 33 run, 8 pass, 25 skip, 0 fail; the 25 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. - **NVIDIA RTX 2000 Ada Generation** at 99d77ab33a, from TechLevelZero's NVIDIA bot ([report](https://github.com/boykopovar/AnyPS5/pull/9749#issuecomment-6554515230)): driver 595.99.02, Ubuntu 26.04.1, this head merged onto `main` 3741ca9, 2,542 of 3,121 tests selected. - 2,494 passed, 4 failed and 44 skipped. None of the failures is new: 3 also fail on `main`, and 1 is unstable on `main`. - With `VK_LAYER_KHRONOS_validation`, over 949 tests on the GPU, there are no new validation IDs against `main`. 19 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. - **4699b25e2d: d4ef08da08, a merge of #9633's 280d6d6c44, and the format commit 4699b25e2d** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41415229294)). Two conflicts: `FormatVersion`, which the format commit moves from 57 to 72, above #9633's 70, and `agc_driver_image_table_tests.cmake`, where this PR's split-chase registration is kept. `ShaderDiskCache.cpp` merged cleanly with #9633's numbers, which this PR doesn't change. 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: 34 run, 34 pass, 0 skip, 0 fail. Windows: 36 run, 10 pass, 26 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/9749#issuecomment-6575391899)): 2,571 passed, 6 failed, none new (3 also fail on `main`, 3 unstable on `main`), 45 skipped, with no new validation IDs (992 tests on the GPU). - **8fa3da8d9e, a merge of #9633's b9fab3f82e, which carries #7395's merge of `main` 4f64f81ef7** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41461298317)). Clean: `FormatVersion` stays 72, 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: 34 run, 34 pass, 0 skip, 0 fail. Windows: 36 run, 10 pass, 26 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. - **Every `agc` test, once** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41461403119)): Linux: 1,261 run, 1,182 pass, 78 skip, 1 fail. Windows: 1,297 run, 390 pass, 907 skip (no Vulkan device), 0 fail. The one failure is `agc_driver_pipeline_journal`'s 120-second timeout, which `main` 88e804b0a7's own run of every test hits too ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41424465991)). - **13e0df876d, a merge of `main` 4f41f4c375** ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41611069217), [the PR's own tests ×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41619859103)). - **The conflicts:** `ShaderDiskCache.hpp`'s `FormatVersion`, where `main` is now at 52 (#10000) and this PR keeps its 72; 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: 19 run, 19 pass, 0 skip, 0 fail. Windows: 19 run, 0 pass, 19 skip (no Vulkan device), 0 fail. - **@XairRrR approved this head** ([review](https://github.com/boykopovar/AnyPS5/pull/9749#pullrequestreview-5753326616)), with the three non-blocking findings of their review of c4f25ba3fc resolved. On a Debian 13 VM (GCC 14.2.0, lavapipe on Mesa 26.1.6), the tree merged with `main` 4f41f4c375 builds. Their selected tests ran 2,235 with no new failures (7 known failures also fail on `main`), the validation comparison with `main` over 789 tests shows no new `VUID-`, and the focused tests pass 27 of 27. Their negative control, the decoder dropping `readHighImmediate`, fails `agc_shader_disk_cache`. - **18bc368ab1, a merge of #9633's 6089e589a8,** which carries `main` c2eafe4461 with yabanana's #7223 through #9457, #8939 and #7395 ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41776110531)). - **The conflicts:** `ShaderDiskCache.hpp`'s `FormatVersion`, which stays 72 (`main` is at 56 since #7223), and `docs/dev/debt/shader.md`, where this PR's wording of the 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: 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 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/9749#issuecomment-6625190772)): merged onto `main` b8efa62, driver 595.99.02, Ubuntu 26.04.1, 2,911 of 3,878 tests selected. 2,855 passed, 6 failed and 50 skipped. None of the failures is new: 3 also fail on `main`, and 3 are unstable on `main`. With `VK_LAYER_KHRONOS_validation`, there are no new validation IDs against `main`, over 989 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. - **da7bcad1d1, a merge of #9633's 527a907ad8,** which carries `main` 8eaf82f315 through #9457, #8939 and #7395 ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/42336923763)). - **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: 35 run, 35 pass, 0 skip, 0 fail. Windows: 37 run, 10 pass, 27 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. - **e3c81a7714, a merge of #9633's 0fd3c90456,** which carries `main` 006d11fca5 through #9457, #8939 and #7395 ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/42370718562)). - **Clean:** #7395's merge takes the one conflict with `main`, frankea's #9020's `FormatVersion` 57, and `FormatVersion` stays 72 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: 35 run, 35 pass, 0 skip, 0 fail. Windows: 37 run, 10 pass, 27 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. - **54eab5bb7a, a merge of #9633's f086739418,** which carries `main` dd7c8de5de through #9457, #8939 and #7395 ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/42510122687)). - **The conflict:** `docs/dev/debt/shader.md`, where this PR's wording of the 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 72, 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: 49 run, 49 pass, 0 skip, 0 fail. Windows: 51 run, 10 pass, 41 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. - **aec64b8636: fef555f82a, a merge of #9633's b55705b34f, and the format commit aec64b8636,** which carries `main` 017bd95f5f through #9633, #9457, #8939 and #7395 ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/42749106588), [every `agc` test](https://github.com/EagleBearerYS/AnyPS5/actions/runs/42749191754)). - **The conflict:** `FormatVersion`, where #9633 now takes 82, above this PR's 72. The merge takes 82, and the format commit moves this PR to 83. 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: 49 run, 49 pass, 0 skip, 0 fail. Windows: 51 run, 10 pass, 41 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, once,** since #14636 is itself a recompiler change: 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. - **39b162b371: ad2a93618b, a merge of #9457's d007acef13, and 39b162b371, a merge of #9633's 56416624f18, both without conflicts,** which carry `main` e22c5fb941 through #9633, #9457, #8939 and #7395 ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/43458863458)). The second merge changes no file: 39b162b371 has ad2a93618b's tree, which the ×10 ran. - **×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: 50 run, 50 pass, 0 skip, 0 fail. Windows: 52 run, 11 pass, 41 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 at 39b162b371** (the run tested ad2a93618b, which has the same tree): `main` e22c5fb941 against this 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 focused tests above ([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 the four `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 this head, 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. - **b0e80e539e, a merge of #9633's ae857ccc9b, without conflicts,** which carries `main` bd278f3654 through #9633, #9457, #8939 and #7395 ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/43576662377)). - **`FormatVersion`:** `main`'s 69, this PR's 83. #7395's merge takes #19530's move of `main` from 68 to 69, and this PR's own diff over #9633 is unchanged. - **×10:** the same tests as on 39b162b371. Linux: 50 run, 50 pass, 0 skip, 0 fail. Windows: 52 run, 11 pass, 41 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. - **510fd2384d, a merge of #9633's 99e3511c6a,** which carries `main` 328cbf673e through #9633, #9457, #8939 and #7395 ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/43816694846), [with #21255's test change](https://github.com/EagleBearerYS/AnyPS5/actions/runs/43832108152)). - **The conflict:** only `FormatVersion`, where #9633 now takes 96, above this PR's 83. The merge moves this PR to 97. This PR's own lines are unchanged apart from the `FormatVersion` line. - **×10:** the same tests as on b0e80e539e. Linux: 57 run, 56 pass, 0 skip, 1 fail. Windows: 59 run, 11 pass, 48 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 this head ([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/9749#issuecomment-6927288164)): 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 510fd2384d merged onto `main` e4caa07950 (their merge 44a4f4bcdb, 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: 95 of 95 pass, including the 17 tests `main` doesn't have: this PR's `agc_driver_pointer_chase_split_table`, #9633'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 59 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 365f2b551f** of #9633'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/44197765632/job/134443585396), on an earlier commit with the same tree): the 19 `^agc_driver_pointer_` and `^agc_driver_nested_` tests pass, none skipped. - **Windows** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/44211299813)), with Sankalp7317's 4-line `_putenv_s` fix ([#19899](https://github.com/boykopovar/AnyPS5/pull/19899)) merged for the run only: the build passes, the libc and libkernel suites run 421 and 417 tests with 0 failed, and the 19 tests skip (no Vulkan device). The Windows GPU case itself can only be re-run by a tester. - **bee5a91996, a merge of #9633's 2f104ac486,** which carries `main` d89f26516c through #9633, without conflicts ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/44433494764), [with #21255's test change](https://github.com/EagleBearerYS/AnyPS5/actions/runs/44451782929)). - **No conflicts:** this PR's `FormatVersion` stays 97, 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: 57 run, 56 pass, 0 skip, 1 fail. Windows: 59 run, 11 pass, 48 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, this PR's own head ([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** ([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. This head bee5a91996 merged onto `main` e1ab104e0a (their merge b726f51423, clean), against `main` e1ab104e0a alone. `main`: 39 tests, 38 pass, 1 skip in each run. This PR: 56 tests, 55 pass, 1 skip in each run; the counts include the tests of #7395, #8939, #9457 and #9633, which this head carries. 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. - **dd2c6b1aee, a merge of #9633's f96acd992d,** which carries `main` d50640e264 through #9633, without conflicts ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/44659494666), [with #21255's test change](https://github.com/EagleBearerYS/AnyPS5/actions/runs/44660709077)). - **No conflicts:** this PR's `FormatVersion` stays 97, 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: 57 run, 56 pass, 0 skip, 1 fail. Windows: 59 run, 11 pass, 48 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, this PR's own head ([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: #9633 - [x] Fixes: none (related: #6191) - [x] Unblocks: none on current `main` (see What) - [x] GPUs tested: Mesa llvmpipe (LLVM 20.1.2), Ubuntu 24.04, on GitHub's Linux runner and a cloud Linux machine; NVIDIA RTX 2000 Ada Generation (driver 595.99.02, Ubuntu 26.04.1; TechLevelZero's NVIDIA bot); NVIDIA GeForce RTX 4090 (615.78.08), Linux, in Tamalero'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 - [x] AI-assisted: yes
EagleBearerYS commented 2026-10-22 12:20:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-22T12:20:30Z.


@Tamalero this is the follow-up for the third read you traced on #9633. PointerChase now keeps the high word's own immediate (readHighImmediate, as you suggested), so the walk takes compute 0x116bb67100's step with the low word at 0x54 and the high word at 0x6c, and the snapshot reads the high word there. It's stacked on #9633 at 2c1a65045c. The disk cache format moves to 48, so older cache entries aren't reused. If you can run Rift Apart on this PR's head the same way as before, we'd like to know where it stops next.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6340587735 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9749#issuecomment-6340587735). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-22T12:20:30Z. --- @Tamalero this is the follow-up for the third read you traced on #9633. `PointerChase` now keeps the high word's own immediate (`readHighImmediate`, as you suggested), so the walk takes compute 0x116bb67100's step with the low word at 0x54 and the high word at 0x6c, and the snapshot reads the high word there. It's stacked on #9633 at 2c1a65045c. The disk cache format moves to 48, so older cache entries aren't reused. If you can run Rift Apart on this PR's head the same way as before, we'd like to know where it stops next.
MarcZX10 commented 2026-10-22 14:55:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T14:55:37Z.

Review: CHANGES_REQUESTED


I found no logic defect in the new high-word-immediate handling: the tracker records it, the snapshot reads it, the cache serializes/validates it, and the added positive/refusal tests cover the separate offsets. The PR report provides substantial repeated Linux test and VVL evidence. Current-base git diff --check and conventions pass, and merge-tree with current main is clean. I did not run the GPU suite locally; the workspace has no configured build and under 700 MB free.

Please update the integration checklist before approval. The PR says it is stacked on #9633, which is still open, but currently lists only Depends on: #9457; record #9633 as the prerequisite (the earlier stack is transitively included by it). Also this head is based on 3ca07d0, 19 commits behind current main b7d1d47. Rebase/refresh it and rerun the focused shader tests. The VVL evidence I see for this increment compares #9633 to this PR; after the refresh, include the required same-GPU main versus final-head ctest -V comparison with the prescribed environment, confirm the layer loaded, and compare VUID- output.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5616220726 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9749#pullrequestreview-5616220726). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T14:55:37Z. **Review:** CHANGES_REQUESTED --- I found no logic defect in the new high-word-immediate handling: the tracker records it, the snapshot reads it, the cache serializes/validates it, and the added positive/refusal tests cover the separate offsets. The PR report provides substantial repeated Linux test and VVL evidence. Current-base `git diff --check` and conventions pass, and merge-tree with current `main` is clean. I did not run the GPU suite locally; the workspace has no configured build and under 700 MB free. Please update the integration checklist before approval. The PR says it is stacked on #9633, which is still open, but currently lists only `Depends on: #9457`; record #9633 as the prerequisite (the earlier stack is transitively included by it). Also this head is based on `3ca07d0`, 19 commits behind current `main` `b7d1d47`. Rebase/refresh it and rerun the focused shader tests. The VVL evidence I see for this increment compares #9633 to this PR; after the refresh, include the required same-GPU `main` versus final-head `ctest -V` comparison with the prescribed environment, confirm the layer loaded, and compare `VUID-` output.
MarcZX10 commented 2026-10-22 17:04:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T17:04:23Z.

Review: COMMENTED


The final head 6db7b36aefce38828c2392ca2c147fd230529492 is based on current main b7d1d47a5f and merges cleanly with today’s 11f976b27c16ed91633f00039dba5dfd97dd7cc1; conventions and diff-check pass. The report now contains Linux llvmpipe positive/refusal cases, a red control against #9633, repeated CI runs, and a main-versus-change validation-layer comparison where the layer loaded in both and neither showed a new VUID. The integration checklist is still stale in the body I can see: it says Depends on: #9457, while the author comment says it was corrected to #9633. Please make sure the actual checklist text is updated to Depends on: #9633 (which carries #9457/#8939 transitively) before merge. I did not independently rerun the GPU suite locally.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5617947336 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9749#pullrequestreview-5617947336). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T17:04:23Z. **Review:** COMMENTED --- The final head `6db7b36aefce38828c2392ca2c147fd230529492` is based on current main `b7d1d47a5f` and merges cleanly with today’s `11f976b27c16ed91633f00039dba5dfd97dd7cc1`; conventions and diff-check pass. The report now contains Linux llvmpipe positive/refusal cases, a red control against #9633, repeated CI runs, and a main-versus-change validation-layer comparison where the layer loaded in both and neither showed a new VUID. The integration checklist is still stale in the body I can see: it says `Depends on: #9457`, while the author comment says it was corrected to #9633. Please make sure the actual checklist text is updated to `Depends on: #9633` (which carries #9457/#8939 transitively) before merge. I did not independently rerun the GPU suite locally.
XairRrR commented 2026-10-29 13:28:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-10-29T13:28:11Z.

Review: APPROVED


Reviewed — approved

I reviewed this PR's increment over #9633: the high word's own immediate in PointerChase and the alignment check on the chased V#'s base. It merges cleanly into current main, builds, its focused tests pass under the validation layer with no VUID- messages, and reverting the increment makes the new and changed tests fail. The description's Tested section is out of date in two places (see Non-blocking).

What I ran

  • Head: c4f25ba3fc7dcf52255f7d12f657ea4c885368a9
  • main: 157b02c4f1803e9d2cd757677b9a805961203fc4
  • #9633 head used for the increment: ee8767ff0de59e6db33a0c9ac941792b30915d77 (an ancestor of this head)
  • Machine: Arch Linux 7.2.11-zen, GCC 16.2.1 (Release, Ninja), Intel Core i9-14900KF, NVIDIA GeForce RTX 4070 Ti SUPER (driver 615.78.08). The tests selected this GPU.
git fetch origin main pull/9749/head:refs/review/9749 pull/9633/head:refs/review/9633
git checkout --detach origin/main
git merge --no-ff --no-edit refs/review/9749
git diff --check origin/main...refs/review/9749
python3 tools/check_conventions.py --base origin/main
cmake --build build -j10
cmake --build build -j10 --target libs
VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1 VK_LOADER_DEBUG=error,warn,layer \
  ctest --test-dir build -j4 -V --output-on-failure \
  -R "agc_driver_pointer_|agc_driver_nested_|agc_driver_image_table|agc_shader_disk_cache|^agc_shader_bindless$|^agc_shader_memory$"
# same ctest command on origin/main, after a full build of origin/main in the same worktree
# negative control: reverse-apply the production part of `git diff refs/review/9633 refs/review/9749 -- core/shader`, rebuild, then
ANYPS5_REQUIRE_VULKAN=1 ctest --test-dir build -R agc_driver_pointer_chase --output-on-failure

Results

Check Result
Merge into main Clean (auto-merged libSceAgcDriver/CMakeLists.txt, ResourceMaterializer.cpp, ShaderDiskCache.cpp, docs/dev/debt/shader.md)
git diff --check Clean
check_conventions.py All conventions checks passed.
Full build and --target libs, merged tree Pass
Focused tests, merged tree, validation layer 31 of 31 pass, longest 3.0 s
Focused tests, main, validation layer 12 of 12 pass (main has 12 of the 31)
Validation layer loaded Yes: 27 instance-layer insertions on the merged tree, 8 on main
was not found but was requested by env var VK_INSTANCE_LAYERS Not in either log
VUID- lines None on either tree
Negative control agc_driver_pointer_chase_split_table and agc_driver_pointer_chase_table fail
Merged tree, focused tests (excerpt)
25/31 Test #1592: agc_driver_pointer_chase_table .................. Passed 0.61 sec
26/31 Test #1594: agc_driver_pointer_chase_words_table ............ Passed 0.61 sec
27/31 Test #1593: agc_driver_pointer_chase_split_table ............ Passed 0.69 sec
29/31 Test #1595: agc_driver_pointer_chase_edited_table ........... Passed 0.61 sec
 7/31 Test #950: agc_shader_disk_cache ........................... Passed 1.51 sec
100% tests passed out of 31
[Vulkan Loader] DRIVER: Using "NVIDIA GeForce RTX 4070 Ti SUPER" with driver: "/usr/lib/libGLX_nvidia.so.615.78.08"
[Vulkan Loader] INFO | LAYER:   Insert instance layer "VK_LAYER_KHRONOS_validation" (/usr/lib/libVkLayer_khronos_validation.so)

Negative control

On the merged tree I reverse-applied this PR's production changes over #9633 (ControlFlowInfo.hpp, ResourceTracker.cpp, ResourceMaterializer.cpp, ShaderDiskCache.cpp, ShaderDiskCache.hpp), kept the tests, and rebuilt agc_driver_image_table_tests. Both tests this PR adds or changes fail, each for the reason it targets:

Output without the increment
1/4 Test #1592: agc_driver_pointer_chase_table ..........***Failed    0.65 sec
AGC graphics: pointer table with a conditional V# chase: the snapshot read guest memory through a V# with an unaligned base on a step no group takes
2/4 Test #1593: agc_driver_pointer_chase_split_table ....***Failed    0.44 sec
ShaderRecompiler::Recompile: GetImageResource dword 0 is not a valid runtime value; chain: LoadAddressU32@pc=0x000000e8(GetAddressResource(Phi(Phi(Phi(ReadConstBuffer@pc=0x00000074(...
3/4 Test #1594: agc_driver_pointer_chase_words_table ....   Passed    0.50 sec
4/4 Test #1595: agc_driver_pointer_chase_edited_table ...   Passed    0.44 sec

The split test's failure has the same text as Rift Apart's stop in the description. I then restored the merged files.

Findings

Blocking

None.

Non-blocking

  1. The description no longer matches the head in two places.
    • It says "FormatVersion goes from #9633's 55 to 56", and its ladder lists "#9633 55, #9749 56, #9790 57". At this head ShaderDiskCache.hpp:16 is 57: f6b5d58d10 moved it because #9633 now uses 56. #9790's diff uses 59. Please update the What bullet and the ladder.
    • Tested still lists "Refusal controls, refused on both trees" (the high word through another V#, at another buffer offset, at the low word's immediate). c4f25ba3fc removed those three checks, and RunPointerChaseSplitTests no longer has them. Please drop that bullet, or note that the controls were removed and why.
  2. Nothing round-trips readHighImmediate through the shader disk cache. The encoder and decoder carry the field, and the decoder refuses unaligned or low-equal values (ShaderDiskCache.cpp:1169, :1346, :1401). But the chase tests run with ANYPS5_NO_SHADER_CACHE=1, and core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp never builds a PointerChase. If the decoder lost the field, the cached plan would keep readHighImmediate = 0. The snapshot would then read the high word at the arm's buffer offset plus 0 instead of at its own immediate, and the wrong pointer would fault as outside the snapshot only on a warm cache. The agc_shader_disk_cache pass in the description and here doesn't cover this path. A warm-cache run of the split shader, or an encode/decode equality check on a plan with a split chase, would cover it. The gap was already there for #9633's chase fields.
  3. The debt line doesn't cover the two refusals this PR adds. In the merged tree, docs/dev/debt/shader.md:57 (line 56 at the head) says a V# that isn't a buffer, or a read past the V# or outside the snapshot, ends the chase. Since 52ae6543ae, a chased V# whose base makes the low or high word's address unaligned also ends it (ResourceMaterializer.cpp:1087), even when the memory is inside the snapshot. Separately, the tracker refuses a high word read at the low word's own immediate (ResourceTracker.cpp:1067). Both are gaps a reader of the debt file would want listed. The first matters most: if the hardware reads the dword-aligned address there, the snapshot leaves out a pointer the GPU can select.

The tracker change itself looks right to me. ChaseHighRead pairs the high word by the IR's own GetAddressResource(low, high) operands, not by a layout guess. It still requires the arm's V# (or an equivalent one) and the same buffer offset, and the old low + 4 rule is a special case of the new one. readHighImmediate is set before site() compares chases, so two arms that differ only in their high immediate get separate sites. The tracker builds a PointerChase only in this walk (ResourceTracker.cpp:1104), so no tracker path leaves the field at its default.

Not verified

  • I didn't review #9633's code, which this head carries (most of the 2,488 added lines against main). I built and tested it only as part of the merged tree. This approval covers the increment over #9633, and this PR should merge only after #9633.
  • No title run, by policy. The Ratchet & Clank: Rift Apart results in the description are Tamalero's and oneandonlydean's, not mine.
  • Windows build and tests.
  • A dispatch that actually takes a step whose chased V# has an unaligned base. The description says this isn't covered either.
  • Warm-cache behaviour of chase plans (finding 2).
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5698448628 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9749#pullrequestreview-5698448628). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-10-29T13:28:11Z. **Review:** APPROVED --- # Reviewed — approved I reviewed this PR's increment over #9633: the high word's own immediate in `PointerChase` and the alignment check on the chased V#'s base. It merges cleanly into current `main`, builds, its focused tests pass under the validation layer with no `VUID-` messages, and reverting the increment makes the new and changed tests fail. The description's Tested section is out of date in two places (see Non-blocking). ## What I ran - Head: `c4f25ba3fc7dcf52255f7d12f657ea4c885368a9` - `main`: `157b02c4f1803e9d2cd757677b9a805961203fc4` - #9633 head used for the increment: `ee8767ff0de59e6db33a0c9ac941792b30915d77` (an ancestor of this head) - Machine: Arch Linux 7.2.11-zen, GCC 16.2.1 (Release, Ninja), Intel Core i9-14900KF, NVIDIA GeForce RTX 4070 Ti SUPER (driver 615.78.08). The tests selected this GPU. ```sh git fetch origin main pull/9749/head:refs/review/9749 pull/9633/head:refs/review/9633 git checkout --detach origin/main git merge --no-ff --no-edit refs/review/9749 git diff --check origin/main...refs/review/9749 python3 tools/check_conventions.py --base origin/main cmake --build build -j10 cmake --build build -j10 --target libs VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1 VK_LOADER_DEBUG=error,warn,layer \ ctest --test-dir build -j4 -V --output-on-failure \ -R "agc_driver_pointer_|agc_driver_nested_|agc_driver_image_table|agc_shader_disk_cache|^agc_shader_bindless$|^agc_shader_memory$" # same ctest command on origin/main, after a full build of origin/main in the same worktree # negative control: reverse-apply the production part of `git diff refs/review/9633 refs/review/9749 -- core/shader`, rebuild, then ANYPS5_REQUIRE_VULKAN=1 ctest --test-dir build -R agc_driver_pointer_chase --output-on-failure ``` ## Results | Check | Result | |---|---| | Merge into `main` | Clean (auto-merged `libSceAgcDriver/CMakeLists.txt`, `ResourceMaterializer.cpp`, `ShaderDiskCache.cpp`, `docs/dev/debt/shader.md`) | | `git diff --check` | Clean | | `check_conventions.py` | `All conventions checks passed.` | | Full build and `--target libs`, merged tree | Pass | | Focused tests, merged tree, validation layer | 31 of 31 pass, longest 3.0 s | | Focused tests, `main`, validation layer | 12 of 12 pass (`main` has 12 of the 31) | | Validation layer loaded | Yes: 27 instance-layer insertions on the merged tree, 8 on `main` | | `was not found but was requested by env var VK_INSTANCE_LAYERS` | Not in either log | | `VUID-` lines | None on either tree | | Negative control | `agc_driver_pointer_chase_split_table` and `agc_driver_pointer_chase_table` fail | <details><summary>Merged tree, focused tests (excerpt)</summary> ``` 25/31 Test #1592: agc_driver_pointer_chase_table .................. Passed 0.61 sec 26/31 Test #1594: agc_driver_pointer_chase_words_table ............ Passed 0.61 sec 27/31 Test #1593: agc_driver_pointer_chase_split_table ............ Passed 0.69 sec 29/31 Test #1595: agc_driver_pointer_chase_edited_table ........... Passed 0.61 sec 7/31 Test #950: agc_shader_disk_cache ........................... Passed 1.51 sec 100% tests passed out of 31 [Vulkan Loader] DRIVER: Using "NVIDIA GeForce RTX 4070 Ti SUPER" with driver: "/usr/lib/libGLX_nvidia.so.615.78.08" [Vulkan Loader] INFO | LAYER: Insert instance layer "VK_LAYER_KHRONOS_validation" (/usr/lib/libVkLayer_khronos_validation.so) ``` </details> ## Negative control On the merged tree I reverse-applied this PR's production changes over #9633 (`ControlFlowInfo.hpp`, `ResourceTracker.cpp`, `ResourceMaterializer.cpp`, `ShaderDiskCache.cpp`, `ShaderDiskCache.hpp`), kept the tests, and rebuilt `agc_driver_image_table_tests`. Both tests this PR adds or changes fail, each for the reason it targets: <details><summary>Output without the increment</summary> ``` 1/4 Test #1592: agc_driver_pointer_chase_table ..........***Failed 0.65 sec AGC graphics: pointer table with a conditional V# chase: the snapshot read guest memory through a V# with an unaligned base on a step no group takes 2/4 Test #1593: agc_driver_pointer_chase_split_table ....***Failed 0.44 sec ShaderRecompiler::Recompile: GetImageResource dword 0 is not a valid runtime value; chain: LoadAddressU32@pc=0x000000e8(GetAddressResource(Phi(Phi(Phi(ReadConstBuffer@pc=0x00000074(... 3/4 Test #1594: agc_driver_pointer_chase_words_table .... Passed 0.50 sec 4/4 Test #1595: agc_driver_pointer_chase_edited_table ... Passed 0.44 sec ``` </details> The split test's failure has the same text as Rift Apart's stop in the description. I then restored the merged files. ## Findings ### Blocking None. ### Non-blocking 1. **The description no longer matches the head in two places.** - It says "`FormatVersion` goes from #9633's 55 to 56", and its ladder lists "#9633 55, #9749 56, #9790 57". At this head [`ShaderDiskCache.hpp:16`](https://github.com/boykopovar/AnyPS5/blob/c4f25ba3fc7dcf52255f7d12f657ea4c885368a9/core/shader/recompiler/ShaderDiskCache.hpp#L16-L16) is 57: f6b5d58d10 moved it because #9633 now uses 56. #9790's diff uses 59. Please update the What bullet and the ladder. - Tested still lists "Refusal controls, refused on both trees" (the high word through another V#, at another buffer offset, at the low word's immediate). c4f25ba3fc removed those three checks, and [`RunPointerChaseSplitTests`](https://github.com/boykopovar/AnyPS5/blob/c4f25ba3fc7dcf52255f7d12f657ea4c885368a9/core/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cpp#L2523-L2631) no longer has them. Please drop that bullet, or note that the controls were removed and why. 2. **Nothing round-trips `readHighImmediate` through the shader disk cache.** The encoder and decoder carry the field, and the decoder refuses unaligned or low-equal values ([`ShaderDiskCache.cpp:1169`](https://github.com/boykopovar/AnyPS5/blob/c4f25ba3fc7dcf52255f7d12f657ea4c885368a9/core/shader/recompiler/ShaderDiskCache.cpp#L1169-L1169), [`:1346`](https://github.com/boykopovar/AnyPS5/blob/c4f25ba3fc7dcf52255f7d12f657ea4c885368a9/core/shader/recompiler/ShaderDiskCache.cpp#L1346-L1346), [`:1401`](https://github.com/boykopovar/AnyPS5/blob/c4f25ba3fc7dcf52255f7d12f657ea4c885368a9/core/shader/recompiler/ShaderDiskCache.cpp#L1401-L1401)). But the chase tests run with `ANYPS5_NO_SHADER_CACHE=1`, and `core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp` never builds a `PointerChase`. If the decoder lost the field, the cached plan would keep `readHighImmediate = 0`. The snapshot would then read the high word at the arm's buffer offset plus 0 instead of at its own immediate, and the wrong pointer would fault as outside the snapshot only on a warm cache. The `agc_shader_disk_cache` pass in the description and here doesn't cover this path. A warm-cache run of the split shader, or an encode/decode equality check on a plan with a split chase, would cover it. The gap was already there for #9633's chase fields. 3. **The debt line doesn't cover the two refusals this PR adds.** In the merged tree, `docs/dev/debt/shader.md:57` (line 56 at the head) says a V# that isn't a buffer, or a read past the V# or outside the snapshot, ends the chase. Since 52ae6543ae, a chased V# whose base makes the low or high word's address unaligned also ends it ([`ResourceMaterializer.cpp:1087`](https://github.com/boykopovar/AnyPS5/blob/c4f25ba3fc7dcf52255f7d12f657ea4c885368a9/core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp#L1087-L1087)), even when the memory is inside the snapshot. Separately, the tracker refuses a high word read at the low word's own immediate ([`ResourceTracker.cpp:1067`](https://github.com/boykopovar/AnyPS5/blob/c4f25ba3fc7dcf52255f7d12f657ea4c885368a9/core/shader/recompiler/Optimization/src/ResourceTracker.cpp#L1062-L1069)). Both are gaps a reader of the debt file would want listed. The first matters most: if the hardware reads the dword-aligned address there, the snapshot leaves out a pointer the GPU can select. The tracker change itself looks right to me. `ChaseHighRead` pairs the high word by the IR's own `GetAddressResource(low, high)` operands, not by a layout guess. It still requires the arm's V# (or an equivalent one) and the same buffer offset, and the old low + 4 rule is a special case of the new one. `readHighImmediate` is set before `site()` compares chases, so two arms that differ only in their high immediate get separate sites. The tracker builds a `PointerChase` only in this walk ([`ResourceTracker.cpp:1104`](https://github.com/boykopovar/AnyPS5/blob/c4f25ba3fc7dcf52255f7d12f657ea4c885368a9/core/shader/recompiler/Optimization/src/ResourceTracker.cpp#L1104-L1114)), so no tracker path leaves the field at its default. ## Not verified - I didn't review #9633's code, which this head carries (most of the 2,488 added lines against `main`). I built and tested it only as part of the merged tree. This approval covers the increment over #9633, and this PR should merge only after #9633. - No title run, by policy. The Ratchet & Clank: Rift Apart results in the description are Tamalero's and oneandonlydean's, not mine. - Windows build and tests. - A dispatch that actually takes a step whose chased V# has an unaligned base. The description says this isn't covered either. - Warm-cache behaviour of chase plans (finding 2).
XairRrR commented 2026-11-03 08:26:37 +00:00 (Migrated from github.com)

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

Review: CHANGES_REQUESTED


Reviewed — changes requested

This pull request does not merge cleanly into main (4f41f4c375): head 8fa3da8d9e 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:5749064347 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9749#pullrequestreview-5749064347). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-11-03T08:26:37Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested This pull request does not merge cleanly into `main` (4f41f4c375f5abb487dbd184fbc150f31994d762): head 8fa3da8d9e2a0192e06c863e7582e0d22cf4fca9 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=3205 head=8fa3da8d9e2a0192e06c863e7582e0d22cf4fca9 -->
XairRrR commented 2026-11-03 13:51:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-03T13:51:28Z.

Review: APPROVED


Re-checked — approved

The three non-blocking findings from my review of c4f25ba3fc are resolved. Since then the PR added a disk-cache round trip for readHighImmediate (babbb0eafd), the debt entry now names the two refusals (eac5dce947), and the description is updated. The rest is stack and main merges plus disk-cache format bumps. The merged tree builds, the focused tests pass, the validation comparison with main shows no new VUID-, and dropping the field in the decoder makes the new check fail.

What changed since my last review

  • babbb0eafd (test): verifyPlanRoundTrip builds a pointer-keyed column with one PointerChase{8, 16, 4, 24, 40, {}}, so the high word is read 16 bytes past the low word. It encodes and decodes the plan and requires the chases to come back equal (ShaderDiskCache.cpp#L2389-L2397). The value 40 is 4-aligned and differs from readImmediate 24, so the decoder's validation accepts it.
  • eac5dce947 (docs): the chase entry (shader.md#L64) now starts with what stays refused. That includes a high word read at the low word's immediate, and a chased V# whose base leaves either word's address unaligned. It also says the console's behaviour at an unaligned base is not measured.
  • 4769d5a745 and the commits brought in from #7395/#7223 (nested budget reset on retry, the epoch check for a lone nested sampler table, the Windows PATH fix): these belong to the base PRs. I built and ran them only as part of the merged tree.
  • FormatVersion is now 72 (ShaderDiskCache.hpp#L16), above main's 52.
  • The description's What and Tested sections were updated, along with the author's reply in the discussion.

What I ran

  • Head 13e0df876dc226aedd498201c5f8725f2a664ccd, main 4f41f4c375f5abb487dbd184fbc150f31994d762, merged tree ef1441126d788e6d2417a6e90d976e431cfccf37 (Debian 13 VM, GCC 14.2.0, lavapipe on Mesa 26.1.6).
git diff --check 4f41f4c375f5abb487dbd184fbc150f31994d762...13e0df876dc226aedd498201c5f8725f2a664ccd
python3 tools/check_conventions.py --base 4f41f4c375f5abb487dbd184fbc150f31994d762
# negative control: ShaderDiskCache.cpp decoder reads readHighImmediate into a discarded local
ninja -C build -j32 -l32 libs agc_shader_disk_cache_tests
ctest --test-dir build -R "^agc_shader_disk_cache$" --output-on-failure
# restore ShaderDiskCache.cpp from ef1441126d, rebuild
ninja -C build -j32 -l32 libs tests/agc_shader_disk_cache_tests agc_driver_image_table_tests
ctest --test-dir build -j8 --test-load 32 -R "^agc_shader_disk_cache$|agc_driver_pointer_|agc_driver_nested_|agc_driver_image_table"
git status --porcelain
Check Result
git diff --check Clean
check_conventions.py All conventions checks passed.
Build and libs (script) Pass
Selected tests (script) 2,235 run, no new failures, no timeouts. 7 known failures that also fail on main
Validation layer comparison (script) 789 tests; layer loaded in 788, layer_missing_in empty; 0 tests with a new VUID-
Focused tests, after restoring the merged file 27 of 27 pass
git status --porcelain afterwards Empty
Negative control output
1/1 Test #2168: agc_shader_disk_cache ............***Failed    0.01 sec
a pointer chase whose high word has its own immediate changed in a disk-cache round trip

Previous findings

  1. The description didn't match the head (format number, refusal controls): resolved. The What bullet now gives #9633's 70 → 72, which matches ShaderDiskCache.hpp:16. The refusal-control bullet now says c4f25ba3fc removed those checks.
  2. Nothing round-tripped readHighImmediate through the disk cache: resolved. babbb0eafd adds the check. I made the decoder read the field into a discarded local (ShaderDiskCache.cpp:1365), and agc_shader_disk_cache then fails with the new message. With the merged file restored it passes. This matches the author's reported negative control.
  3. The debt line missed the unaligned-base and shared-immediate refusals: resolved. Both are now in the chase entry, along with the unmeasured question of whether the console reads the dword-aligned address. The entry passes the conventions check's length limit.

New findings

Blocking

None.

Non-blocking

  1. One detail in the description is out of date. The disk-cache bullet says "main is at 51 since #6959". On main 4f41f4c375, FormatVersion is 52. The PR's 72 is still above it, so nothing breaks, but the ladder in the description should say 52 for main.

Not verified

  • The base PRs' code (#9633 and below, including the #7395 commits brought in since my last review). I built and tested it only as part of the merged tree; this approval covers this PR's increment over #9633.
  • No title run, by policy. The Rift Apart results are Tamalero's and oneandonlydean's.
  • Windows build and tests, and any GPU other than lavapipe on this machine.
  • A warm-cache run of the split-chase shader end to end. The new round-trip test covers the encoder and decoder only.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5753326616 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9749#pullrequestreview-5753326616). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-11-03T13:51:28Z. **Review:** APPROVED --- # Re-checked — approved The three non-blocking findings from my review of c4f25ba3fc are resolved. Since then the PR added a disk-cache round trip for `readHighImmediate` (babbb0eafd), the debt entry now names the two refusals (eac5dce947), and the description is updated. The rest is stack and `main` merges plus disk-cache format bumps. The merged tree builds, the focused tests pass, the validation comparison with `main` shows no new `VUID-`, and dropping the field in the decoder makes the new check fail. ## What changed since my last review - **babbb0eafd** (test): `verifyPlanRoundTrip` builds a pointer-keyed column with one `PointerChase{8, 16, 4, 24, 40, {}}`, so the high word is read 16 bytes past the low word. It encodes and decodes the plan and requires the chases to come back equal ([ShaderDiskCache.cpp#L2389-L2397](https://github.com/boykopovar/AnyPS5/blob/13e0df876dc226aedd498201c5f8725f2a664ccd/core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp#L2389-L2397)). The value 40 is 4-aligned and differs from `readImmediate` 24, so the decoder's validation accepts it. - **eac5dce947** (docs): the chase entry ([shader.md#L64](https://github.com/boykopovar/AnyPS5/blob/13e0df876dc226aedd498201c5f8725f2a664ccd/docs/dev/debt/shader.md#L64-L64)) now starts with what stays refused. That includes a high word read at the low word's immediate, and a chased V# whose base leaves either word's address unaligned. It also says the console's behaviour at an unaligned base is not measured. - **4769d5a745** and the commits brought in from #7395/#7223 (nested budget reset on retry, the epoch check for a lone nested sampler table, the Windows PATH fix): these belong to the base PRs. I built and ran them only as part of the merged tree. - **`FormatVersion`** is now 72 ([ShaderDiskCache.hpp#L16](https://github.com/boykopovar/AnyPS5/blob/13e0df876dc226aedd498201c5f8725f2a664ccd/core/shader/recompiler/ShaderDiskCache.hpp#L16-L16)), above `main`'s 52. - The description's What and Tested sections were updated, along with the author's reply in the discussion. ## What I ran - Head `13e0df876dc226aedd498201c5f8725f2a664ccd`, `main` `4f41f4c375f5abb487dbd184fbc150f31994d762`, merged tree `ef1441126d788e6d2417a6e90d976e431cfccf37` (Debian 13 VM, GCC 14.2.0, lavapipe on Mesa 26.1.6). ```sh git diff --check 4f41f4c375f5abb487dbd184fbc150f31994d762...13e0df876dc226aedd498201c5f8725f2a664ccd python3 tools/check_conventions.py --base 4f41f4c375f5abb487dbd184fbc150f31994d762 # negative control: ShaderDiskCache.cpp decoder reads readHighImmediate into a discarded local ninja -C build -j32 -l32 libs agc_shader_disk_cache_tests ctest --test-dir build -R "^agc_shader_disk_cache$" --output-on-failure # restore ShaderDiskCache.cpp from ef1441126d, rebuild ninja -C build -j32 -l32 libs tests/agc_shader_disk_cache_tests agc_driver_image_table_tests ctest --test-dir build -j8 --test-load 32 -R "^agc_shader_disk_cache$|agc_driver_pointer_|agc_driver_nested_|agc_driver_image_table" git status --porcelain ``` | Check | Result | |---|---| | `git diff --check` | Clean | | `check_conventions.py` | `All conventions checks passed.` | | Build and `libs` (script) | Pass | | Selected tests (script) | 2,235 run, no new failures, no timeouts. 7 known failures that also fail on `main` | | Validation layer comparison (script) | 789 tests; layer loaded in 788, `layer_missing_in` empty; 0 tests with a new `VUID-` | | Focused tests, after restoring the merged file | 27 of 27 pass | | `git status --porcelain` afterwards | Empty | <details><summary>Negative control output</summary> ``` 1/1 Test #2168: agc_shader_disk_cache ............***Failed 0.01 sec a pointer chase whose high word has its own immediate changed in a disk-cache round trip ``` </details> ## Previous findings 1. **The description didn't match the head (format number, refusal controls): resolved.** The What bullet now gives #9633's 70 → 72, which matches `ShaderDiskCache.hpp:16`. The refusal-control bullet now says c4f25ba3fc removed those checks. 2. **Nothing round-tripped `readHighImmediate` through the disk cache: resolved.** babbb0eafd adds the check. I made the decoder read the field into a discarded local (`ShaderDiskCache.cpp:1365`), and `agc_shader_disk_cache` then fails with the new message. With the merged file restored it passes. This matches the author's reported negative control. 3. **The debt line missed the unaligned-base and shared-immediate refusals: resolved.** Both are now in the chase entry, along with the unmeasured question of whether the console reads the dword-aligned address. The entry passes the conventions check's length limit. ## New findings ### Blocking None. ### Non-blocking 1. **One detail in the description is out of date.** The disk-cache bullet says "`main` is at 51 since #6959". On `main` 4f41f4c375, `FormatVersion` is 52. The PR's 72 is still above it, so nothing breaks, but the ladder in the description should say 52 for `main`. ## Not verified - The base PRs' code (#9633 and below, including the #7395 commits brought in since my last review). I built and tested it only as part of the merged tree; this approval covers this PR's increment over #9633. - No title run, by policy. The Rift Apart results are Tamalero's and oneandonlydean's. - Windows build and tests, and any GPU other than lavapipe on this machine. - A warm-cache run of the split-chase shader end to end. The new round-trip test covers the encoder and decoder only. <!-- anyps5-bots job=3363 head=13e0df876dc226aedd498201c5f8725f2a664ccd -->
MarcZX10 commented 2026-11-14 10:21:40 +00:00 (Migrated from github.com)

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

Review: COMMENTED


Reviewed — comments

The review is incomplete because ShaderMemory.cpp was excluded from the prepared bundle and I did not run the reported checks.

What I ran

Reviewed head 39b162b371f823b2bb4ad4cbe961eccae425fac5 using the prepared diff and repository reader. No commands or tests were run.

Results

Check Result Note
Diff and targeted source review passed Core tracker, snapshot, and cache changes inspected
Tests not run Results in the description are author reported

Findings

Blocking

None verified in the inspected code.

Non-blocking

None.

Not verified

core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp was excluded because it was too large for the review folder. The full text of core/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cpp was not read; its diff was inspected. No tests were run, and author reported test results were not independently confirmed.

To get this to a good state

Nothing is required. Optional: complete review of ShaderMemory.cpp and run the focused tests before treating this review as approval.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5903744029 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9749#pullrequestreview-5903744029). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-14T10:21:40Z. **Review:** COMMENTED --- # Reviewed — comments The review is incomplete because `ShaderMemory.cpp` was excluded from the prepared bundle and I did not run the reported checks. ## What I ran Reviewed head `39b162b371f823b2bb4ad4cbe961eccae425fac5` using the prepared diff and repository reader. No commands or tests were run. ## Results | Check | Result | Note | |---|---|---| | Diff and targeted source review | passed | Core tracker, snapshot, and cache changes inspected | | Tests | not run | Results in the description are author reported | ## Findings ### Blocking None verified in the inspected code. ### Non-blocking None. ## Not verified `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` was excluded because it was too large for the review folder. The full text of `core/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cpp` was not read; its diff was inspected. No tests were run, and author reported test results were not independently confirmed. ## To get this to a good state Nothing is required. Optional: complete review of `ShaderMemory.cpp` and run the focused tests before treating this review as approval.
MarcZX10 commented 2026-11-14 11:41:03 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-14T11:41:03Z.

Review: COMMENTED


Reviewed — no blocking findings

The inspected changes show no verified blocking defect, but this review is incomplete because the full changed implementation and test files were not all inspected.

What I ran

Head: b0e80e539e588c7fa55e3aac61bda9f8e0b380f0. Read the prepared description, commits, manifest, and selected ranges of the diff using the review reader. No commands or tests were run.

Results

Check Result Note
Prepared artifacts passed Description, commits, and manifest read
Changed code review not run Selected diff ranges only
Tests not run No tests run during this review

Findings

Blocking

None verified in the inspected ranges.

Non-blocking

None.

Not verified

The full implementation and all test changes were not inspected. In particular, ResourceTracker.cpp, ResourceMaterializer.cpp, and ShaderMemory.cpp were not read from the repository at the pinned head; only selected diff ranges were reviewed. The prepared description reports extensive prior test runs, which were not independently rerun here. The changed-file manifest lists 15 files; the full text of ShaderMemory.cpp was excluded from the review folder. Other changed files were included, but their full contents were not all read.

To get this to a good state

Nothing is required. The author may request a complete review after the remaining changed implementation and test files are inspected.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5904150618 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9749#pullrequestreview-5904150618). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-14T11:41:03Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The inspected changes show no verified blocking defect, but this review is incomplete because the full changed implementation and test files were not all inspected. ## What I ran Head: `b0e80e539e588c7fa55e3aac61bda9f8e0b380f0`. Read the prepared description, commits, manifest, and selected ranges of the diff using the review reader. No commands or tests were run. ## Results | Check | Result | Note | |---|---|---| | Prepared artifacts | passed | Description, commits, and manifest read | | Changed code review | not run | Selected diff ranges only | | Tests | not run | No tests run during this review | ## Findings ### Blocking None verified in the inspected ranges. ### Non-blocking None. ## Not verified The full implementation and all test changes were not inspected. In particular, `ResourceTracker.cpp`, `ResourceMaterializer.cpp`, and `ShaderMemory.cpp` were not read from the repository at the pinned head; only selected diff ranges were reviewed. The prepared description reports extensive prior test runs, which were not independently rerun here. The changed-file manifest lists 15 files; the full text of `ShaderMemory.cpp` was excluded from the review folder. Other changed files were included, but their full contents were not all read. ## To get this to a good state Nothing is required. The author may request a complete review after the remaining changed implementation and test files are inspected.
MarcZX10 commented 2026-11-16 12:59:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-16T12:59:28Z.

Review: COMMENTED


Reviewed — no blocking findings

Nothing blocks this change based on the code inspected; the focused tests are reported by the author, not run in this review.

What I ran

Reviewed head 510fd2384dd3e831e1c69fe6e99ba8219de91103 using the prepared diff and repo_read.py. No commands or tests were run. The bundle reports a clean merge check against its stated base, main.

Read description.md, commits.md, manifest.json, and the relevant hunks of diff.patch. Read the changed repository files ResourceTracker.cpp, ResourceMaterializer.cpp, ImageTableAbi.hpp, and ShaderDiskCache.cpp through the pinned reader. ShaderMemory.cpp was excluded from the review bundle because it was too large; the other changed files were listed as included, but not all of their full text was read.

Results

Check Result Note
Focused tests not run Author-reported results only
Code review passed No concrete blocking defect found in inspected code
Excluded file not applicable ShaderMemory.cpp not included in bundle

Findings

Blocking

None in the code inspected.

Non-blocking

None.

Not verified

The full contents of ShaderMemory.cpp and the other included changed files not named above were not read. Tests, builds, and console behavior were not independently verified. The description reports focused Linux tests and Windows builds, with Vulkan tests skipped on Windows.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5920348923 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9749#pullrequestreview-5920348923). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-16T12:59:28Z. **Review:** COMMENTED --- # Reviewed — no blocking findings Nothing blocks this change based on the code inspected; the focused tests are reported by the author, not run in this review. ## What I ran Reviewed head `510fd2384dd3e831e1c69fe6e99ba8219de91103` using the prepared diff and `repo_read.py`. No commands or tests were run. The bundle reports a clean merge check against its stated base, `main`. Read `description.md`, `commits.md`, `manifest.json`, and the relevant hunks of `diff.patch`. Read the changed repository files `ResourceTracker.cpp`, `ResourceMaterializer.cpp`, `ImageTableAbi.hpp`, and `ShaderDiskCache.cpp` through the pinned reader. `ShaderMemory.cpp` was excluded from the review bundle because it was too large; the other changed files were listed as included, but not all of their full text was read. ## Results | Check | Result | Note | |---|---|---| | Focused tests | not run | Author-reported results only | | Code review | passed | No concrete blocking defect found in inspected code | | Excluded file | not applicable | `ShaderMemory.cpp` not included in bundle | ## Findings ### Blocking None in the code inspected. ### Non-blocking None. ## Not verified The full contents of `ShaderMemory.cpp` and the other included changed files not named above were not read. Tests, builds, and console behavior were not independently verified. The description reports focused Linux tests and Windows builds, with Vulkan tests skipped on Windows. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-18 03:55:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-18T03:55:51Z.

Review: COMMENTED


Reviewed — no blocking findings

Nothing blocks this change based on the targeted source review; the focused checks reported in the PR description were author-reported and were not run here.

What I ran

Reviewed head 365f2b551fbf9ee85806586fb754c094d0f68015 using repo_read.py against the prepared review bundle and pinned repository source. No tests or build commands were run.

Results

Check Result Note
Source review passed Targeted implementation and test context inspected
Tests and build not run PR description reports CI and focused runs

Findings

Blocking

None found in the source inspected.

Non-blocking

None.

Not verified

The full text of core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp was excluded from the review bundle. I read its added retry test and nearby context through the pinned reader, but did not inspect the complete file. I also did not read every changed file or run tests/builds, so this review does not support approval.

Files read: core/shader/recompiler/Optimization/src/ResourceTracker.cpp, core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp, core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/ControlFlowInfo.hpp, core/shader/recompiler/ShaderDiskCache.cpp, core/shader/recompiler/ShaderDiskCache.hpp, core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp (targeted search only), core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp (targeted ranges), core/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cpp (targeted ranges), and both changed CMake test files. The changed test file ShaderDiskCache.cpp, ImageTableAbi.hpp, ResourcePlan.hpp, Recompiler.cpp, and docs/dev/debt/shader.md were not read in full; files.json was unavailable under that name, so the review-folder listing was used to identify included and excluded files.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5950574122 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9749#pullrequestreview-5950574122). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-18T03:55:51Z. **Review:** COMMENTED --- # Reviewed — no blocking findings Nothing blocks this change based on the targeted source review; the focused checks reported in the PR description were author-reported and were not run here. ## What I ran Reviewed head `365f2b551fbf9ee85806586fb754c094d0f68015` using `repo_read.py` against the prepared review bundle and pinned repository source. No tests or build commands were run. ## Results | Check | Result | Note | |---|---|---| | Source review | passed | Targeted implementation and test context inspected | | Tests and build | not run | PR description reports CI and focused runs | ## Findings ### Blocking None found in the source inspected. ### Non-blocking None. ## Not verified The full text of `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` was excluded from the review bundle. I read its added retry test and nearby context through the pinned reader, but did not inspect the complete file. I also did not read every changed file or run tests/builds, so this review does not support approval. Files read: `core/shader/recompiler/Optimization/src/ResourceTracker.cpp`, `core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp`, `core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/ControlFlowInfo.hpp`, `core/shader/recompiler/ShaderDiskCache.cpp`, `core/shader/recompiler/ShaderDiskCache.hpp`, `core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp` (targeted search only), `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` (targeted ranges), `core/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cpp` (targeted ranges), and both changed CMake test files. The changed test file `ShaderDiskCache.cpp`, `ImageTableAbi.hpp`, `ResourcePlan.hpp`, `Recompiler.cpp`, and `docs/dev/debt/shader.md` were not read in full; `files.json` was unavailable under that name, so the review-folder listing was used to identify included and excluded files. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-20 05:54:13 +00:00 (Migrated from github.com)

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

Review: COMMENTED


Reviewed — no blocking findings

Nothing in the production changes I inspected demonstrates a blocking defect; approval is not justified because one changed file was not read and I did not run checks.

What I ran

Reviewed head dd2c6b1aee4d4fe2dcb1572906fa9d64f1c11ce8 using the prepared patch and repo_read.py. No tests or builds were run.

Results

Check Result Note
Patch and targeted source review passed Core tracker and materializer paths inspected
Tests and build not run No local execution

Findings

Blocking

None identified in the source inspected.

Non-blocking

None.

Not verified

core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp was excluded from the prepared full-text files as too large; I read only its changed region through repo_read.py. I did not read every changed file listed as reviewed in the manifest, so the test additions and remaining changed files are not fully verified. I did not run the author-reported tests or hardware checks.

Files read: review/description.md, review/commits.md, review/manifest.json, review/diff.patch, core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp (targeted range), core/shader/recompiler/Optimization/src/ResourceTracker.cpp, core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp, core/shader/recompiler/ShaderDiskCache.cpp (targeted range), and core/shader/recompiler/ShaderDiskCache.hpp.

Files excluded or not fully read: core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp was excluded from files/ due to size; other changed files were not read in full.

To get this to a good state

Nothing is required. Optional: complete review of the changed files not read and run the focused tests on this head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5988170267 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9749#pullrequestreview-5988170267). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-20T05:54:13Z. **Review:** COMMENTED --- # Reviewed — no blocking findings Nothing in the production changes I inspected demonstrates a blocking defect; approval is not justified because one changed file was not read and I did not run checks. ## What I ran Reviewed head `dd2c6b1aee4d4fe2dcb1572906fa9d64f1c11ce8` using the prepared patch and `repo_read.py`. No tests or builds were run. ## Results | Check | Result | Note | |---|---|---| | Patch and targeted source review | passed | Core tracker and materializer paths inspected | | Tests and build | not run | No local execution | ## Findings ### Blocking None identified in the source inspected. ### Non-blocking None. ## Not verified `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` was excluded from the prepared full-text files as too large; I read only its changed region through `repo_read.py`. I did not read every changed file listed as reviewed in the manifest, so the test additions and remaining changed files are not fully verified. I did not run the author-reported tests or hardware checks. Files read: `review/description.md`, `review/commits.md`, `review/manifest.json`, `review/diff.patch`, `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` (targeted range), `core/shader/recompiler/Optimization/src/ResourceTracker.cpp`, `core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp`, `core/shader/recompiler/ShaderDiskCache.cpp` (targeted range), and `core/shader/recompiler/ShaderDiskCache.hpp`. Files excluded or not fully read: `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` was excluded from `files/` due to size; other changed files were not read in full. ## To get this to a good state Nothing is required. Optional: complete review of the changed files not read and run the focused tests on this head.
MarcZX10 commented 2026-11-23 05:50:34 +00:00 (Migrated from github.com)

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

Review: APPROVED


Reviewed — looks good

Nothing blocks this change; the focused tests described by the author exercise split high-word pointer chases, snapshot closure, and cache round-tripping.

What I ran

Reviewed head 198784fc4eeefae6ae5290253c11818539d206f6 using the prepared diff and repository reader. No commands or tests were run in this review.

Results

Check Result Note
Diff and targeted code review passed Core tracking, materialization, cache, and test changes inspected
Tests in this review not run Test results in the description are author-reported

Findings

Blocking

None.

Non-blocking

None.

Not verified

I read the added lines in all nine changed files listed in the review manifest and targeted surrounding code in the tracker, materializer, and cache decoder. I did not run tests, build the change, or verify the reported console behavior. The description reports focused Linux tests and Windows builds, with Vulkan tests skipped on Windows; these are author-reported results, not runs performed here.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6017100269 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9749#pullrequestreview-6017100269). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-23T05:50:34Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change; the focused tests described by the author exercise split high-word pointer chases, snapshot closure, and cache round-tripping. ## What I ran Reviewed head `198784fc4eeefae6ae5290253c11818539d206f6` using the prepared diff and repository reader. No commands or tests were run in this review. ## Results | Check | Result | Note | |---|---|---| | Diff and targeted code review | passed | Core tracking, materialization, cache, and test changes inspected | | Tests in this review | not run | Test results in the description are author-reported | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified I read the added lines in all nine changed files listed in the review manifest and targeted surrounding code in the tracker, materializer, and cache decoder. I did not run tests, build the change, or verify the reported console behavior. The description reports focused Linux tests and Windows builds, with Vulkan tests skipped on Windows; these are author-reported results, not runs performed here. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-25 02:26:45 +00:00 (Migrated from github.com)

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

Review: COMMENTED


Reviewed — comments

Nothing blocks this; the points below are optional.

What I ran

Reviewed head ce812ac2be4af274fa5f92b49a90266f7ea5fa8b. No commands or tests were run; the test results in the PR description are author reported.

Results

Check Result Note
Diff review passed Change and key chase paths inspected
Tests not run Author reported results were not independently verified

Negative control

Not run.

Findings

Blocking

None verified in the inspected code.

Non-blocking

  • The full text of all changed files was not reviewed, so this review does not establish that the complete change is ready for approval.

Sources

Not verified

The changed files listed in manifest.json are core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp, 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. I inspected the diff and targeted ranges in ResourceTracker.cpp, ResourceMaterializer.cpp, and ShaderDiskCache.cpp; I did not read the complete text of any changed file. No files were excluded by the prepared review manifest, and no test execution was performed.

To get this to a good state

Nothing is required. The optional point is to complete the review of the changed files and independently run the relevant tests before treating this as a formal merge decision.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6050816853 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9749#pullrequestreview-6050816853). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-25T02:26:45Z. **Review:** COMMENTED --- # Reviewed — comments Nothing blocks this; the points below are optional. ## What I ran Reviewed head `ce812ac2be4af274fa5f92b49a90266f7ea5fa8b`. No commands or tests were run; the test results in the PR description are author reported. ## Results | Check | Result | Note | |---|---|---| | Diff review | passed | Change and key chase paths inspected | | Tests | not run | Author reported results were not independently verified | ## Negative control Not run. ## Findings ### Blocking None verified in the inspected code. ### Non-blocking - The full text of all changed files was not reviewed, so this review does not establish that the complete change is ready for approval. ## Sources - [ResourceTracker.cpp at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/ce812ac2be4af274fa5f92b49a90266f7ea5fa8b/core/shader/recompiler/Optimization/src/ResourceTracker.cpp) - [ResourceMaterializer.cpp at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/ce812ac2be4af274fa5f92b49a90266f7ea5fa8b/core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp) - [ShaderDiskCache.cpp at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/ce812ac2be4af274fa5f92b49a90266f7ea5fa8b/core/shader/recompiler/ShaderDiskCache.cpp) ## Not verified The changed files listed in `manifest.json` are `core/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp`, `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`. I inspected the diff and targeted ranges in `ResourceTracker.cpp`, `ResourceMaterializer.cpp`, and `ShaderDiskCache.cpp`; I did not read the complete text of any changed file. No files were excluded by the prepared review manifest, and no test execution was performed. ## To get this to a good state Nothing is required. The optional point is to complete the review of the changed files and independently run the relevant tests before treating this as a formal merge decision.
MarcZX10 commented 2026-11-26 11:37:44 +00:00 (Migrated from github.com)

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

Review: COMMENTED


Reviewed — no blocking findings

No blocking defect was found in the inspected pointer-chase changes; runtime checks were not run in this review.

What I ran

Reviewed head df176da31de9e15179bd53bca81054013c103a24 using the prepared review bundle and the pinned repository reader. No tests or build commands were run. The author’s reported test results were not independently run here.

Results

Check Result Note
Change and targeted source review passed Chase discovery, capture, and cache paths inspected
Tests and build not run This review was source-only

Findings

Blocking

None.

Non-blocking

None.

Not verified

The hardware and CI results in the PR description were not independently verified. The complete 936-line execution-test addition in ImageTable.cpp was not read in full; targeted chase logic, cache round-trip coverage, and test registration were inspected. The other changed files listed in the review bundle were not individually read beyond relevant diff portions. The review bundle’s exclusions were not available through files.json; the bundle listing reported all nine changed files as included.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6073484416 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9749#pullrequestreview-6073484416). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-26T11:37:44Z. **Review:** COMMENTED --- # Reviewed — no blocking findings No blocking defect was found in the inspected pointer-chase changes; runtime checks were not run in this review. ## What I ran Reviewed head `df176da31de9e15179bd53bca81054013c103a24` using the prepared review bundle and the pinned repository reader. No tests or build commands were run. The author’s reported test results were not independently run here. ## Results | Check | Result | Note | |---|---|---| | Change and targeted source review | passed | Chase discovery, capture, and cache paths inspected | | Tests and build | not run | This review was source-only | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified The hardware and CI results in the PR description were not independently verified. The complete 936-line execution-test addition in `ImageTable.cpp` was not read in full; targeted chase logic, cache round-trip coverage, and test registration were inspected. The other changed files listed in the review bundle were not individually read beyond relevant diff portions. The review bundle’s exclusions were not available through `files.json`; the bundle listing reported all nine changed files as included. ## To get this to a good state Nothing is required.
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/9749:upstream-pr/9749'
git switch 'upstream-pr/9749'

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