fix(shader): follow pointer hops and fixed-offset V# reads behind a record pointer #9457

Merged
EagleBearerYS merged 78 commits from upstream-pr/9457 into main 2026-12-03 13:48:44 +00:00
EagleBearerYS commented 2026-10-21 22:35:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-21T22:35:57Z.


What

Two shapes from #6191's family that the planner still refuses on #8939. Each gets its own commit and test.

1. Pointer hops after a pointer-keyed record pointer (Gran Turismo 7 (PPSA01317), frankea on #6191, comment).

  • The chain: 28 of the World Map's 29 refused compute shaders read a record (an SRT V#, a readfirstlane key in a waterfall loop) whose dwords 2-3 are a pointer P1. P1's words are a Phi of the record read under several keys and a Ballot lane-mask word. Then P2 = [P1 + 0] and the T# at [P2 + 0x340]:

    GetImageResource dword 0 is not a valid runtime value; chain: LoadAddressU32@pc=0x00002404(GetAddressResource(LoadAddressU32@pc=0x000020ec(GetAddressResource(Phi(Phi(ReadConstBuffer@pc=0x00000160(...), CompositeExtractU32x4(Ballot(LogicalAnd), Immediate)), ReadConstBuffer@pc=0x00000160(...)), ...
    
  • Why it refuses: TryMakeIndirectColumn refuses any pointer hop once the record pointer is merged: if (!hops.empty() && (buffer || merged)) return false;.

  • What the steps after it already do for a pointer-keyed column: the snapshot stores each record's pointer before it applies pointerHops. The shader looks the T# up by the record-level pointer (parentPointer). ShaderDiskCache already serializes and accepts hops on such columns.

  • The change: the guard now refuses hops only for buffer columns.

2. A T# at a fixed offset of a pointer-loaded V# (Marvel's Spider-Man 2 (PPSA03016), hugodearaujo on #8939, comment).

  • The chain: a record keyed by readfirstlane << 4, dwords 2-3 a pointer, a V# loaded at that pointer plus an immediate, and the T# read at a fixed offset of that V#'s buffer, with no second key:

    GetImageResource dword 0 is not a valid runtime value; chain: ReadConstBuffer@pc=0x8560(GetBufferResource(LoadAddressU32@pc=0x854c(GetAddressResource(ReadConstBuffer@pc=0x1fc4, ...
    
  • Why it refuses: TryMakeTableColumn refused it, because MatchAffineOffset fails on an immediate offset.

  • The change: hugodearaujo's change, kept as their commit. A fixed offset under a pointer-loaded V# becomes a one-key child of the nested path: key 0, stride the descriptor size, addend the immediate. A fixed offset under a runtime V# still refuses, as before.

Not in this PR:

  • Gran Turismo 7's odd shader (0x120aed7f00, a table V# carried around a loop that callees overwrite). It looks like the shape #8077 handles.
  • Spider-Man 2's next stop (a linked pointer at pc 0x8f54).
  • Ratchet & Clank: Rift Apart's stop at pc 0x10b84 (a merged high word with an arm from another table). #9633, which builds on this PR's hop and fixed-offset handling, got the title past it. On current main the title doesn't stop there. #14636 removed the title's pc=0x62d4 GetSamplerResource refusal: with #14636's merge reverted, main f57c971559 aborts on it again (dantdmdarealguy's run). Tamalero's run of main 4e2acc2120 with #18522, on RADV with APS5_MAX_COMPUTE_SPIRV_WORDS=2000000 and APS5_SKIP_REFUSED_DISPATCHES=1 (which skips and logs any compute shader whose recompile fails, code), reaches the first gameplay; the only shaders it skipped were two dropped for size (comment).

Overlap:

  • #7880 (klosixgaming-arch) unwraps a Phi-merged pointer dword in TryMakeIndirectColumn when every arm is the same table read. The shapes here have arms under different keys and a Ballot word, which #7880 leaves refused. The two compose: an equivalent-arm Phi can take #7880's plain column, and the rest the pointer-keyed one. The textual overlap is in #7395's and #8939's lines, which this PR stacks on.
  • #6488 (fdfawef324) adds a lane key to table columns in the same planner area.
  • The disk-cache format ladder: 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. #9633, #9749, #9790 and #9969 stack on this PR, above its 81. Whichever lands second on a number takes the next free one.
  • #20519 and #22424 (slopezjur, the opt-in bindless image heap and, on it, layout-only pointer tables): #7395's conflicts (see #7395's Overlap), plus this PR's own in the same heap-handle check in ResourceTracker.cpp: this PR's fixed refusal and #20519's runtimeAddress() return both stay. Its own test options keep both, and its FormatVersion conflict keeps this PR's number, above #20519's 89. Merge order: this stack first, as proposed in #20519's thread (comment). If #20519 lands first, a merge of main resolves it here.

Tested

  • On current main (11-13): main 7201da4f0e, which has #14636, still refuses this PR's shapes: its three tests fail 3 of 3 with #8939 merged and this PR's code left out, and pass 3 of 3 with this PR merged (llvmpipe, a cloud Linux machine).
  • New ctests in tests/execution/ImageTable.cpp (lavapipe, Linux, CI's flags):
    • agc_driver_pointer_hop_table: Gran Turismo 7's shape, a Ballot-merged P1, a hop at +0 and the T# at +0x340, across four key groups. It checks every lane's color. The constant arm and the Ballot arm each fault outside the snapshot. A re-pointed link block is followed without a recompile.
      • Red on #8939's guard: GetImageResource dword 0 is not a valid runtime value; chain: LoadAddressU32@pc=0x000000b4(GetAddressResource(LoadAddressU32@pc=0x000000a8(GetAddressResource(Phi(Immediate, Phi(ReadConstBuffer@pc=0x00000074(...), CompositeExtractU32x4(Ballot(LogicalAnd), Immediate))), ...
    • agc_driver_pointer_vsharp_fixed_table and agc_driver_pointer_vsharp_fixed_offset_table: Spider-Man 2's shape, with the T# at offsets 0 and 0x40. A moved record pointer and a moved V# are both followed without a recompile.
      • Red without hugodearaujo's change: GetImageResource dword 0 is not a valid runtime value; chain: ReadConstBuffer@pc=0x0000008c(GetBufferResource(LoadAddressU32@pc=0x00000080(GetAddressResource(ReadConstBuffer@pc=0x00000074(...
    • The 3 new ctests pass 20 of 20 each.
  • Related tests: image_table|pointer (23 tests) ×5 and the disk-cache and ShaderMemory tests (10) pass. The full CI ctest gives 1834/1838; the 4 failures are agc_driver_pipelined_fill (a flake on main too) and 3 IPv6 socket tests the machine can't run. Registration and conventions pass.
  • Disk cache: its own FormatVersion, 95, its number on the stack's format ladder (see Tested). Refusals are never stored, no serialized field changes, and the cache's source version hashes ResourceTracker.cpp.
  • GitHub's runners (run):
    • Linux: with #8939's code the 3 new ctests fail 3 of 3; with this PR they pass 10 of 10.
    • Windows: it builds, and the 3 tests skip, as the Vulkan tests do on that runner. The libc suite passes.
    • The suites' two failures are in tests this change doesn't reach: precise_wait (libc, Linux), which also failed on both sides in #9396's runs, and guest_raise_in_system_call (libkernel, Windows), a 30 s timeout seen in other runs on that runner.
  • jotitadev's run on an RTX 3070 and lavapipe (review): Ubuntu 26.04, GCC 15.2, Release, this PR's c00cb0f87 merged onto main d6eafa54d (clean).
    • With this PR's two fixes reverted (668118771 and 0843cca39, tests kept), the 3 new ctests fail on both GPUs with the chains above. The other 13 nested_/pointer_ tests pass.
    • With them, all 16 agc_driver_(nested_|pointer_) tests pass 3 of 3 on each GPU, none skipped, and image_table|pointer|disk_cache|shader_memory|sampler_table (27 tests) passes 3 of 3 on each.
    • The full ^agc suite on the 3070 (877 tests, without display_buffer_dcc, driver_flip and lds_atomics64): 874 pass and 1 skips. The 3 failures, agc_driver_sample_order, _grid_reference and _recipe_depth_locations, fail the same way on main on that card.
  • 2a5db7ae45, main cc0078595d merged in (clean; the PR's own diff is unchanged), on GitHub's runners (run):
    • Linux: the 16 nested_/pointer_ tests and the disk-cache tests pass 10 of 10, none skipped. libkernel's suite passes. libc's one failure, precise_wait, fails the same way with main's implementation.
    • Windows: they pass 10 of 10, with the 16 Vulkan tests skipping as on that runner. The libc and libkernel suites pass.
    • check_conventions.py passes on the merged head.
  • Validation layer, main against this head (run): one GitHub Linux runner, Ubuntu 24.04.5, llvmpipe (Mesa 25.2.8, LLVM 20.1.2), ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1 and VK_LAYER_KHRONOS_validation. This head's arm ran 3 times, its 20 tests passing each time, and main's once, its 4 tests passing; none skipped or failed.
    • The 16 new tests aren't on main, so its arm runs the image-table tests it has, agc_driver_image_table_vouched_lookups and agc_driver_image_table_vouch_queued_draws, with the disk-cache tests. This head's arm runs those and the 16.
    • The layer loads in both runs, with no "was not found" line. Both log only VUID-VkDeviceCreateInfo-pNext-pNext, and this head adds no VUID- message.
  • Marvel's Spider-Man 2 (PPSA03016, 01.004.003), by @hugodearaujo (comment): Linux 7.2.11, RX 9070 XT, RADV Mesa 26.2.5, Release, every build on main 0c6a5bd593 with #9424.
    • With #9424 alone it stops at ReadConstBuffer@pc=0x8560, at 142 s and 146 s. With #8939 (a7d1e62b53) added it stops there too, at 137 s in both runs.
    • With this PR (c00cb0f875), in one run, it gets past 0x8560 and stops at 131 s at ReadConstBuffer@pc=0x8fa0 over LoadAddressU32@pc=0x8f54. agc_shader_replay of the request that stopped at 0x8560 in a #8939 run refuses at 0x8fa0 as well.
    • They ran c00cb0f875, this PR before its merge of main, because the merged head doesn't get that far on this title: since #9137 it throws in the title's first 40 s on sceSystemServiceParamGetInt (parameter 100, then 208 and 210). The PR's own diff is the same in both heads.
  • 7f3a25e0cb, a merge of #8939's 9162d9df8f, which merges main 0db47b263d. The only conflict was ShaderDiskCache.hpp's FormatVersion line: main moved to 45 (#7831), and this branch keeps its 46. On GitHub's runners (run), the pointer, nested, image-table and disk-cache sets (25 tests) pass 10 runs in a row on Linux. On Windows the set has 27, with two Windows-only disk-cache tests: they build, 5 pass 10 runs in a row, and the other 22, 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.
  • Gran Turismo 7 (PPSA01317), a replay by @frankea (comment): the World Map's 29 compute shaders from #6191, agc_shader_replay --prepare with ANYPS5_NO_SHADER_CACHE=1 on the requests the driver dumped at use, RTX 4090, Windows 11. Replay only, on their GT7 integration branch (main 513ca7e55 with the GT7 pull requests in #4697's list and local diagnostics), without and with #9969 at 7588a5359, which carries this PR at 7f3a25e0c with #9790, #8939, #7395 and #7223.
    • Without the stack, all 29 refuse their first T#: 21 at 0x2404 behind the pointer loaded at 0x20ec, the shape above, and seven at the same pair slightly later (0x2408 to 0x2460).
    • With it, 28 of the 29 get past that read and refuse at their next T#, 0x2660 bytes later: 0x4a64 behind 0x4a4c in the 21, and the matching pair in the seven. There, the record pointer's Phi mixes the record read at 0x160 and its Ballot word with arms that are the pointer loaded at 0x20ec, so on some edges the second hop starts from the first hop's result. This PR doesn't plan that shape.
    • 0x120aed7f00 is unchanged (0x19a0 behind 0x198c), the shader this PR leaves out.
    • In the title, their branch without the stack, with a local switch that skips dispatches whose shader is refused, draws the World Map, so these shaders' output is what's missing there.
  • dc18bf7bf7, a merge of #8939's 08586677a1 (#7395's and #8939's merges of main 379b1dca32). It's clean, and this PR's own diff is unchanged. The planner behaviour changes underneath it: It brings the planner changes of #7395's and #8939's merges: a record pointer counts as merged only when its Phi isn't a single record read; an unmerged pointer's low word is unwrapped as #7880 does, and refused when it isn't a table read; and #8939's new commit refuses a pointer-keyed Phi edge whose two words are both immediates.
    • Focused, ×10 (run): agc_shader_bindless, agc_shader_memory and the ^agc_driver_pointer_, ^agc_driver_nested_, ^agc_driver_image_table and ^agc_shader_disk_cache tests. Linux: 27 run, 27 pass, 0 skip, 0 fail. Windows: 29 run, 7 pass, 22 skip (Vulkan device tests; the runner has none), 0 fail.
    • The libc and libkernel suites pass on both runners, run with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • 960abd84ea, a merge of #7395's 2525821ac9 (which merges main c9b2660d56). Clean: FormatVersion follows #7395's 50, and this PR's own diff is unchanged. On GitHub's runners, 10 runs (run) of the pointer, nested, image-table and disk-cache sets (agc_shader_bindless, agc_shader_memory, ^agc_driver_pointer_, ^agc_driver_nested_, ^agc_driver_image_table, ^agc_shader_disk_cache): Linux: 27 run, 27 pass, 0 skip, 0 fail. Windows: 29 run, 7 pass, 22 skip (no Vulkan device), 0 fail. The libc and libkernel suites pass on both, run with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • 0d4dab1baa, a merge of #7395's 71741a70b6, which merges #7223's f1cc524085 (yabanana's merge of main c8d34aa8f4). Clean: FormatVersion follows #7395's 50, and this PR's own diff is unchanged: the merge brings in exactly what #7395's merge did (249 files). On GitHub's runners, 10 runs (run) of the pointer, nested, image-table and disk-cache sets (agc_shader_bindless, agc_shader_memory, ^agc_driver_pointer_, ^agc_driver_nested_, ^agc_driver_image_table, ^agc_shader_disk_cache): Linux: 27 run, 27 pass, 0 skip, 0 fail. Windows: 29 run, 7 pass, 22 skip (no Vulkan device), 0 fail. The libc and libkernel suites pass on both (143 and 206 tests on Linux, 170 and 222 on Windows), run with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • NVIDIA GeForce RTX 5070 Ti (621.01, subgroup 32) and an AMD Radeon RDNA2 iGPU (AMD 2026.04.17, subgroup 64), Windows 11, by @wachi35676 (comment): this PR's 0d4dab1ba merged cleanly onto main aeff26bd9, WinLibs GCC 15.2.0, Release, ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1, no validation layer.
    • The pointer_ and nested_ table tests, image_table, vouch, disk_cache and the agc_shader_ tests, 66 entries, pass on both GPUs.
    • With the ResourceTracker.cpp hunks of 668118771 and 0843cca39 reverted, agc_driver_pointer_hop_table, agc_driver_pointer_vsharp_fixed_table and _fixed_offset_table fail on both GPUs, the same three as in jotitadev's RTX 3070 control.
    • Of 267 agc_ entries, the same ones fail with and without the stack.
  • 822cb220e7: 7c5094bda9, a merge of #8939's 4750c85fcd, the format commit 62992d7437, and 822cb220e7, a merge of #8939's merge of main 0cd07dc4ab (run).
    • 7c5094bda9 takes #8939's merge of #7395 (which carries #7223's 153400ba2b), its format commit and its test-only commit. Clean, and this PR's own diff is unchanged.
    • 62992d7437 gives this PR its own disk-cache format, 53 (52 is #10000's). The open bumps take one number each: #7223 49 (as do #9508, #9748 and other open PRs), #7395 50, #8939 51, #10000 52, #9457 53, #10489 54, #9633 55, #9749 56, #9790 57, #9969 58, #10846 59. Whichever lands second on a number takes the next free one.
    • 822cb220e7 merges #8939's merge of main 0cd07dc4ab. One conflict, in TryMakeIndirectColumn (ResourceTracker.cpp): mrfelek's #10228 lets a non-address offset that isn't affine or masked match as a first-lane offset (MatchFirstLaneOffset), on the line where this PR's fixed-offset case (hugodearaujo's 0843cca39d) branches off. The merge keeps both: an immediate offset on a pointer-loaded V# takes the fixed path first, and otherwise the affine, masked and then first-lane matches run as on main. This PR's changed lines are the same.
    • The hop, fixed-offset, vouch and sample-order tests with the disk-cache, bindless and shader-memory tests (agc_shader_memory carries #10228's first-lane cases) ran 10 times with no failure. Linux: 10 run, 10 pass, 0 skip, 0 fail. Windows: 12 run, 6 pass, 6 skip (the Vulkan device tests), 0 fail.
    • Suites: libc and libkernel pass on Linux (166 and 264). On Windows libc passes (194), and libkernel passes 283 of 286: exec_arguments, guest_timed_join_import_libkernel_sys and guest_timed_join_import_libkernel_web fail at their setup in the verify's Windows build (FileNotFoundError starting the title, or copying the libraries they load), and pass in main's own Windows job at 1829def9bf (job). The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • 88620551d5, a merge of #8939's 24d5cbbcec, 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 hop, fixed-offset, vouch, sample-order and nested-sampler tests with the disk-cache, bindless and shader-memory tests ran 10 times with no failure. Linux: 11 run, 11 pass, 0 skip, 0 fail. Windows: 13 run, 6 pass, 7 skip (the Vulkan device tests), 0 fail. Suites: libc and libkernel pass on Linux (166 and 264). On Windows libc passes (194), and libkernel 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.
  • 9a44f18aeb, a merge of #8939's 408401b351, which carries main 38ccd50f83 and with it #11507's FormatVersion 49 (run). Clean: FormatVersion stays 53 (see What), and this PR's diff over #8939 is the same. The hop, fixed-offset, vouch, sample-order and nested-sampler tests with the disk-cache, bindless and shader-memory tests and #11507's agc_driver_image_sample_short_cube ran 10 times with no failure. Linux: 12 run, 12 pass, 0 skip, 0 fail. Windows: 14 run, 6 pass, 8 skip (the Vulkan device tests), 0 fail. Suites: libc and libkernel pass on Linux (166 and 265). On Windows libc passes (194), and libkernel passes 284 of 287: exec_arguments, guest_timed_join_import_libkernel_sys and guest_timed_join_import_libkernel_web fail at their setup in the verify's Windows build (FileNotFoundError starting the title, or copying the libraries they load), with main's code too, and pass in main's own Windows job at 1829def9bf (job). The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • 19bed84013: 4830d6ed4d, a merge of #8939's 3e2ebbbf35, and 19bed84013, the format commit (run).
    • 4830d6ed4d 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 #8939's format commit. Clean.
    • 19bed84013 gives this PR its own disk-cache format, 55 (54 is #10489's). Apart from that line, this PR's diff over #8939 is unchanged.
    • The pointer, nested, image-table and disk-cache tests with agc_shader_bindless and agc_shader_memory ran 10 times with no failure. Linux: 27 run, 27 pass, 0 skip, 0 fail. Windows: 29 run, 8 pass, 21 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.
  • 31bd0dea17, a merge of #8939's ffa34ecc26, which carries #7395's 4769d5a745, which drops "and refusals" from two nested-table test summary lines (run). It's clean and brings only that change. The image-table, nested, pointer, disk-cache, bindless and shader-memory tests ran 10 times with no failure. Linux: 27 run, 27 pass, 0 skip, 0 fail. Windows: 29 run, 8 pass, 21 skip, 0 fail; the 21 skip because the runner has no Vulkan device. The libc and libkernel suites run 191 and 291 tests on Linux and 220 and 314 on Windows, with 0 failed. The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • NVIDIA RTX 2000 Ada Generation at 4eaf19b304, from TechLevelZero's NVIDIA bot (report): driver 595.99.02, Ubuntu 26.04.1, this head merged onto main 3741ca9, 2,538 of 3,121 tests selected.
    • 2,489 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 945 tests on the GPU, there are no new validation IDs against main. 15 of the nested and pointer table tests ran with the layer but aren't in main's baseline, so they weren't compared.
  • 49f6939fc0: 9c765e7907, a merge of #8939's df80d9b636, and 49f6939fc0, the format commit, on main b08c539c5 (run).
    • 9c765e7907 takes #8939's head df80d9b636, which merges #7395's 5fdf20fc3d. It had two conflicts, both resolved to this PR's side: the FormatVersion line, which the next commit replaces, and agc_driver_image_table_tests.cmake, where this PR's registrations already include #8939's.
    • 49f6939fc0 gives this PR its own disk-cache format, 67, past #8939's 66. No open pull request uses 67. Apart from that line, this PR's diff over #8939 is unchanged.
    • The pointer, nested, image-table and disk-cache tests with agc_shader_bindless and agc_shader_memory ran 10 times with no failure. Linux: 29 run, 29 pass, 0 skip, 0 fail. Windows: 31 run, 10 pass, 21 skip, 0 fail; the 21 skip because the runner has no Vulkan device. 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 b08c539c5 against this head, for the same tests. The loader inserted the layer 8 times on main and 23 with this head. The only VUID in either arm is VUID-VkDeviceCreateInfo-pNext-pNext, for a device struct (VkPhysicalDeviceMaintenance8FeaturesKHR) newer than that layer version, so this head adds none. agc_driver_image_table fails in that mode in both arms, because the mode treats that main message as a failure.
  • 04d09eef56, a merge of #8939's 87984fe728, which carries #7395's merge of main 88e804b0a7 (run). Clean: FormatVersion stays 67, and this PR's own diff is unchanged. The shader-memory, nested, pointer, image-table, disk-cache and bindless tests, with #7694's agc_shader_descriptor_phis, pass 10 runs in a row. Linux: 30 run, 30 pass, 0 skip, 0 fail. Windows: 32 run, 11 pass, 21 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,569 passed, 4 failed, none new (3 also fail on main, 1 unstable on main), 45 skipped, with no new validation IDs (988 tests on the GPU).
  • 0a4f7cdbed: 04d09eef56 plus one merge, of #8939's afb123a49e, which carries #7395's merge of main 4f64f81ef7 for #12246 (run). Clean: FormatVersion stays 67, and this PR's own diff is unchanged since 04d09eef56. The ResourceMaterializer.cpp resolution, with #12246's view loop moved back into Snapshot, comes from #7395's merge (see #7395). The shader-memory, nested, pointer, image-table, disk-cache and bindless tests, with #7694's agc_shader_descriptor_phis, pass 10 runs in a row. Linux: 30 run, 30 pass, 0 skip, 0 fail. Windows: 32 run, 11 pass, 21 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.
  • 7aa70b1bd2, 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 67; 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: 15 run, 15 pass, 0 skip, 0 fail. Windows: 15 run, 0 pass, 15 skip (no Vulkan device), 0 fail.
  • 20cc916ce9, a merge of #8939's 9eab037489, which carries main c2eafe4461 with yabanana's #7223 through #7395 (×10).
    • The conflict: ShaderDiskCache.hpp's FormatVersion, which stays 67 (main is at 56 since #7223). 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: 30 run, 30 pass, 0 skip, 0 fail. Windows: 32 run, 10 pass, 22 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,903 of 3,878 tests selected. 2,848 passed, 5 failed and 50 skipped. None of the failures is new: 3 also fail on main, and 2 are unstable on main. With VK_LAYER_KHRONOS_validation, there are no new validation IDs against main, over 985 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.
    • AMD Radeon RX 6300 (RADV NAVI24) at this head, from TechLevelZero's AMD bot (report): merged onto main 1c8c0ef, Mesa 25.2.8, Ubuntu 26.04.1, 3,846 tests run. 3,766 passed, 18 failed and 62 skipped. None of the failures is new: 11 also fail on main, and 7 are unstable on main. With VK_LAYER_KHRONOS_validation, there are no new validation IDs against main, over 1,441 tests on the GPU. 84 tests, among them this PR's nested and pointer tests, ran with the layer but aren't in main's baseline, so they weren't compared.
  • Marvel's Wolverine (PPSA03671), an offline replay and a game run by @mrfelek (replay, game run), on #9969's c147aa8647, which carries this PR: 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: that S# sits at a fixed offset of a V# loaded through the record's pointer, which this PR plans (#7395 plans it only at a keyed offset). The same request then stops at a T# at pc=0xb9f8 (GetImageResource dword 0).
    • The game run agrees: on #9969's 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#.
    • mrfelek's #16472 takes pc=0xb9f8 (see #7395).
  • e75a7104b9, a merge of #8939's c9de9a962c, which carries main 8eaf82f315 through #7395 (×10).
    • Clean: #7395's merge takes the one conflict with main, JJenkx's #15305's debt entry, and this PR's own lines are unchanged.
    • ×10: agc_driver_many_direct_samplers and every test matching ^agc_driver_pointer_, ^agc_driver_nested_, ^agc_shader_nested_, ^agc_driver_image_table, ^agc_shader_memory, ^agc_shader_disk_cache or ^agc_shader_sampler_limits, which takes in every test in this PR's diff over main. Linux: 31 run, 31 pass, 0 skip, 0 fail. Windows: 33 run, 10 pass, 23 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.
  • 2bbcdd60fc, a merge of #8939's 3cc9dd79e9, which carries main 006d11fca5 through #7395 (×10).
    • Clean: #7395's merge takes the one conflict with main, frankea's #9020's FormatVersion 57, and FormatVersion stays 67 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: 31 run, 31 pass, 0 skip, 0 fail. Windows: 33 run, 10 pass, 23 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.
  • e2c68c094a, a merge of #8939's e22ac325f8, which carries main dd7c8de5de through #7395 (×10).
    • Clean: #7395's merge takes the conflicts with main, #10489's FormatVersion 60 and its rewording of the image-table debt entry, and FormatVersion stays 67 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: 45 run, 45 pass, 0 skip, 0 fail. Windows: 47 run, 10 pass, 37 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 344 and 346 tests on Linux and 375 and 373 on Windows, with 0 failed. The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • 5be1abeb41: e200d82346, a merge of #8939's bddad7dfa0, and the format commit 5be1abeb41, which carries main 017bd95f5f through #8939 and #7395 (×10).
    • The conflict: FormatVersion, where #8939 now takes 80, above this PR's 67. The merge takes 80, and the format commit moves this PR to 81. This PR's own lines are unchanged apart from the FormatVersion line.
    • ×10: agc_driver_many_direct_samplers and every test matching ^agc_driver_pointer_, ^agc_driver_nested_, ^agc_shader_nested_, ^agc_driver_image_table, ^agc_shader_memory, ^agc_shader_disk_cache or ^agc_shader_sampler_limits, which takes in every test in this PR's diff over main. Linux: 45 run, 45 pass, 0 skip, 0 fail. Windows: 47 run, 10 pass, 37 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 350 and 348 tests on Linux with 0 failed, and 380 and 375 on Windows. On Windows, libkernel's guest_kernel_resident_fmem_export and guest_kernel_resident_fmem_export_patched fail: the same harness fails them on main 7259cce111 alone (run), and main's own Windows job passes them, so they come from the verify harness, not this PR. The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
    • Every agc test: Every agc test also ran once on #9749's tree, which holds this PR (run): Linux 1,530 run, 1,437 pass, 93 skip, 0 fail; Windows 1,573 run, 467 pass, 1,106 skip (no Vulkan device), 0 fail.
  • d007acef13, a merge of #8939's 95c2a47c76, without conflicts, which carries main e22c5fb941 through #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: 46 run, 46 pass, 0 skip, 0 fail. Windows: 48 run, 11 pass, 37 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 379 and 372 tests on Linux and 406 and 400 on Windows, with 0 failed. The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • Validation on #9969's 239ae90b7b, which carries this PR's d007acef13: main e22c5fb941 against that head, with VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ANYPS5_NO_SHADER_CACHE=1 and ANYPS5_REQUIRE_VULKAN=1 under ctest -V, over the stack's focused tests:
    • 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.
  • b0b62f859b, a merge of #8939's 1376724c9f, without conflicts, which carries main bd278f3654 through #8939 and #7395 (×10).
    • FormatVersion: main's 69, this PR's 81. #7395's merge takes #19530's move of main from 68 to 69, and this PR's own diff over #8939 is unchanged.
    • ×10: the same tests as on d007acef13. Linux: 46 run, 46 pass, 0 skip, 0 fail. Windows: 48 run, 11 pass, 37 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 380 and 376 tests on Linux and 410 and 404 on Windows, with 0 failed. The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes only precise_wait's median bounds on GitHub's hosted runners.
    • The Windows tree: the run's tree had Sankalp7317's 4-line _putenv_s test fix (#19899) on top, because main's Windows test build breaks without it ("'setenv' was not declared" in UploadCacheReadOnlyFlush.cpp, from #18037); it isn't on this branch.
  • d896ff422b, a merge of #8939's b4a5b1a618, which carries main 328cbf673e through #8939 and #7395 (×10, with #21255's test change).
    • The conflict: only FormatVersion, where #8939 now takes 94, above this PR's 81. The merge moves this PR to 95. This PR's own lines are unchanged apart from the FormatVersion line.
    • ×10: the same tests as on b0b62f859b. Linux: 53 run, 52 pass, 0 skip, 1 fail. Windows: 55 run, 11 pass, 44 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 #9969's 20b045a8de, which holds this PR's d896ff422b (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 d896ff422b merged onto main e4caa07950 (their merge 27327d03fe, clean), against main e4caa07950 alone, ctest -R '^agc_.*(image_table|pointer)|^agc_shader_(disk_cache|memory)'. main: 41 of 41 pass. This PR: 52 of 52 pass, including the 11 tests main doesn't have: this PR's three (agc_driver_pointer_hop_table, _vsharp_fixed_table, _vsharp_fixed_offset_table) and the eight of #8939 and #7395. No VUID- line on either side, and every device test selected the RTX 4090.
  • #8939's null record pointer fix, by the merge 709efea84b of #8939'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 d896ff422b, 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 15 ^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 15 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 is the shader this PR leaves out, as noted above.
  • dbe3b94942, a merge of #8939's 606212c86e, which carries main d89f26516c through #8939, without conflicts (×10, with #21255's test change).
    • No conflicts: this PR's FormatVersion stays 95, 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: 53 run, 52 pass, 0 skip, 1 fail. Windows: 55 run, 11 pass, 44 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. 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, which holds this PR's dbe3b94942 (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.
    • The Windows tree: the runs' trees had Sankalp7317's 4-line _putenv_s test fix (#19899) on top, because main's Windows test build breaks without it ("'setenv' was not declared" in UploadCacheReadOnlyFlush.cpp, from #18037); it isn't on this branch.
  • AMD Radeon RX 9070 XT (RADV GFX1201), by @hugodearaujo, with the Khronos validation layer, in #9969's and #9749's arms (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. #9969's 630bbb0a2e (with #7395, #8939, #9457 and #9790; their merge 2c9689c0c3) and #9749's bee5a91996 (with #7395, #8939, #9457 and #9633; their merge b726f51423), each merged onto main e1ab104e0a (clean), against main e1ab104e0a alone; both carry this PR's head dbe3b94942. main: 39 tests, 38 pass, 1 skip in each run. Each arm: 56 tests, 55 pass, 1 skip in each run; the counts include the tests of each arm's other PRs. The one skip is the same in every arm, main's included: agc_driver_image_table_vouched_lookups (the device reports host-imported pages written after a GPU read). The layer was inserted 32 times on main and 48 times in each arm, and never reported missing. No VUID- line in any arm, and every Vulkan test selected the RX 9070 XT.
  • NVIDIA RTX 4060 (driver 616.56), Windows 11, by @ShootanoJumper, in #9633's run (comment): Windows 11 23H2 (22631), Ryzen 7 5700X, WinLibs GCC 15.2.0 r7, Release, merged into main ed1def4dd4 with git merge --no-ff. No validation layer was installed, so these runs say nothing about VUID- errors. #9633's 2f104ac486 carries this PR's head dbe3b94942. The new tests pass, and of the 1302 tests the change reaches, the only failures are ones main also fails on that GPU (#23232, #23711, #23942).
  • ef586f90ca, a merge of #8939's 2eecdd6fc8, which carries main d50640e264 through #8939, without conflicts (×10, with #21255's test change).
    • No conflicts: this PR's FormatVersion stays 95, 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: 53 run, 52 pass, 0 skip, 1 fail. Windows: 55 run, 11 pass, 44 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 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, which holds this PR's ef586f90ca (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: #8939
  • Fixes: none
  • Unblocks: Marvel's Spider-Man 2 (PPSA03016, #6191) past ReadConstBuffer@pc=0x8560 (hugodearaujo's run above); the next stop, 0x8f54/0x8fa0, needs a follow-up. Gran Turismo 7's shape is untested on that title
  • GPUs tested: Mesa lavapipe (llvmpipe, LLVM 20.1.2), Ubuntu 24.04; NVIDIA RTX 2000 Ada Generation (driver 595.99.02, Ubuntu 26.04.1; TechLevelZero's NVIDIA bot); NVIDIA GeForce RTX 3070 (driver 595.99.02) and lavapipe (Mesa 26.0.3, LLVM 21.1.8), Ubuntu 26.04, in jotitadev's run; NVIDIA GeForce RTX 5070 Ti (621.01) and an AMD Radeon RDNA2 iGPU (AMD 2026.04.17), Windows 11, in wachi35676's run; NVIDIA GeForce RTX 4090 (driver 620.70.06, Arch Linux, with the validation layer), by @domx4q; 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; NVIDIA RTX 4060 (driver 616.56, Windows 11, no validation layer), by @ShootanoJumper
  • AI-assisted: yes

Related: #6191

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4959281953 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9457). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-21T22:35:57Z. --- ### What Two shapes from #6191's family that the planner still refuses on #8939. Each gets its own commit and test. **1. Pointer hops after a pointer-keyed record pointer** (Gran Turismo 7 (PPSA01317), frankea on #6191, [comment](https://github.com/boykopovar/AnyPS5/issues/6191#issuecomment-6322547617)). - **The chain:** 28 of the World Map's 29 refused compute shaders read a record (an SRT V#, a `readfirstlane` key in a waterfall loop) whose dwords 2-3 are a pointer P1. P1's words are a Phi of the record read under several keys and a `Ballot` lane-mask word. Then `P2 = [P1 + 0]` and the T# at `[P2 + 0x340]`: ``` GetImageResource dword 0 is not a valid runtime value; chain: LoadAddressU32@pc=0x00002404(GetAddressResource(LoadAddressU32@pc=0x000020ec(GetAddressResource(Phi(Phi(ReadConstBuffer@pc=0x00000160(...), CompositeExtractU32x4(Ballot(LogicalAnd), Immediate)), ReadConstBuffer@pc=0x00000160(...)), ... ``` - **Why it refuses:** `TryMakeIndirectColumn` refuses any pointer hop once the record pointer is merged: `if (!hops.empty() && (buffer || merged)) return false;`. - **What the steps after it already do for a pointer-keyed column:** the snapshot stores each record's pointer before it applies `pointerHops`. The shader looks the T# up by the record-level pointer (`parentPointer`). `ShaderDiskCache` already serializes and accepts hops on such columns. - **The change:** the guard now refuses hops only for buffer columns. **2. A T# at a fixed offset of a pointer-loaded V#** (Marvel's Spider-Man 2 (PPSA03016), hugodearaujo on #8939, [comment](https://github.com/boykopovar/AnyPS5/pull/8939#issuecomment-6326819824)). - **The chain:** a record keyed by `readfirstlane << 4`, dwords 2-3 a pointer, a V# loaded at that pointer plus an immediate, and the T# read at a fixed offset of that V#'s buffer, with no second key: ``` GetImageResource dword 0 is not a valid runtime value; chain: ReadConstBuffer@pc=0x8560(GetBufferResource(LoadAddressU32@pc=0x854c(GetAddressResource(ReadConstBuffer@pc=0x1fc4, ... ``` - **Why it refuses:** `TryMakeTableColumn` refused it, because `MatchAffineOffset` fails on an immediate offset. - **The change:** hugodearaujo's change, kept as their commit. A fixed offset under a pointer-loaded V# becomes a one-key child of the nested path: key 0, stride the descriptor size, addend the immediate. A fixed offset under a runtime V# still refuses, as before. **Not in this PR:** - Gran Turismo 7's odd shader (`0x120aed7f00`, a table V# carried around a loop that callees overwrite). It looks like the shape #8077 handles. - Spider-Man 2's next stop (a linked pointer at pc 0x8f54). - Ratchet & Clank: Rift Apart's stop at pc 0x10b84 (a merged high word with an arm from another table). #9633, which builds on this PR's hop and fixed-offset handling, got the title past it. On current `main` the title doesn't stop there. #14636 removed the title's `pc=0x62d4` `GetSamplerResource` refusal: with #14636's merge reverted, `main` f57c971559 aborts on it again ([dantdmdarealguy's run](https://github.com/boykopovar/AnyPS5/issues/13538#issuecomment-6805706990)). Tamalero's run of `main` 4e2acc2120 with #18522, on RADV with `APS5_MAX_COMPUTE_SPIRV_WORDS=2000000` and `APS5_SKIP_REFUSED_DISPATCHES=1` (which skips and logs any compute shader whose recompile fails, [code](https://github.com/boykopovar/AnyPS5/blob/4e2acc2120998222c6d1ad02278f43da149c43e2/core/libs/prx/libSceAgcDriver/Execution/src/Driver/Dispatch/Dispatch.cpp#L430-L443)), reaches the first gameplay; the only shaders it skipped were two dropped for size ([comment](https://github.com/boykopovar/AnyPS5/issues/13538#issuecomment-6848831524)). **Overlap:** - #7880 (klosixgaming-arch) unwraps a Phi-merged pointer dword in `TryMakeIndirectColumn` when every arm is the same table read. The shapes here have arms under different keys and a `Ballot` word, which #7880 leaves refused. The two compose: an equivalent-arm Phi can take #7880's plain column, and the rest the pointer-keyed one. The textual overlap is in #7395's and #8939's lines, which this PR stacks on. - #6488 (fdfawef324) adds a lane key to table columns in the same planner area. - The disk-cache format ladder: `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. #9633, #9749, #9790 and #9969 stack on this PR, above its 81. Whichever lands second on a number takes the next free one. - **#20519 and #22424 (slopezjur, the opt-in bindless image heap and, on it, layout-only pointer tables):** #7395's conflicts (see #7395's Overlap), plus this PR's own in the same heap-handle check in `ResourceTracker.cpp`: this PR's `fixed` refusal and #20519's `runtimeAddress()` return both stay. Its own test options keep both, and its `FormatVersion` conflict keeps this PR's number, above #20519's 89. Merge order: this stack first, as proposed in #20519's thread ([comment](https://github.com/boykopovar/AnyPS5/pull/20519#issuecomment-6953598764)). If #20519 lands first, a merge of `main` resolves it here. ### Tested - **On current `main` (11-13):** `main` 7201da4f0e, which has #14636, still refuses this PR's shapes: its three tests fail 3 of 3 with #8939 merged and this PR's code left out, and pass 3 of 3 with this PR merged (llvmpipe, a cloud Linux machine). - **New ctests in `tests/execution/ImageTable.cpp`** (lavapipe, Linux, CI's flags): - `agc_driver_pointer_hop_table`: Gran Turismo 7's shape, a `Ballot`-merged P1, a hop at +0 and the T# at +0x340, across four key groups. It checks every lane's color. The constant arm and the `Ballot` arm each fault outside the snapshot. A re-pointed link block is followed without a recompile. - **Red** on #8939's guard: `GetImageResource dword 0 is not a valid runtime value; chain: LoadAddressU32@pc=0x000000b4(GetAddressResource(LoadAddressU32@pc=0x000000a8(GetAddressResource(Phi(Immediate, Phi(ReadConstBuffer@pc=0x00000074(...), CompositeExtractU32x4(Ballot(LogicalAnd), Immediate))), ...` - `agc_driver_pointer_vsharp_fixed_table` and `agc_driver_pointer_vsharp_fixed_offset_table`: Spider-Man 2's shape, with the T# at offsets 0 and 0x40. A moved record pointer and a moved V# are both followed without a recompile. - **Red** without hugodearaujo's change: `GetImageResource dword 0 is not a valid runtime value; chain: ReadConstBuffer@pc=0x0000008c(GetBufferResource(LoadAddressU32@pc=0x00000080(GetAddressResource(ReadConstBuffer@pc=0x00000074(...` - The 3 new ctests pass 20 of 20 each. - **Related tests:** `image_table|pointer` (23 tests) ×5 and the disk-cache and ShaderMemory tests (10) pass. The full CI ctest gives 1834/1838; the 4 failures are `agc_driver_pipelined_fill` (a flake on main too) and 3 IPv6 socket tests the machine can't run. Registration and conventions pass. - **Disk cache:** its own `FormatVersion`, 95, its number on the stack's format ladder (see Tested). Refusals are never stored, no serialized field changes, and the cache's source version hashes `ResourceTracker.cpp`. - **GitHub's runners** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39687542500)): - Linux: with #8939's code the 3 new ctests fail 3 of 3; with this PR they pass 10 of 10. - Windows: it builds, and the 3 tests skip, as the Vulkan tests do on that runner. The libc suite passes. - The suites' two failures are in tests this change doesn't reach: `precise_wait` (libc, Linux), which also failed on both sides in #9396's runs, and `guest_raise_in_system_call` (libkernel, Windows), a 30 s timeout seen in other runs on that runner. - **jotitadev's run on an RTX 3070 and lavapipe** ([review](https://github.com/boykopovar/AnyPS5/pull/9457#pullrequestreview-5610958009)): Ubuntu 26.04, GCC 15.2, Release, this PR's c00cb0f87 merged onto `main` d6eafa54d (clean). - With this PR's two fixes reverted (`668118771` and `0843cca39`, tests kept), the 3 new ctests fail on both GPUs with the chains above. The other 13 `nested_`/`pointer_` tests pass. - With them, all 16 `agc_driver_(nested_|pointer_)` tests pass 3 of 3 on each GPU, none skipped, and `image_table|pointer|disk_cache|shader_memory|sampler_table` (27 tests) passes 3 of 3 on each. - The full `^agc` suite on the 3070 (877 tests, without `display_buffer_dcc`, `driver_flip` and `lds_atomics64`): 874 pass and 1 skips. The 3 failures, `agc_driver_sample_order`, `_grid_reference` and `_recipe_depth_locations`, fail the same way on `main` on that card. - **2a5db7ae45, `main` cc0078595d merged in** (clean; the PR's own diff is unchanged), on GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39760376179)): - Linux: the 16 `nested_`/`pointer_` tests and the disk-cache tests pass 10 of 10, none skipped. libkernel's suite passes. libc's one failure, `precise_wait`, fails the same way with `main`'s implementation. - Windows: they pass 10 of 10, with the 16 Vulkan tests skipping as on that runner. The libc and libkernel suites pass. - `check_conventions.py` passes on the merged head. - **Validation layer, `main` against this head** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39766165778)): one GitHub Linux runner, Ubuntu 24.04.5, llvmpipe (Mesa 25.2.8, LLVM 20.1.2), `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1` and `VK_LAYER_KHRONOS_validation`. This head's arm ran 3 times, its 20 tests passing each time, and `main`'s once, its 4 tests passing; none skipped or failed. - The 16 new tests aren't on `main`, so its arm runs the image-table tests it has, `agc_driver_image_table_vouched_lookups` and `agc_driver_image_table_vouch_queued_draws`, with the disk-cache tests. This head's arm runs those and the 16. - The layer loads in both runs, with no "was not found" line. Both log only `VUID-VkDeviceCreateInfo-pNext-pNext`, and this head adds no `VUID-` message. - **Marvel's Spider-Man 2 (PPSA03016, 01.004.003), by @hugodearaujo** ([comment](https://github.com/boykopovar/AnyPS5/pull/9457#issuecomment-6340285887)): Linux 7.2.11, RX 9070 XT, RADV Mesa 26.2.5, Release, every build on `main` 0c6a5bd593 with #9424. - With #9424 alone it stops at `ReadConstBuffer@pc=0x8560`, at 142 s and 146 s. With #8939 (a7d1e62b53) added it stops there too, at 137 s in both runs. - With this PR (c00cb0f875), in one run, it gets past 0x8560 and stops at 131 s at `ReadConstBuffer@pc=0x8fa0` over `LoadAddressU32@pc=0x8f54`. `agc_shader_replay` of the request that stopped at 0x8560 in a #8939 run refuses at 0x8fa0 as well. - They ran c00cb0f875, this PR before its merge of `main`, because the merged head doesn't get that far on this title: since #9137 it throws in the title's first 40 s on `sceSystemServiceParamGetInt` (parameter 100, then 208 and 210). The PR's own diff is the same in both heads. - **7f3a25e0cb, a merge of #8939's 9162d9df8f, which merges `main` 0db47b263d.** The only conflict was `ShaderDiskCache.hpp`'s `FormatVersion` line: `main` moved to 45 (#7831), and this branch keeps its 46. On GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39929959673)), the pointer, nested, image-table and disk-cache sets (25 tests) pass 10 runs in a row on Linux. On Windows the set has 27, with two Windows-only disk-cache tests: they build, 5 pass 10 runs in a row, and the other 22, 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. - **Gran Turismo 7 (PPSA01317), a replay by @frankea** ([comment](https://github.com/boykopovar/AnyPS5/pull/9457#issuecomment-6368190571)): the World Map's 29 compute shaders from #6191, `agc_shader_replay --prepare` with `ANYPS5_NO_SHADER_CACHE=1` on the requests the driver dumped at use, RTX 4090, Windows 11. Replay only, on their GT7 integration branch (`main` 513ca7e55 with the GT7 pull requests in #4697's list and local diagnostics), without and with #9969 at 7588a5359, which carries this PR at 7f3a25e0c with #9790, #8939, #7395 and #7223. - **Without the stack,** all 29 refuse their first T#: 21 at 0x2404 behind the pointer loaded at 0x20ec, the shape above, and seven at the same pair slightly later (0x2408 to 0x2460). - **With it,** 28 of the 29 get past that read and refuse at their next T#, 0x2660 bytes later: 0x4a64 behind 0x4a4c in the 21, and the matching pair in the seven. There, the record pointer's Phi mixes the record read at 0x160 and its `Ballot` word with arms that are the pointer loaded at 0x20ec, so on some edges the second hop starts from the first hop's result. This PR doesn't plan that shape. - `0x120aed7f00` is unchanged (0x19a0 behind 0x198c), the shader this PR leaves out. - In the title, their branch without the stack, with a local switch that skips dispatches whose shader is refused, draws the World Map, so these shaders' output is what's missing there. - **dc18bf7bf7, a merge of #8939's 08586677a1** (#7395's and #8939's merges of `main` 379b1dca32). It's clean, and this PR's own diff is unchanged. **The planner behaviour changes underneath it:** It brings the planner changes of #7395's and #8939's merges: a record pointer counts as merged only when its Phi isn't a single record read; an unmerged pointer's low word is unwrapped as #7880 does, and refused when it isn't a table read; and #8939's new commit refuses a pointer-keyed Phi edge whose two words are both immediates. - Focused, ×10 ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40077095558)): `agc_shader_bindless`, `agc_shader_memory` and the `^agc_driver_pointer_`, `^agc_driver_nested_`, `^agc_driver_image_table` and `^agc_shader_disk_cache` tests. Linux: 27 run, 27 pass, 0 skip, 0 fail. Windows: 29 run, 7 pass, 22 skip (Vulkan device tests; the runner has none), 0 fail. - The libc and libkernel suites pass on both runners, run with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **960abd84ea, a merge of #7395's 2525821ac9** (which merges `main` c9b2660d56). Clean: `FormatVersion` follows #7395's 50, and this PR's own diff is unchanged. On GitHub's runners, 10 runs ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40100256974)) 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: 27 run, 27 pass, 0 skip, 0 fail. Windows: 29 run, 7 pass, 22 skip (no Vulkan device), 0 fail. The libc and libkernel suites pass on both, run with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **0d4dab1baa, a merge of #7395's 71741a70b6, which merges #7223's f1cc524085 (yabanana's merge of `main` c8d34aa8f4).** Clean: `FormatVersion` follows #7395's 50, and this PR's own diff is unchanged: the merge brings in exactly what #7395's merge did (249 files). On GitHub's runners, 10 runs ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40135961958)) 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: 27 run, 27 pass, 0 skip, 0 fail. Windows: 29 run, 7 pass, 22 skip (no Vulkan device), 0 fail. The libc and libkernel suites pass on both (143 and 206 tests on Linux, 170 and 222 on Windows), run with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **NVIDIA GeForce RTX 5070 Ti (621.01, subgroup 32) and an AMD Radeon RDNA2 iGPU (AMD 2026.04.17, subgroup 64), Windows 11, by @wachi35676** ([comment](https://github.com/boykopovar/AnyPS5/pull/9457#issuecomment-6405802367)): this PR's 0d4dab1ba merged cleanly onto `main` aeff26bd9, WinLibs GCC 15.2.0, Release, `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1`, no validation layer. - The `pointer_` and `nested_` table tests, `image_table`, `vouch`, `disk_cache` and the `agc_shader_` tests, 66 entries, pass on both GPUs. - With the `ResourceTracker.cpp` hunks of 668118771 and 0843cca39 reverted, `agc_driver_pointer_hop_table`, `agc_driver_pointer_vsharp_fixed_table` and `_fixed_offset_table` fail on both GPUs, the same three as in jotitadev's RTX 3070 control. - Of 267 `agc_` entries, the same ones fail with and without the stack. - **822cb220e7: 7c5094bda9, a merge of #8939's 4750c85fcd, the format commit 62992d7437, and 822cb220e7, a merge of #8939's merge of `main` 0cd07dc4ab** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40641943271)). - **7c5094bda9** takes #8939's merge of #7395 (which carries #7223's 153400ba2b), its format commit and its test-only commit. Clean, and this PR's own diff is unchanged. - **62992d7437** gives this PR its own disk-cache format, 53 (52 is #10000's). The open bumps take one number each: #7223 49 (as do #9508, #9748 and other open PRs), #7395 50, #8939 51, #10000 52, #9457 53, #10489 54, #9633 55, #9749 56, #9790 57, #9969 58, #10846 59. Whichever lands second on a number takes the next free one. - **822cb220e7** merges #8939's merge of `main` 0cd07dc4ab. One conflict, in `TryMakeIndirectColumn` (`ResourceTracker.cpp`): mrfelek's #10228 lets a non-address offset that isn't affine or masked match as a first-lane offset (`MatchFirstLaneOffset`), on the line where this PR's fixed-offset case (hugodearaujo's 0843cca39d) branches off. The merge keeps both: an immediate offset on a pointer-loaded V# takes the fixed path first, and otherwise the affine, masked and then first-lane matches run as on `main`. This PR's changed lines are the same. - The hop, fixed-offset, vouch and sample-order tests with the disk-cache, bindless and shader-memory tests (`agc_shader_memory` carries #10228's first-lane cases) ran 10 times with no failure. Linux: 10 run, 10 pass, 0 skip, 0 fail. Windows: 12 run, 6 pass, 6 skip (the Vulkan device tests), 0 fail. - Suites: libc and libkernel pass on Linux (166 and 264). On Windows libc passes (194), and libkernel passes 283 of 286: `exec_arguments`, `guest_timed_join_import_libkernel_sys` and `guest_timed_join_import_libkernel_web` fail at their setup in the verify's Windows build (`FileNotFoundError` starting the title, or copying the libraries they load), and pass in `main`'s own Windows job at 1829def9bf ([job](https://github.com/boykopovar/AnyPS5/actions/runs/40627345977/job/122615375186)). The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **88620551d5, a merge of #8939's 24d5cbbcec**, 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/40656386693)). Clean, and this PR's changed lines are the same. The hop, fixed-offset, vouch, sample-order and nested-sampler tests with the disk-cache, bindless and shader-memory tests ran 10 times with no failure. Linux: 11 run, 11 pass, 0 skip, 0 fail. Windows: 13 run, 6 pass, 7 skip (the Vulkan device tests), 0 fail. Suites: libc and libkernel pass on Linux (166 and 264). On Windows libc passes (194), and libkernel 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. - **9a44f18aeb, a merge of #8939's 408401b351, which carries `main` 38ccd50f83 and with it #11507's `FormatVersion` 49** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40665573378)). Clean: `FormatVersion` stays 53 (see What), and this PR's diff over #8939 is the same. The hop, fixed-offset, vouch, sample-order and nested-sampler tests with the disk-cache, bindless and shader-memory tests and #11507's `agc_driver_image_sample_short_cube` ran 10 times with no failure. Linux: 12 run, 12 pass, 0 skip, 0 fail. Windows: 14 run, 6 pass, 8 skip (the Vulkan device tests), 0 fail. Suites: libc and libkernel pass on Linux (166 and 265). On Windows libc passes (194), and libkernel passes 284 of 287: `exec_arguments`, `guest_timed_join_import_libkernel_sys` and `guest_timed_join_import_libkernel_web` fail at their setup in the verify's Windows build (`FileNotFoundError` starting the title, or copying the libraries they load), with `main`'s code too, and pass in `main`'s own Windows job at 1829def9bf ([job](https://github.com/boykopovar/AnyPS5/actions/runs/40627345977/job/122615375186)). The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **19bed84013: 4830d6ed4d, a merge of #8939's 3e2ebbbf35, and 19bed84013, the format commit** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40861285786)). - **4830d6ed4d** 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 #8939's format commit. Clean. - **19bed84013** gives this PR its own disk-cache format, 55 (54 is #10489's). Apart from that line, this PR's diff over #8939 is unchanged. - The pointer, nested, image-table and disk-cache tests with `agc_shader_bindless` and `agc_shader_memory` ran 10 times with no failure. Linux: 27 run, 27 pass, 0 skip, 0 fail. Windows: 29 run, 8 pass, 21 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. - **31bd0dea17, a merge of #8939's ffa34ecc26, which carries #7395's 4769d5a745, which drops "and refusals" from two nested-table test summary lines** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40947223108)). It's clean and brings only that change. The image-table, nested, pointer, disk-cache, bindless and shader-memory tests ran 10 times with no failure. Linux: 27 run, 27 pass, 0 skip, 0 fail. Windows: 29 run, 8 pass, 21 skip, 0 fail; the 21 skip because the runner has no Vulkan device. The libc and libkernel suites run 191 and 291 tests on Linux and 220 and 314 on Windows, with 0 failed. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **NVIDIA RTX 2000 Ada Generation** at 4eaf19b304, from TechLevelZero's NVIDIA bot ([report](https://github.com/boykopovar/AnyPS5/pull/9457#issuecomment-6555455239)): driver 595.99.02, Ubuntu 26.04.1, this head merged onto `main` 3741ca9, 2,538 of 3,121 tests selected. - 2,489 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 945 tests on the GPU, there are no new validation IDs against `main`. 15 of the nested and pointer table tests ran with the layer but aren't in `main`'s baseline, so they weren't compared. - **49f6939fc0: 9c765e7907, a merge of #8939's df80d9b636, and 49f6939fc0, the format commit**, on `main` b08c539c5 ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41334363692)). - **9c765e7907** takes #8939's head df80d9b636, which merges #7395's 5fdf20fc3d. It had two conflicts, both resolved to this PR's side: the `FormatVersion` line, which the next commit replaces, and `agc_driver_image_table_tests.cmake`, where this PR's registrations already include #8939's. - **49f6939fc0** gives this PR its own disk-cache format, 67, past #8939's 66. No open pull request uses 67. Apart from that line, this PR's diff over #8939 is unchanged. - The pointer, nested, image-table and disk-cache tests with `agc_shader_bindless` and `agc_shader_memory` ran 10 times with no failure. Linux: 29 run, 29 pass, 0 skip, 0 fail. Windows: 31 run, 10 pass, 21 skip, 0 fail; the 21 skip because the runner has no Vulkan device. 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/41334374595)), `main` b08c539c5 against this head, for the same tests. The loader inserted the layer 8 times on `main` and 23 with this head. The only VUID in either arm is `VUID-VkDeviceCreateInfo-pNext-pNext`, for a device struct (`VkPhysicalDeviceMaintenance8FeaturesKHR`) newer than that layer version, so this head adds none. `agc_driver_image_table` fails in that mode in both arms, because the mode treats that `main` message as a failure. - **04d09eef56, a merge of #8939's 87984fe728, which carries #7395's merge of `main` 88e804b0a7** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41414442405)). Clean: `FormatVersion` stays 67, and this PR's own diff is unchanged. The shader-memory, nested, pointer, image-table, disk-cache and bindless tests, with #7694's `agc_shader_descriptor_phis`, pass 10 runs in a row. Linux: 30 run, 30 pass, 0 skip, 0 fail. Windows: 32 run, 11 pass, 21 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/9457#issuecomment-6576828713)): 2,569 passed, 4 failed, none new (3 also fail on `main`, 1 unstable on `main`), 45 skipped, with no new validation IDs (988 tests on the GPU). - **0a4f7cdbed: 04d09eef56 plus one merge, of #8939's afb123a49e, which carries #7395's merge of `main` 4f64f81ef7 for #12246** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41461204676)). Clean: `FormatVersion` stays 67, and this PR's own diff is unchanged since 04d09eef56. The `ResourceMaterializer.cpp` resolution, with #12246's view loop moved back into `Snapshot`, comes from #7395's merge (see #7395). The shader-memory, nested, pointer, image-table, disk-cache and bindless tests, with #7694's `agc_shader_descriptor_phis`, pass 10 runs in a row. Linux: 30 run, 30 pass, 0 skip, 0 fail. Windows: 32 run, 11 pass, 21 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. - **7aa70b1bd2, a merge of `main` 4f41f4c375** ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41610762365), [the PR's own tests ×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41619823712)). - **The conflicts:** `ShaderDiskCache.hpp`'s `FormatVersion`, where `main` is now at 52 (#10000) and this PR keeps its 67; 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: 15 run, 15 pass, 0 skip, 0 fail. Windows: 15 run, 0 pass, 15 skip (no Vulkan device), 0 fail. - **20cc916ce9, a merge of #8939's 9eab037489,** which carries `main` c2eafe4461 with yabanana's #7223 through #7395 ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41775921942)). - **The conflict:** `ShaderDiskCache.hpp`'s `FormatVersion`, which stays 67 (`main` is at 56 since #7223). 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: 30 run, 30 pass, 0 skip, 0 fail. Windows: 32 run, 10 pass, 22 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/9457#issuecomment-6625215445)): merged onto `main` b8efa62, driver 595.99.02, Ubuntu 26.04.1, 2,903 of 3,878 tests selected. 2,848 passed, 5 failed and 50 skipped. None of the failures is new: 3 also fail on `main`, and 2 are unstable on `main`. With `VK_LAYER_KHRONOS_validation`, there are no new validation IDs against `main`, over 985 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. - **AMD Radeon RX 6300 (RADV NAVI24)** at this head, from TechLevelZero's AMD bot ([report](https://github.com/boykopovar/AnyPS5/pull/9457#issuecomment-6625310263)): merged onto `main` 1c8c0ef, Mesa 25.2.8, Ubuntu 26.04.1, 3,846 tests run. 3,766 passed, 18 failed and 62 skipped. None of the failures is new: 11 also fail on `main`, and 7 are unstable on `main`. With `VK_LAYER_KHRONOS_validation`, there are no new validation IDs against `main`, over 1,441 tests on the GPU. 84 tests, among them this PR's nested and pointer tests, ran with the layer but aren't in `main`'s baseline, so they weren'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)), on #9969's c147aa8647, which carries this PR: 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: that S# sits at a fixed offset of a V# loaded through the record's pointer, which this PR plans (#7395 plans it only at a keyed offset). The same request then stops at a T# at `pc=0xb9f8` (`GetImageResource dword 0`). - **The game run agrees:** on #9969's 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#. - mrfelek's #16472 takes `pc=0xb9f8` (see #7395). - **e75a7104b9, a merge of #8939's c9de9a962c,** which carries `main` 8eaf82f315 through #7395 ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/42336882302)). - **Clean:** #7395's merge takes the one conflict with `main`, JJenkx's #15305's debt entry, and this PR's own lines are unchanged. - **×10:** `agc_driver_many_direct_samplers` and every test matching `^agc_driver_pointer_`, `^agc_driver_nested_`, `^agc_shader_nested_`, `^agc_driver_image_table`, `^agc_shader_memory`, `^agc_shader_disk_cache` or `^agc_shader_sampler_limits`, which takes in every test in this PR's diff over `main`. Linux: 31 run, 31 pass, 0 skip, 0 fail. Windows: 33 run, 10 pass, 23 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. - **2bbcdd60fc, a merge of #8939's 3cc9dd79e9,** which carries `main` 006d11fca5 through #7395 ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/42370682232)). - **Clean:** #7395's merge takes the one conflict with `main`, frankea's #9020's `FormatVersion` 57, and `FormatVersion` stays 67 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: 31 run, 31 pass, 0 skip, 0 fail. Windows: 33 run, 10 pass, 23 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. - **e2c68c094a, a merge of #8939's e22ac325f8,** which carries `main` dd7c8de5de through #7395 ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/42510081943)). - **Clean:** #7395's merge takes the conflicts with `main`, #10489's `FormatVersion` 60 and its rewording of the image-table debt entry, and `FormatVersion` stays 67 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: 45 run, 45 pass, 0 skip, 0 fail. Windows: 47 run, 10 pass, 37 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 344 and 346 tests on Linux and 375 and 373 on Windows, with 0 failed. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **5be1abeb41: e200d82346, a merge of #8939's bddad7dfa0, and the format commit 5be1abeb41,** which carries `main` 017bd95f5f through #8939 and #7395 ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/42748988940)). - **The conflict:** `FormatVersion`, where #8939 now takes 80, above this PR's 67. The merge takes 80, and the format commit moves this PR to 81. This PR's own lines are unchanged apart from the `FormatVersion` line. - **×10:** `agc_driver_many_direct_samplers` and every test matching `^agc_driver_pointer_`, `^agc_driver_nested_`, `^agc_shader_nested_`, `^agc_driver_image_table`, `^agc_shader_memory`, `^agc_shader_disk_cache` or `^agc_shader_sampler_limits`, which takes in every test in this PR's diff over `main`. Linux: 45 run, 45 pass, 0 skip, 0 fail. Windows: 47 run, 10 pass, 37 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 350 and 348 tests on Linux with 0 failed, and 380 and 375 on Windows. On Windows, libkernel's `guest_kernel_resident_fmem_export` and `guest_kernel_resident_fmem_export_patched` fail: the same harness fails them on `main` 7259cce111 alone ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/42693594401)), and `main`'s own Windows job passes them, so they come from the verify harness, not this PR. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **Every `agc` test:** Every `agc` test also ran once on #9749's tree, which holds this PR ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/42749191754)): Linux 1,530 run, 1,437 pass, 93 skip, 0 fail; Windows 1,573 run, 467 pass, 1,106 skip (no Vulkan device), 0 fail. - **d007acef13, a merge of #8939's 95c2a47c76, without conflicts,** which carries `main` e22c5fb941 through #8939 and #7395 ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/43458763696)). - **×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: 46 run, 46 pass, 0 skip, 0 fail. Windows: 48 run, 11 pass, 37 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 379 and 372 tests on Linux and 406 and 400 on Windows, with 0 failed. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **Validation on #9969's 239ae90b7b**, which carries this PR's d007acef13: `main` e22c5fb941 against that head, with `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, `ANYPS5_NO_SHADER_CACHE=1` and `ANYPS5_REQUIRE_VULKAN=1` under `ctest -V`, over the stack's focused tests: - **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. - **b0b62f859b, a merge of #8939's 1376724c9f, without conflicts,** which carries `main` bd278f3654 through #8939 and #7395 ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/43576575673)). - **`FormatVersion`:** `main`'s 69, this PR's 81. #7395's merge takes #19530's move of `main` from 68 to 69, and this PR's own diff over #8939 is unchanged. - **×10:** the same tests as on d007acef13. Linux: 46 run, 46 pass, 0 skip, 0 fail. Windows: 48 run, 11 pass, 37 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 380 and 376 tests on Linux and 410 and 404 on Windows, with 0 failed. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes only `precise_wait`'s median bounds on GitHub's hosted runners. - **The Windows tree:** the run's tree had Sankalp7317's 4-line `_putenv_s` test fix ([#19899](https://github.com/boykopovar/AnyPS5/pull/19899)) on top, because `main`'s Windows test build breaks without it ("'setenv' was not declared" in `UploadCacheReadOnlyFlush.cpp`, from #18037); it isn't on this branch. - **d896ff422b, a merge of #8939's b4a5b1a618,** which carries `main` 328cbf673e through #8939 and #7395 ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/43816484209), [with #21255's test change](https://github.com/EagleBearerYS/AnyPS5/actions/runs/43831952163)). - **The conflict:** only `FormatVersion`, where #8939 now takes 94, above this PR's 81. The merge moves this PR to 95. This PR's own lines are unchanged apart from the `FormatVersion` line. - **×10:** the same tests as on b0b62f859b. Linux: 53 run, 52 pass, 0 skip, 1 fail. Windows: 55 run, 11 pass, 44 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 #9969's 20b045a8de, which holds this PR's d896ff422b ([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/9457#issuecomment-6922538717)): 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 d896ff422b merged onto `main` e4caa07950 (their merge 27327d03fe, clean), against `main` e4caa07950 alone, `ctest -R '^agc_.*(image_table|pointer)|^agc_shader_(disk_cache|memory)'`. `main`: 41 of 41 pass. This PR: 52 of 52 pass, including the 11 tests `main` doesn't have: this PR's three (`agc_driver_pointer_hop_table`, `_vsharp_fixed_table`, `_vsharp_fixed_offset_table`) and the eight of #8939 and #7395. No `VUID-` line on either side, and every device test selected the RTX 4090. - **#8939's null record pointer fix, by the merge 709efea84b** of #8939'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 d896ff422b, 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/44197492511/job/134442627805), on an earlier commit with the same tree): the 15 `^agc_driver_pointer_` and `^agc_driver_nested_` tests pass, none skipped. - **Windows** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/44210993727)), 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 15 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 is the shader this PR leaves out, as noted above. - **dbe3b94942, a merge of #8939's 606212c86e,** which carries `main` d89f26516c through #8939, without conflicts ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/44433252006), [with #21255's test change](https://github.com/EagleBearerYS/AnyPS5/actions/runs/44451654918)). - **No conflicts:** this PR's `FormatVersion` stays 95, 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: 53 run, 52 pass, 0 skip, 1 fail. Windows: 55 run, 11 pass, 44 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. 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, which holds this PR's dbe3b94942 ([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. - **The Windows tree:** the runs' trees had Sankalp7317's 4-line `_putenv_s` test fix ([#19899](https://github.com/boykopovar/AnyPS5/pull/19899)) on top, because `main`'s Windows test build breaks without it ("'setenv' was not declared" in `UploadCacheReadOnlyFlush.cpp`, from #18037); it isn't on this branch. - **AMD Radeon RX 9070 XT (RADV GFX1201), by @hugodearaujo, with the Khronos validation layer, in #9969's and #9749's arms** ([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. #9969's 630bbb0a2e (with #7395, #8939, #9457 and #9790; their merge 2c9689c0c3) and #9749's bee5a91996 (with #7395, #8939, #9457 and #9633; their merge b726f51423), each merged onto `main` e1ab104e0a (clean), against `main` e1ab104e0a alone; both carry this PR's head dbe3b94942. `main`: 39 tests, 38 pass, 1 skip in each run. Each arm: 56 tests, 55 pass, 1 skip in each run; the counts include the tests of each arm's other PRs. The one skip is the same in every arm, `main`'s included: `agc_driver_image_table_vouched_lookups` (the device reports host-imported pages written after a GPU read). The layer was inserted 32 times on `main` and 48 times in each arm, and never reported missing. No `VUID-` line in any arm, and every Vulkan test selected the RX 9070 XT. - **NVIDIA RTX 4060 (driver 616.56), Windows 11, by @ShootanoJumper, in #9633's run** ([comment](https://github.com/boykopovar/AnyPS5/pull/9633#issuecomment-7024113752)): Windows 11 23H2 (22631), Ryzen 7 5700X, WinLibs GCC 15.2.0 r7, Release, merged into `main` ed1def4dd4 with `git merge --no-ff`. No validation layer was installed, so these runs say nothing about `VUID-` errors. #9633's 2f104ac486 carries this PR's head dbe3b94942. The new tests pass, and of the 1302 tests the change reaches, the only failures are ones `main` also fails on that GPU (#23232, #23711, #23942). - **ef586f90ca, a merge of #8939's 2eecdd6fc8,** which carries `main` d50640e264 through #8939, without conflicts ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/44659068129), [with #21255's test change](https://github.com/EagleBearerYS/AnyPS5/actions/runs/44660369966)). - **No conflicts:** this PR's `FormatVersion` stays 95, 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: 53 run, 52 pass, 0 skip, 1 fail. Windows: 55 run, 11 pass, 44 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 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, which holds this PR's ef586f90ca ([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 - [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: #8939 - [x] Fixes: none - [x] Unblocks: Marvel's Spider-Man 2 (PPSA03016, #6191) past `ReadConstBuffer@pc=0x8560` (hugodearaujo's run above); the next stop, 0x8f54/0x8fa0, needs a follow-up. Gran Turismo 7's shape is untested on that title - [x] GPUs tested: Mesa lavapipe (llvmpipe, LLVM 20.1.2), Ubuntu 24.04; NVIDIA RTX 2000 Ada Generation (driver 595.99.02, Ubuntu 26.04.1; TechLevelZero's NVIDIA bot); NVIDIA GeForce RTX 3070 (driver 595.99.02) and lavapipe (Mesa 26.0.3, LLVM 21.1.8), Ubuntu 26.04, in jotitadev's run; NVIDIA GeForce RTX 5070 Ti (621.01) and an AMD Radeon RDNA2 iGPU (AMD 2026.04.17), Windows 11, in wachi35676's run; NVIDIA GeForce RTX 4090 (driver 620.70.06, Arch Linux, with the validation layer), by @domx4q; 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; NVIDIA RTX 4060 (driver 616.56, Windows 11, no validation layer), by @ShootanoJumper - [x] AI-assisted: yes Related: #6191
EagleBearerYS commented 2026-10-21 22:48:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-21T22:48:51Z.


@frankea @hugodearaujo @spiff637, this draft is the next step on #6191's chain for your titles, stacked on #8939 (fix/shader-table-family-6191, c00cb0f875):

  • Gran Turismo 7 (PPSA01317), the 28 World Map shaders: the pointer from the record's dwords 2-3, merged with the Ballot word, can now take a pointer hop. #8939 refused any hop behind a merged pointer. @frankea, could you replay the 29 against this branch and say which ones clear? The odd one (0x120aed7f00, the table V# carried around the loop) isn't covered here. It looks like the shape #8077 handles, so a replay of #8077's head on that shader would tell.
  • Marvel's Spider-Man 2 (PPSA03016 / PPSA08338): @hugodearaujo's fixed-offset change is in as their commit, with tests. @hugodearaujo or @spiff637, a run on this branch should get past ReadConstBuffer@pc=0x8560. The next stop you described, the linked pointer at pc 0x8f54, isn't in this PR yet.

Its tests pass on lavapipe. It hasn't run on either title or on real hardware yet.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6328269887 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9457#issuecomment-6328269887). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-21T22:48:51Z. --- @frankea @hugodearaujo @spiff637, this draft is the next step on #6191's chain for your titles, stacked on #8939 (`fix/shader-table-family-6191`, c00cb0f875): - **Gran Turismo 7 (PPSA01317), the 28 World Map shaders:** the pointer from the record's dwords 2-3, merged with the `Ballot` word, can now take a pointer hop. #8939 refused any hop behind a merged pointer. @frankea, could you replay the 29 against this branch and say which ones clear? The odd one (`0x120aed7f00`, the table V# carried around the loop) isn't covered here. It looks like the shape #8077 handles, so a replay of #8077's head on that shader would tell. - **Marvel's Spider-Man 2 (PPSA03016 / PPSA08338):** @hugodearaujo's fixed-offset change is in as their commit, with tests. @hugodearaujo or @spiff637, a run on this branch should get past `ReadConstBuffer@pc=0x8560`. The next stop you described, the linked pointer at pc 0x8f54, isn't in this PR yet. Its tests pass on lavapipe. It hasn't run on either title or on real hardware yet.
MarcZX10 commented 2026-10-22 04:34:53 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T04:34:53Z.

Review: CHANGES_REQUESTED


The new lavapipe tests exercise both reported resource-chain shapes, include negative controls and relocation-without-recompile cases, and the PR reports Windows compilation plus the relevant focused CI results. I cannot treat the AGC/shader validation protocol as complete from the current report: it does not show the same focused tests run on current main and this change with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, and VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, confirm the requested validation layer loaded in both runs, or compare new VUID- messages. Please attach those paired logs/results and name the GPU/driver/OS as required. Also, this head is based on 0c6a5bd rather than current main (110a18ba01); please rebase and rerun conventions, overlap and the focused validation suite on the updated tree. I did not run local GPU tests.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5609305154 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9457#pullrequestreview-5609305154). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T04:34:53Z. **Review:** CHANGES_REQUESTED --- The new lavapipe tests exercise both reported resource-chain shapes, include negative controls and relocation-without-recompile cases, and the PR reports Windows compilation plus the relevant focused CI results. I cannot treat the AGC/shader validation protocol as complete from the current report: it does not show the same focused tests run on current `main` and this change with `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1`, and `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, confirm the requested validation layer loaded in both runs, or compare new `VUID-` messages. Please attach those paired logs/results and name the GPU/driver/OS as required. Also, this head is based on `0c6a5bd` rather than current `main` (`110a18ba01`); please rebase and rerun conventions, overlap and the focused validation suite on the updated tree. I did not run local GPU tests.
jotitadev commented 2026-10-22 07:58:55 +00:00 (Migrated from github.com)

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

Review: COMMENTED


First run on a hardware GPU: an RTX 3070, plus lavapipe again.

Setup: Ubuntu 26.04, GCC 15.2, Release, head c00cb0f87 merged onto main d6eafa54d (clean merge). ANYPS5_GPU picks the device, ANYPS5_REQUIRE_VULKAN=1, ctest -j1.

  • Red: the PR with this PR's two fixes reverted (668118771 and 0843cca39, source only, tests kept). agc_driver_pointer_hop_table, agc_driver_pointer_vsharp_fixed_table and agc_driver_pointer_vsharp_fixed_offset_table fail on both GPUs with the GetImageResource dword 0 is not a valid runtime value chains from the description. The other 13 nested_/pointer_ tests pass.
  • Green: all 16 agc_driver_(nested_|pointer_) tests pass 3 of 3 on each GPU, none skipped. image_table|pointer|disk_cache|shader_memory|sampler_table (27 tests) passes 3 of 3 on each.
  • Full ^agc suite on the 3070 (877 tests, without display_buffer_dcc, driver_flip, lds_atomics64): 874 pass, 1 skips (stencil_ref_export). The 3 failures are agc_driver_sample_order, _grid_reference and _recipe_depth_locations, which fail the same way on main d6eafa54d on this card.

GPUs tested: NVIDIA GeForce RTX 3070 (driver 595.99.02), Mesa lavapipe 26.0.3 (LLVM 21.1.8), Ubuntu 26.04

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

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5610958009 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9457#pullrequestreview-5610958009). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-22T07:58:55Z. **Review:** COMMENTED --- First run on a hardware GPU: an RTX 3070, plus lavapipe again. **Setup:** Ubuntu 26.04, GCC 15.2, Release, head `c00cb0f87` merged onto `main` `d6eafa54d` (clean merge). `ANYPS5_GPU` picks the device, `ANYPS5_REQUIRE_VULKAN=1`, ctest `-j1`. - **Red:** the PR with this PR's two fixes reverted (`668118771` and `0843cca39`, source only, tests kept). `agc_driver_pointer_hop_table`, `agc_driver_pointer_vsharp_fixed_table` and `agc_driver_pointer_vsharp_fixed_offset_table` fail on both GPUs with the `GetImageResource dword 0 is not a valid runtime value` chains from the description. The other 13 `nested_`/`pointer_` tests pass. - **Green:** all 16 `agc_driver_(nested_|pointer_)` tests pass 3 of 3 on each GPU, none skipped. `image_table|pointer|disk_cache|shader_memory|sampler_table` (27 tests) passes 3 of 3 on each. - **Full `^agc` suite on the 3070** (877 tests, without `display_buffer_dcc`, `driver_flip`, `lds_atomics64`): 874 pass, 1 skips (`stencil_ref_export`). The 3 failures are `agc_driver_sample_order`, `_grid_reference` and `_recipe_depth_locations`, which fail the same way on `main` `d6eafa54d` on this card. GPUs tested: NVIDIA GeForce RTX 3070 (driver 595.99.02), Mesa lavapipe 26.0.3 (LLVM 21.1.8), Ubuntu 26.04 Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
EagleBearerYS commented 2026-10-22 08:41:45 +00:00 (Migrated from github.com)

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


@jotitadev thanks for the RTX 3070 run with a red control. The three new cases fail with the fixes reverted and pass with them on hardware as well as on lavapipe, which is what this draft needed beyond llvmpipe. It's in Tested and on the GPUs tested line now.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6336560587 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9457#issuecomment-6336560587). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-22T08:41:45Z. --- @jotitadev thanks for the RTX 3070 run with a red control. The three new cases fail with the fixes reverted and pass with them on hardware as well as on lavapipe, which is what this draft needed beyond llvmpipe. It's in Tested and on the GPUs tested line now.
EagleBearerYS commented 2026-10-22 11:12:06 +00:00 (Migrated from github.com)

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


@MarcZX10 thanks. By your review's points:

  1. Validation: main against this head on one GitHub Linux runner (run): Ubuntu 24.04.5, llvmpipe (Mesa 25.2.8, LLVM 20.1.2), with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1 and VK_LAYER_KHRONOS_validation, 3 runs each. The 16 new tests aren't on main, so its arm runs the image-table tests main has, agc_driver_image_table_vouched_lookups and agc_driver_image_table_vouch_queued_draws, with the disk-cache tests; this head's arm runs those and the 16. The layer loads in both runs. Both log only VUID-VkDeviceCreateInfo-pNext-pNext, and this head adds no VUID- message.
  2. Current main: main cc0078595d is merged in (2a5db7ae45), with the PR's own diff unchanged. The focused tests pass 10 of 10 on both runners (run), and check_conventions.py passes. main has moved 7 commits since, none in this PR's files.
  3. Overlap: rechecked against the open PRs pushed since the last check. The one production conflict is #7223's new head, which this stack builds on (#7223 → #7395 → #8939 → this PR) and rebases onto when it lands.

Both runs are in Tested.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6339332423 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9457#issuecomment-6339332423). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-22T11:12:06Z. --- @MarcZX10 thanks. By your review's points: 1. **Validation:** `main` against this head on one GitHub Linux runner ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39766165778)): Ubuntu 24.04.5, llvmpipe (Mesa 25.2.8, LLVM 20.1.2), with `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1` and `VK_LAYER_KHRONOS_validation`, 3 runs each. The 16 new tests aren't on `main`, so its arm runs the image-table tests `main` has, `agc_driver_image_table_vouched_lookups` and `agc_driver_image_table_vouch_queued_draws`, with the disk-cache tests; this head's arm runs those and the 16. The layer loads in both runs. Both log only `VUID-VkDeviceCreateInfo-pNext-pNext`, and this head adds no `VUID-` message. 2. **Current `main`:** `main` cc0078595d is merged in (2a5db7ae45), with the PR's own diff unchanged. The focused tests pass 10 of 10 on both runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39760376179)), and `check_conventions.py` passes. `main` has moved 7 commits since, none in this PR's files. 3. **Overlap:** rechecked against the open PRs pushed since the last check. The one production conflict is #7223's new head, which this stack builds on (#7223 → #7395 → #8939 → this PR) and rebases onto when it lands. Both runs are in Tested.
hugodearaujo commented 2026-10-22 12:04:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by hugodearaujo on 2026-10-22T12:04:34Z.


@EagleBearerYS I ran this on Marvel's Spider-Man 2 (PPSA03016 01.004.003). It gets past ReadConstBuffer@pc=0x8560. The title now stops at 131 s on the next shape, the 0x8f54/0x8fa0 pair whose IR is on #8939 (comment):

compute shader 0x11e2b38300: GetImageResource dword 0 is not a valid runtime value; chain: ReadConstBuffer@pc=0x00008fa0(GetBufferResource(LoadAddressU32@pc=0x00008f54(GetAddressResource(Phi(Phi(ReadConstBuffer@pc=0x00001fc4(…
Build, all on main 0c6a5bd593 Stop
#9424 (#7679) 142 s and 146 s, ReadConstBuffer@pc=0x8560
#8939 a7d1e62b53 + #9424 137 s in both runs, ReadConstBuffer@pc=0x8560
this PR c00cb0f875 + #9424 131 s, ReadConstBuffer@pc=0x8fa0 over LoadAddressU32@pc=0x8f54
  • I ran c00cb0f875, this PR before its merge of main, because the merge head doesn't get that far on this title. Since #9137, the title throws in its first 40 s on sceSystemServiceParamGetInt: parameter 100, then 208 and 210. The PR's own diff is the same in both heads.
  • agc_shader_replay on the request that stopped at 0x8560 before (shader_11e2b39b00, from a #8939 run) now refuses at 0x8fa0 as well.
  • Linux 7.2.11, RX 9070 XT, RADV Mesa 26.2.5, Release. One run.

I can run a candidate for the 0x8f54 shape when there is one.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6340285887 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9457#issuecomment-6340285887). Originally posted by [hugodearaujo](https://github.com/hugodearaujo) on 2026-10-22T12:04:34Z. --- @EagleBearerYS I ran this on Marvel's Spider-Man 2 (PPSA03016 01.004.003). It gets past `ReadConstBuffer@pc=0x8560`. The title now stops at 131 s on the next shape, the 0x8f54/0x8fa0 pair whose IR is on #8939 ([comment](https://github.com/boykopovar/AnyPS5/pull/8939#issuecomment-6340144242)): ``` compute shader 0x11e2b38300: GetImageResource dword 0 is not a valid runtime value; chain: ReadConstBuffer@pc=0x00008fa0(GetBufferResource(LoadAddressU32@pc=0x00008f54(GetAddressResource(Phi(Phi(ReadConstBuffer@pc=0x00001fc4(… ``` | Build, all on `main` 0c6a5bd593 | Stop | |---|---| | #9424 (#7679) | 142 s and 146 s, `ReadConstBuffer@pc=0x8560` | | #8939 a7d1e62b53 + #9424 | 137 s in both runs, `ReadConstBuffer@pc=0x8560` | | this PR c00cb0f875 + #9424 | 131 s, `ReadConstBuffer@pc=0x8fa0` over `LoadAddressU32@pc=0x8f54` | - I ran c00cb0f875, this PR before its merge of `main`, because the merge head doesn't get that far on this title. Since #9137, the title throws in its first 40 s on `sceSystemServiceParamGetInt`: parameter 100, then 208 and 210. The PR's own diff is the same in both heads. - `agc_shader_replay` on the request that stopped at 0x8560 before (`shader_11e2b39b00`, from a #8939 run) now refuses at 0x8fa0 as well. - Linux 7.2.11, RX 9070 XT, RADV Mesa 26.2.5, Release. One run. I can run a candidate for the 0x8f54 shape when there is one.
EagleBearerYS commented 2026-10-22 12:12:38 +00:00 (Migrated from github.com)

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


@hugodearaujo thanks for running Marvel's Spider-Man 2 on this, with main and #8939 as controls, and for replaying the old request. Getting past 0x8560 on the title is now in Tested and on the Unblocks line, with your note on why you ran c00cb0f875. Your IR for the 0x8f54/0x8fa0 pair on #8939 is being looked at for a follow-up, and we'll take you up on running a candidate when there is one. The sceSystemServiceParamGetInt throw on the merged head is noted separately.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6340437396 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9457#issuecomment-6340437396). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-22T12:12:38Z. --- @hugodearaujo thanks for running Marvel's Spider-Man 2 on this, with `main` and #8939 as controls, and for replaying the old request. Getting past 0x8560 on the title is now in Tested and on the Unblocks line, with your note on why you ran c00cb0f875. Your IR for the 0x8f54/0x8fa0 pair on #8939 is being looked at for a follow-up, and we'll take you up on running a candidate when there is one. The `sceSystemServiceParamGetInt` throw on the merged head is noted separately.
adriadam10 commented 2026-10-24 02:31:37 +00:00 (Migrated from github.com)

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

Review: CHANGES_REQUESTED


The change itself looks right to me: the hop guard now refuses only buffer columns, the fixed-offset case is limited to a pointer-loaded V# (a runtime V# still refuses), and the three new tests each fail on the base chains shown in the description.

What blocks it:

  • This branch stacks on #7223, #7395 and #8939, which are all open and conflict with main since #7880 merged (TryMakeIndirectColumn now reads through UnwrapTableRead). This PR inherits that conflict and can't land before them.
  • Once the bases are in, please rebase and re-check the if (!hops.empty() && buffer) return false; guard in TryMakeIndirectColumn against main's UnwrapTableRead path, rerun the three new tests, and renumber FormatVersion to whatever is next on main.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5636431258 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9457#pullrequestreview-5636431258). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-24T02:31:37Z. **Review:** CHANGES_REQUESTED --- The change itself looks right to me: the hop guard now refuses only buffer columns, the fixed-offset case is limited to a pointer-loaded V# (a runtime V# still refuses), and the three new tests each fail on the base chains shown in the description. What blocks it: - This branch stacks on #7223, #7395 and #8939, which are all open and conflict with `main` since #7880 merged (`TryMakeIndirectColumn` now reads through `UnwrapTableRead`). This PR inherits that conflict and can't land before them. - Once the bases are in, please rebase and re-check the `if (!hops.empty() && buffer) return false;` guard in `TryMakeIndirectColumn` against `main`'s `UnwrapTableRead` path, rerun the three new tests, and renumber `FormatVersion` to whatever is next on `main`.
MarcZX10 commented 2026-10-29 09:11:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T09:11:08Z.

Review: CHANGES_REQUESTED


Re-check — changes requested\n\nThe author's earlier paired Vulkan report answered my original validation request for the then-tested tree, and the rebase has now moved the branch to head 9a44f18aeb. That evidence does not cover current main: this head is still 869 commits behind aaccd0ba39.\n\nThere is also a current test-policy blocker in the shared parent stack. The remaining shared-V# and T#-with-another-consumer cases at tests/execution/ImageTable.cpp:1699-1712 require valid but unimplemented shader shapes to throw. Please remove those throw pins while preserving sampled-result, bounds/budget and malformed-input/fault coverage. Coordinate the shared parent change with #7395 and carry the single fix through #9790; do not duplicate it in each child.\n\nAfter the parent fix and current-main refresh, rerun the focused image-table/disk-cache/shader-memory tests on main and the resulting stack with the required Vulkan validation layer, no-cache and required-Vulkan settings. Keep the title result limited to the exact updated stack. I did not run GPU tests locally.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5695274894 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9457#pullrequestreview-5695274894). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T09:11:08Z. **Review:** CHANGES_REQUESTED --- ## Re-check — changes requested\n\nThe author's earlier paired Vulkan report answered my original validation request for the then-tested tree, and the rebase has now moved the branch to head 9a44f18aebb469ba616a08883ddc8fcac47bbbbd. That evidence does not cover current main: this head is still 869 commits behind aaccd0ba39.\n\nThere is also a current test-policy blocker in the shared parent stack. The remaining shared-V# and T#-with-another-consumer cases at tests/execution/ImageTable.cpp:1699-1712 require valid but unimplemented shader shapes to throw. Please remove those throw pins while preserving sampled-result, bounds/budget and malformed-input/fault coverage. Coordinate the shared parent change with #7395 and carry the single fix through #9790; do not duplicate it in each child.\n\nAfter the parent fix and current-main refresh, rerun the focused image-table/disk-cache/shader-memory tests on main and the resulting stack with the required Vulkan validation layer, no-cache and required-Vulkan settings. Keep the title result limited to the exact updated stack. I did not run GPU tests locally.
XairRrR commented 2026-11-03 08:45:29 +00:00 (Migrated from github.com)

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

Review: CHANGES_REQUESTED


Reviewed — changes requested

This pull request does not merge cleanly into main (4f41f4c375): head 0a4f7cdbed 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:5749261003 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9457#pullrequestreview-5749261003). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-11-03T08:45:29Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested This pull request does not merge cleanly into `main` (4f41f4c375f5abb487dbd184fbc150f31994d762): head 0a4f7cdbedbecac466a0cc6f1e8e2b4842060043 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=3209 head=0a4f7cdbedbecac466a0cc6f1e8e2b4842060043 -->
XairRrR commented 2026-11-03 14:18:24 +00:00 (Migrated from github.com)

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

Review: APPROVED


Re-checked — approved

Since my last review the branch has only taken new merges of main, the latest being 7aa70b1. The merged tree builds, passes the checks, the focused tests and the validation comparison. Reverting the PR's two planner hunks makes exactly its three new tests fail.

What changed since my last review

The text of my previous review is not available, so I reviewed the whole change again rather than only a delta. Since earlier heads, the branch has gained merges of #8939/#7395/#7223 and of main. The latest is 7aa70b1, a merge of main. This PR's own changes are the same two ResourceTracker.cpp hunks:

  • the hop guard, now if (!hops.empty() && buffer) return false;;
  • the fixed-offset one-key child (hugodearaujo's commit).

FormatVersion is 67, above main's 52.

What I ran

Head 7aa70b1bd2fcda0a48d036901c3de73ad6c6f739, main 4f41f4c375f5abb487dbd184fbc150f31994d762, merged tree 305bc0a81e4dd874e65b111aa19064ffaa681591. Debian 13 VM, GCC 14.2.0, Release, lavapipe (Mesa 26.1.6, LLVM 19).

git diff --check 4f41f4c375f5abb487dbd184fbc150f31994d762...7aa70b1bd2fcda0a48d036901c3de73ad6c6f739
python3 tools/check_conventions.py --base 4f41f4c375f5abb487dbd184fbc150f31994d762
env ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 ctest --test-dir build -j8 --test-load 32 --output-on-failure \
  -R "^agc_driver_(pointer_|nested_|image_table)|^agc_shader_(disk_cache|bindless|memory|nested|descriptor_phis)"
# negative control: revert the PR's two hunks in ResourceTracker.cpp
#   if (!hops.empty() && buffer)      -> if (!hops.empty() && (buffer || merged))
#   const bool fixed = !address && !buffer && immediateU32(...) -> const bool fixed = false && immediateU32(...)
ninja -C build -j32 -l32
env ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 ctest --test-dir build -j8 --test-load 32 --output-on-failure -R "^agc_driver_(pointer_|nested_)"
git show 305bc0a81e4dd874e65b111aa19064ffaa681591:core/shader/recompiler/Optimization/src/ResourceTracker.cpp > core/shader/recompiler/Optimization/src/ResourceTracker.cpp
ninja -C build -j32 -l32
ctest --test-dir build -R "^agc_driver_pointer_(hop|vsharp_fixed)"
git status --porcelain

Results

Check Result
Merge into main Clean
git diff --check Clean
check_conventions.py All checks passed
Configure, build, libs (script) OK
Selected tests (script) 2231 ran, 0 new failures, 0 timeouts. The 7 known failures fail on main too.
Focused set, 30 tests 30/30 pass. Every test finishes in under 9 s, and the new ones take about 1 s.
Validation layer (script, 785 tests) Layer loaded in 784, missing in none, 0 tests with a new VUID-
Negative control Only the 3 new tests fail (see below)
Worktree restored git status --porcelain empty; the 3 tests pass again after the rebuild
Negative control output (truncated)
agc_driver_pointer_hop_table ....***Failed
GetImageResource dword 0 is not a valid runtime value; chain: LoadAddressU32@pc=0x000000b4(GetAddressResource(LoadAddressU32@pc=0x000000a8(GetAddressResource(Phi(Immediate, Phi(ReadConstBuffer@pc=0x00000074(...), CompositeExtractU32x4(Ballot(LogicalAnd), Immediate)))
agc_driver_pointer_vsharp_fixed_offset_table ....***Failed
GetImageResource dword 0 is not a valid runtime value; chain: ReadConstBuffer@pc=0x0000008c(GetBufferResource(LoadAddressU32@pc=0x00000080(GetAddressResource(ReadConstBuffer@pc=0x00000074(...
agc_driver_pointer_vsharp_fixed_table ....***Failed
(same chain)
80% tests passed, 3 tests failed out of 15

Previous findings

I can't list them one by one because the earlier review text is not available. Instead I checked the points raised by other reviewers on this thread:

  • The guard against main's UnwrapTableRead path (adriadam10): the guard is at core/shader/recompiler/Optimization/src/ResourceTracker.cpp:1201. It runs after the hop walk, and the merged path is taken only when UnwrapTableRead returns null. For a pointer-keyed column, the materializer stores each record's pointer before it follows pointerHops, and the SPIR-V lookup uses that same record-level pointer (parentPointer). The two sides agree, so allowing hops there is consistent.
  • A fixed offset under a runtime V#: it still refuses, at ResourceTracker.cpp:860 (if (fixed) return false;).
  • The refusal pins in the test policy (oneandonlydean, MarcZX10): none of the tests in the diff assert not a valid runtime value any more.
  • FormatVersion: 67, above main's 52.

New findings

Blocking

None.

Non-blocking

None.

Not verified

  • No run on non-lavapipe hardware here. The NVIDIA RTX 2000 Ada and AMD RX 6300 runs at earlier heads and at this head (AMD) are reported by the contributor bots, not reproduced.
  • The title results (Gran Turismo 7 replay, Marvel's Spider-Man 2) are author- and tester-reported. I did not launch any title.
  • Measured against main, this PR's diff also carries the still-open #7223, #7395 and #8939. Whether to land the combined branch or the parents first is a maintainer decision, discussed in the thread. My verdict covers the merged tree as a whole.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5753728358 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9457#pullrequestreview-5753728358). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-11-03T14:18:24Z. **Review:** APPROVED --- # Re-checked — approved Since my last review the branch has only taken new merges of `main`, the latest being 7aa70b1. The merged tree builds, passes the checks, the focused tests and the validation comparison. Reverting the PR's two planner hunks makes exactly its three new tests fail. ## What changed since my last review The text of my previous review is not available, so I reviewed the whole change again rather than only a delta. Since earlier heads, the branch has gained merges of #8939/#7395/#7223 and of `main`. The latest is 7aa70b1, a merge of `main`. This PR's own changes are the same two `ResourceTracker.cpp` hunks: - the hop guard, now `if (!hops.empty() && buffer) return false;`; - the fixed-offset one-key child (hugodearaujo's commit). `FormatVersion` is 67, above `main`'s 52. ## What I ran Head `7aa70b1bd2fcda0a48d036901c3de73ad6c6f739`, `main` `4f41f4c375f5abb487dbd184fbc150f31994d762`, merged tree `305bc0a81e4dd874e65b111aa19064ffaa681591`. Debian 13 VM, GCC 14.2.0, Release, lavapipe (Mesa 26.1.6, LLVM 19). ``` git diff --check 4f41f4c375f5abb487dbd184fbc150f31994d762...7aa70b1bd2fcda0a48d036901c3de73ad6c6f739 python3 tools/check_conventions.py --base 4f41f4c375f5abb487dbd184fbc150f31994d762 env ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 ctest --test-dir build -j8 --test-load 32 --output-on-failure \ -R "^agc_driver_(pointer_|nested_|image_table)|^agc_shader_(disk_cache|bindless|memory|nested|descriptor_phis)" # negative control: revert the PR's two hunks in ResourceTracker.cpp # if (!hops.empty() && buffer) -> if (!hops.empty() && (buffer || merged)) # const bool fixed = !address && !buffer && immediateU32(...) -> const bool fixed = false && immediateU32(...) ninja -C build -j32 -l32 env ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 ctest --test-dir build -j8 --test-load 32 --output-on-failure -R "^agc_driver_(pointer_|nested_)" git show 305bc0a81e4dd874e65b111aa19064ffaa681591:core/shader/recompiler/Optimization/src/ResourceTracker.cpp > core/shader/recompiler/Optimization/src/ResourceTracker.cpp ninja -C build -j32 -l32 ctest --test-dir build -R "^agc_driver_pointer_(hop|vsharp_fixed)" git status --porcelain ``` ## Results | Check | Result | |---|---| | Merge into `main` | Clean | | `git diff --check` | Clean | | `check_conventions.py` | All checks passed | | Configure, build, `libs` (script) | OK | | Selected tests (script) | 2231 ran, 0 new failures, 0 timeouts. The 7 known failures fail on `main` too. | | Focused set, 30 tests | 30/30 pass. Every test finishes in under 9 s, and the new ones take about 1 s. | | Validation layer (script, 785 tests) | Layer loaded in 784, missing in none, 0 tests with a new `VUID-` | | Negative control | Only the 3 new tests fail (see below) | | Worktree restored | `git status --porcelain` empty; the 3 tests pass again after the rebuild | <details><summary>Negative control output (truncated)</summary> ``` agc_driver_pointer_hop_table ....***Failed GetImageResource dword 0 is not a valid runtime value; chain: LoadAddressU32@pc=0x000000b4(GetAddressResource(LoadAddressU32@pc=0x000000a8(GetAddressResource(Phi(Immediate, Phi(ReadConstBuffer@pc=0x00000074(...), CompositeExtractU32x4(Ballot(LogicalAnd), Immediate))) agc_driver_pointer_vsharp_fixed_offset_table ....***Failed GetImageResource dword 0 is not a valid runtime value; chain: ReadConstBuffer@pc=0x0000008c(GetBufferResource(LoadAddressU32@pc=0x00000080(GetAddressResource(ReadConstBuffer@pc=0x00000074(... agc_driver_pointer_vsharp_fixed_table ....***Failed (same chain) 80% tests passed, 3 tests failed out of 15 ``` </details> ## Previous findings I can't list them one by one because the earlier review text is not available. Instead I checked the points raised by other reviewers on this thread: - **The guard against `main`'s `UnwrapTableRead` path (adriadam10):** the guard is at `core/shader/recompiler/Optimization/src/ResourceTracker.cpp:1201`. It runs after the hop walk, and the merged path is taken only when `UnwrapTableRead` returns null. For a pointer-keyed column, the materializer stores each record's pointer before it follows `pointerHops`, and the SPIR-V lookup uses that same record-level pointer (`parentPointer`). The two sides agree, so allowing hops there is consistent. - **A fixed offset under a runtime V#:** it still refuses, at `ResourceTracker.cpp:860` (`if (fixed) return false;`). - **The refusal pins in the test policy (oneandonlydean, MarcZX10):** none of the tests in the diff assert `not a valid runtime value` any more. - **`FormatVersion`:** 67, above `main`'s 52. ## New findings ### Blocking None. ### Non-blocking None. ## Not verified - No run on non-lavapipe hardware here. The NVIDIA RTX 2000 Ada and AMD RX 6300 runs at earlier heads and at this head (AMD) are reported by the contributor bots, not reproduced. - The title results (Gran Turismo 7 replay, Marvel's Spider-Man 2) are author- and tester-reported. I did not launch any title. - Measured against `main`, this PR's diff also carries the still-open #7223, #7395 and #8939. Whether to land the combined branch or the parents first is a maintainer decision, discussed in the thread. My verdict covers the merged tree as a whole. <!-- anyps5-bots job=3365 head=7aa70b1bd2fcda0a48d036901c3de73ad6c6f739 -->
MarcZX10 commented 2026-11-16 13:06:27 +00:00 (Migrated from github.com)

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

Review: COMMENTED


Reviewed — no blocking findings

The inspected planner, materialization, and cache paths show no verified blocking defect; the full changed-file review and tests were not completed.

What I ran

Inspected the prepared diff and targeted source ranges at head d896ff422bf8e9bc919af9ae027f983d74ca6d26 using repo_read.py reader tools. No tests were run.

Results

Check Result Note
Targeted source review passed No blocking defect verified in inspected paths
Test execution not run Not run in this review
Full changed-file review not run Several added-line ranges were not read

Findings

Blocking

None verified in the inspected code.

Non-blocking

None.

Not verified

The review is incomplete: not every added line or changed file was read. ShaderMemory.cpp was read only around the new snapshot retry helper. ResourceTracker.cpp planner paths and related materialization and cache ranges were inspected; other changed files and added-line ranges were not fully reviewed. No tests were run, and the author-reported test results were not independently verified.

Files read: description.md, commits.md, manifest.json, diff.patch, README.md, ResourceTracker.cpp, ResourceMaterializer.cpp, ShaderDiskCache.cpp, SpirvImageEmitter.cpp, and the targeted ShaderMemory.cpp range. files.json was not available as a reader path. The review folder lists ShaderMemory.cpp as excluded from the prepared files due to size; it was accessed only through the reader. Remaining changed files and uninspected ranges were not read.

To get this to a good state

Nothing is required. Optional: complete the remaining changed-line review and run the focused tests before making a formal approval decision.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5920438212 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9457#pullrequestreview-5920438212). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-16T13:06:27Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The inspected planner, materialization, and cache paths show no verified blocking defect; the full changed-file review and tests were not completed. ## What I ran Inspected the prepared diff and targeted source ranges at head `d896ff422bf8e9bc919af9ae027f983d74ca6d26` using `repo_read.py` reader tools. No tests were run. ## Results | Check | Result | Note | |---|---|---| | Targeted source review | passed | No blocking defect verified in inspected paths | | Test execution | not run | Not run in this review | | Full changed-file review | not run | Several added-line ranges were not read | ## Findings ### Blocking None verified in the inspected code. ### Non-blocking None. ## Not verified The review is incomplete: not every added line or changed file was read. `ShaderMemory.cpp` was read only around the new snapshot retry helper. `ResourceTracker.cpp` planner paths and related materialization and cache ranges were inspected; other changed files and added-line ranges were not fully reviewed. No tests were run, and the author-reported test results were not independently verified. Files read: `description.md`, `commits.md`, `manifest.json`, `diff.patch`, `README.md`, `ResourceTracker.cpp`, `ResourceMaterializer.cpp`, `ShaderDiskCache.cpp`, `SpirvImageEmitter.cpp`, and the targeted `ShaderMemory.cpp` range. `files.json` was not available as a reader path. The review folder lists `ShaderMemory.cpp` as excluded from the prepared files due to size; it was accessed only through the reader. Remaining changed files and uninspected ranges were not read. ## To get this to a good state Nothing is required. Optional: complete the remaining changed-line review and run the focused tests before making a formal approval decision.
MarcZX10 commented 2026-11-18 03:22:12 +00:00 (Migrated from github.com)

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

Review: APPROVED


Reviewed — looks good

Nothing blocks this change; the review supports merging based on the inspected code and reported validation.

What I ran

Reviewed head 709efea84b94c3377f8734937e22def0065b79f0. No build or tests were run. Read the prepared description, commit list, manifest and diff, plus targeted pinned-head ranges in ResourceTracker.cpp, ResourceMaterializer.cpp, SpirvImageEmitter.cpp and ShaderDiskCache.cpp. The full ShaderMemory.cpp was excluded by the review bundle; its changed hunks were inspected in the diff only.

Results

Check Result Note
Code and diff review passed Planner, snapshot, lookup, cache paths inspected
Build and tests not run Validation described by author, not performed here

Findings

Blocking

None.

Non-blocking

None.

Not verified

The complete ShaderMemory.cpp and runtime behavior on a physical console were not verified. The extensive test results in the PR description are author-reported. Other changed files were reviewed through the prepared diff; targeted pinned-head source ranges were read for the main planner and runtime lookup paths.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5950343890 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9457#pullrequestreview-5950343890). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-18T03:22:12Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change; the review supports merging based on the inspected code and reported validation. ## What I ran Reviewed head `709efea84b94c3377f8734937e22def0065b79f0`. No build or tests were run. Read the prepared description, commit list, manifest and diff, plus targeted pinned-head ranges in `ResourceTracker.cpp`, `ResourceMaterializer.cpp`, `SpirvImageEmitter.cpp` and `ShaderDiskCache.cpp`. The full `ShaderMemory.cpp` was excluded by the review bundle; its changed hunks were inspected in the diff only. ## Results | Check | Result | Note | |---|---|---| | Code and diff review | passed | Planner, snapshot, lookup, cache paths inspected | | Build and tests | not run | Validation described by author, not performed here | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified The complete `ShaderMemory.cpp` and runtime behavior on a physical console were not verified. The extensive test results in the PR description are author-reported. Other changed files were reviewed through the prepared diff; targeted pinned-head source ranges were read for the main planner and runtime lookup paths. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-20 05:57:30 +00:00 (Migrated from github.com)

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

Review: COMMENTED


Reviewed — no blocking findings

The inspected code shows no verified blocking defect, but the review is incomplete because I did not read every changed line or run checks.

What I ran

Reviewed head ef586f90ca52bd89ce0f1dfdc52c59fcec71141d using the prepared review documents and repo_read.py. No commands or tests were run.

Results

Check Result Note
Targeted source review passed Inspected planner, materializer, and emitter changes
Tests not run No checks run for this review
Full changed-line review not run Several changed test files were not fully read

Findings

Blocking

None verified in the inspected code.

Non-blocking

None.

Not verified

I read the description, commits, manifest, and targeted portions of the diff. At the repository head, I read ResourceTracker.cpp, ResourceMaterializer.cpp, and SpirvImageEmitter.cpp. I did not read every changed line in the included test and metadata files; ShaderMemory.cpp was excluded from the review folder and I did not read it through the reader. I did not run tests or build checks. The change therefore needs a complete review before approval.

To get this to a good state

Nothing is required for this comment. Optionally, complete the changed-line review and run the relevant checks before making a formal decision.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5988195682 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9457#pullrequestreview-5988195682). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-20T05:57:30Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The inspected code shows no verified blocking defect, but the review is incomplete because I did not read every changed line or run checks. ## What I ran Reviewed head `ef586f90ca52bd89ce0f1dfdc52c59fcec71141d` using the prepared review documents and `repo_read.py`. No commands or tests were run. ## Results | Check | Result | Note | |---|---|---| | Targeted source review | passed | Inspected planner, materializer, and emitter changes | | Tests | not run | No checks run for this review | | Full changed-line review | not run | Several changed test files were not fully read | ## Findings ### Blocking None verified in the inspected code. ### Non-blocking None. ## Not verified I read the description, commits, manifest, and targeted portions of the diff. At the repository head, I read `ResourceTracker.cpp`, `ResourceMaterializer.cpp`, and `SpirvImageEmitter.cpp`. I did not read every changed line in the included test and metadata files; `ShaderMemory.cpp` was excluded from the review folder and I did not read it through the reader. I did not run tests or build checks. The change therefore needs a complete review before approval. ## To get this to a good state Nothing is required for this comment. Optionally, complete the changed-line review and run the relevant checks before making a formal decision.
MarcZX10 commented 2026-11-23 05:54:21 +00:00 (Migrated from github.com)

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

Review: APPROVED


Reviewed — looks good

Nothing blocks this change; the points below are optional.

What I ran

  • Reviewed head 4fedba5e36d86bcfa682c276bf1a6fec02381b51 using the pinned repo_read.py reader.
  • No commands or tests were run during this review.

Results

Check Result Note
Changed code review passed Core planner logic and test wiring inspected
Tests not run Author and CI results are reported in the PR description

Findings

Blocking

None.

Non-blocking

None.

Not verified

  • Did not run tests or independently validate the reported results.
  • Read the changed files core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_table_tests.cmake, core/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cpp (changed regions), core/shader/recompiler/Optimization/src/ResourceTracker.cpp (changed regions), core/shader/recompiler/ShaderDiskCache.hpp, and docs/dev/debt/shader.md (changed region). All changed files are listed as included in the review manifest; unrelated file regions and excluded-by-rule files were not reviewed.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6017122619 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9457#pullrequestreview-6017122619). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-23T05:54:21Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change; the points below are optional. ## What I ran - Reviewed head `4fedba5e36d86bcfa682c276bf1a6fec02381b51` using the pinned `repo_read.py` reader. - No commands or tests were run during this review. ## Results | Check | Result | Note | |---|---|---| | Changed code review | passed | Core planner logic and test wiring inspected | | Tests | not run | Author and CI results are reported in the PR description | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified - Did not run tests or independently validate the reported results. - Read the changed files `core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_table_tests.cmake`, `core/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cpp` (changed regions), `core/shader/recompiler/Optimization/src/ResourceTracker.cpp` (changed regions), `core/shader/recompiler/ShaderDiskCache.hpp`, and `docs/dev/debt/shader.md` (changed region). All changed files are listed as included in the review manifest; unrelated file regions and excluded-by-rule files were not reviewed. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-26 11:45:36 +00:00 (Migrated from github.com)

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

Review: APPROVED


Reviewed — looks good

The reviewed head is a3617bb2555c5f5a39bafa0f792951b8e40dc11e; source inspection found no concrete defect in the pointer table planning changes, and no tests were run in this review.

What I ran

  • Read the prepared description, commit list, diff, manifest, and all five changed files at the pinned head using repo_read.py.
  • Commands run: none. No build or tests were run.

Results

Check Result Note
Source review passed Changed files read
Build and tests not run No local execution

Findings

Blocking

None.

Non-blocking

None.

Not verified

No build, tests, or runtime validation were performed. The author and CI report extensive test runs in the PR description; those reports were not independently verified here. All changed files listed in the manifest were included and read: agc_driver_image_table_tests.cmake, ImageTable.cpp, ResourceTracker.cpp, ShaderDiskCache.hpp, and shader.md. files.json was not available as a review document; the reader's file listing confirmed the five changed files and their inclusion.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6073581343 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9457#pullrequestreview-6073581343). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-26T11:45:36Z. **Review:** APPROVED --- # Reviewed — looks good The reviewed head is `a3617bb2555c5f5a39bafa0f792951b8e40dc11e`; source inspection found no concrete defect in the pointer table planning changes, and no tests were run in this review. ## What I ran - Read the prepared description, commit list, diff, manifest, and all five changed files at the pinned head using `repo_read.py`. - Commands run: none. No build or tests were run. ## Results | Check | Result | Note | |---|---|---| | Source review | passed | Changed files read | | Build and tests | not run | No local execution | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified No build, tests, or runtime validation were performed. The author and CI report extensive test runs in the PR description; those reports were not independently verified here. All changed files listed in the manifest were included and read: `agc_driver_image_table_tests.cmake`, `ImageTable.cpp`, `ResourceTracker.cpp`, `ShaderDiskCache.hpp`, and `shader.md`. `files.json` was not available as a review document; the reader's file listing confirmed the five changed files and their inclusion. ## To get this to a good state Nothing is required.
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!9457
No description provided.