fix(shader): index a pointer-loaded V#'s T# array by a word read from the same buffer #9969

Open
EagleBearerYS wants to merge 77 commits from upstream-pr/9969 into main
EagleBearerYS commented 2026-10-23 00:58:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-23T00:58:43Z.


What

With #9790, Marvel's Spider-Man 2 (PPSA03016) gets past ReadConstBuffer@pc=0x8fa0. It then stops at 135 s, later in the same compute shader (hugodearaujo's run, RX 9070 XT, RADV):

compute shader 0x11e2b40f00: GetImageResource dword 0 is not a valid runtime value; chain: ReadConstBuffer@pc=0x00009a50(GetBufferResource(LoadAddressU32@pc=0x00009a3c(GetAddressResource(Phi(Phi(…

The shape (his IR, block $398):

  • The record pointer that #9790 handles loads a V#.
  • The child buffer behind that V# holds a word. That word's high 16 bits index an array of 32-byte T#s in the same buffer: (word >> 16) * 32 is the s_buffer_load_dwordx8 offset at 0x9a50.
  • An S# is read through the same V#.
  • On one edge, from $353, the record pointer's Phi carries dwords 0 and 1 of the T# at +0x4c0 instead of the record's dwords 2 and 3.

Two refusals, one per commit, both on #9790's head:

  1. fix(shader): index a pointer-loaded V#'s T# array by a word read from the same buffer.
    • The T# at the runtime offset already plans as an unkeyed nested child.
    • The refusal falls on the S#. The key's data read goes through a second handle on the same V# words, which #9790 keeps refusing (TryMakeTableColumn's nested branch, DescriptorWordReads).
    • This commit takes such a word as a child key, under these conditions:
      • it's a scalar read through a sibling handle, at an immediate offset;
      • no store or atomic goes through any handle on the V#'s words;
      • every use of the word ends in the offset of a T# or S# read through the same V#;
      • that offset is stride * key + addend, with key one of (word >> s) & m, (word & m) >> s, word >> s, word & m or word. s and m are constants, and the stride is a constant multiple of 4.
    • The materializer reads the word from the child buffer itself, zero past num_records as the hardware load returns, and maps only that record and key 0. If the word's page is unmapped or has a pending write, it maps the whole child, as other key domains do.
    • The bound: min(num_records / stride, maxKey + 1) records, so at most 65,536 for a 16-bit field, within #7223's caps.
    • Past the bound: a key the dispatch reads differently from the snapshot faults with "outside the key domain". A key past num_records reads a null T#, as the load does.
    • Still refused: a key built from two child words, a key word at an offset taken from another child word, a store through the V# into its own buffer, a key word that also feeds the output, and deeper nesting.
  2. fix(shader): take a T#'s words as an uncaptured arm of a pointer-loaded V#'s record pointer. This is the game's own text.
    • With the +0x4c0 T#'s words on one edge, the V#'s pointer walk refused (TryMakeIndirectColumn / PointerRecordReads).
    • A merged V# pointer now goes through PointerRecordPairs, the edge-paired walk that pointer-keyed T#s already use. Its new arm kind skips a T# or S# word like a constant.
    • The child is looked up by the actual 64-bit pointer, which the snapshot never captures for such an arm. So a lane that takes the arm faults with "outside the snapshot" instead of reading a T#.

Not claimed: hugodearaujo's dump predates #9907, so it prints every scalar load's immediate as 0x0. The real offsets of the key word and the S# aren't known, and the tests use nonzero ones.

Cost:

  • Planning: one use-chain walk per sibling read, plus a scan for stores through the V#.
  • Snapshot: one guest word per distinct child V#, and two mapped records instead of up to min(num_records / 32, 65536) T#s.

FormatVersion to 99: KeyDomain gains three fields.

fix(shader): count an image-table snapshot's read ranges in the resolution memo footprint (d01f290417): resolutionFootprint now adds 4 words per read range (readRanges) of each table and nested table, as ColumnRecords::Footprint() does, so a resolution whose read ranges exceed the memo budget isn't memoized. main's resolutionFootprint leaves out the same term.

Tested

  • agc_driver_pointer_vsharp_child_key_table (new, tests/execution/ImageTable.cpp), commit 1's shape: a record pointer merged by a Phi, a key word at 0x14, the T# at (word >> 16) * 32, an S# at 0x20, then a sample.
    • The child buffers have 64 T# slots, and the V# exposes 48. Every other slot holds a different texture, and the key word carries noise in its low half.
    • Every group's texels are checked:
      • for keys 2, 5, 17 and 47 (the largest inside the bound);
      • with the two S#s swapped;
      • after a record's pointer moves.
    • No recompiles happen across these runs.
    • Faults and refusals:
      • keys 48 and 65535 read null T#s;
      • a key the dispatch reads differently from the snapshot faults;
      • the four refused forms above refuse.
  • agc_driver_pointer_vsharp_child_key_arm_table (new), commit 2's shape: it samples the +0x4c0 T#, moves its dwords 0/1 into the record pointer under a condition, reloads the V#, then reads the key word, the T# and the S#.
    • All three descriptors are checked in every lane.
    • A group that takes the arm faults with "outside the snapshot".
  • Red/green:
    • Red: on #9790's head, both new tests refuse 10/10 with the texts above. With commit 1 alone, the arm test still refuses with the title's text.
    • Green: both pass 10/10 at the head.
  • GitHub's runners (run):
    • Linux: red 3/3 with #9790's product files, and green ×10 for the new tests plus the pointer, nested, image-table and disk-cache sets: 28 of 28 pass 10 runs in a row, none skipped.
    • Windows: of the same set's 30 tests, 5 pass 10 runs in a row and 25 skip without a Vulkan device; none fail.
    • Suites: they pass on both, run with APS5_SKIP_TIMING_TESTS=1.
  • Validation layer (run):
    • Setup: llvmpipe (LLVM 20.1.2), with the two new tests, agc_driver_pointer_vsharp_shared_table, …_shared_reuse_table and agc_driver_nested_image_table.
    • The layer: it loaded 3 times on #9790's tree and 5 with the change.
    • The messages: both logs report only VUID-VkDeviceCreateInfo-pNext-pNext, so the change adds no VUID- message.
  • On a cloud Linux machine:
    • ctest -R 'image_table|pointer|nested|table|sampler' passes 47/47, including #9790's, #9457's and #7223's nested-table tests and #9790's "data read through a third handle" control.
    • The disk-cache tests pass 9/9.
    • CI's Linux job mirrored: 1859/1864. The failures are the machine's three IPv6 socket tests and two "Illegal" tests of its 2.80 GHz CPU under GALLIUM_OVERRIDE_CPU_CAPS=avx.
  • The memo footprint commit, d01f290417 (run): agc_shader_disk_cache resolves a materialized fixture snapshot twice, then with 2^21 read ranges on a table and on a nested table, exactly the memo's 8M-word budget: memoized without them, not shared with them.
    • Red, with the fix hunk reverted on 7588a5359a, on both runners: "resolution memo read ranges: a table's read ranges past the memo budget were not counted".
    • Green: on Linux, 2 of 2 tests (agc_shader_disk_cache and _large_file) pass 10 runs in a row; on Windows, 4 of 4 (with _host_stderr and _long_paths); none skipped or failed. 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.
    • On a cloud Linux machine, with the two cases' order swapped, the nested-table case fails on its own with its own text: "a nested table's read ranges past the memo budget were not counted".
  • Windows on real GPUs, by @BKlaasWerkman (comment): 7588a5359a merged into main 938812df14 (clean), Windows 11 Pro, WinLibs GCC 15.2.0, Release, ANYPS5_NO_SHADER_CACHE=1, with the Khronos validation layer (1.4.363) loaded. The 1,260 tests tools/select_tests.py picks for the PR's files, compared test by test with a full run of that main on the same GPU:
    • NVIDIA GeForce RTX 3060 Ti (617.42): 1,253 pass, 4 skip, 3 fail, the same 3 as main (the agc_driver_sample_order trio, #9056). The stack's 20 new nested and pointer tests pass. No new VUID- message.
    • Intel Arc Graphics (Meteor Lake, 101.9150): 1,229 pass, 26 skip, 5 fail. Three fail on main too (#10126, #8604 and #10199's intermittent one). The other two are #7395's sampler tests, agc_driver_nested_sampler_table and agc_driver_pointer_phi_sampler_table, with the lines they fail with on Intel's Linux driver, where the cause is Gfx12 EU fusion (Mesa issue 16622, fixed in Mesa 25.3). @BKlaasWerkman's rerun on the same Intel Arc, of this head (d01f290417) merged into main 938812df14 (comment), and #7395 alone merged into the same main (comment): both tests fail 3 of 3 by default and pass 3 of 3 with APS5_SPANNED_WAVE=1, which spans the program over two full 32-lane subgroups. That switch made both pass on ANV too (comment), so this points to the same cause as there. Xe-LPG is Gfx12 as well. Mesa 25.3's fix doesn't reach Intel's Windows driver (101.9150). No new VUID- message.
  • NVIDIA GeForce RTX 5080 (621.14), Windows 10, by @adam25136 on #16814's thread (comment): mrfelek's #16814 head 50f4f71c72, which carries #16812, this PR's ce65f496e6 and #9790's 8527df3287, merged into main 294db26eaf. Of the 2,529 tests tools/select_tests.py picks, 2,516 pass, 12 skip and 1 fails, agc_driver_quad_pixel_mask (#14237), which fails on that main too, so 0 are new. With VK_LAYER_KHRONOS_validation, no test logs an ID that main doesn't log for it.
  • agc_driver_pointer_vsharp_child_key_arm_table fails on two Intel iGPUs on Windows; the cause isn't traced.
    • It fails 5 of 5 on an Intel iGPU in @gabichuuuuu's review of ce65f496e6 (review), and on an Intel UHD Graphics (8086:9a60, driver 101.7085) in @mrfelek's runs (comment). It passes on the NVIDIA RTX A2000 in the same machine, on an AMD Radeon 780M with RADV (comment) and on llvmpipe.
    • Most failing runs fault at the key's T# with a word that is the selected descriptor's address low word + 0xC0 (comment). Others select a descriptor at 0xffffb8a2, and one returned a wrong texel without a fault (comment). In a trace build, every lane leaves the expected path at the child header's upper words (comment).
    • Intel's compiler spills on the arm program's two-lane pipeline (7,872 bytes of scratch), and every failing build spills (comment). The sibling test, agc_driver_pointer_vsharp_child_key_table, spills on its two-lane pipeline too (384 bytes) and passes 3 of 3 on the same GPU and build, so spilling alone doesn't explain the failure (comment). With synchronization validation, and separately GPU-assisted validation, mrfelek's runs log no message on the Intel UHD or the RTX A2000 (comment).
    • APS5_SINGLE_LANE=all, which our first reply cited as ruling out the spanned-wave lowering, never reaches the arm dispatch, so it doesn't bear on this test (comment).
  • check_conventions.py: passes. No comment lines are added.
  • The title (hugodearaujo's run, RX 9070 XT, RADV Mesa 26.2.5, Linux, with #9424, a cold shader cache, one run): test/sm2-9790-child-key (ac5f6f8278) carries this PR's two commits unchanged on his test branch. With it, Marvel's Spider-Man 2 gets past ReadConstBuffer@pc=0x9a50 and runs to 133 s. It then stops on an S# read at 0x9a9c through the V# loaded at 0x9a20, the load that also gives the key word: compute shader 0x11e2b31800: GetSamplerResource dword 0 is not a valid runtime value. This PR doesn't plan that shape; it's for a later change. The branch builds on GitHub's Linux and Windows runners, and its tests pass on Linux (run).
  • Gran Turismo 7 (PPSA01317), by @freneza (comment): content 01.710.000, Linux, RTX 5070 (NVIDIA 620.70.06), main 3a0a54bbd8 with #7256, #16935 and #10049, and this PR at 239ae90b7b.
    • The garage's 29 one-shot compute shaders (0x120aea1900 to 0x120aef8b00) are all refused without this PR. With it, 28 of the 29 prepare offline in agc_shader_replay; 0x120aed7f00 is still refused, on the LoadAddressU32 chain at pc 0x19f8.
    • In game, with a local fix for a ShaderData binding mismatch that is separate from this PR, the first dispatch of 0x120aea4f00, which runs every frame, hangs the GPU (NVIDIA Xid 109). Whether this PR is behind the hang isn't known.
    • With that shader skipped, 12 car computes compile (927k to 962k SPIR-V words, 32 to 46 s each) and run, and 0x120aec1a00 and 0x120aef8b00 then stop on the call table limit (#13538).
  • 923a4fc916, a merge of #9790's ab388afb74, which brings in main c9b2660d56. Two conflicts:
    • ShaderDiskCache.hpp's FormatVersion line: main is at 48, and this PR takes 58 (see Overlap).
    • The record-pointer lines in ResourceTracker.cpp, where main's #7880 resolves table column pointers through Phi nodes: it counts a pointer as merged only when UnwrapTableRead can't resolve it, reads a merged buffer column's low words with PointerRecordReads, and its high word through UnwrapTableRead. This PR reads both words of every merged pointer with PointerRecordPairs and requires a buffer column's arms to read equivalent low and high words. The merge keeps #7880's test for a merged pointer and its UnwrapTableRead for the others, and this PR's pairs and arm check for merged ones. The high-word line takes a pointer-keyed record's word directly, a merged buffer column's from the pairs, and any other pointer's through UnwrapTableRead.
    • On GitHub's runners (run), the pointer, nested, image-table and shader sets (^agc_driver_pointer_, ^agc_driver_nested_, ^agc_driver_image_table, ^agc_shader_) pass 10 runs in a row on Linux: 60 run, 60 pass, 0 skip, 0 fail. On Windows: 67 run, 40 pass, 27 skip (no Vulkan device), 0 fail. The libc and libkernel suites pass on both (123 and 204 tests on Linux, 150 and 217 on Windows), run with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
    • An ^agc sweep (run): Linux 996 run, 932 pass, 64 skip, 0 fail. Windows 1,020 run, 282 pass, 734 skip, 4 fail: agc_submit_progress, agc_submit_progress_no_timeline, agc_driver_pipelined_metadata_pass and agc_driver_pipelined_metadata_pass_draw_pipeline, which also fail on main c9b2660d56 (run).
  • 34edfd45ff, a merge of #9790's 6779c1495a, which carries #7395's merge of #7223's f1cc524085 (yabanana's merge of main c8d34aa8f4). Clean: FormatVersion stays at 53, and this PR's own diff is unchanged: the merge brings in exactly what #9790'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: 44 run, 44 pass, 0 skip, 0 fail. Windows: 46 run, 20 pass, 26 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.
  • 7588a5359a, a merge of #9790's 809d8804c1, which merges main 0db47b263d. The only conflict was ShaderDiskCache.hpp's FormatVersion line: main moved to 45 (#7831), and this branch keeps its 50. On GitHub's runners (run), the pointer, nested, image-table and disk-cache sets (29 tests) pass 10 runs in a row on Linux. On Windows the set has 31, with two Windows-only disk-cache tests: they build, 5 pass 10 runs in a row, and the other 26, 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.

A limit found on the way, not fixed here: on llvmpipe, a read through a V# whose words come from an unmapped record pointer crashes instead of reporting the fault. llvmpipe does this for any scalar BDA load that misses, and the files that emit those loads are main's, unchanged by #9790 and by this PR. #9790's limits describe it, with its unmapped-pointer probe faulting through the image table on an NVIDIA GPU instead.

Overlap:

  • FormatVersion: 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. This PR moved from 73 to 89 at the merge of #9790's a8ad90a6cc (see Tested). Whichever lands second on a number takes the next free one.
  • #7223 and #10000's sampler limits: both have merged, and this PR takes them through #9790's merges.
  • #17863 (edubox, image-table key bounds) has merged. It made possibleU32Bits depth-limited (possibleU32BitsDepth), and the merge of #9790's f031b24892 has this PR's ShiftRightLogical32 case recurse through it with depth - 1u, as its siblings do (see Tested).
  • #9633 (ours, on #9457 like this PR), and #9749, which carries it: conflicts in ResourceTracker.cpp, ShaderDiskCache.cpp, FormatVersion and the image-table test lists. Whichever of #9633 and this PR merges first, the other takes the resolution on test/d10195-9633-15555-18107 (fecb7dd9b0, #9633's ae857ccc9b with #18107, which carries this PR):
    • commit 2's merged-pointer line calls PointerRecordPairs with #9633's chases and chaseDepth arguments, keeps this PR's same-read check, and refuses a buffer record reached through a chase, which neither PR covers;
    • the plan encoder's checks take #9633's DescriptorSource and TableColumn and this PR's KeyDomain;
    • FormatVersion (each has its own number, see above) and the test lists keep both.
      On that branch every #9633 and #9969 test passes 3 of 3 on Linux; on Windows the GPU tests skip (no Vulkan device on the runner) and nothing fails (run). The run's one red is #18107's agc_driver_pointer_vsharp_sampler_pair_spill_table, which fails the same way on #18107 without #9633 (run).
  • mrfelek's #16472, on #9749: textual conflicts. It follows a pointer loaded straight through a pointer-keyed record pointer, Marvel's Wolverine (PPSA03671)'s pc=0xb9f8 T#. It sits on #9749, the stack's other branch, and a merge-tree of this head and its cebac8da3b on main 8eaf82f315 conflicts in ResourceTracker.cpp, ShaderDiskCache.cpp, ShaderDiskCache.hpp's FormatVersion (75 there, 73 here), tests/cmake/agc_driver_image_table_tests.cmake and docs/dev/debt/shader.md. Whichever lands second keeps both sides.
  • #20519 and #22424 (slopezjur, the opt-in bindless image heap and, on it, layout-only pointer tables): #9790's conflicts (see #9790's Overlap), plus this PR's own. In ResourceTracker.cpp, its child-key helpers also sit above TryMakeTableColumn, and its !plan.keyDomain->child condition goes after #20519's KeepBindlessWords call. The encoder's KeyDomain checks sit next to TableColumn's and keep both. 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.
  • #7395, #8939, #9457 and main: clean.
  • Marvel's Spider-Man 2 (PPSA03016 01.004.003) at 34edfd45ff on current main, by @hugodearaujo (comment): this head merged into main f95acfc948 (clean), Linux 7.2.11, RX 9070 XT, RADV Mesa 26.2.5, Release, a fresh shader cache, X pressed every 30 s, 480 s limit, one run. No recompile error; the run ends at 223 s when his VRAM guard stops the game (free VRAM 8.5 GB to 0.6 GB within 7 s), as #9790's head does on the same main. agc_shader_replay on this tree refuses the four .prepare.req files from the earlier stops at ReadConstBuffer@pc=0x9a9c (GetSamplerResource dword 0 is not a valid runtime value), where #9790's head alone refuses them at 0x9a50, so this PR still takes them past 0x9a50 on current main. In his dump run of #9790's head, the title's own first dispatch of that shader, at 206 s, prepares without error.
  • 802d4a7a89: 5591194208, a merge of #9790's 4125a67e6e, the format commit ca21aa897b, the test-only commit 72a5e43b8f, and 802d4a7a89, a merge of #9790's merge of main 0cd07dc4ab (run).
    • 5591194208 takes #9790's merge of #9457 (with #7223's 153400ba2b and the test-only commits of #7395, #8939 and #9790) and #9790's format commit. Clean, and this PR's own diff is unchanged.
    • ca21aa897b gives this PR its own disk-cache format, 58. 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.
    • 72a5e43b8f drops the child-key refused helper and its four cases, the assertions @oneandonlydean listed for this PR; the cases that check a real answer stay. ImageTable.cpp only (1 line in, 27 out).
    • 802d4a7a89 merges #9790's merge of main 0cd07dc4ab, which carries #9457's resolution of mrfelek's #10228. Clean here, and this PR's changed lines are the same.
    • The child-key, shared, nested, pointer-Phi sampler and sample-order tests with the pipelined metadata test and the disk-cache, bindless and shader-memory tests. Linux ran them 10 times with no failure: 29 run, 29 pass, 0 skip, 0 fail. Windows: 31 run, 23 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 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.
  • d9e9b2f495, a merge of #9790's 5aa0ca45e7, 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 child-key, shared, nested, pointer-Phi sampler and sample-order tests with the pipelined metadata test and the disk-cache, bindless and shader-memory tests. Linux ran them 10 times with no failure: 29 run, 29 pass, 0 skip, 0 fail. Windows: 31 run, 23 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 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.
  • ba29729c03: af11e43425, a merge of #9790's e3196d5721, which carries main 38ccd50f83 and with it #11507's FormatVersion 49, and a format-only commit (run). The merge is clean, and this PR's diff over #9790 is the same. ba29729c03 moves FormatVersion from 58 to 60: 58 is also held by #10193 (Celegans12), which carries our #7642's commits, so if #10193 landed first, this PR's identical 58 would merge cleanly over it and the number wouldn't move. No open PR uses 60. An earlier reply here named only #7642 at 58. The child-key, shared, nested, pointer-Phi sampler, sample-order 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: 30 run, 30 pass, 0 skip, 0 fail. Windows: 32 run, 23 pass, 8 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.
  • c7b702d4a2, a merge of #9790's 4e6a2bfce0 (run). It takes #7395's test-only commit d908758281, which drops agc_driver_nested_image_table's two checks that a valid shader is refused (a V# with another buffer consumer and a T# with another consumer), #7395's merge of #7223's 0dbf5478b2 (yabanana's merge of main f7e84c4cf1) and the format commits below this PR. The one conflict was FormatVersion, which stays 60, one above #9790's 59. Apart from that line's old value, this PR's diff over #9790 is unchanged.
    • The pointer, nested, image-table and disk-cache tests with agc_shader_bindless, agc_shader_memory and 17 other agc_shader_ tests (table snapshots, selected records, memo budgets and pair layouts) ran 10 times with no failure. Linux: 48 run, 48 pass, 0 skip, 0 fail. Windows: 50 run, 25 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.
  • ef707575db, for XairRrR's review, on a merge of #9790's eddf966ddb (run). 1011f51296 merges #9790's head, which carries #7395's 4769d5a745, which drops "and refusals" from two nested-table test summary lines, and brings only that change. ef707575db rewrites the V#-relative child key entry in docs/dev/debt/shader.md to lead with what stays refused and the key that faults, and says the snapshot maps the selected entry and the entry at key 0 (Narrow starts its key list at 0). The image-table, nested, pointer, disk-cache, bindless and shader-memory tests ran 10 times with no failure. Linux: 48 run, 48 pass, 0 skip, 0 fail. Windows: 50 run, 25 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.
  • c7b39f3d16, a merge of #9790's head a5efbc3ec5, which merges oneandonlydean's merge of main b08c539c50 into #9457 (run).
    • The one conflict was CMakeLists.txt, from #12862's split, resolved with tools/agc_test_split.py resolve. It moves this PR's registrations into tests/cmake/agc_driver_image_table_tests.cmake, next to the stack's (+4 −2 against a5efbc3ec5).
    • FormatVersion merged cleanly and stays this PR's own. Apart from the move, this PR's diff is unchanged.
    • The count: with -DBUILD_TESTING=ON, ctest -N gives 3100 tests: main b08c539c50's 3081 plus the stack's 19 tests (#9457's 15, #9790's 2 and this PR's 2), each listed once.
    • ×10 of this PR's verify set. Linux: 23 run, 23 pass, 0 skip, 0 fail. Windows: 23 run, 2 pass, 21 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 199 and 308 tests on Linux and 226 and 330 on Windows, with 0 failed. The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
    • Validation, VK_LAYER_KHRONOS_validation on GitHub's Linux runner (run), main b08c539c50 against this merge, for the same tests. The loader inserted the layer 2 times on main and 21 with this merge. The only VUID in either arm is VUID-VkDeviceCreateInfo-pNext-pNext, so this merge adds none. agc_driver_image_table fails in that mode in both arms, because the mode treats that main message as a failure.
  • NVIDIA RTX 2000 Ada Generation at c7b39f3d16, from TechLevelZero's NVIDIA bot (report): driver 595.99.02, Ubuntu 26.04.1, this head merged onto main dc9dc7e, 2,540 of 3,119 tests selected.
    • 2,491 passed, 5 failed and 44 skipped. None of the failures is new: 3 also fail on main, and 2 are unstable on main.
    • With VK_LAYER_KHRONOS_validation, over 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.
  • 01eed4966c: 291f696521, a merge of #9790's 172dd67c21, and the format commit 01eed4966c (run). The one conflict was FormatVersion, which the format commit moves from 60 to 73, above #9790's 71 and #9749's 72. This PR's KeyDomain change (24 bytes, 7 fields) merges cleanly with #7694's DescriptorSource 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,572 passed, 5 failed, none new (3 also fail on main, 2 unstable on main), 45 skipped, with no new validation IDs (992 tests on the GPU).
  • da1e1cccf5, a merge of #9790's a12bac51d6, which carries #7395's merge of main 4f64f81ef7 (run). The one conflict was the footprint line in ResourceMaterializer.cpp: this PR's table.readRanges.size() * 4u term is kept on the first line of #12246's loop, after #7395's pointer term. FormatVersion stays 73, and this PR's own diff is otherwise 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).
  • 9e7ac69470, 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 73; 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.
  • c147aa8647, a merge of #9790's ebaa9b1565, which carries main c2eafe4461 with yabanana's #7223 through #9457, #8939 and #7395 (×10).
    • The conflicts: ShaderDiskCache.hpp's FormatVersion, which stays 73 (main is at 56 since #7223), and docs/dev/debt/shader.md, which keeps this PR's three entries, with #9790's "Nested image table children" entry after "Nested image tables". 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,854 passed, 7 failed and 50 skipped. None of the failures is new: 3 also fail on main, and 4 are unstable on main. With VK_LAYER_KHRONOS_validation, there are no new validation IDs against main, over 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.
  • Marvel's Wolverine (PPSA03671), an offline replay and a game run by @mrfelek (replay, game run), at c147aa8647: RTX 3080 Ti, NVIDIA 615.71.09, Linux, title 01.001.005.
    • The replay: compute shader 0x11d049aa00's request from their own capture (APS5_DUMP_SHADERS), through agc_shader_replay. The pc=0xb600 GetSamplerResource stop is gone; #9457, below this PR, plans that S# at a fixed offset of its V#. The same request then stops at a T# at pc=0xb9f8 (GetImageResource dword 0), whose pointer is a Phi of the record's pointer and a pointer read from the record's data.
    • The game run agrees: on this head plus their local stencil and image-table changes, the title gets past pc=0xb600 and stops 148 s in at the pc=0xb9f8 T#. With #9633 and #9749 also merged on, the replay stops at the same place.
    • mrfelek's #16472 takes pc=0xb9f8 (see Overlap); the stops after it are in #7395's description.
  • ASTRO BOT (PPSA21564), a regression check by @mrfelek (comment): Sky Garden from launch with -lvl underwater_aerial_garden, no input, headless, default settings, a warm shader cache; RTX 3080 Ti 12 GB, NVIDIA 615.71.09, Linux, Ryzen 9 5950X. The builds are main 4c03784113 and main with this PR's c147aa8647 (a clean merge, 228475a4a5); only libSceAgcDriver.prx differs.
    • No new stops: none of the four runs logged a driver failure, a recompiler refusal or a snapshot did not stabilize.
    • Their FPS over the last five 10 s windows of a 125 s stay, in run order: main 0.165, this PR 0.650, this PR 0.635, main 0.404. They put the gain at 1.6–3.9 times, since main varies between its runs, and haven't found which of the stack's changes saves the time. Clocks weren't reported, and they didn't compare the picture.
  • 5a8c3cc229, a merge of #9790's 32a8525931, which carries main 8eaf82f315 through #9457, #8939 and #7395 (×10).
    • The conflict: docs/dev/debt/shader.md, where JJenkx's #15305's "runtime resource snapshot" entry, which comes with main, sits right above "Nested image tables", which this PR rewrites. Both stay, #15305's entry first. 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.
  • ce65f496e6, a merge of #9790's 8527df3287, 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 73 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.
  • 0ef70b4bcb, a merge of #9790's 1b139e755b, oneandonlydean's merge of main 0bae53facd into #9790 (×10).
    • The conflict: docs/dev/debt/shader.md, where this PR's wording of the pointer-keyed image-table entry sits next to #10489's rewording of the image-table entry (the image limit is now 128). Both are kept. FormatVersion stays 73, 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, with 0 failed, and 375 and 373 on Windows, where guest_standard_streams fails: main 0bae53facd has #12920, whose Windows abort is I#17423 (oneandonlydean's revert is #17531). The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • 5f70ec884e, a merge of #9790's a7234e908f, oneandonlydean's merge of main 3eb7a74e1c into #9790 (×10, every agc test).
    • Clean: #9790's merge takes the one conflict with main, #14636's FormatVersion 68, and keeps #9790's 71. FormatVersion stays 73 here, and this PR's own lines are unchanged.
    • #9790 and #9457: oneandonlydean refreshed #9790 from main without #9457's last three commits, so #9790's FormatVersion 71 sits below #9457's new 81. It is re-picked when #9457 lands.
    • ×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. The first attempt had two failures that the rerun of both jobs cleared: on Linux, agc_driver_frame_replay_rewind_copy (1 of 1,547), which #17921 reports failing once on main too; and on Windows, the build stopped when guest_np_web_api_initialize_tests copied the unpatched libSceNpWebApi.prx before it was built. The rerun: Linux 1,547 run, 1,452 pass, 95 skip, 0 fail; Windows 1,590 run, 482 pass, 1,108 skip (no Vulkan device), 0 fail.
  • 2a082ea647: d4ac9fceaf, a merge of #9790's a8ad90a6cc, and the format commit 2a082ea647 (×10), for oneandonlydean's ask on #9457 (comment).
    • The conflict: only ShaderDiskCache.hpp's FormatVersion line. The format commit gives this PR 89, above #9790's new 88 (see Overlap). This PR's own lines are unchanged apart from that line.
    • #9790 and #9457: #9790 now merges #9457's head and takes 88, above #9457's 81, so the gap noted under 5f70ec884e is closed.
    • ×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.
  • 239ae90b7b, a merge of #9790's 5e4ba4e635, without conflicts, which carries main e22c5fb941 through #9790, #9457, #8939 and #7395 (×10).
    • ×10: agc_driver_many_direct_samplers and every test matching ^agc_driver_pointer_, ^agc_driver_nested_, ^agc_shader_nested_, ^agc_driver_image_table, ^agc_shader_memory, ^agc_shader_disk_cache or ^agc_shader_sampler_limits, which takes in every test in this PR's diff over main and main's new agc_shader_memory_coherent_atomic_loads. Linux: 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 239ae90b7b: main e22c5fb941 against this head, 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:
    • NVIDIA GeForce RTX 3080 Ti, by @mrfelek (comment): Linux, driver 615.71.09, layer 1.4.357, both arms on one machine. main passes its 32 tests and the head its 49, 3 of 3 runs each, with no VUID- line in either arm. No run printed "was not found but was requested", and every test that creates a Vulkan instance logged Insert instance layer "VK_LAYER_KHRONOS_validation".
    • GitHub's Linux runner, lavapipe, layer 1.3.275 (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 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.
  • 9f507b8b25, a merge of #9790's f031b24892, which carries main bd278f3654 through #9790, #9457, #8939 and #7395 (×10, every agc test).
    • The resolution: the merge has no textual conflict. #17863 made possibleU32Bits depth-limited (possibleU32BitsDepth); this PR's ShiftRightLogical32 case now recurses through it with depth - 1u, as its siblings do. Without that line the merge doesn't build, since possibleU32Bits is now defined after possibleU32BitsDepth. This PR's other changed lines are unchanged.
    • FormatVersion: main's 69, this PR's 89. #7395's merge takes #19530's move of main from 68 to 69.
    • ×10: the same tests as on 239ae90b7b. Linux, in the rerun of the Linux job (attempt 2): 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.
    • agc_driver_image_table in the first attempt (attempt 1): it timed out at 30.05 s in its first repetition, against main's TIMEOUT 30, and the set's other 49 tests passed 10 of 10. In the rerun it took 24.70 s in its first repetition and 6.64 to 7.03 s after that. On GitHub's Linux runner the first repetition, from a cold start, is the slow one across the stack: 27.44 s on #7395's e9ddd12bd2, 28.05 s on this PR's previous head 239ae90b7b, 23.84 s on #9749, 18.29 s on #9633 and 14.10 s on #9790, with 4 to 7 s after that. main bd278f3654 alone on the same runner (run) takes 16.01 s in its first repetition and 3.30 and 3.33 s after that, with only that test running; the ×10 runs share the runner with the set's other tests.
    • Every agc test, once: Linux: 1,708 run, 1,600 pass, 106 skip, 2 fail. Windows: 1,747 run, 506 pass, 1,241 skip (no Vulkan device), 0 fail. The two Linux failures are main's:
      • agc_driver_global_atomic_csub: "AGC graphics: global atomic csub without glc: wave64 byte 644 is 146, expected 0";
      • agc_driver_coherent_atomic_loads_enabled: a 60-second timeout.
        main's own Linux job fails both, with the same message and the same timeout, at d2949cd806 (job) and at 67ec0f7d8c (job), covered by #19332.
    • The Windows tree: both 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.
  • 20b045a8de, a merge of #9790's aadbb73413, which carries main 328cbf673e through #9790, #9457, #8939 and #7395 (×10, with #21255's test change).
    • The conflict: only FormatVersion, where #9790 now takes 98, above this PR's 89. The merge moves this PR to 99. This PR's own lines are unchanged apart from the FormatVersion line.
    • ×10: the same tests as on 9f507b8b25. Linux, in the rerun of the Linux job (attempt 2), since the first attempt stopped in checkout when cloning the sqlite submodule returned HTTP 503 (attempt 1): 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 20b045a8de merged onto main e4caa07950 (their merge 83e91ce933, 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 two (agc_driver_pointer_vsharp_child_key_table and _child_key_arm_table) and the 15 of #9790, #9457, #8939 and #7395. agc_driver_pointer_vsharp_child_key_arm_table, which fails on two Intel iGPUs on Windows (above), passes here. 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 fff420ad1b of #9790'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 here too, at 20b045a8de, with selected the descriptor at 0x0: unmapped. 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.
  • Gran Turismo 7 (PPSA01317 01.710.000), by @frankea (comment): Windows 11, RTX 4090 (NVIDIA 621.14), main 33876d3742 with #9020, #7256 and main's 0cbbcfd05c, plus each PR's diff against 328cbf673e. On that base and with #9457 (d896ff422b), #9790 (aadbb73413) and #9969 (20b045a8de), every run (2 of 2 each) stops at compute shader 0x120aed7f00, 127 to 166 s after the press, with GetImageResource dword 0 is not a valid runtime value, chain LoadAddressU32@pc=0x19a0 ← LoadAddressU32@pc=0x198c ← ReadConstBuffer@pc=0xac8. An offline replay of the dumped request refuses the same way on main 328cbf673e and on each head. That matches @freneza's offline result above, where 0x120aed7f00 is still refused.
  • 630bbb0a2e, a merge of #9790's 3b2426ac0a, which carries main d89f26516c through #9790, without conflicts (×10, with #21255's test change).
    • No conflicts: this PR's FormatVersion stays 99, 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 #9969's 630bbb0a2e, 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 630bbb0a2e merged onto main e1ab104e0a (their merge 2c9689c0c3, 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 #9790, 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). agc_driver_pointer_vsharp_child_key_arm_table, the test that fails on the two Intel iGPUs above, passes 3 of 3. 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.
  • dc97c68c75, a merge of #9790's 5821a3e2fa, which carries main d50640e264 through #9790, without conflicts (×10, with #21255's test change).
    • No conflicts: this PR's FormatVersion stays 99, 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. The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes only precise_wait's median bounds on GitHub's hosted runners. The Windows job ran in a second attempt, because the first reached the job time limit while building on an AMD EPYC 7763 runner, before any test ran.
    • 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 #9969's dc97c68c75, 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_thread_cpu_clock in the run with #21255's test change: libkernel's guest_thread_cpu_clock aborted once in that run's Windows suite, on an Intel Xeon 6973P-C runner. ShootanoJumper's #23756 reports this test failing intermittently on Windows on main ed1def4dd4 under load and changes it. It merged after main d50640e264, so these runs don't have it. 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: #9790 (and through it #9457, #8939 and #7395; #7223 has merged)
  • Fixes: none (related: #6191)
  • Unblocks: Marvel's Spider-Man 2 (PPSA03016) #10195, past ReadConstBuffer@pc=0x9a50 after #9790, as hugodearaujo's run shows; its next stop is an S# at 0x9a9c (see Tested)
  • 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); AMD Radeon RX 9070 XT (RADV, Mesa 26.2.5), Linux, in hugodearaujo's title run; NVIDIA GeForce RTX 3060 Ti (617.42) and Intel Arc Graphics (Meteor Lake, 101.9150), Windows 11, with the validation layer, in BKlaasWerkman's run; NVIDIA GeForce RTX 5080 (621.14), Windows 10, in adam25136's run of #16814; an AMD Radeon 780M (RADV), and an Intel UHD Graphics (8086:9a60, 101.7085) with an NVIDIA RTX A2000, in mrfelek's runs; an Intel iGPU in gabichuuuuu's review (one test fails on both Intel iGPUs, see Tested); NVIDIA GeForce RTX 4090 (driver 620.70.06, Arch Linux, with the validation layer), by @domx4q; NVIDIA GeForce RTX 4090 (621.14, Windows 11), by @frankea (two of #8939's tests failed there before 5eb49d1893, see Tested; not re-run since); 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:4976225708 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9969). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-23T00:58:43Z. --- ### What With #9790, Marvel's Spider-Man 2 (PPSA03016) gets past `ReadConstBuffer@pc=0x8fa0`. It then stops at 135 s, later in the same compute shader ([hugodearaujo's run](https://github.com/boykopovar/AnyPS5/pull/9790#issuecomment-6352612572), RX 9070 XT, RADV): ``` compute shader 0x11e2b40f00: GetImageResource dword 0 is not a valid runtime value; chain: ReadConstBuffer@pc=0x00009a50(GetBufferResource(LoadAddressU32@pc=0x00009a3c(GetAddressResource(Phi(Phi(… ``` **The shape** (his IR, block $398): - The record pointer that #9790 handles loads a V#. - The child buffer behind that V# holds a word. That word's high 16 bits index an array of 32-byte T#s in the same buffer: `(word >> 16) * 32` is the `s_buffer_load_dwordx8` offset at 0x9a50. - An S# is read through the same V#. - On one edge, from $353, the record pointer's Phi carries dwords 0 and 1 of the T# at +0x4c0 instead of the record's dwords 2 and 3. **Two refusals, one per commit**, both on #9790's head: 1. **`fix(shader): index a pointer-loaded V#'s T# array by a word read from the same buffer`.** - The T# at the runtime offset already plans as an unkeyed nested child. - The refusal falls on the S#. The key's data read goes through a second handle on the same V# words, which #9790 keeps refusing (`TryMakeTableColumn`'s nested branch, `DescriptorWordReads`). - This commit takes such a word as a **child key**, under these conditions: - it's a scalar read through a sibling handle, at an immediate offset; - no store or atomic goes through any handle on the V#'s words; - every use of the word ends in the offset of a T# or S# read through the same V#; - that offset is `stride * key + addend`, with `key` one of `(word >> s) & m`, `(word & m) >> s`, `word >> s`, `word & m` or `word`. `s` and `m` are constants, and the stride is a constant multiple of 4. - **The materializer** reads the word from the child buffer itself, zero past `num_records` as the hardware load returns, and maps only that record and key 0. If the word's page is unmapped or has a pending write, it maps the whole child, as other key domains do. - **The bound:** `min(num_records / stride, maxKey + 1)` records, so at most 65,536 for a 16-bit field, within #7223's caps. - **Past the bound:** a key the dispatch reads differently from the snapshot faults with "outside the key domain". A key past `num_records` reads a null T#, as the load does. - **Still refused:** a key built from two child words, a key word at an offset taken from another child word, a store through the V# into its own buffer, a key word that also feeds the output, and deeper nesting. 2. **`fix(shader): take a T#'s words as an uncaptured arm of a pointer-loaded V#'s record pointer`.** This is the game's own text. - With the +0x4c0 T#'s words on one edge, the V#'s pointer walk refused (`TryMakeIndirectColumn` / `PointerRecordReads`). - A merged V# pointer now goes through `PointerRecordPairs`, the edge-paired walk that pointer-keyed T#s already use. Its new arm kind skips a T# or S# word like a constant. - The child is looked up by the actual 64-bit pointer, which the snapshot never captures for such an arm. So a lane that takes the arm faults with "outside the snapshot" instead of reading a T#. **Not claimed:** hugodearaujo's dump predates #9907, so it prints every scalar load's immediate as `0x0`. The real offsets of the key word and the S# aren't known, and the tests use nonzero ones. **Cost:** - **Planning:** one use-chain walk per sibling read, plus a scan for stores through the V#. - **Snapshot:** one guest word per distinct child V#, and two mapped records instead of up to `min(num_records / 32, 65536)` T#s. **`FormatVersion` to 99:** `KeyDomain` gains three fields. **`fix(shader): count an image-table snapshot's read ranges in the resolution memo footprint`** (d01f290417): `resolutionFootprint` now adds 4 words per read range (`readRanges`) of each table and nested table, as `ColumnRecords::Footprint()` does, so a resolution whose read ranges exceed the memo budget isn't memoized. `main`'s `resolutionFootprint` leaves out the same term. ### Tested - **`agc_driver_pointer_vsharp_child_key_table`** (new, `tests/execution/ImageTable.cpp`), commit 1's shape: a record pointer merged by a Phi, a key word at 0x14, the T# at `(word >> 16) * 32`, an S# at 0x20, then a sample. - The child buffers have 64 T# slots, and the V# exposes 48. Every other slot holds a different texture, and the key word carries noise in its low half. - **Every group's texels are checked:** - for keys 2, 5, 17 and 47 (the largest inside the bound); - with the two S#s swapped; - after a record's pointer moves. - **No recompiles** happen across these runs. - **Faults and refusals:** - keys 48 and 65535 read null T#s; - a key the dispatch reads differently from the snapshot faults; - the four refused forms above refuse. - **`agc_driver_pointer_vsharp_child_key_arm_table`** (new), commit 2's shape: it samples the +0x4c0 T#, moves its dwords 0/1 into the record pointer under a condition, reloads the V#, then reads the key word, the T# and the S#. - All three descriptors are checked in every lane. - A group that takes the arm faults with "outside the snapshot". - **Red/green:** - **Red:** on #9790's head, both new tests refuse 10/10 with the texts above. With commit 1 alone, the arm test still refuses with the title's text. - **Green:** both pass 10/10 at the head. - **GitHub's runners** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39873996200)): - **Linux:** red 3/3 with #9790's product files, and green ×10 for the new tests plus the pointer, nested, image-table and disk-cache sets: 28 of 28 pass 10 runs in a row, none skipped. - **Windows:** of the same set's 30 tests, 5 pass 10 runs in a row and 25 skip without a Vulkan device; none fail. - **Suites:** they pass on both, run with `APS5_SKIP_TIMING_TESTS=1`. - **Validation layer** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39874033702)): - **Setup:** llvmpipe (LLVM 20.1.2), with the two new tests, `agc_driver_pointer_vsharp_shared_table`, `…_shared_reuse_table` and `agc_driver_nested_image_table`. - **The layer:** it loaded 3 times on #9790's tree and 5 with the change. - **The messages:** both logs report only `VUID-VkDeviceCreateInfo-pNext-pNext`, so the change adds no `VUID-` message. - **On a cloud Linux machine:** - `ctest -R 'image_table|pointer|nested|table|sampler'` passes 47/47, including #9790's, #9457's and #7223's nested-table tests and #9790's "data read through a third handle" control. - The disk-cache tests pass 9/9. - CI's Linux job mirrored: 1859/1864. The failures are the machine's three IPv6 socket tests and two "Illegal" tests of its 2.80 GHz CPU under `GALLIUM_OVERRIDE_CPU_CAPS=avx`. - **The memo footprint commit, d01f290417** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39957931646)): `agc_shader_disk_cache` resolves a materialized fixture snapshot twice, then with 2^21 read ranges on a table and on a nested table, exactly the memo's 8M-word budget: memoized without them, not shared with them. - **Red,** with the fix hunk reverted on 7588a5359a, on both runners: "resolution memo read ranges: a table's read ranges past the memo budget were not counted". - **Green:** on Linux, 2 of 2 tests (`agc_shader_disk_cache` and `_large_file`) pass 10 runs in a row; on Windows, 4 of 4 (with `_host_stderr` and `_long_paths`); none skipped or failed. 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. - On a cloud Linux machine, with the two cases' order swapped, the nested-table case fails on its own with its own text: "a nested table's read ranges past the memo budget were not counted". - **Windows on real GPUs, by @BKlaasWerkman** ([comment](https://github.com/boykopovar/AnyPS5/pull/9969#issuecomment-6366702168)): 7588a5359a merged into `main` 938812df14 (clean), Windows 11 Pro, WinLibs GCC 15.2.0, Release, `ANYPS5_NO_SHADER_CACHE=1`, with the Khronos validation layer (1.4.363) loaded. The 1,260 tests `tools/select_tests.py` picks for the PR's files, compared test by test with a full run of that `main` on the same GPU: - **NVIDIA GeForce RTX 3060 Ti (617.42):** 1,253 pass, 4 skip, 3 fail, the same 3 as `main` (the `agc_driver_sample_order` trio, #9056). The stack's 20 new nested and pointer tests pass. No new `VUID-` message. - **Intel Arc Graphics (Meteor Lake, 101.9150):** 1,229 pass, 26 skip, 5 fail. Three fail on `main` too (#10126, #8604 and #10199's intermittent one). The other two are #7395's sampler tests, `agc_driver_nested_sampler_table` and `agc_driver_pointer_phi_sampler_table`, with the lines they fail with on Intel's Linux driver, where the cause is Gfx12 EU fusion ([Mesa issue 16622](https://gitlab.freedesktop.org/mesa/mesa/-/work_items/16622), fixed in Mesa 25.3). @BKlaasWerkman's rerun on the same Intel Arc, of this head (d01f290417) merged into `main` 938812df14 ([comment](https://github.com/boykopovar/AnyPS5/pull/9969#issuecomment-6369308193)), and #7395 alone merged into the same `main` ([comment](https://github.com/boykopovar/AnyPS5/pull/7395#issuecomment-6369252849)): both tests fail 3 of 3 by default and pass 3 of 3 with `APS5_SPANNED_WAVE=1`, which spans the program over two full 32-lane subgroups. That switch made both pass on ANV too ([comment](https://github.com/boykopovar/AnyPS5/pull/7395#issuecomment-6254952671)), so this points to the same cause as there. Xe-LPG is Gfx12 as well. Mesa 25.3's fix doesn't reach Intel's Windows driver (101.9150). No new `VUID-` message. - **NVIDIA GeForce RTX 5080 (621.14), Windows 10, by @adam25136 on #16814's thread** ([comment](https://github.com/boykopovar/AnyPS5/pull/16814#issuecomment-6712723965)): mrfelek's #16814 head 50f4f71c72, which carries #16812, this PR's ce65f496e6 and #9790's 8527df3287, merged into `main` 294db26eaf. Of the 2,529 tests `tools/select_tests.py` picks, 2,516 pass, 12 skip and 1 fails, `agc_driver_quad_pixel_mask` (#14237), which fails on that `main` too, so 0 are new. With `VK_LAYER_KHRONOS_validation`, no test logs an ID that `main` doesn't log for it. - **`agc_driver_pointer_vsharp_child_key_arm_table` fails on two Intel iGPUs on Windows; the cause isn't traced.** - It fails 5 of 5 on an Intel iGPU in @gabichuuuuu's review of ce65f496e6 ([review](https://github.com/boykopovar/AnyPS5/pull/9969#pullrequestreview-5815009839)), and on an Intel UHD Graphics (8086:9a60, driver 101.7085) in @mrfelek's runs ([comment](https://github.com/boykopovar/AnyPS5/pull/9969#issuecomment-6829909254)). It passes on the NVIDIA RTX A2000 in the same machine, on an AMD Radeon 780M with RADV ([comment](https://github.com/boykopovar/AnyPS5/pull/9969#issuecomment-6828452316)) and on llvmpipe. - Most failing runs fault at the key's T# with a word that is the selected descriptor's address low word + 0xC0 ([comment](https://github.com/boykopovar/AnyPS5/pull/9969#issuecomment-6831557004)). Others select a descriptor at 0xffffb8a2, and one returned a wrong texel without a fault ([comment](https://github.com/boykopovar/AnyPS5/pull/9969#issuecomment-6833115798)). In a trace build, every lane leaves the expected path at the child header's upper words ([comment](https://github.com/boykopovar/AnyPS5/pull/9969#issuecomment-6837901579)). - Intel's compiler spills on the arm program's two-lane pipeline (7,872 bytes of scratch), and every failing build spills ([comment](https://github.com/boykopovar/AnyPS5/pull/9969#issuecomment-6839182328)). The sibling test, `agc_driver_pointer_vsharp_child_key_table`, spills on its two-lane pipeline too (384 bytes) and passes 3 of 3 on the same GPU and build, so spilling alone doesn't explain the failure ([comment](https://github.com/boykopovar/AnyPS5/pull/9969#issuecomment-6849852258)). With synchronization validation, and separately GPU-assisted validation, mrfelek's runs log no message on the Intel UHD or the RTX A2000 ([comment](https://github.com/boykopovar/AnyPS5/pull/9969#issuecomment-6834042552)). - `APS5_SINGLE_LANE=all`, which our first reply cited as ruling out the spanned-wave lowering, never reaches the arm dispatch, so it doesn't bear on this test ([comment](https://github.com/boykopovar/AnyPS5/pull/9969#issuecomment-6840915882)). - **`check_conventions.py`:** passes. No comment lines are added. - **The title** ([hugodearaujo's run](https://github.com/boykopovar/AnyPS5/pull/9790#issuecomment-6365236571), RX 9070 XT, RADV Mesa 26.2.5, Linux, with #9424, a cold shader cache, one run): [`test/sm2-9790-child-key`](https://github.com/EagleBearerYS/AnyPS5/tree/test/sm2-9790-child-key) (ac5f6f8278) carries this PR's two commits unchanged on his test branch. With it, Marvel's Spider-Man 2 gets past `ReadConstBuffer@pc=0x9a50` and runs to 133 s. It then stops on an S# read at 0x9a9c through the V# loaded at 0x9a20, the load that also gives the key word: `compute shader 0x11e2b31800: GetSamplerResource dword 0 is not a valid runtime value`. This PR doesn't plan that shape; it's for a later change. The branch builds on GitHub's Linux and Windows runners, and its tests pass on Linux ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39874065588)). - **Gran Turismo 7 (PPSA01317), by @freneza** ([comment](https://github.com/boykopovar/AnyPS5/pull/9969#issuecomment-6878789650)): content 01.710.000, Linux, RTX 5070 (NVIDIA 620.70.06), `main` 3a0a54bbd8 with #7256, #16935 and #10049, and this PR at 239ae90b7b. - **The garage's 29 one-shot compute shaders** (`0x120aea1900` to `0x120aef8b00`) are all refused without this PR. With it, 28 of the 29 prepare offline in `agc_shader_replay`; `0x120aed7f00` is still refused, on the `LoadAddressU32` chain at pc `0x19f8`. - **In game,** with a local fix for a ShaderData binding mismatch that is separate from this PR, the first dispatch of `0x120aea4f00`, which runs every frame, hangs the GPU (NVIDIA Xid 109). Whether this PR is behind the hang isn't known. - **With that shader skipped,** 12 car computes compile (927k to 962k SPIR-V words, 32 to 46 s each) and run, and `0x120aec1a00` and `0x120aef8b00` then stop on the call table limit (#13538). - **923a4fc916, a merge of #9790's ab388afb74, which brings in `main` c9b2660d56.** Two conflicts: - `ShaderDiskCache.hpp`'s `FormatVersion` line: `main` is at 48, and this PR takes 58 (see Overlap). - The record-pointer lines in `ResourceTracker.cpp`, where `main`'s #7880 resolves table column pointers through Phi nodes: it counts a pointer as merged only when `UnwrapTableRead` can't resolve it, reads a merged buffer column's low words with `PointerRecordReads`, and its high word through `UnwrapTableRead`. This PR reads both words of every merged pointer with `PointerRecordPairs` and requires a buffer column's arms to read equivalent low and high words. The merge keeps #7880's test for a merged pointer and its `UnwrapTableRead` for the others, and this PR's pairs and arm check for merged ones. The high-word line takes a pointer-keyed record's word directly, a merged buffer column's from the pairs, and any other pointer's through `UnwrapTableRead`. - On GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40102414209)), the pointer, nested, image-table and shader sets (`^agc_driver_pointer_`, `^agc_driver_nested_`, `^agc_driver_image_table`, `^agc_shader_`) pass 10 runs in a row on Linux: 60 run, 60 pass, 0 skip, 0 fail. On Windows: 67 run, 40 pass, 27 skip (no Vulkan device), 0 fail. The libc and libkernel suites pass on both (123 and 204 tests on Linux, 150 and 217 on Windows), run with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - An `^agc` sweep ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40102609674)): Linux 996 run, 932 pass, 64 skip, 0 fail. Windows 1,020 run, 282 pass, 734 skip, 4 fail: `agc_submit_progress`, `agc_submit_progress_no_timeline`, `agc_driver_pipelined_metadata_pass` and `agc_driver_pipelined_metadata_pass_draw_pipeline`, which also fail on `main` c9b2660d56 ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40109333265)). - **34edfd45ff, a merge of #9790's 6779c1495a, which carries #7395's merge of #7223's f1cc524085 (yabanana's merge of `main` c8d34aa8f4).** Clean: `FormatVersion` stays at 53, and this PR's own diff is unchanged: the merge brings in exactly what #9790's merge did (249 files). On GitHub's runners, 10 runs ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40136967245)) 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: 44 run, 44 pass, 0 skip, 0 fail. Windows: 46 run, 20 pass, 26 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. - **7588a5359a, a merge of #9790's 809d8804c1, which merges `main` 0db47b263d.** The only conflict was `ShaderDiskCache.hpp`'s `FormatVersion` line: `main` moved to 45 (#7831), and this branch keeps its 50. On GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39930721306)), the pointer, nested, image-table and disk-cache sets (29 tests) pass 10 runs in a row on Linux. On Windows the set has 31, with two Windows-only disk-cache tests: they build, 5 pass 10 runs in a row, and the other 26, 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. **A limit found on the way, not fixed here:** on llvmpipe, a read through a V# whose words come from an unmapped record pointer crashes instead of reporting the fault. llvmpipe does this for any scalar BDA load that misses, and the files that emit those loads are `main`'s, unchanged by #9790 and by this PR. #9790's limits describe it, with its unmapped-pointer probe faulting through the image table on an NVIDIA GPU instead. **Overlap:** - **`FormatVersion`:** `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. This PR moved from 73 to 89 at the merge of #9790's a8ad90a6cc (see Tested). Whichever lands second on a number takes the next free one. - **#7223 and #10000's sampler limits:** both have merged, and this PR takes them through #9790's merges. - **#17863 (edubox, image-table key bounds)** has merged. It made `possibleU32Bits` depth-limited (`possibleU32BitsDepth`), and the merge of #9790's f031b24892 has this PR's `ShiftRightLogical32` case recurse through it with `depth - 1u`, as its siblings do (see Tested). - **#9633 (ours, on #9457 like this PR), and #9749, which carries it: conflicts in `ResourceTracker.cpp`, `ShaderDiskCache.cpp`, `FormatVersion` and the image-table test lists.** Whichever of #9633 and this PR merges first, the other takes the resolution on [test/d10195-9633-15555-18107](https://github.com/EagleBearerYS/AnyPS5/tree/test/d10195-9633-15555-18107) (`fecb7dd9b0`, #9633's ae857ccc9b with #18107, which carries this PR): - commit 2's merged-pointer line calls `PointerRecordPairs` with #9633's `chases` and `chaseDepth` arguments, keeps this PR's same-read check, and refuses a buffer record reached through a chase, which neither PR covers; - the plan encoder's checks take #9633's `DescriptorSource` and `TableColumn` and this PR's `KeyDomain`; - `FormatVersion` (each has its own number, see above) and the test lists keep both. On that branch every #9633 and #9969 test passes 3 of 3 on Linux; on Windows the GPU tests skip (no Vulkan device on the runner) and nothing fails ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/43596432863)). The run's one red is #18107's `agc_driver_pointer_vsharp_sampler_pair_spill_table`, which fails the same way on #18107 without #9633 ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/43603797749)). - **mrfelek's #16472, on #9749: textual conflicts.** It follows a pointer loaded straight through a pointer-keyed record pointer, Marvel's Wolverine (PPSA03671)'s `pc=0xb9f8` T#. It sits on #9749, the stack's other branch, and a merge-tree of this head and its cebac8da3b on `main` 8eaf82f315 conflicts in `ResourceTracker.cpp`, `ShaderDiskCache.cpp`, `ShaderDiskCache.hpp`'s `FormatVersion` (75 there, 73 here), `tests/cmake/agc_driver_image_table_tests.cmake` and `docs/dev/debt/shader.md`. Whichever lands second keeps both sides. - **#20519 and #22424 (slopezjur, the opt-in bindless image heap and, on it, layout-only pointer tables):** #9790's conflicts (see #9790's Overlap), plus this PR's own. In `ResourceTracker.cpp`, its child-key helpers also sit above `TryMakeTableColumn`, and its `!plan.keyDomain->child` condition goes after #20519's `KeepBindlessWords` call. The encoder's `KeyDomain` checks sit next to `TableColumn`'s and keep both. 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. - **#7395, #8939, #9457 and `main`:** clean. - **Marvel's Spider-Man 2 (PPSA03016 01.004.003) at 34edfd45ff on current `main`, by @hugodearaujo** ([comment](https://github.com/boykopovar/AnyPS5/pull/9969#issuecomment-6425760655)): this head merged into `main` f95acfc948 (clean), Linux 7.2.11, RX 9070 XT, RADV Mesa 26.2.5, Release, a fresh shader cache, X pressed every 30 s, 480 s limit, one run. No recompile error; the run ends at 223 s when his VRAM guard stops the game (free VRAM 8.5 GB to 0.6 GB within 7 s), as #9790's head does on the same `main`. `agc_shader_replay` on this tree refuses the four `.prepare.req` files from the earlier stops at `ReadConstBuffer@pc=0x9a9c` (`GetSamplerResource dword 0 is not a valid runtime value`), where #9790's head alone refuses them at 0x9a50, so this PR still takes them past 0x9a50 on current `main`. In his dump run of #9790's head, the title's own first dispatch of that shader, at 206 s, prepares without error. - **802d4a7a89: 5591194208, a merge of #9790's 4125a67e6e, the format commit ca21aa897b, the test-only commit 72a5e43b8f, and 802d4a7a89, a merge of #9790's merge of `main` 0cd07dc4ab** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40642095472)). - **5591194208** takes #9790's merge of #9457 (with #7223's 153400ba2b and the test-only commits of #7395, #8939 and #9790) and #9790's format commit. Clean, and this PR's own diff is unchanged. - **ca21aa897b** gives this PR its own disk-cache format, 58. 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. - **72a5e43b8f** drops the child-key `refused` helper and its four cases, the assertions @oneandonlydean listed for this PR; the cases that check a real answer stay. `ImageTable.cpp` only (1 line in, 27 out). - **802d4a7a89** merges #9790's merge of `main` 0cd07dc4ab, which carries #9457's resolution of mrfelek's #10228. Clean here, and this PR's changed lines are the same. - The child-key, shared, nested, pointer-Phi sampler and sample-order tests with the pipelined metadata test and the disk-cache, bindless and shader-memory tests. Linux ran them 10 times with no failure: 29 run, 29 pass, 0 skip, 0 fail. Windows: 31 run, 23 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 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. - **d9e9b2f495, a merge of #9790's 5aa0ca45e7**, 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/40656550918)). Clean, and this PR's changed lines are the same. The child-key, shared, nested, pointer-Phi sampler and sample-order tests with the pipelined metadata test and the disk-cache, bindless and shader-memory tests. Linux ran them 10 times with no failure: 29 run, 29 pass, 0 skip, 0 fail. Windows: 31 run, 23 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 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. - **ba29729c03: af11e43425, a merge of #9790's e3196d5721, which carries `main` 38ccd50f83 and with it #11507's `FormatVersion` 49, and a format-only commit** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40666964297)). The merge is clean, and this PR's diff over #9790 is the same. ba29729c03 moves `FormatVersion` from 58 to 60: 58 is also held by #10193 (Celegans12), which carries our #7642's commits, so if #10193 landed first, this PR's identical 58 would merge cleanly over it and the number wouldn't move. No open PR uses 60. An earlier reply here named only #7642 at 58. The child-key, shared, nested, pointer-Phi sampler, sample-order 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: 30 run, 30 pass, 0 skip, 0 fail. Windows: 32 run, 23 pass, 8 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. - **c7b702d4a2, a merge of #9790's 4e6a2bfce0** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40861487992)). It takes #7395's test-only commit d908758281, which drops `agc_driver_nested_image_table`'s two checks that a valid shader is refused (a V# with another buffer consumer and a T# with another consumer), #7395's merge of #7223's 0dbf5478b2 (yabanana's merge of `main` f7e84c4cf1) and the format commits below this PR. The one conflict was `FormatVersion`, which stays 60, one above #9790's 59. Apart from that line's old value, this PR's diff over #9790 is unchanged. - The pointer, nested, image-table and disk-cache tests with `agc_shader_bindless`, `agc_shader_memory` and 17 other `agc_shader_` tests (table snapshots, selected records, memo budgets and pair layouts) ran 10 times with no failure. Linux: 48 run, 48 pass, 0 skip, 0 fail. Windows: 50 run, 25 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. - **ef707575db, for XairRrR's review, on a merge of #9790's eddf966ddb** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40948524609)). 1011f51296 merges #9790's head, which carries #7395's 4769d5a745, which drops "and refusals" from two nested-table test summary lines, and brings only that change. ef707575db rewrites the V#-relative child key entry in `docs/dev/debt/shader.md` to lead with what stays refused and the key that faults, and says the snapshot maps the selected entry and the entry at key 0 (`Narrow` starts its key list at 0). The image-table, nested, pointer, disk-cache, bindless and shader-memory tests ran 10 times with no failure. Linux: 48 run, 48 pass, 0 skip, 0 fail. Windows: 50 run, 25 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. - **c7b39f3d16, a merge of #9790's head a5efbc3ec5**, which merges oneandonlydean's merge of `main` b08c539c50 into #9457 ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41264679037)). - **The one conflict** was `CMakeLists.txt`, from #12862's split, resolved with `tools/agc_test_split.py resolve`. It moves this PR's registrations into `tests/cmake/agc_driver_image_table_tests.cmake`, next to the stack's (+4 −2 against a5efbc3ec5). - **`FormatVersion`** merged cleanly and stays this PR's own. Apart from the move, this PR's diff is unchanged. - **The count:** with `-DBUILD_TESTING=ON`, `ctest -N` gives 3100 tests: `main` b08c539c50's 3081 plus the stack's 19 tests (#9457's 15, #9790's 2 and this PR's 2), each listed once. - **×10** of this PR's verify set. Linux: 23 run, 23 pass, 0 skip, 0 fail. Windows: 23 run, 2 pass, 21 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 199 and 308 tests on Linux and 226 and 330 on Windows, with 0 failed. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **Validation**, `VK_LAYER_KHRONOS_validation` on GitHub's Linux runner ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41264693340)), `main` b08c539c50 against this merge, for the same tests. The loader inserted the layer 2 times on main and 21 with this merge. The only VUID in either arm is `VUID-VkDeviceCreateInfo-pNext-pNext`, so this merge adds none. `agc_driver_image_table` fails in that mode in both arms, because the mode treats that `main` message as a failure. - **NVIDIA RTX 2000 Ada Generation** at c7b39f3d16, from TechLevelZero's NVIDIA bot ([report](https://github.com/boykopovar/AnyPS5/pull/9969#issuecomment-6553366124)): driver 595.99.02, Ubuntu 26.04.1, this head merged onto `main` dc9dc7e, 2,540 of 3,119 tests selected. - 2,491 passed, 5 failed and 44 skipped. None of the failures is new: 3 also fail on `main`, and 2 are unstable on `main`. - With `VK_LAYER_KHRONOS_validation`, over 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. - **01eed4966c: 291f696521, a merge of #9790's 172dd67c21, and the format commit 01eed4966c** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41415530631)). The one conflict was `FormatVersion`, which the format commit moves from 60 to 73, above #9790's 71 and #9749's 72. This PR's `KeyDomain` change (24 bytes, 7 fields) merges cleanly with #7694's `DescriptorSource` 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/9969#issuecomment-6575521510)): 2,572 passed, 5 failed, none new (3 also fail on `main`, 2 unstable on `main`), 45 skipped, with no new validation IDs (992 tests on the GPU). - **da1e1cccf5, a merge of #9790's a12bac51d6, which carries #7395's merge of `main` 4f64f81ef7** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41461388890)). The one conflict was the footprint line in `ResourceMaterializer.cpp`: this PR's `table.readRanges.size() * 4u` term is kept on the first line of #12246's loop, after #7395's pointer term. `FormatVersion` stays 73, and this PR's own diff is otherwise 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/41461422552)): 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)). - **9e7ac69470, a merge of `main` 4f41f4c375** ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41611306266), [the PR's own tests ×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41619895406)). - **The conflicts:** `ShaderDiskCache.hpp`'s `FormatVersion`, where `main` is now at 52 (#10000) and this PR keeps its 73; 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. - **c147aa8647, a merge of #9790's ebaa9b1565,** which carries `main` c2eafe4461 with yabanana's #7223 through #9457, #8939 and #7395 ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41776169651)). - **The conflicts:** `ShaderDiskCache.hpp`'s `FormatVersion`, which stays 73 (`main` is at 56 since #7223), and `docs/dev/debt/shader.md`, which keeps this PR's three entries, with #9790's "Nested image table children" entry after "Nested image tables". 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/9969#issuecomment-6625194555)): merged onto `main` b8efa62, driver 595.99.02, Ubuntu 26.04.1, 2,911 of 3,878 tests selected. 2,854 passed, 7 failed and 50 skipped. None of the failures is new: 3 also fail on `main`, and 4 are unstable on `main`. With `VK_LAYER_KHRONOS_validation`, there are no new validation IDs against `main`, over 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. - **Marvel's Wolverine (PPSA03671), an offline replay and a game run by @mrfelek** ([replay](https://github.com/boykopovar/AnyPS5/pull/7395#issuecomment-6688310709), [game run](https://github.com/boykopovar/AnyPS5/pull/7395#issuecomment-6690066570)), at c147aa8647: RTX 3080 Ti, NVIDIA 615.71.09, Linux, title 01.001.005. - **The replay:** compute shader 0x11d049aa00's request from their own capture (`APS5_DUMP_SHADERS`), through `agc_shader_replay`. The `pc=0xb600` `GetSamplerResource` stop is gone; #9457, below this PR, plans that S# at a fixed offset of its V#. The same request then stops at a T# at `pc=0xb9f8` (`GetImageResource dword 0`), whose pointer is a Phi of the record's pointer and a pointer read from the record's data. - **The game run agrees:** on this head plus their local stencil and image-table changes, the title gets past `pc=0xb600` and stops 148 s in at the `pc=0xb9f8` T#. With #9633 and #9749 also merged on, the replay stops at the same place. - mrfelek's #16472 takes `pc=0xb9f8` (see Overlap); the stops after it are in #7395's description. - **ASTRO BOT (PPSA21564), a regression check by @mrfelek** ([comment](https://github.com/boykopovar/AnyPS5/pull/9969#issuecomment-6691941659)): Sky Garden from launch with `-lvl underwater_aerial_garden`, no input, headless, default settings, a warm shader cache; RTX 3080 Ti 12 GB, NVIDIA 615.71.09, Linux, Ryzen 9 5950X. The builds are `main` 4c03784113 and `main` with this PR's c147aa8647 (a clean merge, 228475a4a5); only `libSceAgcDriver.prx` differs. - **No new stops:** none of the four runs logged a driver failure, a recompiler refusal or a `snapshot did not stabilize`. - **Their FPS over the last five 10 s windows of a 125 s stay, in run order:** `main` 0.165, this PR 0.650, this PR 0.635, `main` 0.404. They put the gain at 1.6–3.9 times, since `main` varies between its runs, and haven't found which of the stack's changes saves the time. Clocks weren't reported, and they didn't compare the picture. - **5a8c3cc229, a merge of #9790's 32a8525931,** which carries `main` 8eaf82f315 through #9457, #8939 and #7395 ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/42336937313)). - **The conflict:** `docs/dev/debt/shader.md`, where JJenkx's #15305's "runtime resource snapshot" entry, which comes with `main`, sits right above "Nested image tables", which this PR rewrites. Both stay, #15305's entry first. 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. - **ce65f496e6, a merge of #9790's 8527df3287,** which carries `main` 006d11fca5 through #9457, #8939 and #7395 ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/42370729855)). - **Clean:** #7395's merge takes the one conflict with `main`, frankea's #9020's `FormatVersion` 57, and `FormatVersion` stays 73 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. - **0ef70b4bcb, a merge of #9790's 1b139e755b,** oneandonlydean's merge of `main` 0bae53facd into #9790 ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/42524082090)). - **The conflict:** `docs/dev/debt/shader.md`, where this PR's wording of the pointer-keyed image-table entry sits next to #10489's rewording of the image-table entry (the image limit is now 128). Both are kept. `FormatVersion` stays 73, 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, with 0 failed, and 375 and 373 on Windows, where `guest_standard_streams` fails: `main` 0bae53facd has #12920, whose Windows abort is I#17423 (oneandonlydean's revert is #17531). The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **5f70ec884e, a merge of #9790's a7234e908f,** oneandonlydean's merge of `main` 3eb7a74e1c into #9790 ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/42743740335), [every `agc` test](https://github.com/EagleBearerYS/AnyPS5/actions/runs/42743798560)). - **Clean:** #9790's merge takes the one conflict with `main`, #14636's `FormatVersion` 68, and keeps #9790's 71. `FormatVersion` stays 73 here, and this PR's own lines are unchanged. - **#9790 and #9457:** oneandonlydean refreshed #9790 from `main` without #9457's last three commits, so #9790's `FormatVersion` 71 sits below #9457's new 81. It is re-picked when #9457 lands. - **×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. The first attempt had two failures that the rerun of both jobs cleared: on Linux, `agc_driver_frame_replay_rewind_copy` (1 of 1,547), which #17921 reports failing once on `main` too; and on Windows, the build stopped when `guest_np_web_api_initialize_tests` copied the unpatched `libSceNpWebApi.prx` before it was built. The rerun: Linux 1,547 run, 1,452 pass, 95 skip, 0 fail; Windows 1,590 run, 482 pass, 1,108 skip (no Vulkan device), 0 fail. - **2a082ea647: d4ac9fceaf, a merge of #9790's a8ad90a6cc, and the format commit 2a082ea647** ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/43350994561)), for oneandonlydean's ask on #9457 ([comment](https://github.com/boykopovar/AnyPS5/pull/9457#issuecomment-6808481769)). - **The conflict:** only `ShaderDiskCache.hpp`'s `FormatVersion` line. The format commit gives this PR 89, above #9790's new 88 (see Overlap). This PR's own lines are unchanged apart from that line. - **#9790 and #9457:** #9790 now merges #9457's head and takes 88, above #9457's 81, so the gap noted under 5f70ec884e is closed. - **×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. - **239ae90b7b, a merge of #9790's 5e4ba4e635, without conflicts,** which carries `main` e22c5fb941 through #9790, #9457, #8939 and #7395 ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/43459088548)). - **×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 239ae90b7b:** `main` e22c5fb941 against this head, 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: - **NVIDIA GeForce RTX 3080 Ti, by @mrfelek** ([comment](https://github.com/boykopovar/AnyPS5/pull/9969#issuecomment-6863039829)): Linux, driver 615.71.09, layer 1.4.357, both arms on one machine. `main` passes its 32 tests and the head its 49, 3 of 3 runs each, with no `VUID-` line in either arm. No run printed "was not found but was requested", and every test that creates a Vulkan instance logged `Insert instance layer "VK_LAYER_KHRONOS_validation"`. - **GitHub's Linux runner, lavapipe, layer 1.3.275** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/43482034649)): 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 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. - **9f507b8b25, a merge of #9790's f031b24892,** which carries `main` bd278f3654 through #9790, #9457, #8939 and #7395 ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/43576748894), [every `agc` test](https://github.com/EagleBearerYS/AnyPS5/actions/runs/43576818414)). - **The resolution:** the merge has no textual conflict. #17863 made `possibleU32Bits` depth-limited (`possibleU32BitsDepth`); this PR's `ShiftRightLogical32` case now recurses through it with `depth - 1u`, as its siblings do. Without that line the merge doesn't build, since `possibleU32Bits` is now defined after `possibleU32BitsDepth`. This PR's other changed lines are unchanged. - **`FormatVersion`:** `main`'s 69, this PR's 89. #7395's merge takes #19530's move of `main` from 68 to 69. - **×10:** the same tests as on 239ae90b7b. Linux, in the rerun of the Linux job ([attempt 2](https://github.com/EagleBearerYS/AnyPS5/actions/runs/43576748894/attempts/2)): 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. - **`agc_driver_image_table` in the first attempt** ([attempt 1](https://github.com/EagleBearerYS/AnyPS5/actions/runs/43576748894/attempts/1)): it timed out at 30.05 s in its first repetition, against `main`'s `TIMEOUT 30`, and the set's other 49 tests passed 10 of 10. In the rerun it took 24.70 s in its first repetition and 6.64 to 7.03 s after that. On GitHub's Linux runner the first repetition, from a cold start, is the slow one across the stack: 27.44 s on #7395's e9ddd12bd2, 28.05 s on this PR's previous head 239ae90b7b, 23.84 s on #9749, 18.29 s on #9633 and 14.10 s on #9790, with 4 to 7 s after that. `main` bd278f3654 alone on the same runner ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/43587490595)) takes 16.01 s in its first repetition and 3.30 and 3.33 s after that, with only that test running; the ×10 runs share the runner with the set's other tests. - **Every `agc` test, once:** Linux: 1,708 run, 1,600 pass, 106 skip, 2 fail. Windows: 1,747 run, 506 pass, 1,241 skip (no Vulkan device), 0 fail. The two Linux failures are `main`'s: - `agc_driver_global_atomic_csub`: "AGC graphics: global atomic csub without glc: wave64 byte 644 is 146, expected 0"; - `agc_driver_coherent_atomic_loads_enabled`: a 60-second timeout. `main`'s own Linux job fails both, with the same message and the same timeout, at d2949cd806 ([job](https://github.com/boykopovar/AnyPS5/actions/runs/43549645830/job/132332373767)) and at 67ec0f7d8c ([job](https://github.com/boykopovar/AnyPS5/actions/runs/43553714011/job/132335135662)), covered by #19332. - **The Windows tree:** both 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. - **20b045a8de, a merge of #9790's aadbb73413,** which carries `main` 328cbf673e through #9790, #9457, #8939 and #7395 ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/43816908301), [with #21255's test change](https://github.com/EagleBearerYS/AnyPS5/actions/runs/43831952163)). - **The conflict:** only `FormatVersion`, where #9790 now takes 98, above this PR's 89. The merge moves this PR to 99. This PR's own lines are unchanged apart from the `FormatVersion` line. - **×10:** the same tests as on 9f507b8b25. Linux, in the rerun of the Linux job ([attempt 2](https://github.com/EagleBearerYS/AnyPS5/actions/runs/43816908301/attempts/2)), since the first attempt stopped in checkout when cloning the sqlite submodule returned HTTP 503 ([attempt 1](https://github.com/EagleBearerYS/AnyPS5/actions/runs/43816908301/attempts/1)): 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/43831952163)), `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/9969#issuecomment-6927289092)): 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 20b045a8de merged onto `main` e4caa07950 (their merge 83e91ce933, 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 two (`agc_driver_pointer_vsharp_child_key_table` and `_child_key_arm_table`) and the 15 of #9790, #9457, #8939 and #7395. `agc_driver_pointer_vsharp_child_key_arm_table`, which fails on two Intel iGPUs on Windows (above), passes here. 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 fff420ad1b** of #9790'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 here too, at 20b045a8de, with `selected the descriptor at 0x0: unmapped`. 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/44198115257/job/134444813639), 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/44211641241)), 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. - **Gran Turismo 7 (PPSA01317 01.710.000), by @frankea** ([comment](https://github.com/boykopovar/AnyPS5/issues/6191#issuecomment-6963380110)): Windows 11, RTX 4090 (NVIDIA 621.14), `main` 33876d3742 with #9020, #7256 and `main`'s 0cbbcfd05c, plus each PR's diff against 328cbf673e. On that base and with #9457 (d896ff422b), #9790 (aadbb73413) and #9969 (20b045a8de), every run (2 of 2 each) stops at compute shader `0x120aed7f00`, 127 to 166 s after the press, with `GetImageResource dword 0 is not a valid runtime value`, chain `LoadAddressU32@pc=0x19a0` ← `LoadAddressU32@pc=0x198c` ← `ReadConstBuffer@pc=0xac8`. An offline replay of the dumped request refuses the same way on `main` 328cbf673e and on each head. That matches @freneza's offline result above, where `0x120aed7f00` is still refused. - **630bbb0a2e, a merge of #9790's 3b2426ac0a,** which carries `main` d89f26516c through #9790, without conflicts ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/44433825578), [with #21255's test change](https://github.com/EagleBearerYS/AnyPS5/actions/runs/44451654918)). - **No conflicts:** this PR's `FormatVersion` stays 99, 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 #9969's 630bbb0a2e, this PR's own head ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/44451654918)), `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 630bbb0a2e merged onto `main` e1ab104e0a (their merge 2c9689c0c3, 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 #9790, 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). `agc_driver_pointer_vsharp_child_key_arm_table`, the test that fails on the two Intel iGPUs above, passes 3 of 3. 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. - **dc97c68c75, a merge of #9790's 5821a3e2fa,** which carries `main` d50640e264 through #9790, without conflicts ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/44659976804), [with #21255's test change](https://github.com/EagleBearerYS/AnyPS5/actions/runs/44660369966)). - **No conflicts:** this PR's `FormatVersion` stays 99, 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. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes only `precise_wait`'s median bounds on GitHub's hosted runners. The Windows job ran in a second attempt, because the first reached the job time limit while building on an AMD EPYC 7763 runner, before any test ran. - **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 #9969's dc97c68c75, this PR's own head ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/44660369966)), `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_thread_cpu_clock` in the run with #21255's test change:** libkernel's `guest_thread_cpu_clock` aborted once in that run's Windows suite, on an Intel Xeon 6973P-C runner. ShootanoJumper's #23756 reports this test failing intermittently on Windows on `main` ed1def4dd4 under load and changes it. It merged after `main` d50640e264, so these runs don't have it. 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: #9790 (and through it #9457, #8939 and #7395; #7223 has merged) - [x] Fixes: none (related: #6191) - [x] Unblocks: Marvel's Spider-Man 2 (PPSA03016) #10195, past `ReadConstBuffer@pc=0x9a50` after #9790, as hugodearaujo's run shows; its next stop is an S# at 0x9a9c (see Tested) - [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); AMD Radeon RX 9070 XT (RADV, Mesa 26.2.5), Linux, in hugodearaujo's title run; NVIDIA GeForce RTX 3060 Ti (617.42) and Intel Arc Graphics (Meteor Lake, 101.9150), Windows 11, with the validation layer, in BKlaasWerkman's run; NVIDIA GeForce RTX 5080 (621.14), Windows 10, in adam25136's run of #16814; an AMD Radeon 780M (RADV), and an Intel UHD Graphics (8086:9a60, 101.7085) with an NVIDIA RTX A2000, in mrfelek's runs; an Intel iGPU in gabichuuuuu's review (one test fails on both Intel iGPUs, see Tested); NVIDIA GeForce RTX 4090 (driver 620.70.06, Arch Linux, with the validation layer), by @domx4q; NVIDIA GeForce RTX 4090 (621.14, Windows 11), by @frankea (two of #8939's tests failed there before 5eb49d1893, see Tested; not re-run since); AMD Radeon RX 9070 XT (RADV, Mesa 26.2.7, Arch Linux, with the validation layer), by @hugodearaujo - [x] AI-assisted: yes
MarcZX10 commented 2026-10-23 04:55:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-23T04:55:25Z.

Review: CHANGES_REQUESTED


I found a cache-budget accounting gap in the new nested snapshot path. NestedColumn copies the parent descriptor readRanges and appends a range for each distinct child buffer; the indirect-buffer path also records a descriptor range per captured pointer. CopyRecords retains those ranges in ImageTableColumnSnapshot, and ResolutionMemoEntry stores the table snapshots. However, resolutionFootprint() counts map words, codes, descriptor words, and pointer words, but not table.readRanges.

These are 16-byte pairs, so omitting them undercounts by four 32-bit words per range. With up to 524,288 parent keys and up to 524,288 child buffers, the retained ranges can add roughly 16 MiB to an entry beyond the ResolutionMemoWords estimate. The LRU can therefore retain more than its declared 8M-word budget, especially across its four variants per shader. Please either include retained read-range storage in the footprint (and add a boundary regression) or avoid retaining ranges in resolution memo entries if they are not part of the cache key/result. This is a memory-bound issue introduced by the new nested-table path, not a queue-size concern.

I also checked pointer-map construction/search ordering, nested-key limits, decode validation, snapshot hashing, cache serialization and the SPIR-V lower-bound lookup; I found no additional confirmed issue. Current-main diff and conventions checks pass. Hosted eligibility, intake, conventions, labels and report pass, while native product jobs are skipped. I could not run the image-table runtime tests locally because this workspace has no matching build/test executable; the PR's reported Linux/Windows and validation-layer results remain author-reported.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5624054362 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9969#pullrequestreview-5624054362). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-23T04:55:25Z. **Review:** CHANGES_REQUESTED --- I found a cache-budget accounting gap in the new nested snapshot path. `NestedColumn` copies the parent descriptor `readRanges` and appends a range for each distinct child buffer; the indirect-buffer path also records a descriptor range per captured pointer. `CopyRecords` retains those ranges in `ImageTableColumnSnapshot`, and `ResolutionMemoEntry` stores the table snapshots. However, `resolutionFootprint()` counts map words, codes, descriptor words, and pointer words, but not `table.readRanges`. These are 16-byte pairs, so omitting them undercounts by four 32-bit words per range. With up to 524,288 parent keys and up to 524,288 child buffers, the retained ranges can add roughly 16 MiB to an entry beyond the `ResolutionMemoWords` estimate. The LRU can therefore retain more than its declared 8M-word budget, especially across its four variants per shader. Please either include retained read-range storage in the footprint (and add a boundary regression) or avoid retaining ranges in resolution memo entries if they are not part of the cache key/result. This is a memory-bound issue introduced by the new nested-table path, not a queue-size concern. I also checked pointer-map construction/search ordering, nested-key limits, decode validation, snapshot hashing, cache serialization and the SPIR-V lower-bound lookup; I found no additional confirmed issue. Current-main diff and conventions checks pass. Hosted eligibility, intake, conventions, labels and report pass, while native product jobs are skipped. I could not run the image-table runtime tests locally because this workspace has no matching build/test executable; the PR's reported Linux/Windows and validation-layer results remain author-reported.
adriadam10 commented 2026-10-24 02:48:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-24T02:48:34Z.

Review: CHANGES_REQUESTED


Not mergeable as is, and nothing in this PR is blocking by itself:

  • The branch conflicts with main, and so does the root of the stack it sits on (#7223, ResourceTracker.cpp / TryMakeIndirectColumn after #7880; see oneandonlydean's comment there). The resolution of the two dword reads in TryMakeIndirectColumn is a logic call that has to be settled on #7223 first.
  • Stacked on #7223, #7395, #8939, #9457, #9633, #9749 and #9790, none merged. Please move the chain onto main once #7223 is resolved, as you said on #7395, and re-request review; the two fix commits and the resolutionFootprint read-range term (d01f290417, answers MarcZX10's review) look consistent from the diff.
  • When rebasing, keep FormatVersion above main and #10000's, as planned.
  • No new evidence needed on tests: CI on this head only ran Conventions/relinker, the full Build runs when it enters the merge queue.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5636478396 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9969#pullrequestreview-5636478396). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-24T02:48:34Z. **Review:** CHANGES_REQUESTED --- Not mergeable as is, and nothing in this PR is blocking by itself: - The branch conflicts with `main`, and so does the root of the stack it sits on (#7223, `ResourceTracker.cpp` / `TryMakeIndirectColumn` after #7880; see oneandonlydean's comment there). The resolution of the two dword reads in `TryMakeIndirectColumn` is a logic call that has to be settled on #7223 first. - Stacked on #7223, #7395, #8939, #9457, #9633, #9749 and #9790, none merged. Please move the chain onto `main` once #7223 is resolved, as you said on #7395, and re-request review; the two fix commits and the `resolutionFootprint` read-range term (d01f290417, answers MarcZX10's review) look consistent from the diff. - When rebasing, keep `FormatVersion` above `main` and #10000's, as planned. - No new evidence needed on tests: CI on this head only ran Conventions/relinker, the full Build runs when it enters the merge queue.
MarcZX10 commented 2026-10-29 01:42:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T01:42:57Z.

Review: CHANGES_REQUESTED


Re-checked — #9969 — ba29729c032d9c3718d28ca8d0fbf1083f8cd613

The read-range term is present in the updated resolutionFootprint calculation, but the stacked branch is still based on 38ccd50f8337a6a1ca674f64596d94a391472e92 (692 commits behind current main) and the focused image-table assertions could not execute on the available Vulkan device.

What I ran

Check Result
Linux GCC 12.2 Release configure and build of agc_shader_disk_cache_tests and agc_driver_image_table_tests Passed; 407/407 build actions
agc_shader_disk_cache and agc_shader_disk_cache_large_file Passed
Three focused image-table CTests Blocked before assertions: host CPU guard on native run; under Haswell QEMU, llvmpipe lacks required descriptor indexing features
git diff --check and current-main merge preview Passed
Current branch distance from main PR is 86 commits ahead and 692 behind
Raw output
[407/407] Linking CXX executable tests/agc_driver_image_table_tests
BUILD_EXIT=0

1/5 Test  #794: agc_shader_disk_cache .......................   Passed
2/5 Test #1389: agc_shader_disk_cache_large_file ............   Passed
3/5 Test #1408: agc_driver_nested_image_table_budget ......... Subprocess aborted
4/5 Test #1409: agc_driver_nested_sampler_table .............. Subprocess aborted
5/5 Test #1423: agc_driver_pointer_vsharp_child_key_table .... Subprocess aborted
40% tests passed, 3 tests failed out of 5

Native failure: host CPU lacks LZCNT, BMI1, BMI2, MOVBE, AVX2, FMA.
QEMU Haswell retry: Vulkan device llvmpipe lacks
runtimeDescriptorArray, descriptorBindingPartiallyBound, and
 descriptorBindingVariableDescriptorCount required by the image-table tests.

git rev-list --left-right --count upstream/main...HEAD
692 86

Negative control

Not run; the three relevant image-table assertions could not reach their test body with this host CPU/Vulkan feature set.

Findings

Blocking

  • Please update the full dependency stack onto current main after its prerequisites are ready, then rerun the affected focused tests and supported build matrix. The current branch is 692 commits behind, and the merge preview only establishes that Git can construct a tree; it does not validate this older shader/recompiler stack against current changes.

Non-blocking

  • The earlier read-range accounting omission appears corrected in this head: resolutionFootprint now adds readRanges alongside the other table ranges, and the PR includes the associated boundary regression. The cache tests passed locally.
  • The focused image-table regression remains unverified locally because the available software Vulkan device does not expose the required descriptor-indexing features. The failures above are environment limitations, not assertion failures.

Sources

Not verified

  • Native execution of image-table tests on an AVX2-capable host with Vulkan descriptor indexing.
  • PS5 hardware/title behavior.
  • Full build/tests for the 692 commits of current main absent from this stack.

To get this to a good state

Once the declared prerequisites are merged, rebase the stack onto current main, confirm the dependency list/order, rerun the focused image-table tests on a device exposing the required Vulkan features, and refresh CI.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5691876303 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9969#pullrequestreview-5691876303). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T01:42:57Z. **Review:** CHANGES_REQUESTED --- # Re-checked — #9969 — `ba29729c032d9c3718d28ca8d0fbf1083f8cd613` The read-range term is present in the updated `resolutionFootprint` calculation, but the stacked branch is still based on `38ccd50f8337a6a1ca674f64596d94a391472e92` (692 commits behind current `main`) and the focused image-table assertions could not execute on the available Vulkan device. ## What I ran | Check | Result | |---|---| | Linux GCC 12.2 Release configure and build of `agc_shader_disk_cache_tests` and `agc_driver_image_table_tests` | Passed; 407/407 build actions | | `agc_shader_disk_cache` and `agc_shader_disk_cache_large_file` | Passed | | Three focused image-table CTests | Blocked before assertions: host CPU guard on native run; under Haswell QEMU, llvmpipe lacks required descriptor indexing features | | `git diff --check` and current-main merge preview | Passed | | Current branch distance from main | PR is 86 commits ahead and 692 behind | <details> <summary>Raw output</summary> ```text [407/407] Linking CXX executable tests/agc_driver_image_table_tests BUILD_EXIT=0 1/5 Test #794: agc_shader_disk_cache ....................... Passed 2/5 Test #1389: agc_shader_disk_cache_large_file ............ Passed 3/5 Test #1408: agc_driver_nested_image_table_budget ......... Subprocess aborted 4/5 Test #1409: agc_driver_nested_sampler_table .............. Subprocess aborted 5/5 Test #1423: agc_driver_pointer_vsharp_child_key_table .... Subprocess aborted 40% tests passed, 3 tests failed out of 5 Native failure: host CPU lacks LZCNT, BMI1, BMI2, MOVBE, AVX2, FMA. QEMU Haswell retry: Vulkan device llvmpipe lacks runtimeDescriptorArray, descriptorBindingPartiallyBound, and descriptorBindingVariableDescriptorCount required by the image-table tests. git rev-list --left-right --count upstream/main...HEAD 692 86 ``` </details> ## Negative control Not run; the three relevant image-table assertions could not reach their test body with this host CPU/Vulkan feature set. ## Findings ### Blocking - Please update the full dependency stack onto current `main` after its prerequisites are ready, then rerun the affected focused tests and supported build matrix. The current branch is 692 commits behind, and the merge preview only establishes that Git can construct a tree; it does not validate this older shader/recompiler stack against current changes. ### Non-blocking - The earlier read-range accounting omission appears corrected in this head: `resolutionFootprint` now adds `readRanges` alongside the other table ranges, and the PR includes the associated boundary regression. The cache tests passed locally. - The focused image-table regression remains unverified locally because the available software Vulkan device does not expose the required descriptor-indexing features. The failures above are environment limitations, not assertion failures. ## Sources - PR diff and files at [`ba29729c032d9c3718d28ca8d0fbf1083f8cd613`](https://github.com/boykopovar/AnyPS5/tree/ba29729c032d9c3718d28ca8d0fbf1083f8cd613) - Current base used for comparison: [`3a2b91981651569163768854a1fcdc7193b6667b`](https://github.com/boykopovar/AnyPS5/tree/3a2b91981651569163768854a1fcdc7193b6667b) ## Not verified - Native execution of image-table tests on an AVX2-capable host with Vulkan descriptor indexing. - PS5 hardware/title behavior. - Full build/tests for the 692 commits of current `main` absent from this stack. ## To get this to a good state Once the declared prerequisites are merged, rebase the stack onto current `main`, confirm the dependency list/order, rerun the focused image-table tests on a device exposing the required Vulkan features, and refresh CI.
XairRrR commented 2026-10-29 13:15:53 +00:00 (Migrated from github.com)

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

Review: COMMENTED


Reviewed — comments

This PR's own commits on top of #9790 merge cleanly into current main, build, and pass the focused image-table, nested, pointer and disk-cache tests on an NVIDIA GPU with the validation layer, and the new tests fail without the PR's code; I am leaving a comment rather than an approval because merging this PR also merges the seven open PRs below it, which I did not review here.

What I ran

  • Head: c7b702d4a27f6f8a1b61436bbe2472b27766f840
  • main: 157b02c4f1803e9d2cd757677b9a805961203fc4
  • #9790 head used for the PR's own diff and the negative control: 4e6a2bfce0149f4914075916ec7cd1bd3172b050
  • 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), in a clean worktree.
git fetch origin main pull/9969/head:refs/review/9969 pull/9790/head:refs/review/9790
git checkout --detach origin/main && git merge --no-ff --no-edit refs/review/9969
git diff --check origin/main...refs/review/9969
python3 tools/check_conventions.py --base origin/main
cmake --build build -j10

P='^(agc_driver_pointer_|agc_driver_nested_|agc_driver_image_table|agc_shader_disk_cache|agc_shader_bindless$|agc_shader_memory$|agc_driver_bda_anchor_reads$)'
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 -R "$P" -j4 -V --output-on-failure

# negative control: reverse only this PR's production hunks over #9790
git diff refs/review/9790 refs/review/9969 -- <the 5 production files> | git apply -R --3way
cmake --build build -j10 --target agc_driver_image_table_tests agc_shader_disk_cache_tests
ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1 ctest --test-dir build \
  -R '^(agc_driver_pointer_vsharp_child_key_table|agc_driver_pointer_vsharp_child_key_arm_table|agc_shader_disk_cache)$' --output-on-failure

# main, same pattern and environment
git checkout --detach origin/main
cmake --build build -j10 --target agc_driver_bda_anchor_reads_tests agc_driver_image_table_cache_bounds_tests \
  agc_driver_image_table_cache_tests agc_driver_image_table_reuse_tests agc_driver_image_table_tests \
  agc_shader_disk_cache_tests agc_shader_memory_tests
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 -R "$P" -j4 -V --output-on-failure

Results

Check Result
Merge into main 157b02c4f1 Clean (auto-merged CMakeLists.txt, ShaderMemory.cpp, ResourceMaterializer.cpp, ShaderDiskCache.cpp, debt/shader.md)
git diff --check Clean
check_conventions.py --base origin/main All conventions checks passed.
Full build of the merged tree Passed (3169 steps)
Focused tests, merged tree, validation layer 32/32 passed, 0 skipped, on the RTX 4070 Ti SUPER; each test under 3.5 s
Focused tests, main, validation layer 13/13 passed (the stack's 19 tests do not exist on main)
VUID- lines 0 on the merged tree, 0 on main
was not found but was requested by env var VK_INSTANCE_LAYERS Not present in either log; the loader logged Insert instance layer "VK_LAYER_KHRONOS_validation" 28 times (merged tree) and 9 times (main)
FormatVersion 60 on the merged tree, 49 on main
Merged tree, new tests
Test #1596: agc_driver_pointer_vsharp_child_key_table .......   Passed    0.74 sec
Test #1597: agc_driver_pointer_vsharp_child_key_arm_table ...   Passed    0.88 sec
Test  #950: agc_shader_disk_cache ...........................   Passed    1.49 sec
1596: Selected GPU name=NVIDIA GeForce RTX 4070 Ti SUPER vendor=0x10de device=0x2705 subgroup=32
1596: pointer V# table with a T# at an offset read from the V#'s own buffer: T#s indexed by a word read through the same pointer-loaded V#, with its S#, checked for several keys and the largest inside the V#; keys past the V# read null T#s, and a key the snapshot did not hold faults
1597: pointer V# table with a T# at an offset read from the V#'s own buffer, behind a record pointer that may take a T#'s words: the T# at the key read through the V# reloaded behind the merged pointer, its S# and the T# at 0x4c0 checked; the pointer arm holding that T#'s dwords faults outside the snapshot
100% tests passed out of 32

Negative control

I reversed only this PR's hunks over #9790's head in the five production files (ControlFlowInfo.hpp, ResourceMaterializer.cpp, ResourceTracker.cpp, ShaderDiskCache.cpp, ShaderDiskCache.hpp), kept the tests, and rebuilt. I did not restore these files from main: that would also remove the code of the six PRs below #9790, and #9790's own copy of ShaderDiskCache.cpp no longer compiles against current main (static_assert(sizeof(IrValue) == 128) fails, since it is now 136). All three tests fail, each with the message the PR description predicts:

Output with the PR's production hunks reverted
1/3 Test #1596: agc_driver_pointer_vsharp_child_key_table .......***Failed    0.59 sec
ShaderRecompiler::Recompile: GetSamplerResource dword 0 is not a valid runtime value; chain: ReadConstBuffer@pc=0x000000c0(GetBufferResource(LoadAddressU32@pc=0x00000090(GetAddressResource(Phi(...
2/3 Test #1597: agc_driver_pointer_vsharp_child_key_arm_table ...***Failed    0.59 sec
ShaderRecompiler::Recompile: GetImageResource dword 0 is not a valid runtime value; chain: ReadConstBuffer@pc=0x000000e8(GetBufferResource(LoadAddressU32@pc=0x000000d4(GetAddressResource(Phi(Phi(...
3/3 Test  #950: agc_shader_disk_cache ...........................***Failed    1.23 sec
resolution memo read ranges: a table's read ranges past the memo budget were not counted
0% tests passed, 3 tests failed out of 3

The tests passed again after I restored the merged files.

Findings

Blocking

None in this PR's own commits.

On the earlier reviews: the conflict with main that adriadam10 reported is gone, because the head now merges cleanly into main 157b02c4f1. MarcZX10's readRanges footprint gap is fixed by the table.readRanges.size() * 4u term in resolutionFootprint, and the negative control above shows that agc_shader_disk_cache fails without that term. MarcZX10's latest re-check could not run the image-table assertions on their device; they run and pass here on an NVIDIA RTX 4070 Ti SUPER.

Non-blocking

  1. The debt entry says the snapshot "maps only the entry it selects", but key 0 is mapped too. docs/dev/debt/shader.md:54 says so, while Narrow starts its key list with values{0u} and adds the child word's key to it (ResourceMaterializer.cpp:834-855). The PR description is right ("maps only that record and key 0"). The entry also starts with the supported behaviour instead of the gap, which CONTRIBUTING's Documentation section asks for. Suggested fix: lead with the gaps (a key the dispatch reads differently from the snapshot faults outside the key domain; keys from two words, from a runtime-offset word, other data reads and stores through the V# stay refused), and say "the selected entry and key 0".
  2. Merging this PR merges the whole stack. Against main's merge base, GitHub shows 18 files, +2377/−107 for this PR, with the code of #7223, #7395, #8939, #9457, #9633, #9749 and #9790, all still open. This PR's own change over #9790's head is 9 files, +364/−39. The checklist declares the chain under Depends on, as CONTRIBUTING asks. This PR should merge only after #9790 and the PRs below it, or with their review completed.

Not verified

  • The code that comes from #7223 through #9790. I reviewed only this PR's diff over #9790's head 4e6a2bfce0, which is why this is a comment and not an approval.
  • AMD, Intel and Windows behaviour: I ran only the NVIDIA GPU above.
  • The title claims about Marvel's Spider-Man 2 (PPSA03016). I did not launch any title.
  • I did not run the full test suite. I ran only the 32 focused tests matched by the pattern above.

To get this to a good state

  • Correct the debt entry as described in Non-blocking 1.
  • Land the chain in its declared order (#7223, #7395, #8939, #9457, #9633, #9749, #9790), then this PR. Its own commits need no further changes from what I checked.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5698278697 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9969#pullrequestreview-5698278697). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-10-29T13:15:53Z. **Review:** COMMENTED --- # Reviewed — comments This PR's own commits on top of #9790 merge cleanly into current `main`, build, and pass the focused image-table, nested, pointer and disk-cache tests on an NVIDIA GPU with the validation layer, and the new tests fail without the PR's code; I am leaving a comment rather than an approval because merging this PR also merges the seven open PRs below it, which I did not review here. ## What I ran - Head: `c7b702d4a27f6f8a1b61436bbe2472b27766f840` - `main`: `157b02c4f1803e9d2cd757677b9a805961203fc4` - #9790 head used for the PR's own diff and the negative control: `4e6a2bfce0149f4914075916ec7cd1bd3172b050` - 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), in a clean worktree. ```sh git fetch origin main pull/9969/head:refs/review/9969 pull/9790/head:refs/review/9790 git checkout --detach origin/main && git merge --no-ff --no-edit refs/review/9969 git diff --check origin/main...refs/review/9969 python3 tools/check_conventions.py --base origin/main cmake --build build -j10 P='^(agc_driver_pointer_|agc_driver_nested_|agc_driver_image_table|agc_shader_disk_cache|agc_shader_bindless$|agc_shader_memory$|agc_driver_bda_anchor_reads$)' 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 -R "$P" -j4 -V --output-on-failure # negative control: reverse only this PR's production hunks over #9790 git diff refs/review/9790 refs/review/9969 -- <the 5 production files> | git apply -R --3way cmake --build build -j10 --target agc_driver_image_table_tests agc_shader_disk_cache_tests ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1 ctest --test-dir build \ -R '^(agc_driver_pointer_vsharp_child_key_table|agc_driver_pointer_vsharp_child_key_arm_table|agc_shader_disk_cache)$' --output-on-failure # main, same pattern and environment git checkout --detach origin/main cmake --build build -j10 --target agc_driver_bda_anchor_reads_tests agc_driver_image_table_cache_bounds_tests \ agc_driver_image_table_cache_tests agc_driver_image_table_reuse_tests agc_driver_image_table_tests \ agc_shader_disk_cache_tests agc_shader_memory_tests 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 -R "$P" -j4 -V --output-on-failure ``` ## Results | Check | Result | |---|---| | Merge into `main` 157b02c4f1 | Clean (auto-merged `CMakeLists.txt`, `ShaderMemory.cpp`, `ResourceMaterializer.cpp`, `ShaderDiskCache.cpp`, `debt/shader.md`) | | `git diff --check` | Clean | | `check_conventions.py --base origin/main` | `All conventions checks passed.` | | Full build of the merged tree | Passed (3169 steps) | | Focused tests, merged tree, validation layer | 32/32 passed, 0 skipped, on the RTX 4070 Ti SUPER; each test under 3.5 s | | Focused tests, `main`, validation layer | 13/13 passed (the stack's 19 tests do not exist on `main`) | | `VUID-` lines | 0 on the merged tree, 0 on `main` | | `was not found but was requested by env var VK_INSTANCE_LAYERS` | Not present in either log; the loader logged `Insert instance layer "VK_LAYER_KHRONOS_validation"` 28 times (merged tree) and 9 times (`main`) | | `FormatVersion` | 60 on the merged tree, 49 on `main` | <details> <summary>Merged tree, new tests</summary> ```text Test #1596: agc_driver_pointer_vsharp_child_key_table ....... Passed 0.74 sec Test #1597: agc_driver_pointer_vsharp_child_key_arm_table ... Passed 0.88 sec Test #950: agc_shader_disk_cache ........................... Passed 1.49 sec 1596: Selected GPU name=NVIDIA GeForce RTX 4070 Ti SUPER vendor=0x10de device=0x2705 subgroup=32 1596: pointer V# table with a T# at an offset read from the V#'s own buffer: T#s indexed by a word read through the same pointer-loaded V#, with its S#, checked for several keys and the largest inside the V#; keys past the V# read null T#s, and a key the snapshot did not hold faults 1597: pointer V# table with a T# at an offset read from the V#'s own buffer, behind a record pointer that may take a T#'s words: the T# at the key read through the V# reloaded behind the merged pointer, its S# and the T# at 0x4c0 checked; the pointer arm holding that T#'s dwords faults outside the snapshot 100% tests passed out of 32 ``` </details> ## Negative control I reversed only this PR's hunks over #9790's head in the five production files (`ControlFlowInfo.hpp`, `ResourceMaterializer.cpp`, `ResourceTracker.cpp`, `ShaderDiskCache.cpp`, `ShaderDiskCache.hpp`), kept the tests, and rebuilt. I did not restore these files from `main`: that would also remove the code of the six PRs below #9790, and #9790's own copy of `ShaderDiskCache.cpp` no longer compiles against current `main` (`static_assert(sizeof(IrValue) == 128)` fails, since it is now 136). All three tests fail, each with the message the PR description predicts: <details> <summary>Output with the PR's production hunks reverted</summary> ```text 1/3 Test #1596: agc_driver_pointer_vsharp_child_key_table .......***Failed 0.59 sec ShaderRecompiler::Recompile: GetSamplerResource dword 0 is not a valid runtime value; chain: ReadConstBuffer@pc=0x000000c0(GetBufferResource(LoadAddressU32@pc=0x00000090(GetAddressResource(Phi(... 2/3 Test #1597: agc_driver_pointer_vsharp_child_key_arm_table ...***Failed 0.59 sec ShaderRecompiler::Recompile: GetImageResource dword 0 is not a valid runtime value; chain: ReadConstBuffer@pc=0x000000e8(GetBufferResource(LoadAddressU32@pc=0x000000d4(GetAddressResource(Phi(Phi(... 3/3 Test #950: agc_shader_disk_cache ...........................***Failed 1.23 sec resolution memo read ranges: a table's read ranges past the memo budget were not counted 0% tests passed, 3 tests failed out of 3 ``` </details> The tests passed again after I restored the merged files. ## Findings ### Blocking None in this PR's own commits. On the earlier reviews: the conflict with `main` that adriadam10 reported is gone, because the head now merges cleanly into `main` 157b02c4f1. MarcZX10's `readRanges` footprint gap is fixed by the `table.readRanges.size() * 4u` term in `resolutionFootprint`, and the negative control above shows that `agc_shader_disk_cache` fails without that term. MarcZX10's latest re-check could not run the image-table assertions on their device; they run and pass here on an NVIDIA RTX 4070 Ti SUPER. ### Non-blocking 1. **The debt entry says the snapshot "maps only the entry it selects", but key 0 is mapped too.** [`docs/dev/debt/shader.md:54`](https://github.com/boykopovar/AnyPS5/blob/c7b702d4a27f6f8a1b61436bbe2472b27766f840/docs/dev/debt/shader.md#L54-L54) says so, while `Narrow` starts its key list with `values{0u}` and adds the child word's key to it ([`ResourceMaterializer.cpp:834-855`](https://github.com/boykopovar/AnyPS5/blob/c7b702d4a27f6f8a1b61436bbe2472b27766f840/core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp#L834-L855)). The PR description is right ("maps only that record and key 0"). The entry also starts with the supported behaviour instead of the gap, which CONTRIBUTING's Documentation section asks for. Suggested fix: lead with the gaps (a key the dispatch reads differently from the snapshot faults outside the key domain; keys from two words, from a runtime-offset word, other data reads and stores through the V# stay refused), and say "the selected entry and key 0". 2. **Merging this PR merges the whole stack.** Against `main`'s merge base, GitHub shows 18 files, +2377/−107 for this PR, with the code of #7223, #7395, #8939, #9457, #9633, #9749 and #9790, all still open. This PR's own change over #9790's head is 9 files, +364/−39. The checklist declares the chain under Depends on, as CONTRIBUTING asks. This PR should merge only after #9790 and the PRs below it, or with their review completed. ## Not verified - The code that comes from #7223 through #9790. I reviewed only this PR's diff over #9790's head `4e6a2bfce0`, which is why this is a comment and not an approval. - AMD, Intel and Windows behaviour: I ran only the NVIDIA GPU above. - The title claims about Marvel's Spider-Man 2 (PPSA03016). I did not launch any title. - I did not run the full test suite. I ran only the 32 focused tests matched by the pattern above. ## To get this to a good state - Correct the debt entry as described in Non-blocking 1. - Land the chain in its declared order (#7223, #7395, #8939, #9457, #9633, #9749, #9790), then this PR. Its own commits need no further changes from what I checked.
MarcZX10 commented 2026-10-29 23:41:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T23:41:00Z.

Review: COMMENTED


Re-checked — new head, comments

I rechecked head ef707575db40ea95c3377fdb166f921a6114f675; the read-range fix remains present, the current-main preview is clean, and the reported Linux/Windows test run covers the same source tree.

What I ran

  • PR head: ef707575db40ea95c3377fdb166f921a6114f675.
  • Current upstream/main: 1189ec3003672bb364dd9f3119ead7b3976e3c83.
  • git merge-tree --write-tree upstream/main ef707575db40ea95c3377fdb166f921a6114f675 produced tree 8477b2a9550042be252abf69188d97cc5e72b265 without conflicts.
git diff --check upstream/main...ef707575db40ea95c3377fdb166f921a6114f675
python3 tools/check_conventions.py --base upstream/main --head ef707575db40ea95c3377fdb166f921a6114f675

Results

Check Result
Current-main merge preview Clean; tree 8477b2a9550042be252abf69188d97cc5e72b265
Diff check Passed; no output
Conventions Passed
Linux/Windows verify workflow Author-reported pass on CI-only child 084bef73b29102fda3c377605518d727d6d36060; the child adds workflow files and does not change PR source
NVIDIA validation report Author-reported 2,331 passed, 4 failures also present/unstable on main, 40 skipped; no new validation IDs, on exact PR head
Local command output
$ git diff --check upstream/main...ef707575db40ea95c3377fdb166f921a6114f675
[no output; exit status 0]
$ python3 tools/check_conventions.py --base upstream/main --head ef707575db40ea95c3377fdb166f921a6114f675
All conventions checks passed.

Not verified

I did not run a local build or tests. The Linux/Windows and NVIDIA results above are from the author's linked reports: repeat verify run and NVIDIA validation report.

Findings

Blocking

None found in this re-check of the current head.

Non-blocking

The PR declares a stack through #9790, and those dependency PRs remain open. I am leaving a comment rather than approving this stacked diff; this is not a request for another rebase, since the current-main preview is clean.

To get this to a good state

No additional change is needed on this head based on this re-check. Revisit approval after the declared dependency stack is resolved and the resulting integration can be reviewed.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5706364675 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9969#pullrequestreview-5706364675). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T23:41:00Z. **Review:** COMMENTED --- # Re-checked — new head, comments I rechecked head `ef707575db40ea95c3377fdb166f921a6114f675`; the read-range fix remains present, the current-main preview is clean, and the reported Linux/Windows test run covers the same source tree. ## What I ran - PR head: `ef707575db40ea95c3377fdb166f921a6114f675`. - Current `upstream/main`: `1189ec3003672bb364dd9f3119ead7b3976e3c83`. - `git merge-tree --write-tree upstream/main ef707575db40ea95c3377fdb166f921a6114f675` produced tree `8477b2a9550042be252abf69188d97cc5e72b265` without conflicts. ```sh git diff --check upstream/main...ef707575db40ea95c3377fdb166f921a6114f675 python3 tools/check_conventions.py --base upstream/main --head ef707575db40ea95c3377fdb166f921a6114f675 ``` ## Results | Check | Result | |---|---| | Current-main merge preview | Clean; tree `8477b2a9550042be252abf69188d97cc5e72b265` | | Diff check | Passed; no output | | Conventions | Passed | | Linux/Windows verify workflow | Author-reported pass on CI-only child `084bef73b29102fda3c377605518d727d6d36060`; the child adds workflow files and does not change PR source | | NVIDIA validation report | Author-reported 2,331 passed, 4 failures also present/unstable on main, 40 skipped; no new validation IDs, on exact PR head | <details> <summary>Local command output</summary> ```text $ git diff --check upstream/main...ef707575db40ea95c3377fdb166f921a6114f675 [no output; exit status 0] $ python3 tools/check_conventions.py --base upstream/main --head ef707575db40ea95c3377fdb166f921a6114f675 All conventions checks passed. ``` </details> ## Not verified I did not run a local build or tests. The Linux/Windows and NVIDIA results above are from the author's linked reports: [repeat verify run](https://github.com/boykopovar/AnyPS5/pull/9969#issuecomment-6509382831) and [NVIDIA validation report](https://github.com/boykopovar/AnyPS5/pull/9969#issuecomment-6510853928). ## Findings ### Blocking None found in this re-check of the current head. ### Non-blocking The PR declares a stack through #9790, and those dependency PRs remain open. I am leaving a comment rather than approving this stacked diff; this is not a request for another rebase, since the current-main preview is clean. ## To get this to a good state No additional change is needed on this head based on this re-check. Revisit approval after the declared dependency stack is resolved and the resulting integration can be reviewed.
XairRrR commented 2026-11-03 08:26:30 +00:00 (Migrated from github.com)

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

Review: CHANGES_REQUESTED


Reviewed — changes requested

This pull request does not merge cleanly into main (4f41f4c375): head da1e1cccf5 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:5749063234 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9969#pullrequestreview-5749063234). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-11-03T08:26:30Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested This pull request does not merge cleanly into `main` (4f41f4c375f5abb487dbd184fbc150f31994d762): head da1e1cccf5e648ec43245cdf0d81b4b9645e9a30 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=3204 head=da1e1cccf5e648ec43245cdf0d81b4b9645e9a30 -->
XairRrR commented 2026-11-03 14:02:18 +00:00 (Migrated from github.com)

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

Review: COMMENTED


Re-checked — comments

Since my last review, ef707575db rewrote the V#-relative child-key debt entry the way I suggested. The rest is merges of main and of the stack (#7223 and #7395 brought 7f36e41c45 and 967f0dbebb) and a FormatVersion bump to 73. The checks, the 33 focused tests under the validation layer and the negative control all pass. This is still a comment rather than an approval because merging this PR also merges the open PRs below it, which I have not reviewed.

What changed since my last review

I last reviewed c7b702d4a2.

  • ef707575db rewrites the child-key entry in docs/dev/debt/shader.md:
    • it now starts with what stays refused and with the key that faults;
    • it says the snapshot maps "the entry it selects and the entry at key 0".
  • Commits that come from the stack, not this PR's own:
    • 4769d5a745, 6d8f907c5a and 11366202db: test wording and refusal checks dropped.
    • 7f36e41c45 (#7223): resets the nested key budgets on each snapshot retry. It also sets hasIndirect for nested image columns.
    • 967f0dbebb (#7395): applies the same hasIndirect test to nested sampler columns.
    • 5fdf20fc3d: Windows PATH change for the retry tests.
  • Format-number commits: FormatVersion is now 73. main 4f41f4c375 is at 52.
  • Merges: main merged in, most recently 4f41f4c375 in 9e7ac694 (the author's merge, with no conflict markers recorded).
  • This PR's own change over #9790's a12bac51d6 (git diff a12bac51d6 da1e1cccf5) is still 9 files, +364/−39. Apart from the debt line and the format number, it covers the same code I reviewed before.
  • Discussion: the author asked me to look at ef707575db again. MarcZX10's latest re-check (COMMENTED) also leaves approval until the stack is resolved.

What I ran

  • Head: 9e7ac694706cc144b983b3825f8c1a3589b2a168
  • main: 4f41f4c375f5abb487dbd184fbc150f31994d762
  • Merged tree: 5c13f75f893082cee59b2ac2ca08a12290319b0b
  • Machine: Debian 13 VM, 32 vCPU (Xeon Gold 6136), GCC 14.2.0, Release, Ninja, lavapipe (Mesa 26.1.6, LLVM 19), no GPU.
git diff --check 4f41f4c375f5abb487dbd184fbc150f31994d762...9e7ac694706cc144b983b3825f8c1a3589b2a168
python3 tools/check_conventions.py --base 4f41f4c375f5abb487dbd184fbc150f31994d762
git diff c7b702d4a27f6f8a1b61436bbe2472b27766f840 ef707575db40ea95c3377fdb166f921a6114f675 -- docs/dev/debt/shader.md

VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1 GALLIUM_OVERRIDE_CPU_CAPS=avx \
  ctest --test-dir build -j8 --test-load 32 --output-on-failure \
  -R "^(agc_driver_pointer_|agc_driver_nested_|agc_driver_image_table|agc_shader_disk_cache|agc_shader_nested_|agc_shader_memory$|agc_driver_bda_anchor_reads$)"

# negative control: reverse only this PR's own production hunks over #9790's a12bac51d6
git diff a12bac51d6 da1e1cccf5 -- ControlFlowInfo.hpp ResourceMaterializer.cpp ResourceTracker.cpp ShaderDiskCache.cpp ShaderDiskCache.hpp | git apply -R
ninja -C build -j32 -l32 agc_driver_image_table_tests agc_shader_disk_cache_tests
ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1 GALLIUM_OVERRIDE_CPU_CAPS=avx ctest --test-dir build -j3 --output-on-failure \
  -R "^(agc_driver_pointer_vsharp_child_key_table|agc_driver_pointer_vsharp_child_key_arm_table|agc_shader_disk_cache)$"
# restore the five files from 5c13f75f89, rebuild, rerun the same three tests, git status --porcelain
Check Result
git diff --check Clean
check_conventions.py All conventions checks passed.
Build of the merged tree, by the script (build.json) Passed
Selected tests, by the script 2235 run, 0 new failures, 0 timeouts. The 7 known failures also fail on main.
Validation-layer comparison, by the script 789 tests, layer loaded in 788, missing in none, 0 tests with a new VUID-
Focused tests under the validation layer (this run) 33/33 passed; the slowest took 9.7 s (agc_driver_image_table)
Negative control 3/3 failed, see below
After restoring the merged files 3/3 passed; git status --porcelain is empty

Previous findings

  1. The debt entry said only the selected entry is mapped, and it led with the supported behaviour. Resolved. docs/dev/debt/shader.md:62 now:

    • starts with the shapes that stay refused and with the key that faults outside the key domain;
    • says the snapshot maps "the entry it selects and the entry at key 0".

    That matches Narrow's std::vector<std::uint32_t> values{0u}; at ResourceMaterializer.cpp:881.

  2. Merging this PR merges the whole stack. Still open.

    • Against main 4f41f4c375 the PR diff is 19 files, +2522/−113. main still has neither NestedColumn nor nestedKeysRemaining in ResourceMaterializer.cpp, and its debt file has no "Nested image tables" entry.
    • So #7223, #7395, #8939, #9457, #9633, #9749 and #9790 are still unmerged, and their code comes in with this PR.
    • The checklist declares them under Depends on.

Negative control

I reversed only this PR's own production hunks over #9790's head in five files, ControlFlowInfo.hpp, ResourceMaterializer.cpp, ResourceTracker.cpp, ShaderDiskCache.cpp and ShaderDiskCache.hpp, and kept the tests. The hunks are git diff a12bac51d6 da1e1cccf5, where da1e1cccf5 is the merge of #9790's a12bac51d6 into this branch.

I did not restore the files from main: that would also remove the stack's code, which these tests need.

All three tests fail, each in the way the description predicts:

Output with the PR's own production hunks reverted (chains shortened)
1/3 Test #1836: agc_driver_pointer_vsharp_child_key_table .......***Failed    0.12 sec
ShaderRecompiler::Recompile: GetSamplerResource dword 0 is not a valid runtime value; chain: ReadConstBuffer@pc=0x000000c0(GetBufferResource(LoadAddressU32@pc=0x00000090(GetAddressResource(Phi(...
2/3 Test #1837: agc_driver_pointer_vsharp_child_key_arm_table ...***Failed    0.12 sec
ShaderRecompiler::Recompile: GetImageResource dword 0 is not a valid runtime value; chain: ReadConstBuffer@pc=0x000000e8(GetBufferResource(LoadAddressU32@pc=0x000000d4(GetAddressResource(Phi(Phi(...
3/3 Test #2168: agc_shader_disk_cache ...........................***Failed    1.32 sec
resolution memo read ranges: a table's read ranges past the memo budget were not counted
0% tests passed, 3 tests failed out of 3

After I restored the five files from the merged tree and rebuilt, the three tests passed again, and the worktree matched the merged tree.

New findings

Blocking

None.

Non-blocking

None. The commits new since my last review that are not this PR's own come from #7223 (7f36e41c45) and #7395 (967f0dbebb, 5fdf20fc3d). They passed here in the focused set, including agc_shader_nested_snapshot_retry and agc_shader_nested_sampler_snapshot_retry. Their review belongs on those PRs.

Not verified

  • The code that comes from #7223 through #9790. I reviewed only this PR's own diff over #9790's a12bac51d6.
  • GPU hardware: I ran only lavapipe. The NVIDIA, AMD and Intel results in the description and comments are author-reported or third-party.
  • The Marvel's Spider-Man 2 (PPSA03016) claims. I launched no title.
  • The full test suite. I ran only the 33 focused tests; the script ran the selected set.

To get this to a good state

  • No further change to this PR's own commits is needed from what I checked.
  • Merge it after #7223, #7395, #8939, #9457, #9633, #9749 and #9790 land in that order, or once their review is complete. Then keep FormatVersion above main's.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5753479713 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9969#pullrequestreview-5753479713). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-11-03T14:02:18Z. **Review:** COMMENTED --- # Re-checked — comments Since my last review, ef707575db rewrote the V#-relative child-key debt entry the way I suggested. The rest is merges of `main` and of the stack (#7223 and #7395 brought `7f36e41c45` and `967f0dbebb`) and a `FormatVersion` bump to 73. The checks, the 33 focused tests under the validation layer and the negative control all pass. This is still a comment rather than an approval because merging this PR also merges the open PRs below it, which I have not reviewed. ## What changed since my last review I last reviewed `c7b702d4a2`. - **ef707575db** rewrites the child-key entry in `docs/dev/debt/shader.md`: - it now starts with what stays refused and with the key that faults; - it says the snapshot maps "the entry it selects and the entry at key 0". - **Commits that come from the stack, not this PR's own:** - `4769d5a745`, `6d8f907c5a` and `11366202db`: test wording and refusal checks dropped. - `7f36e41c45` (#7223): resets the nested key budgets on each snapshot retry. It also sets `hasIndirect` for nested image columns. - `967f0dbebb` (#7395): applies the same `hasIndirect` test to nested sampler columns. - `5fdf20fc3d`: Windows PATH change for the retry tests. - **Format-number commits:** `FormatVersion` is now 73. `main` 4f41f4c375 is at 52. - **Merges:** `main` merged in, most recently 4f41f4c375 in 9e7ac694 (the author's merge, with no conflict markers recorded). - **This PR's own change over #9790's a12bac51d6** (`git diff a12bac51d6 da1e1cccf5`) is still 9 files, +364/−39. Apart from the debt line and the format number, it covers the same code I reviewed before. - **Discussion:** the author asked me to look at ef707575db again. MarcZX10's latest re-check (COMMENTED) also leaves approval until the stack is resolved. ## What I ran - Head: `9e7ac694706cc144b983b3825f8c1a3589b2a168` - `main`: `4f41f4c375f5abb487dbd184fbc150f31994d762` - Merged tree: `5c13f75f893082cee59b2ac2ca08a12290319b0b` - Machine: Debian 13 VM, 32 vCPU (Xeon Gold 6136), GCC 14.2.0, Release, Ninja, lavapipe (Mesa 26.1.6, LLVM 19), no GPU. ```sh git diff --check 4f41f4c375f5abb487dbd184fbc150f31994d762...9e7ac694706cc144b983b3825f8c1a3589b2a168 python3 tools/check_conventions.py --base 4f41f4c375f5abb487dbd184fbc150f31994d762 git diff c7b702d4a27f6f8a1b61436bbe2472b27766f840 ef707575db40ea95c3377fdb166f921a6114f675 -- docs/dev/debt/shader.md VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1 GALLIUM_OVERRIDE_CPU_CAPS=avx \ ctest --test-dir build -j8 --test-load 32 --output-on-failure \ -R "^(agc_driver_pointer_|agc_driver_nested_|agc_driver_image_table|agc_shader_disk_cache|agc_shader_nested_|agc_shader_memory$|agc_driver_bda_anchor_reads$)" # negative control: reverse only this PR's own production hunks over #9790's a12bac51d6 git diff a12bac51d6 da1e1cccf5 -- ControlFlowInfo.hpp ResourceMaterializer.cpp ResourceTracker.cpp ShaderDiskCache.cpp ShaderDiskCache.hpp | git apply -R ninja -C build -j32 -l32 agc_driver_image_table_tests agc_shader_disk_cache_tests ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1 GALLIUM_OVERRIDE_CPU_CAPS=avx ctest --test-dir build -j3 --output-on-failure \ -R "^(agc_driver_pointer_vsharp_child_key_table|agc_driver_pointer_vsharp_child_key_arm_table|agc_shader_disk_cache)$" # restore the five files from 5c13f75f89, rebuild, rerun the same three tests, git status --porcelain ``` | Check | Result | |---|---| | `git diff --check` | Clean | | `check_conventions.py` | `All conventions checks passed.` | | Build of the merged tree, by the script (build.json) | Passed | | Selected tests, by the script | 2235 run, 0 new failures, 0 timeouts. The 7 known failures also fail on `main`. | | Validation-layer comparison, by the script | 789 tests, layer loaded in 788, missing in none, 0 tests with a new `VUID-` | | Focused tests under the validation layer (this run) | 33/33 passed; the slowest took 9.7 s (`agc_driver_image_table`) | | Negative control | 3/3 failed, see below | | After restoring the merged files | 3/3 passed; `git status --porcelain` is empty | ## Previous findings 1. **The debt entry said only the selected entry is mapped, and it led with the supported behaviour.** Resolved. [`docs/dev/debt/shader.md:62`](https://github.com/boykopovar/AnyPS5/blob/9e7ac694706cc144b983b3825f8c1a3589b2a168/docs/dev/debt/shader.md#L62-L62) now: - starts with the shapes that stay refused and with the key that faults outside the key domain; - says the snapshot maps "the entry it selects and the entry at key 0". That matches `Narrow`'s `std::vector<std::uint32_t> values{0u};` at [`ResourceMaterializer.cpp:881`](https://github.com/boykopovar/AnyPS5/blob/9e7ac694706cc144b983b3825f8c1a3589b2a168/core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp#L881-L881). 2. **Merging this PR merges the whole stack.** Still open. - Against `main` 4f41f4c375 the PR diff is 19 files, +2522/−113. `main` still has neither `NestedColumn` nor `nestedKeysRemaining` in `ResourceMaterializer.cpp`, and its debt file has no "Nested image tables" entry. - So #7223, #7395, #8939, #9457, #9633, #9749 and #9790 are still unmerged, and their code comes in with this PR. - The checklist declares them under Depends on. ## Negative control I reversed only this PR's own production hunks over #9790's head in five files, `ControlFlowInfo.hpp`, `ResourceMaterializer.cpp`, `ResourceTracker.cpp`, `ShaderDiskCache.cpp` and `ShaderDiskCache.hpp`, and kept the tests. The hunks are `git diff a12bac51d6 da1e1cccf5`, where `da1e1cccf5` is the merge of #9790's a12bac51d6 into this branch. I did not restore the files from `main`: that would also remove the stack's code, which these tests need. All three tests fail, each in the way the description predicts: <details> <summary>Output with the PR's own production hunks reverted (chains shortened)</summary> ```text 1/3 Test #1836: agc_driver_pointer_vsharp_child_key_table .......***Failed 0.12 sec ShaderRecompiler::Recompile: GetSamplerResource dword 0 is not a valid runtime value; chain: ReadConstBuffer@pc=0x000000c0(GetBufferResource(LoadAddressU32@pc=0x00000090(GetAddressResource(Phi(... 2/3 Test #1837: agc_driver_pointer_vsharp_child_key_arm_table ...***Failed 0.12 sec ShaderRecompiler::Recompile: GetImageResource dword 0 is not a valid runtime value; chain: ReadConstBuffer@pc=0x000000e8(GetBufferResource(LoadAddressU32@pc=0x000000d4(GetAddressResource(Phi(Phi(... 3/3 Test #2168: agc_shader_disk_cache ...........................***Failed 1.32 sec resolution memo read ranges: a table's read ranges past the memo budget were not counted 0% tests passed, 3 tests failed out of 3 ``` </details> After I restored the five files from the merged tree and rebuilt, the three tests passed again, and the worktree matched the merged tree. ## New findings ### Blocking None. ### Non-blocking None. The commits new since my last review that are not this PR's own come from #7223 (`7f36e41c45`) and #7395 (`967f0dbebb`, `5fdf20fc3d`). They passed here in the focused set, including `agc_shader_nested_snapshot_retry` and `agc_shader_nested_sampler_snapshot_retry`. Their review belongs on those PRs. ## Not verified - The code that comes from #7223 through #9790. I reviewed only this PR's own diff over #9790's `a12bac51d6`. - GPU hardware: I ran only lavapipe. The NVIDIA, AMD and Intel results in the description and comments are author-reported or third-party. - The Marvel's Spider-Man 2 (PPSA03016) claims. I launched no title. - The full test suite. I ran only the 33 focused tests; the script ran the selected set. ## To get this to a good state - No further change to this PR's own commits is needed from what I checked. - Merge it after #7223, #7395, #8939, #9457, #9633, #9749 and #9790 land in that order, or once their review is complete. Then keep `FormatVersion` above `main`'s. <!-- anyps5-bots job=3366 head=9e7ac694706cc144b983b3825f8c1a3589b2a168 -->
gabichuuuuu commented 2026-11-07 21:03:21 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by gabichuuuuu on 2026-11-07T21:03:21Z.

Review: COMMENTED


agc_driver_pointer_vsharp_child_key_arm_table fails every run on an Intel iGPU on Windows and passes on the NVIDIA laptop GPU in the same machine. I found it testing #16814, which inherits the test, and it reproduces with this PR alone.

Setup: head ce65f496e6 merged onto main 6b733c4ef2 (clean). Windows 11 x64, WinLibs GCC 15.2.0 r7, Release, ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1.

ctest -R '^agc_driver_pointer_vsharp_child_key_arm_table$' NVIDIA, driver 610 Intel iGPU
this PR passes, verbose run fails 5 of 5 (3 focused, 1 verbose, 1 in the full pattern)
this PR, APS5_NO_SPANNED_WAVE=1 fails
#16814 (stacked on this) 3 of 3 pass fails 3 of 3

The rest of ^(agc_driver_(image_table|nested|pointer)|agc_shader_(disk_cache|memory|nested_sampler)) passes on both GPUs (agc_driver_image_table_vouched_lookups skips on Intel).

What differs. The description says a group that takes the arm faults with "outside the snapshot". That's what the NVIDIA run logs, with a pointer that is clearly not an address:

[gpu] deferred write-back failed: image table: shader ... stage 4 pc 0xfc selected the descriptor at 0xc160007ff74f32e0: outside the snapshot

On the Intel iGPU, the same lane's pointer lands inside the snapshot, on a poison entry, and the test fails:

AGC graphics: pointer V# table with a T# at an offset read from the V#'s own buffer, behind a record pointer that may take a T#'s words: keys 2 and 5 at offset 0x14 of the V# behind the record's pointer faulted:
[gpu] deferred write-back failed: image table: shader 0x7ff74f2e2800 stage 4 pc 0xfc selected the descriptor at 0x24c1bfd640: poison entry 1103091456

One of the five Intel runs failed differently instead: ... group 0 lane 16 is 0x00000000, expected 0xc27e0000 (palette 1, key 5).

Both GPUs take the spanned-wave fallback for this shader (falls back to two lanes per invocation: an OpControlBarrier in block %77 ...), and turning spanned waves off doesn't change the Intel result, so that's not it.

My guess, which I haven't verified: the arm forms its pointer from the T#'s dwords 0 and 1, so where it points depends on where the T#'s data was placed. Here it happened to fall inside the captured range, so the lookup finds a poison entry rather than missing the snapshot. If so, the test depends on the address layout rather than the GPU, and the driver arguably should refuse an uncaptured arm's pointer the same way wherever it lands. Validation layer not available on this machine.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5815009839 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9969#pullrequestreview-5815009839). Originally posted by [gabichuuuuu](https://github.com/gabichuuuuu) on 2026-11-07T21:03:21Z. **Review:** COMMENTED --- `agc_driver_pointer_vsharp_child_key_arm_table` fails every run on an Intel iGPU on Windows and passes on the NVIDIA laptop GPU in the same machine. I found it testing #16814, which inherits the test, and it reproduces with this PR alone. **Setup:** head `ce65f496e6` merged onto `main` `6b733c4ef2` (clean). Windows 11 x64, WinLibs GCC 15.2.0 r7, Release, `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1`. | `ctest -R '^agc_driver_pointer_vsharp_child_key_arm_table$'` | NVIDIA, driver 610 | Intel iGPU | |---|---|---| | this PR | passes, verbose run | fails 5 of 5 (3 focused, 1 verbose, 1 in the full pattern) | | this PR, `APS5_NO_SPANNED_WAVE=1` | | fails | | #16814 (stacked on this) | 3 of 3 pass | fails 3 of 3 | The rest of `^(agc_driver_(image_table|nested|pointer)|agc_shader_(disk_cache|memory|nested_sampler))` passes on both GPUs (`agc_driver_image_table_vouched_lookups` skips on Intel). **What differs.** The description says a group that takes the arm faults with "outside the snapshot". That's what the NVIDIA run logs, with a pointer that is clearly not an address: ``` [gpu] deferred write-back failed: image table: shader ... stage 4 pc 0xfc selected the descriptor at 0xc160007ff74f32e0: outside the snapshot ``` On the Intel iGPU, the same lane's pointer lands inside the snapshot, on a poison entry, and the test fails: ``` AGC graphics: pointer V# table with a T# at an offset read from the V#'s own buffer, behind a record pointer that may take a T#'s words: keys 2 and 5 at offset 0x14 of the V# behind the record's pointer faulted: [gpu] deferred write-back failed: image table: shader 0x7ff74f2e2800 stage 4 pc 0xfc selected the descriptor at 0x24c1bfd640: poison entry 1103091456 ``` One of the five Intel runs failed differently instead: `... group 0 lane 16 is 0x00000000, expected 0xc27e0000 (palette 1, key 5)`. Both GPUs take the spanned-wave fallback for this shader (`falls back to two lanes per invocation: an OpControlBarrier in block %77 ...`), and turning spanned waves off doesn't change the Intel result, so that's not it. My guess, which I haven't verified: the arm forms its pointer from the T#'s dwords 0 and 1, so where it points depends on where the T#'s data was placed. Here it happened to fall inside the captured range, so the lookup finds a poison entry rather than missing the snapshot. If so, the test depends on the address layout rather than the GPU, and the driver arguably should refuse an uncaptured arm's pointer the same way wherever it lands. Validation layer not available on this machine. AI-assisted: yes.
MarcZX10 commented 2026-11-14 09:11:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-14T09:11:20Z.

Review: COMMENTED


Reviewed — no blocking findings

The reviewed changes have no verified blocking defect, but the new arm-table test has a reported unresolved failure on two Intel Windows GPUs.

What I ran

  • Reviewed head 239ae90b7b9b57559225c3888cd9f0d263fbd58d using the prepared diff and the pinned repo_read.py reader.
  • No build or tests were run in this review.

Results

Check Result Note
Prepared diff passed Read
Targeted source passed Read with reader
Build and tests not run Reported runs are author supplied

Findings

Blocking

None verified.

Non-blocking

  • agc_driver_pointer_vsharp_child_key_arm_table is reported failing on two Intel Windows GPUs, including incorrect descriptor selection, while passing on other reported devices. The cause remains unresolved, so the supported behavior is not yet established across those GPUs. Please investigate and add a regression test or document the supported limitation. Changed test: core/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cpp:1847.

Not verified

  • The full contents of core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp were excluded because the file was too large for the review folder; its changed sections were not read through the reader.
  • No build, tests, or physical-console behavior were run or independently confirmed. The reported CI and GPU results are from the description.
  • Read: review/description.md, review/commits.md, review/manifest.json, review/diff.patch; changed files read through the prepared folder or targeted reader included ShaderDiskCache.cpp, tests/cmake/agc_driver_image_table_tests.cmake, tests/cmake/agc_shader_memory_tests.cmake, tests/execution/BdaAnchorReads.cpp, tests/execution/ImageTable.cpp, ImageTableAbi.hpp, ControlFlowInfo.hpp, ResourcePlan.hpp, ResourceMaterializer.cpp, ResourceTracker.cpp, Recompiler.cpp, ShaderDiskCache.cpp, ShaderDiskCache.hpp, SpirvEmitterState.hpp, SpirvBdaRead.cpp, SpirvImageEmitter.cpp, SpirvMemoryInstructions.cpp, and docs/dev/debt/shader.md. ShaderMemory.cpp was excluded as noted above.

To get this to a good state

Nothing is required. Optional: investigate the Intel arm-table failure and add a regression test or document the supported limitation.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5903356668 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9969#pullrequestreview-5903356668). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-14T09:11:20Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The reviewed changes have no verified blocking defect, but the new arm-table test has a reported unresolved failure on two Intel Windows GPUs. ## What I ran - Reviewed head `239ae90b7b9b57559225c3888cd9f0d263fbd58d` using the prepared diff and the pinned `repo_read.py` reader. - No build or tests were run in this review. ## Results | Check | Result | Note | |---|---|---| | Prepared diff | passed | Read | | Targeted source | passed | Read with reader | | Build and tests | not run | Reported runs are author supplied | ## Findings ### Blocking None verified. ### Non-blocking - `agc_driver_pointer_vsharp_child_key_arm_table` is reported failing on two Intel Windows GPUs, including incorrect descriptor selection, while passing on other reported devices. The cause remains unresolved, so the supported behavior is not yet established across those GPUs. Please investigate and add a regression test or document the supported limitation. Changed test: `core/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cpp:1847`. ## Not verified - The full contents of `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` were excluded because the file was too large for the review folder; its changed sections were not read through the reader. - No build, tests, or physical-console behavior were run or independently confirmed. The reported CI and GPU results are from the description. - Read: `review/description.md`, `review/commits.md`, `review/manifest.json`, `review/diff.patch`; changed files read through the prepared folder or targeted reader included `ShaderDiskCache.cpp`, `tests/cmake/agc_driver_image_table_tests.cmake`, `tests/cmake/agc_shader_memory_tests.cmake`, `tests/execution/BdaAnchorReads.cpp`, `tests/execution/ImageTable.cpp`, `ImageTableAbi.hpp`, `ControlFlowInfo.hpp`, `ResourcePlan.hpp`, `ResourceMaterializer.cpp`, `ResourceTracker.cpp`, `Recompiler.cpp`, `ShaderDiskCache.cpp`, `ShaderDiskCache.hpp`, `SpirvEmitterState.hpp`, `SpirvBdaRead.cpp`, `SpirvImageEmitter.cpp`, `SpirvMemoryInstructions.cpp`, and `docs/dev/debt/shader.md`. `ShaderMemory.cpp` was excluded as noted above. ## To get this to a good state Nothing is required. Optional: investigate the Intel arm-table failure and add a regression test or document the supported limitation.
MarcZX10 commented 2026-11-16 12:25:45 +00:00 (Migrated from github.com)

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

Review: COMMENTED


Reviewed — comments

The review covers head 20b045a8de854edfb48a079993827807bc9bf66b; no checks were run locally, and the reported Intel GPU failures remain unexplained.

What I ran

I read the prepared description, commit list, manifest and diff, then used the pinned reader to inspect targeted sections of ResourceTracker.cpp, ResourceMaterializer.cpp and SpirvBdaRead.cpp. I did not run builds or tests. The full text of ShaderMemory.cpp was excluded from the review bundle because it was too large; I inspected only targeted reader results for its changed functions.

Results

Check Result Note
Diff and targeted source review passed Prepared bundle and relevant production paths inspected
Build and tests not run CI and author reports are not runs performed here
Full changed-file review not run ShaderMemory.cpp was excluded from the bundle

Negative control

Not run; no local test execution was available in this review.

Findings

Blocking

None verified.

Non-blocking

The description reports that agc_driver_pointer_vsharp_child_key_arm_table fails on two Intel iGPUs, including runs with faults and incorrect output, while passing on other tested devices. The cause is unresolved, so I could not verify whether the failure is in this change or the driver. Please investigate and document the outcome before treating this path as validated.

Sources

Behavior claims about child-key planning and pointer-pair capture were checked against the changed code in ResourceTracker.cpp and ResourceMaterializer.cpp. The Intel failure report and other platform test results come from the PR description and were not independently reproduced.

Not verified

I did not read the full text of excluded ShaderMemory.cpp, run tests, build the change, or verify console behavior. The PR description reports CI results, GPU runs and the unexplained Intel failures; those reports were not independently confirmed. The remaining changed files were present in the review bundle, but I did not inspect every changed line or full file.

To get this to a good state

Nothing is required. Optional: investigate and document the reported Intel GPU failures.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5919925860 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9969#pullrequestreview-5919925860). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-16T12:25:45Z. **Review:** COMMENTED --- # Reviewed — comments The review covers head `20b045a8de854edfb48a079993827807bc9bf66b`; no checks were run locally, and the reported Intel GPU failures remain unexplained. ## What I ran I read the prepared description, commit list, manifest and diff, then used the pinned reader to inspect targeted sections of `ResourceTracker.cpp`, `ResourceMaterializer.cpp` and `SpirvBdaRead.cpp`. I did not run builds or tests. The full text of `ShaderMemory.cpp` was excluded from the review bundle because it was too large; I inspected only targeted reader results for its changed functions. ## Results | Check | Result | Note | |---|---|---| | Diff and targeted source review | passed | Prepared bundle and relevant production paths inspected | | Build and tests | not run | CI and author reports are not runs performed here | | Full changed-file review | not run | `ShaderMemory.cpp` was excluded from the bundle | ## Negative control Not run; no local test execution was available in this review. ## Findings ### Blocking None verified. ### Non-blocking The description reports that `agc_driver_pointer_vsharp_child_key_arm_table` fails on two Intel iGPUs, including runs with faults and incorrect output, while passing on other tested devices. The cause is unresolved, so I could not verify whether the failure is in this change or the driver. Please investigate and document the outcome before treating this path as validated. ## Sources Behavior claims about child-key planning and pointer-pair capture were checked against the changed code in `ResourceTracker.cpp` and `ResourceMaterializer.cpp`. The Intel failure report and other platform test results come from the PR description and were not independently reproduced. ## Not verified I did not read the full text of excluded `ShaderMemory.cpp`, run tests, build the change, or verify console behavior. The PR description reports CI results, GPU runs and the unexplained Intel failures; those reports were not independently confirmed. The remaining changed files were present in the review bundle, but I did not inspect every changed line or full file. ## To get this to a good state Nothing is required. Optional: investigate and document the reported Intel GPU failures.
MarcZX10 commented 2026-11-18 03:48:02 +00:00 (Migrated from github.com)

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

Review: COMMENTED


Reviewed — comments

The review covers head fff420ad1b40298d0c5865263a208f1cf872bdbf; a reported failure of a new pointer-arm test on two Intel Windows GPUs remains unexplained, so a formal approval is not justified.

What I ran

No commands or tests were run. I read the prepared description, commits, manifest, and selected portions of the diff. The pinned repository reader was not used for source files. ShaderMemory.cpp was excluded from the review folder; other included changed files were not all read in full.

Results

Check Result Note
Diff review not run Selected hunks inspected
Tests not run No local execution
Hardware behavior not run Intel failures are author-reported

Findings

Blocking

None verified from the inspected code.

Non-blocking

  • The description reports agc_driver_pointer_vsharp_child_key_arm_table failing on two Intel Windows GPUs, including wrong output or faults, with the cause untraced. Since this change adds pointer-arm pairing in ResourceTracker.cpp:2201, please resolve the reported failure or document a confirmed driver limitation and the affected scope before treating the new shape as supported.

Not verified

I did not read ShaderMemory.cpp, all of the other changed files, or all hunks in the diff; behavior outside the inspected portions is not verified. No tests, CI jobs, or GPU runs were performed by this review. Reported CI and hardware results in the description were not independently checked.

To get this to a good state

Nothing is required. Optional: investigate and report the Intel pointer-arm test failures before relying on this shape.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5950520957 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9969#pullrequestreview-5950520957). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-18T03:48:02Z. **Review:** COMMENTED --- # Reviewed — comments The review covers head `fff420ad1b40298d0c5865263a208f1cf872bdbf`; a reported failure of a new pointer-arm test on two Intel Windows GPUs remains unexplained, so a formal approval is not justified. ## What I ran No commands or tests were run. I read the prepared description, commits, manifest, and selected portions of the diff. The pinned repository reader was not used for source files. `ShaderMemory.cpp` was excluded from the review folder; other included changed files were not all read in full. ## Results | Check | Result | Note | |---|---|---| | Diff review | not run | Selected hunks inspected | | Tests | not run | No local execution | | Hardware behavior | not run | Intel failures are author-reported | ## Findings ### Blocking None verified from the inspected code. ### Non-blocking - The description reports `agc_driver_pointer_vsharp_child_key_arm_table` failing on two Intel Windows GPUs, including wrong output or faults, with the cause untraced. Since this change adds pointer-arm pairing in `ResourceTracker.cpp:2201`, please resolve the reported failure or document a confirmed driver limitation and the affected scope before treating the new shape as supported. ## Not verified I did not read `ShaderMemory.cpp`, all of the other changed files, or all hunks in the diff; behavior outside the inspected portions is not verified. No tests, CI jobs, or GPU runs were performed by this review. Reported CI and hardware results in the description were not independently checked. ## To get this to a good state Nothing is required. Optional: investigate and report the Intel pointer-arm test failures before relying on this shape.
MarcZX10 commented 2026-11-19 06:09:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T06:09:59Z.

Review: COMMENTED


Reviewed — no blocking findings

The reviewed head is 630bbb0a2e23753ba60372e597bf65d10eddcd9e; I found no verified blocking defect, but the documented Intel failure makes approval unjustified. Nothing blocks this; the points below are optional.

What I ran

No commands or tests were run. I inspected the prepared diff and targeted code at the pinned head.

Results

Check Result Note
Source review passed Core planning, materialization and code generation inspected
Tests not run Author-reported runs are not runs performed here

Findings

Blocking

None.

Non-blocking

  • The description reports agc_driver_pointer_vsharp_child_key_arm_table failing on two Intel iGPUs, including a wrong texel or faults, with no confirmed cause. This is a known unresolved behavior in a new execution test. Consider diagnosing the Intel-specific failure or documenting the supported scope and follow-up before merge. Changed test registration: core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_table_tests.cmake:259.
  • The new pointer-pair walk's behavior has substantial edge-case surface (Phi edge pairing, masked record words and uncaptured arms). The reviewed logic in ResourceTracker.cpp and author-reported synthetic coverage support the intended constraints, but runtime behavior beyond those reports remains unverified.

Not verified

  • No tests were run in this review. CI and hardware results in the PR description are author-reported.
  • core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp was excluded from the review bundle for size; only its changed retry helper region was read through the repository reader. Other files with included full text were not exhaustively read; targeted code only was inspected.
  • Full console behavior, other hardware and the reported Intel failure's cause were not verified.

To get this to a good state

Nothing is required. Optional: investigate and resolve or track the Intel arm-table test failure described above.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5970159561 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9969#pullrequestreview-5970159561). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-19T06:09:59Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The reviewed head is `630bbb0a2e23753ba60372e597bf65d10eddcd9e`; I found no verified blocking defect, but the documented Intel failure makes approval unjustified. Nothing blocks this; the points below are optional. ## What I ran No commands or tests were run. I inspected the prepared diff and targeted code at the pinned head. ## Results | Check | Result | Note | |---|---|---| | Source review | passed | Core planning, materialization and code generation inspected | | Tests | not run | Author-reported runs are not runs performed here | ## Findings ### Blocking None. ### Non-blocking - The description reports `agc_driver_pointer_vsharp_child_key_arm_table` failing on two Intel iGPUs, including a wrong texel or faults, with no confirmed cause. This is a known unresolved behavior in a new execution test. Consider diagnosing the Intel-specific failure or documenting the supported scope and follow-up before merge. Changed test registration: `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_table_tests.cmake:259`. - The new pointer-pair walk's behavior has substantial edge-case surface (Phi edge pairing, masked record words and uncaptured arms). The reviewed logic in `ResourceTracker.cpp` and author-reported synthetic coverage support the intended constraints, but runtime behavior beyond those reports remains unverified. ## Not verified - No tests were run in this review. CI and hardware results in the PR description are author-reported. - `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` was excluded from the review bundle for size; only its changed retry helper region was read through the repository reader. Other files with included full text were not exhaustively read; targeted code only was inspected. - Full console behavior, other hardware and the reported Intel failure's cause were not verified. ## To get this to a good state Nothing is required. Optional: investigate and resolve or track the Intel arm-table test failure described above.
MarcZX10 commented 2026-11-20 05:22:58 +00:00 (Migrated from github.com)

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

Review: COMMENTED


Reviewed — comments

The change adds nested and pointer keyed image and sampler tables, but the reported Intel failures in the new pointer arm test remain unexplained and I did not run the checks.

What I ran

Inspected the prepared review bundle and targeted source ranges at head dc97c68c759dd1000680dd2f54af1d594aeeae48 using repo_read.py. No tests or builds were run.

Results

Check Result Note
Prepared diff and description passed Inspected
Targeted source review passed Partial review
Tests and build not run No execution environment

Negative control

Not run; no tests were executed.

Findings

Blocking

None verified.

Non-blocking

  • The description reports that agc_driver_pointer_vsharp_child_key_arm_table fails on two Intel iGPUs, including a wrong texel in one run, and says the cause is untraced. The change adds this pointer keyed path at core/shader/recompiler/Optimization/src/ResourceTracker.cpp:1364. Please investigate and document the Intel behavior before relying on this path across supported GPUs. I could not reproduce or attribute the failures from the source ranges inspected.

Sources

  • Prepared PR description and commit list.
  • Changed source ranges in ResourceTracker.cpp, ResourceMaterializer.cpp, and ShaderMemory.cpp.

Not verified

I did not read every changed file or every changed hunk. In particular, ShaderMemory.cpp was too large for the review folder and only targeted ranges were read. Other included changed files were not read. description.md, commits.md, manifest.json, and diff.patch were inspected; files.json was not available through the reader. Tests, builds, CI results, and GPU behavior were not independently verified; the reported Intel failures remain unconfirmed by this review.

To get this to a good state

Nothing is required. The optional point above is to investigate the reported Intel pointer arm test failures.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5987931797 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9969#pullrequestreview-5987931797). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-20T05:22:58Z. **Review:** COMMENTED --- # Reviewed — comments The change adds nested and pointer keyed image and sampler tables, but the reported Intel failures in the new pointer arm test remain unexplained and I did not run the checks. ## What I ran Inspected the prepared review bundle and targeted source ranges at head `dc97c68c759dd1000680dd2f54af1d594aeeae48` using `repo_read.py`. No tests or builds were run. ## Results | Check | Result | Note | |---|---|---| | Prepared diff and description | passed | Inspected | | Targeted source review | passed | Partial review | | Tests and build | not run | No execution environment | ## Negative control Not run; no tests were executed. ## Findings ### Blocking None verified. ### Non-blocking - The description reports that `agc_driver_pointer_vsharp_child_key_arm_table` fails on two Intel iGPUs, including a wrong texel in one run, and says the cause is untraced. The change adds this pointer keyed path at `core/shader/recompiler/Optimization/src/ResourceTracker.cpp:1364`. Please investigate and document the Intel behavior before relying on this path across supported GPUs. I could not reproduce or attribute the failures from the source ranges inspected. ## Sources - Prepared PR description and commit list. - Changed source ranges in `ResourceTracker.cpp`, `ResourceMaterializer.cpp`, and `ShaderMemory.cpp`. ## Not verified I did not read every changed file or every changed hunk. In particular, `ShaderMemory.cpp` was too large for the review folder and only targeted ranges were read. Other included changed files were not read. `description.md`, `commits.md`, `manifest.json`, and `diff.patch` were inspected; `files.json` was not available through the reader. Tests, builds, CI results, and GPU behavior were not independently verified; the reported Intel failures remain unconfirmed by this review. ## To get this to a good state Nothing is required. The optional point above is to investigate the reported Intel pointer arm test failures.
MarcZX10 commented 2026-11-23 05:51:43 +00:00 (Migrated from github.com)

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

Review: COMMENTED


Reviewed — comments

The review covers selected planning, materialization, cache, and BDA changes at head 78bdc144929af9d39849673216b1bdfa4845cbbe; a formal approval is not justified because several changed files were not reviewed and a new test is reported to fail on Intel iGPUs.

What I ran

Read the prepared PR description, commit list, selected diff hunks, and targeted repository ranges through repo_read.py. No tests or build commands were run. The stated base is main; no merged-preview check was run.

Results

Check Result Note
Prepared bundle review passed Description, commits, and selected diff read
Targeted source review passed Selected planner, materializer, cache, and BDA ranges
Build and tests not run No commands executed
Full changed-file review not run Several changed files were not read

Findings

Blocking

None verified.

Non-blocking

  • The description reports that the new agc_driver_pointer_vsharp_child_key_arm_table test fails on two Intel Windows iGPUs, while passing on other tested GPUs, and that the cause is unresolved. Please investigate and resolve or clearly isolate this platform failure before treating the hardware coverage as green. The test is registered at core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_table_tests.cmake:22.

Not verified

  • Tests, build, CI results, GPU behavior, and merge-preview behavior were not independently verified; the description's test reports are author-provided.
  • Read: review/description.md, review/commits.md, selected ranges of review/diff.patch, review/manifest.json, core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp, core/shader/recompiler/Optimization/src/ResourceTracker.cpp, core/shader/recompiler/SpirvBackend/src/SpirvBdaRead.cpp, and core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvMemoryInstructions.cpp.
  • Not read in full: the remaining changed files and source ranges, including the full text of files excluded from the bundle. The manifest marks core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp as excluded from files/; only its prepared diff hunk was inspected.

To get this to a good state

Nothing is required. Optional: investigate the reported Intel test failure and complete review of the remaining changed files before making a formal approval decision.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6017107328 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9969#pullrequestreview-6017107328). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-23T05:51:43Z. **Review:** COMMENTED --- # Reviewed — comments The review covers selected planning, materialization, cache, and BDA changes at head `78bdc144929af9d39849673216b1bdfa4845cbbe`; a formal approval is not justified because several changed files were not reviewed and a new test is reported to fail on Intel iGPUs. ## What I ran Read the prepared PR description, commit list, selected diff hunks, and targeted repository ranges through `repo_read.py`. No tests or build commands were run. The stated base is `main`; no merged-preview check was run. ## Results | Check | Result | Note | |---|---|---| | Prepared bundle review | passed | Description, commits, and selected diff read | | Targeted source review | passed | Selected planner, materializer, cache, and BDA ranges | | Build and tests | not run | No commands executed | | Full changed-file review | not run | Several changed files were not read | ## Findings ### Blocking None verified. ### Non-blocking - The description reports that the new `agc_driver_pointer_vsharp_child_key_arm_table` test fails on two Intel Windows iGPUs, while passing on other tested GPUs, and that the cause is unresolved. Please investigate and resolve or clearly isolate this platform failure before treating the hardware coverage as green. The test is registered at `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_table_tests.cmake:22`. ## Not verified - Tests, build, CI results, GPU behavior, and merge-preview behavior were not independently verified; the description's test reports are author-provided. - Read: `review/description.md`, `review/commits.md`, selected ranges of `review/diff.patch`, `review/manifest.json`, `core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp`, `core/shader/recompiler/Optimization/src/ResourceTracker.cpp`, `core/shader/recompiler/SpirvBackend/src/SpirvBdaRead.cpp`, and `core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvMemoryInstructions.cpp`. - Not read in full: the remaining changed files and source ranges, including the full text of files excluded from the bundle. The manifest marks `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` as excluded from `files/`; only its prepared diff hunk was inspected. ## To get this to a good state Nothing is required. Optional: investigate the reported Intel test failure and complete review of the remaining changed files before making a formal approval decision.
MarcZX10 commented 2026-11-26 11:31:40 +00:00 (Migrated from github.com)

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

Review: COMMENTED


Reviewed — comments

Material platform uncertainty remains because the new arm-table test fails on two Intel Windows iGPUs, and the cause is untraced.

What I ran

Reviewed head cc3592067ad9b9bf1ea9fc7a8c780f5e9039684e against the prepared description, commit list, manifest, diff, and targeted source ranges using repo_read.py. No tests or build commands were run.

Results

Check Result Note
Prepared diff and changed code passed Targeted review completed
Tests and build not run No local execution available
Intel Windows arm-table case not verified Reported failure, cause unknown

Findings

Blocking

None verified.

Non-blocking

  • core/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cpp:2840 — The arm-table test is reported to fail on two Intel Windows iGPUs, including a wrong-texel result in one run, while passing on NVIDIA, AMD RADV, and llvmpipe. The report does not establish whether this is a driver/compiler issue or a defect in the new pointer-pairing path. Please isolate the failing path and add a reproducer or document the confirmed cause before relying on this test as coverage for that behavior.

Not verified

  • core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp full text was excluded as too large; its changed hunks were present in the prepared diff.
  • No tests or builds were run in this review. Other author and CI test claims were not independently verified.
  • The Intel-specific arm-table failure remains unexplained.
  • The manifest marks all listed files as included except ShaderMemory.cpp; targeted review covered the core ResourceTracker.cpp, ResourceMaterializer.cpp, and ImageTable.cpp ranges relevant to the findings and changes described above, not every included file in full.

To get this to a good state

Nothing is required. Please share the cause or an isolated reproducer for the Intel Windows arm-table failure as an optional follow-up.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6073410517 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9969#pullrequestreview-6073410517). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-26T11:31:40Z. **Review:** COMMENTED --- # Reviewed — comments Material platform uncertainty remains because the new arm-table test fails on two Intel Windows iGPUs, and the cause is untraced. ## What I ran Reviewed head `cc3592067ad9b9bf1ea9fc7a8c780f5e9039684e` against the prepared description, commit list, manifest, diff, and targeted source ranges using `repo_read.py`. No tests or build commands were run. ## Results | Check | Result | Note | |---|---|---| | Prepared diff and changed code | passed | Targeted review completed | | Tests and build | not run | No local execution available | | Intel Windows arm-table case | not verified | Reported failure, cause unknown | ## Findings ### Blocking None verified. ### Non-blocking - `core/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cpp:2840` — The arm-table test is reported to fail on two Intel Windows iGPUs, including a wrong-texel result in one run, while passing on NVIDIA, AMD RADV, and llvmpipe. The report does not establish whether this is a driver/compiler issue or a defect in the new pointer-pairing path. Please isolate the failing path and add a reproducer or document the confirmed cause before relying on this test as coverage for that behavior. ## Not verified - `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` full text was excluded as too large; its changed hunks were present in the prepared diff. - No tests or builds were run in this review. Other author and CI test claims were not independently verified. - The Intel-specific arm-table failure remains unexplained. - The manifest marks all listed files as included except `ShaderMemory.cpp`; targeted review covered the core `ResourceTracker.cpp`, `ResourceMaterializer.cpp`, and `ImageTable.cpp` ranges relevant to the findings and changes described above, not every included file in full. ## To get this to a good state Nothing is required. Please share the cause or an isolated reproducer for the Intel Windows arm-table failure as an optional follow-up.
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/9969:upstream-pr/9969'
git switch 'upstream-pr/9969'

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