fix(shader): plan several T#s read through one pointer-loaded V#, keeping the V# real for their other uses #9790

Open
EagleBearerYS wants to merge 40 commits from upstream-pr/9790 into main
EagleBearerYS commented 2026-10-22 15:05:53 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-22T15:05:53Z.


What

This is stacked on #9457.

With #9457, Marvel's Spider-Man 2 (PPSA03016) gets past ReadConstBuffer@pc=0x8560. It then stops at 131 s in compute 0x11e2b38300 (hugodearaujo's run):

GetImageResource dword 0 is not a valid runtime value; chain: ReadConstBuffer@pc=0x00008fa0(GetBufferResource(LoadAddressU32@pc=0x00008f54(GetAddressResource(Phi(Phi(ReadConstBuffer@pc=0x00001fc4(...

hugodearaujo's IR (comment) shows the shape:

  • a V# loaded at pc 0x8f54 through the record's pointer (record dwords 2 and 3, the low word merged with a constant by a Phi);
  • that V# feeding two buffer handles, a T# read at 0x0 (pc 0x8fa0) and one at +0x4c0 (pc 0x9000), each sampled;
  • the second T#'s dwords 0 and 1 also moved into the pointer registers on one edge (register reuse).

#9457's nested tables refuse both parts:

  • The shared V#: the T#'s parent V# may feed only buffer handles whose reads all belong to that T#.
  • The other uses: a T# word may have no user but its descriptor handle. d132754dbe added that check after a T# read with another user crashed lavapipe. Planning rewrites the V# handle such a read goes through, and drops the V#'s word loads.

The change, three commits and a test-only one:

  1. Several T#s per V#: a parent V# whose word reads feed several buffer handles is accepted when every handle's reads are words of T#s or S#s planned from it.
    • The parent column interns to one source and is read once.
    • Each child keeps its own offset (0 and 0x4c0 here).
    • A handle with any other use still refuses.
  2. A real V# for the other users: a T# or S# word that also feeds another instruction is now read through an unrewritten copy of its V# handle. That V#'s four word loads stay real, through the record pointer.
    • So that read is a BDA read of the guest's own V# at dispatch, and no kept read goes through a rewritten handle, which was d132754dbe's crash.
    • The descriptor handles still take the snapshot. A word read this way can therefore differ from the snapshot if the guest changes the V# in between.
    • Still refused:
      • a V# whose words aren't loads through the record pointer, for example one that only the snapshot holds;
      • a data read through the V#;
      • deeper nesting.
  3. A scalar load's base drops its low two bits (47a4e592ee), as SMEM does. The RDNA 2 ISA guide gives the S_LOAD address as SGPR[base] + inst_offset + { M0 or SGPR[offset] or zero } and says of every component, the base included, that "the two LSBs are ignored and treated as if they were zero" (AMD, "RDNA 2" Instruction Set Architecture: Reference Guide, 2020-11-30, §7.2.1 S_LOAD_DWORD, Scalar Memory Addressing, page 52 of 283; PDF). @jotitadev found it on macOS (review): a T# whose dword 0 ends in 01 made the read through its words start one byte past the snapshot and fault.
    • The emitted read masks the handle pair's low base word with ~3, and so does the anchored direct read.
    • The materializer's ScalarAddressDword starts from the cleared base, so the records behind such a pointer are read instead of being left Unmapped.
    • The anchored-read part has no red of its own: without it, the anchored read sees an unaligned address and falls back to the lookup, which the rest of the commit already masks. It's kept so the direct path uses the cleared base too.
    • The test-only commit (0ce262419e) places the shared V# reuse case's texel arrays at +0x100 and +0x300 of a 1024-aligned array, so the T#s' dword 0 ends in 01 and 11 on every platform, as it did in that macOS build.
  • Debt: #9457's "Nested image tables" line says what is accepted now.

Overlap:

  • The stack: this PR's base is #9457 (on #8939), so their overlaps apply.
  • With #9633 and #9749: only the image-table test registration lists in CMakeLists.txt conflict, the same lines #9457's own registrations touch. Keeping both resolves it. The product files auto-merge.
  • Composition: on a local merge with #9749's head, the new tests and the related pointer and image-table set (34 tests) pass.
  • Other open PRs touching these files: this branch's git merge-tree conflicts are the same as #9457's head's, so it adds none. That covers #8881, #8564, #7880, #9748, #9335, #9020, #8625 and #8077. #9193, #8406, #8339, #8281 and #7803 merge cleanly with both.
  • FormatVersion: 98, this PR's own number on the stack's ladder (see Tested). No serialized structure changes.
  • #20519 and #22424 (slopezjur, the opt-in bindless image heap and, on it, layout-only pointer tables): #7395's and #9457's conflicts (see #7395's Overlap), plus this PR's own in ResourceTracker.cpp. Its helpers sit above TryMakeTableColumn, which takes #20519's dynamic parameter. In the parent-pointer path, its TryMakeTableColumn call takes the dynamic argument, and its otherUsers and rereadable refusals return runtimeAddress() like #20519's lines around them, which still returns false with the heap off. Its own test options keep both, and its FormatVersion conflict keeps this PR's number, above #20519's 89. Merge order: this stack first, as proposed in #20519's thread (comment). If #20519 lands first, a merge of main resolves it here.

Tested

  • Linux, Mesa llvmpipe: all in ImageTable.cpp, in hand-written RDNA.
    • agc_driver_pointer_vsharp_shared_table: the record pointer at dwords 2/3 of a waterfall-keyed record, its low word merged with 0xea, a V# at the pointer, and two buffer handles reading T#s at 0x0 and 0x4c0.
      • Its IR has the title's shape: two GetBufferResources over the same four LoadAddressU32s.
      • Every group's two texels are checked through taken, moved and repointed records, with the same artifact, untouched input, and nothing written past the output.
      • A control with a data read through a third handle on the V# still refuses.
    • agc_driver_pointer_vsharp_shared_reuse_table: the same, plus T#2's dwords 0/1 moved into the pointer registers on one edge before a later s_load through them.
      • Both T#s are checked, along with the word that later load reads from the guest at T#2's dwords + 0x10 (backed by a snapshot at that non-canonical address).
    • agc_driver_nested_image_table and agc_driver_nested_sampler_table:
      • d132754dbe's "a T# with another consumer" and "an S# with another consumer" cases are now accepted, and the other consumer reads the right word.
      • A control whose V# comes from the keyed table record (not re-readable) still refuses.
    • Red: with ResourceTracker.cpp at #9457's head, those four tests fail with "GetImageResource dword 0 is not a valid runtime value" (the sampler test with "GetSamplerResource ..."), the title's text.
  • GitHub's runners (run):
    • Linux: the four tests fail on #9457's head in all 3 runs. They and four other pointer-table tests pass 10 times each with the change.
    • Windows: the runner builds it, and its Vulkan tests skip there.
    • Suites:
      • On Windows, libc (143 tests) and libkernel (207) pass on both arms.
      • On Linux, libkernel (197) passes. libc fails 1 of 116 on both arms, #9457's head and this PR, at precise_wait: "PreciseSleepUs(50) median overslept target bound" (116147 and 115847 ns, against its 90 µs bound).
      • It's a timing test outside these files, on GitHub's hosted runners. This run started before our verify runs relaxed its bounds.
  • CI's Linux job mirrored on a cloud Linux machine. The failures are the machine's three IPv6 tests and the agc_driver_sgpr_pattern_fill_keys timing flake under --parallel 4 (it passes alone).
  • Validation layer, #9457 against this PR (CONTRIBUTING's shader rule), on one GitHub Linux runner (run):
    • Setup: both runs used VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ANYPS5_NO_SHADER_CACHE=1, ANYPS5_REQUIRE_VULKAN=1 and ctest -V. The device was llvmpipe (LLVM 20.1.2) on Mesa 25.2.8, Ubuntu 24.04.5.
    • The tests: the eight named tests; #9457's tree has six of them.
    • The layer: the loader inserted VK_LAYER_KHRONOS_validation 6 times on #9457's tree and 8 with this PR. Neither log has was not found but was requested by env var VK_INSTANCE_LAYERS.
    • The messages: both logs report only VUID-VkDeviceCreateInfo-pNext-pNext. This PR adds no VUID- message.
  • check_conventions.py: passes, with no comment lines added.
  • Marvel's Spider-Man 2 (PPSA03016 01.004.003), by @hugodearaujo (comment): test/sm2-9790-on-c00cb0f875 (aeb0b65e8f) with his #9424 merged in, on Linux 7.2.11, AMD Radeon RX 9070 XT, RADV Mesa 26.2.5, Release, a cold shader cache, one run. That branch is this PR's two commits on c00cb0f875, patch-identical to 0e78959001 and 53523163d2, without the later main merges. The title gets past ReadConstBuffer@pc=0x8fa0 and stops at 135 s later in the same shader, at ReadConstBuffer@pc=0x9a50, with "GetImageResource dword 0 is not a valid runtime value". agc_shader_replay refuses the new request at the same place. That stop is a different shape: a T# in an array inside the pointer-loaded V#'s buffer, at an offset of (word >> 16) * 32 where the word is read through the same V#. This PR still refuses that as a data read through the V#, and it's a follow-up.
  • 57bf487021, main 499b1cf9fc merged in (clean; the PR's own diff is unchanged), on GitHub's runners (run):
    • Linux: the eight tests above, two image-table tests main has (agc_driver_image_table_vouched_lookups and agc_driver_image_table_vouch_queued_draws) and the shader disk cache test pass 10 of 10, none skipped.
    • Validation, main against this head, in the same run: main's tree ran the three of these tests it has. The loader inserted VK_LAYER_KHRONOS_validation 3 times on main and 110 times with this PR, and neither log has was not found. Both logs report only VUID-VkDeviceCreateInfo-pNext-pNext, so this PR adds no VUID- message.
    • Windows: the runner builds them, and the Vulkan tests skip there.
    • Suites: on Linux, libc and libkernel pass. On Windows, libkernel's guest_raise_in_system_call failed in the first attempt with this head, and the rerun of that job passed both suites. The libc and libkernel suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • A difference from main on lavapipe, with an unmapped record pointer: main and #9457 refuse these shapes at planning, at compile time. With this PR they compile, and the loads the second commit keeps real miss the BDA table, so llvmpipe crashes instead of reporting the fault.
    • In the SPIR-V, StopBdaInvocationIf ends the invocation before that load, but llvmpipe still performs the uniform load from address 0.
    • llvmpipe does this for any missed scalar BDA load. A probe with no image table, an s_load_dword through an unmapped pointer read from a buffer, also crashes on a load from address 0. It ran on this PR's first commit, but it has no image table, which is what this PR changes, and the files that emit these loads (SpirvBdaRead.cpp, SpirvBdaFault.cpp, SpirvRuntimeBuffer.cpp and SpirvMemoryInstructions.cpp) are identical to main's.
    • With mapped memory, as a guest has, the loads read the guest's bytes.
    • On an RTX 3070 Laptop GPU (NVIDIA 617.42, Windows 11, pass/fail only), on a probe branch: test/9790-unmapped-record (4dd9a2563d), this PR's head plus an unmapped record pointer in the two shared-V# tests.
      • The shader that crashes llvmpipe faults cleanly there, with no device loss. The guard stops the load and reports BDA access failed: address=0x7f12345000 instruction=0x90 bytes=1 stage=4 reason=1.
      • The plain shared shader faults through the image table, with selected the descriptor at 0x7f12345000: unmapped, as on llvmpipe.
      • Not tested: an unmapped record pointer on other real GPUs and drivers (AMD, Intel).
  • 809d8804c1, a merge of #9457's 7f3a25e0cb, which merges main 0db47b263d. The only conflict was ShaderDiskCache.hpp's FormatVersion line: main moved to 45 (#7831), and this branch keeps its 46. On GitHub's runners (run), the pointer, nested, image-table and disk-cache sets (27 tests) pass 10 runs in a row on Linux. On Windows the set has 29, with two Windows-only disk-cache tests: they build, 5 pass 10 runs in a row, and the other 24, which need a Vulkan device, skip. The libc and libkernel suites pass on both, run with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners. An earlier run linked here didn't run this set, so it's replaced.
  • The low-bits commits, 47a4e592ee and 0ce262419e, on GitHub's runners:
    • Red, with the four product files of 47a4e592ee reverted on 0ce262419e (run, 3 runs): on Linux, agc_driver_pointer_vsharp_shared_reuse_table crashes llvmpipe, agc_driver_bda_anchor_reads fails "scalar loads from a base with low bits 1 byte 32784 is 0x87618183, expected 0x61818380", and agc_shader_memory and agc_shader_bindless fail "scalar address rule: a base with low bits 1 is not dword-aligned"; the other 14 pass. On Windows, agc_shader_memory and agc_shader_bindless fail with the same rule line.
    • Green at 0ce262419e (run): on Linux, 18 of 18 tests pass 10 runs in a row, none skipped; on Windows, 15 pass 10 runs in a row and the 3 that need a Vulkan device (agc_driver_bda_anchor_reads, agc_driver_pointer_vsharp_shared_table and _reuse_table) skip; none 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.
    • 47a4e592ee alone (run, 3 runs): on Linux 18 of 18 pass; on Windows 15 pass and the same 3 skip.
    • Validation layer, the base against 0ce262419e, on the Linux runner (run): the layer loaded 3 times on the base and 30 with the change, and both logs report only VUID-VkDeviceCreateInfo-pNext-pNext, so the change adds no VUID- message.
  • cfd61b79c7, a merge of #9457's dc18bf7bf7 (which carries #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: 42 run, 42 pass, 0 skip, 0 fail. Windows: 44 run, 20 pass, 24 skip (Vulkan device tests; the runner has none), 0 fail.
    • The full ^agc set once (run): Linux 984 run, 919 pass, 64 skip, 1 fail; Windows 1003 run, 272 pass, 729 skip, 2 fail. The failures are agc_driver_sgpr_pattern_fill_keys on Linux ("the dispatch completed 17 times without a pending write over the keys") and agc_driver_pipelined_metadata_pass and its _draw_pipeline variant on Windows (vkCreateInstance returns -9 on the device-less runner). main 379b1dca32 shows the same three with the same messages (run); agc_driver_sgpr_pattern_fill_keys failed 1 of 4 runs there.
    • The libc and libkernel suites pass on both runners, run with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • Validation, main 379b1dca32 against cfd61b79c7 (run), on one GitHub Linux runner (llvmpipe, LLVM 20.1.2) with the setup above and the focused set:
    • main's tree ran the 24 of these tests it has, 24 pass. This head ran 42: 42 pass, 0 skip, 0 fail.
    • The loader inserted VK_LAYER_KHRONOS_validation 8 times on main and 26 times with this head, and neither log has was not found.
    • Both logs report only VUID-VkDeviceCreateInfo-pNext-pNext, so the refreshed head adds no VUID- message.
  • ab388afb74, 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: 42 run, 42 pass, 0 skip, 0 fail. Windows: 44 run, 20 pass, 24 skip (no Vulkan device), 0 fail. The libc and libkernel suites pass on both, run with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • 6779c1495a, 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: 42 run, 42 pass, 0 skip, 0 fail. Windows: 44 run, 20 pass, 24 skip (no Vulkan device), 0 fail.
    • The libc suite passes on both (143 tests on Linux, 170 on Windows) and the libkernel suite on Linux (206). On Windows, libkernel's guest_raise_in_system_call timed out at 30 s, 220th of 222; this PR changes nothing in libkernel. Run alone on this head 20 times in a row (run), it and guest_raise_exception pass on Windows, and both suites pass on both runners. The suites ran 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 6779c1495a, which carries #9457, 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, 68 entries, pass on both GPUs, agc_driver_pointer_vsharp_shared_table and _shared_reuse_table among them.
    • With ResourceTracker.cpp at #9457 and the rest of this PR kept, exactly the four tests this description names fail on both GPUs with GetImageResource dword 0 is not a valid runtime value: agc_driver_nested_image_table, agc_driver_nested_sampler_table, agc_driver_pointer_vsharp_shared_table and _shared_reuse_table. The other 19 table tests pass.
    • Of 269 agc_ entries, the same ones fail with and without the stack, none of them table tests.
  • Marvel's Spider-Man 2 (PPSA03016 01.004.003) at 6779c1495a on current main, by @hugodearaujo (comment): this head merged into main f95acfc948 (clean; main has #9424), Linux 7.2.11, RX 9070 XT, RADV Mesa 26.2.5, Release, a fresh shader cache in each run, X pressed every 30 s, 480 s limit.
    • main f95acfc948 alone stops at 211 s, at the first dispatch of the compute shader whose s_swappc_b64 at pc 0x1fe0 calls a computed target, with GetImageResource dword 0 is not a valid runtime value (chain from ReadConstBuffer@pc=0x000084bc).
    • With this PR, 2 of 2 runs have no recompile error. Both end when his VRAM guard stops the game, at 270 s and 223 s, as free VRAM drops from about 8.4 GB to 0.6 GB within 10 s. In the run with APS5_DUMP_SHADERS=1, that shader is first dispatched at 206 s and prepares: no .prepare.req or _failed.req is written for it.
    • agc_shader_replay on this tree still refuses the four .prepare.req files saved at the earlier stops, at ReadConstBuffer@pc=0x9a50. They came from trees without main's table-call linking changes (0a4027df9a, ef2b164b15, 01e7d158b6); he reads the program linked at dispatch as probably different now, which can't be shown, since a .prepare.req is written only when preparation fails.
  • Apple M2 Max with MoltenVK, by @jotitadev (review): macOS 27.2, x86_64 Release under Rosetta, 6779c1495a merged onto main b986c11a34 with the macOS port changes (FormatVersion resolved to a new number). MoltenVK 1.4.2 (Vulkan SDK 1.4.363.0) and MoltenVK main with SPIRV-Cross #2704, ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1.
    • Green: the 19 ^agc_driver_(pointer_|nested_|bda_anchor) tests pass 3 of 3 runs on each driver, _shared_reuse_table and bda_anchor_reads included.
    • Red: with only the source side of 47a4e592ee reverted, _shared_reuse_table fails with BDA access failed: ... instruction=0xd8 bytes=1 stage=4 reason=1 and bda_anchor_reads with scalar loads from a base with low bits 1 byte 32784 is 0x87618183, expected 0x61818380, on both drivers; the other 17 pass.
    • Validation layer (SDK driver): no VUID that points at this change. The 34 VUID-vkCreateDescriptorSetLayout-support-09582 come from the image table layout on MoltenVK (KhronosGroup/MoltenVK#2573), as on the base; the 20 VUID-VkSamplerCreateInfo-samplerMipLodBias-04467 in nested_sampler_table come from MoltenVK's portability subset.
    • The whole ^agc suite (SDK driver): the same 41 failures as the base; with MoltenVK main + #2704, the base's 40 less cross_workgroup_flag, nothing new.
  • 5b81551960: f447f2bf03, a merge of #9457's 62992d7437, the format commit fefc0c352c, the test-only commit 4125a67e6e, and 5b81551960, a merge of #9457's merge of main 0cd07dc4ab (run).
    • f447f2bf03 takes #9457's merge of #8939 (with #7223's 153400ba2b and the test-only commits of #7395 and #8939) and #9457's format commit. Clean, and this PR's own diff is unchanged.
    • fefc0c352c gives this PR its own disk-cache format, 57. 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.
    • 4125a67e6e drops two checks that expected planning to refuse a shape with not a valid runtime value, from the assertions @oneandonlydean listed on #9969: a T# with another consumer whose V# only the table snapshot holds, and a data read through a third handle on a pointer-loaded V#'s words. The two summary lines no longer name refusals, and the sampled results stay.
    • 5b81551960 merges #9457's merge of main 0cd07dc4ab, with #9457's resolution of mrfelek's #10228. Clean here, and this PR's changed lines are the same.
    • The shared-V#, BDA anchor, nested, vouch and SGPR-fill tests with the disk-cache, bindless and shader-memory tests ran 10 times with no failure. Linux: 28 run, 28 pass, 0 skip, 0 fail. Windows: 30 run, 23 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.
  • 5aa0ca45e7, a merge of #9457's 88620551d5, which carries #7395's test-only commit ca14648806 (the nested-sampler test no longer asserts that an S# with another consumer is refused) (run). The one conflict was that S# case in agc_driver_nested_sampler_table: this PR plans the S# and checks its sampled result (53523163d2), so the merge keeps that check and drops only the refused helper, which nothing uses any more. This PR's diff now adds the S# case with its sampled-result check, where it used to replace #7395's refusal; the test at the head differs from 5b81551960 only by the helper. The shared-V#, BDA anchor, nested, vouch and SGPR-fill tests with the disk-cache, bindless and shader-memory tests ran 10 times with no failure. Linux: 28 run, 28 pass, 0 skip, 0 fail. Windows: 30 run, 23 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.
  • e3196d5721, a merge of #9457's 9a44f18aeb, which carries main 38ccd50f83 and with it #11507's FormatVersion 49 (run). Clean: FormatVersion stays 57, and this PR's diff over #9457 is the same. The ladder is now: main is at 49 since #11507 (hugodearaujo), and #7223, #9508, #9748 and other open PRs use 49 too. Ours take one number each: #7395 50, #8939 51, #10000 52, #9457 53, #10489 54, #9633 55, #9749 56, #9790 57, #10846 59 and #9969 60. 58 is held by our draft #7642 and by #10193 (Celegans12), which carries #7642's commits; #7642 moves above 60 at its next update. The shared-V#, BDA anchor, nested, vouch and SGPR-fill 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: 29 run, 29 pass, 0 skip, 0 fail. Windows: 31 run, 23 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.
  • 4e6a2bfce0: 7147fd71b5, a merge of #9457's 19bed84013, and 4e6a2bfce0, the format commit (run).
    • 7147fd71b5 takes #7395's test-only commit d908758281, which drops agc_driver_nested_image_table's two checks that a valid shader is refused (a V# with another buffer consumer and a T# with another consumer), #7395's merge of #7223's 0dbf5478b2 (yabanana's merge of main f7e84c4cf1) and the format commits below this PR. Two conflicts: FormatVersion, which stays this PR's until the next commit, and tests/execution/ImageTable.cpp, where d908758281 removes the shared-V# refusal check and its helper next to this PR's T#-with-another-consumer case; the merge takes the removal and keeps this PR's case, which plans that T# and checks its sampled words. This PR's diff no longer removes the T# refusal check itself, since #7395 now does.
    • 4e6a2bfce0 gives this PR its own disk-cache format, 59 (58 is #10193's). The ladder: main is at 49 since #11507 (hugodearaujo), and #9508, #9748 and other open PRs use 49 too; #7223 is at 50 since yabanana's 0dbf5478b2. Ours take one number each: #7395 51, #10000 52, #8939 53, #10489 54, #9457 55, #9633 56, #9749 57, #9790 59, #9969 60 and #10846 61. 58 is held by #10193 (Celegans12), which carries the commits of our draft #7642, and #7642 takes 62 at its next update.
    • The pointer, nested, image-table and disk-cache tests with agc_shader_bindless, agc_shader_memory and 17 other agc_shader_ tests (table snapshots, selected records, memo budgets and pair layouts) ran 10 times with no failure. Linux: 46 run, 46 pass, 0 skip, 0 fail. Windows: 48 run, 25 pass, 23 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.
  • eddf966ddb, a merge of #9457's 31bd0dea17, which carries #7395's 4769d5a745, which drops "and refusals" from two nested-table test summary lines (run). It's clean and brings only that change. The image-table, nested, pointer, disk-cache, bindless and shader-memory tests ran 10 times with no failure. Linux: 46 run, 46 pass, 0 skip, 0 fail. Windows: 48 run, 25 pass, 23 skip, 0 fail; the 23 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.
  • a5efbc3ec5, a merge of #9457's head 4eaf19b304, oneandonlydean's merge of main b08c539c50 into #9457 (run).
    • The one conflict was CMakeLists.txt, from #12862's split, resolved with tools/agc_test_split.py resolve. It moves this PR's registrations into tests/cmake/agc_driver_image_table_tests.cmake, next to the stack's (+4 −2 against 4eaf19b304).
    • FormatVersion merged cleanly and stays this PR's own. Apart from the move, this PR's diff is unchanged.
    • The count: with -DBUILD_TESTING=ON, ctest -N gives 3098 tests: main b08c539c50's 3081 plus the stack's 17 tests (#9457's 15 and this PR's 2), each listed once.
    • ×10 of this PR's verify set. Linux: 21 run, 21 pass, 0 skip, 0 fail. Windows: 21 run, 2 pass, 19 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 199 and 308 tests on Linux and 226 and 330 on Windows, with 0 failed. The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
    • Validation, VK_LAYER_KHRONOS_validation on GitHub's Linux runner (run), main b08c539c50 against this merge, for the same tests. The loader inserted the layer 2 times on main and 19 with this merge. The only VUID in either arm is VUID-VkDeviceCreateInfo-pNext-pNext, so this merge adds none. agc_driver_image_table fails in that mode in both arms, because the mode treats that main message as a failure.
  • NVIDIA RTX 2000 Ada Generation at a5efbc3ec5, from TechLevelZero's NVIDIA bot (report): driver 595.99.02, Ubuntu 26.04.1, this head merged onto main 3741ca9, 2,540 of 3,121 tests selected.
    • 2,491 passed, 5 failed and 44 skipped. None of the failures is new: 3 also fail on main, and 2 are unstable on main.
    • With VK_LAYER_KHRONOS_validation, over 947 tests on the GPU, there are no new validation IDs against main. 17 of the stack's nested and pointer table tests ran with the layer but aren't in main's baseline, so they weren't compared.
  • 172dd67c21: 8bcf1dd4bc, a merge of #9457's 04d09eef56, and the format commit 172dd67c21 (run). The one conflict was FormatVersion, which the format commit moves from 59 to 71, above #9457's 67 and #9633's 70. This PR's own diff is otherwise unchanged. The image-table, disk-cache, BDA anchor-read, shader-memory, nested and pointer tests, with #7694's agc_shader_descriptor_phis, pass 10 runs in a row. Linux: 32 run, 32 pass, 0 skip, 0 fail. Windows: 34 run, 10 pass, 24 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, 6 failed, none new (3 also fail on main, 3 unstable on main), 45 skipped, with no new validation IDs (990 tests on the GPU).
  • a12bac51d6, a merge of #9457's 0a4f7cdbed, which carries #7395's merge of main 4f64f81ef7 (run). Clean: FormatVersion stays 71, and this PR's own diff is unchanged. The ResourceMaterializer.cpp resolution, with #12246's view loop moved back into Snapshot, comes from #7395's merge (see #7395). The image-table, disk-cache, BDA anchor-read, shader-memory, nested and pointer tests, with #7694's agc_shader_descriptor_phis, pass 10 runs in a row. Linux: 32 run, 32 pass, 0 skip, 0 fail. Windows: 34 run, 10 pass, 24 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.
  • Ghostrunner (PPSA03685), replays of the stack by @xXPBSXx (comment): a request captured in a game run on main 92d2fdc343 (NVIDIA GeForce RTX 4080 SUPER, driver 610.74, Windows, Release), replayed with agc_shader_replay --prepare, no GPU. Each PR's diff over main, without its tests, was applied alone on 92d2fdc343, this PR's at a12bac51d6.
    • Without the stack, 2 of 2 title runs ended after 121 s and 97 s on one compute shader with GetImageResource dword 0 is not a valid runtime value, a descriptor reached through a ReadFirstLane/Ballot waterfall over constant-buffer values. The replay fails the same way, and so does #7395's diff.
    • With this PR's diff, as with #8939's, #9457's and #9633's, that step passes and the request stops on sampler resource limit exceeded (MaxSamplers was 32; #10000 has since raised it to 64).
    • Their diagnostic, not checked in: with this PR's change and MaxSamplers at 128, the request stops on GetImageResource dword 0 again, so the shader has at least one more chain the stack doesn't resolve.
  • 6b38153c07, 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 71; 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: 17 run, 17 pass, 0 skip, 0 fail. Windows: 17 run, 0 pass, 17 skip (no Vulkan device), 0 fail.
    • @XairRrR approved this head (review). On a Debian 13 VM (GCC 14.2.0, Release, lavapipe on Mesa 26.1.6), the tree merged with main 4f41f4c375 builds. Their selected tests ran 2,233 with no new failures (7 known failures also fail on main), the validation comparison with main over 787 tests shows no new VUID-, and the focused set passes 22 of 22. Both negative controls fail as described: with the tracker change reverted, agc_driver_nested_image_table, agc_driver_nested_sampler_table, agc_driver_pointer_vsharp_shared_table and _shared_reuse_table fail with GetImageResource dword 0 is not a valid runtime value; with the scalar-base low-bits change reverted, _shared_reuse_table crashes in llvmpipe and agc_driver_bda_anchor_reads, agc_shader_memory and agc_shader_bindless fail. Their two non-blocking notes are the SMEM base-alignment source, which What now cites (the RDNA 2 ISA guide, §7.2.1), and the kept descriptor words, which the debt entry discloses.
  • ebaa9b1565, a merge of #9457's 20cc916ce9, which carries main c2eafe4461 with yabanana's #7223 through #8939 and #7395 (×10).
    • The conflicts: ShaderDiskCache.hpp's FormatVersion, which stays 71 (main is at 56 since #7223), and docs/dev/debt/shader.md. There #7395 adds a sentence on a nested child's T# to "Nested image tables", which this PR rewrites. The entry keeps this PR's wording, and the sentence moves into its own entry after it, "Nested image table children", since the two together are over the debt files' 1,000 characters. This PR's other 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: 32 run, 32 pass, 0 skip, 0 fail. Windows: 34 run, 10 pass, 24 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.
    • AMD Radeon RX 6300 (RADV NAVI24) at this head, from TechLevelZero's AMD bot (report): merged onto main 5b1d381, Mesa 25.2.8, Ubuntu 26.04.1, 2,914 of 3,883 tests selected. 2,846 passed, 8 failed and 60 skipped. None of the failures is new: 7 also fail on main, and 1 is unstable on main. With VK_LAYER_KHRONOS_validation, there are no new validation IDs against main, over 990 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.
  • 32a8525931, a merge of #9457's e75a7104b9, which carries main 8eaf82f315 through #8939 and #7395 (×10).
    • The conflict: docs/dev/debt/shader.md, where JJenkx's #15305's "runtime resource snapshot" entry, which comes with main, sits right above "Nested image tables", which this PR rewrites. Both stay: #15305's entry, then this PR's "Nested image tables" and "Nested image table children". 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: 33 run, 33 pass, 0 skip, 0 fail. Windows: 35 run, 10 pass, 25 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 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.
  • 8527df3287, a merge of #9457's 2bbcdd60fc, which carries main 006d11fca5 through #8939 and #7395 (×10).
    • Clean: #7395's merge takes the one conflict with main, frankea's #9020's FormatVersion 57, and FormatVersion stays 71 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: 33 run, 33 pass, 0 skip, 0 fail. Windows: 35 run, 10 pass, 25 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 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.
  • a8ad90a6cc: 6b37286c68, a merge of #9457's 5be1abeb41 into oneandonlydean's a7234e908f (his merge of main 3eb7a74e1c), and the format commit a8ad90a6cc, for oneandonlydean's ask on #9457 (comment). #9457's head carries main 017bd95f5f through #7395 and #8939 (×10).
    • The conflict: only ShaderDiskCache.hpp's FormatVersion line. The merge takes #9457's 81, and the format commit gives this PR 88, the lowest number above 81 that no open PR holds (a check of every open PR's head on 11-13). This PR's own lines are unchanged apart from that line: file by file, its diff over #9457 matches the previous one by patch-id, except ShaderDiskCache.hpp (that line) and docs/dev/debt/shader.md, where its two entries are unchanged and the lines around them are main's newer wording.
    • ×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: 47 run, 47 pass, 0 skip, 0 fail. Windows: 49 run, 10 pass, 39 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.
  • 5e4ba4e635, a merge of #9457's d007acef13, without conflicts, which carries main e22c5fb941 through #9457, #8939 and #7395 (×10).
    • ×10: agc_driver_many_direct_samplers and every test matching ^agc_driver_pointer_, ^agc_driver_nested_, ^agc_shader_nested_, ^agc_driver_image_table, ^agc_shader_memory, ^agc_shader_disk_cache or ^agc_shader_sampler_limits, which takes in every test in this PR's diff over main and main's new agc_shader_memory_coherent_atomic_loads. Linux: 48 run, 48 pass, 0 skip, 0 fail. Windows: 50 run, 11 pass, 39 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 5e4ba4e635: 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.
  • Marvel's Spider-Man 2 (PPSA03016), a related data point from Tamalero, not a run of this PR (comment): on 11-07, main with #9749 stopped at ReadConstBuffer@0x8f3c, on a V# that backs two T#s, at +0x420 and +0x4c0. A local prototype that accepts a pointer-loaded V# whose other users are fixed-offset T# reads gets past it, on main 60afded3d6 with #9749 and #14296. That's the shape this PR handles (its V# at pc 0x8f54 feeds T#s at 0x0 and +0x4c0), at another pc and first offset.
  • f031b24892, a merge of #9457's b0b62f859b, without conflicts, which carries main bd278f3654 through #9457, #8939 and #7395 (×10).
    • FormatVersion: main's 69, this PR's 88. #7395's merge takes #19530's move of main from 68 to 69, and this PR's own diff over #9457 is unchanged.
    • ×10: the same tests as on 5e4ba4e635. Linux: 48 run, 48 pass, 0 skip, 0 fail. Windows: 50 run, 11 pass, 39 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.
  • Apple M5 Pro with MoltenVK, by @kali113 (comment): macOS 27.2.1, AppleClang 21.0.0, x86_64 Release under Rosetta, MoltenVK 1.4.2 (Vulkan SDK 1.4.363.1), validation layer 1.4.363. main 6a86d4d1a9 with #17425's curl build helper, against that tree with this head f031b24892 merged (clean), both with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1 and VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, one ctest -V run of the pointer, nested, BDA anchor, image-table, shader-memory, disk-cache and sampler-limit tests.
    • The base: 52 selected, 38 pass, 13 fail, 1 skips. With this PR: 67 selected, 53 pass, 13 fail, 1 skips. The 15 tests the head has over main, this PR's and the stack's below it, all pass, agc_driver_pointer_vsharp_shared_table, _shared_reuse_table and agc_driver_nested_sampler_table among them. Every test both arms have ends the same way.
    • The 13 failures are the same on both arms: agc_driver_image_table and its packed variants fail their validation-output check on VUID-vkCreateDescriptorSetLayout-support-09582, for a layout of about 262,150 descriptors against MoltenVK's maxPerSetDescriptors of 1,212, as in jotitadev's run above. No other VUID appears with this PR. Both arms skip agc_driver_many_direct_samplers (fewer than 33 samplers per stage or set), and the loader inserted the layer 39 times on the base and 53 with this PR, with no missing-layer warning.
  • ec6c32b269, the format commit (×10), moves FormatVersion from 88 to 87. Pipodi's #18455 reads 88 too since its merge of main (head 81362e7b90), and two identical lines merge without a conflict, so whichever of the two landed second would keep the other's number. 87 is the one number between #9749's 83 and #9969's 89 that no open PR's head held, on checks of every open PR's head at 23:25Z on 14 Nov and again at 01:57Z on 15 Nov, before the push. Nothing else changes.
    • ×10: the same tests as on f031b24892. Linux (job): 48 run, 48 pass, 0 skip, 0 fail. Windows: 50 run, 11 pass, 39 skip (no Vulkan device), 0 fail, with the same tests passing and skipping as on f031b24892. The libc and libkernel suites run 380 and 376 tests on Linux with 0 failed. On Windows, the job's first attempt (job) ran libc's 410 with 0 failed and failed one of libkernel's 404, guest_timed_wait_cpu, 400th of 404, on an AMD EPYC 7763 host: its sceKernelUsleep(100 us) P99 overshoots were 4478, 4666 and 3665 µs against a limit of under 2900 µs. The second attempt (job) ran 410 and 404 with 0 failed. This commit changes only ShaderDiskCache.hpp:16. The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes only precise_wait's median bounds on GitHub's hosted runners. The run's tree had #19899's _putenv_s test fix on top, as on f031b24892's run; it isn't on this branch.
  • aadbb73413, a merge of #9457's d896ff422b, which carries main 328cbf673e through #9457, #8939 and #7395 (×10, with #21255's test change).
    • The conflict: only FormatVersion, where #9457 now takes 95, above this PR's 87. The merge moves this PR to 98. This PR's own lines are unchanged apart from the FormatVersion line.
    • ×10: the same tests as on ec6c32b269. Linux: 55 run, 54 pass, 0 skip, 1 fail. Windows: 57 run, 11 pass, 46 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 aadbb73413 (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 aadbb73413 merged onto main e4caa07950 (a clean merge), against main e4caa07950 alone, ctest -R '^(agc_driver_(bda_anchor_reads|image_table|nested_(image|sampler)_table.*|pointer_.*_table)|agc_shader_.*)$'. main: 58 of 58 pass. This PR: 73 of 73 pass, including the 15 tests main doesn't have: this PR's two (agc_driver_pointer_vsharp_shared_table and _vsharp_shared_reuse_table) and the 13 of #9457, #8939 and #7395. No test skips on either side. The layer was inserted 7 times on main and 21 times with this PR; most agc_shader_* tests create no Vulkan instance. No VUID- line on either side, and every test that creates a device selected the RTX 4090.
  • #8939's null record pointer fix, by the merge 543d3b4867 of #9457's new head (test only, tests/execution/ImageTable.cpp), for #8939's agc_driver_pointer_phi_lane_and_table and agc_driver_pointer_phi_lane_not_table. @frankea's Windows 11 RTX 4090 run (comment) failed them here too, at aadbb73413, 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 17 ^agc_driver_pointer_ and ^agc_driver_nested_ tests pass, none skipped.
    • Windows (run), with Sankalp7317's 4-line _putenv_s fix (#19899) merged for the run only: the first attempt failed in the libkernel suite, where guest_poll, guest_process_time_rdtsc and guest_process_time_rdtsc_scaled exited with 0xc0000409. The re-run of the Windows job (attempt 2) passed: the build, the libc and libkernel suites with 421 and 417 tests and 0 failed, and the 17 tests skipping (no Vulkan device). old..new touches only ImageTable.cpp. The Windows GPU case itself can only be re-run by a tester.
  • 3b2426ac0a, a merge of #9457's dbe3b94942, which carries main d89f26516c through #9457, without conflicts (×10, with #21255's test change).
    • No conflicts: this PR's FormatVersion stays 98, 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: 55 run, 53 pass, 0 skip, 2 fail. Windows: 57 run, 11 pass, 46 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 3b2426ac0a (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.
    • agc_driver_image_table in this PR's ×10: it reached its 30 s timeout once, on an AMD EPYC 7763 runner. It passed in #9969's ×10 (run) and in #9969's run with #21255's test change (run), both on trees that hold this PR's 3b2426ac0a.
    • 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 arm (comment): Arch Linux (kernel 7.3.4), RADV (Mesa 26.2.7), GCC 16.2.1 Release, BUILD_TESTING=ON, validation layer 1.4.363, with ANYPS5_REQUIRE_VULKAN=1 and ANYPS5_NO_SHADER_CACHE=1, ctest -V -R '^agc_driver_pointer_|^agc_driver_nested_|^agc_shader_nested_|^agc_driver_image_table|^agc_shader_memory|^agc_shader_disk_cache|^agc_shader_sampler_limits', 3 runs per arm. #9969's 630bbb0a2e (with #7395, #8939, #9457 and #9790; their merge 2c9689c0c3), merged onto main e1ab104e0a (clean), against main e1ab104e0a alone; it carries this PR's head 3b2426ac0a. main: 39 tests, 38 pass, 1 skip in each run. The arm: 56 tests, 55 pass, 1 skip in each run; the counts include the tests of the arm's other PRs. The one skip is the same in every arm, main's included: agc_driver_image_table_vouched_lookups (the device reports host-imported pages written after a GPU read). The layer was inserted 32 times on main and 48 times in each arm, and never reported missing. No VUID- line in any arm, and every Vulkan test selected the RX 9070 XT.
  • 5821a3e2fa, a merge of #9457's ef586f90ca, which carries main d50640e264 through #9457, without conflicts (×10, with #21255's test change).
    • No conflicts: this PR's FormatVersion stays 98, 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: 55 run, 54 pass, 0 skip, 1 fail. Windows: 57 run, 11 pass, 46 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 410 and 417 tests on Linux and 439 and 438 on Windows, with 0 failed apart from guest_thermal_sensors (below). The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes only precise_wait's median bounds on GitHub's hosted runners.
    • The Linux failure, agc_driver_image_table_packed_guards, also fails on main d89f26516c alone in the same harness on GitHub's runners (run: the ^agc_driver_image_table tests ×10, 29 run, only this one fails). main's own Linux job, on the project's self-hosted runner, passes it at 244b338dd0 (job). fernandomcrsilva's open #21255 changes that test. With #21255's test change on top of #9969's dc97c68c75, which holds this PR's 5821a3e2fa (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.
    • guest_thermal_sensors: libkernel's guest_thermal_sensors reached its 20 s timeout in the Linux suite, on one of GitHub's Intel Xeon 6975P-C runners. It times out in every run I have on those runners, main 0694c4cbd6 alone included (run), and passed in this refresh's runs on Intel Xeon Platinum 8573C and AMD EPYC runners. This PR changes no libkernel file.
    • The Windows tree: the runs' trees had Sankalp7317's 4-line _putenv_s test fix (#19899) on top, because main's Windows test build breaks without it ("'setenv' was not declared" in UploadCacheReadOnlyFlush.cpp, from #18037); it isn't on this branch.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: #9457
  • Fixes: none (related: #6191)
  • Unblocks: Marvel's Spider-Man 2 (PPSA03016, #6191) past ReadConstBuffer@pc=0x8fa0 (hugodearaujo's run, with #9424); its next stop is ReadConstBuffer@pc=0x9a50 in the same shader, a follow-up
  • GPUs tested: Mesa llvmpipe (LLVM 20.1.2), Ubuntu 24.04, on GitHub's Linux runner and a cloud Linux machine; NVIDIA RTX 2000 Ada Generation (driver 595.99.02, Ubuntu 26.04.1; TechLevelZero's NVIDIA bot); AMD Radeon RX 9070 XT (RADV, Mesa 26.2.5), Linux, in hugodearaujo's title run; NVIDIA GeForce RTX 3070 Laptop GPU (617.42), Windows 11, in the unmapped-pointer probe; 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
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4969560845 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9790). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-22T15:05:53Z. --- ### What This is stacked on #9457. With #9457, Marvel's Spider-Man 2 (PPSA03016) gets past `ReadConstBuffer@pc=0x8560`. It then stops at 131 s in compute 0x11e2b38300 ([hugodearaujo's run](https://github.com/boykopovar/AnyPS5/pull/9457#issuecomment-6340285887)): ``` GetImageResource dword 0 is not a valid runtime value; chain: ReadConstBuffer@pc=0x00008fa0(GetBufferResource(LoadAddressU32@pc=0x00008f54(GetAddressResource(Phi(Phi(ReadConstBuffer@pc=0x00001fc4(... ``` hugodearaujo's IR ([comment](https://github.com/boykopovar/AnyPS5/pull/8939#issuecomment-6340144242)) shows the shape: - a V# loaded at pc 0x8f54 through the record's pointer (record dwords 2 and 3, the low word merged with a constant by a Phi); - that V# feeding **two** buffer handles, a T# read at 0x0 (pc 0x8fa0) and one at +0x4c0 (pc 0x9000), each sampled; - the second T#'s dwords 0 and 1 also moved into the pointer registers on one edge (register reuse). #9457's nested tables refuse both parts: - **The shared V#:** the T#'s parent V# may feed only buffer handles whose reads all belong to that T#. - **The other uses:** a T# word may have no user but its descriptor handle. d132754dbe added that check after a T# read with another user crashed lavapipe. Planning rewrites the V# handle such a read goes through, and drops the V#'s word loads. **The change, three commits and a test-only one:** 1. **Several T#s per V#:** a parent V# whose word reads feed several buffer handles is accepted when every handle's reads are words of T#s or S#s planned from it. - The parent column interns to one source and is read once. - Each child keeps its own offset (0 and 0x4c0 here). - A handle with any other use still refuses. 2. **A real V# for the other users:** a T# or S# word that also feeds another instruction is now read through an unrewritten copy of its V# handle. That V#'s four word loads stay real, through the record pointer. - So that read is a BDA read of the guest's own V# at dispatch, and no kept read goes through a rewritten handle, which was d132754dbe's crash. - The descriptor handles still take the snapshot. A word read this way can therefore differ from the snapshot if the guest changes the V# in between. - Still refused: - a V# whose words aren't loads through the record pointer, for example one that only the snapshot holds; - a data read through the V#; - deeper nesting. 3. **A scalar load's base drops its low two bits** (47a4e592ee), as SMEM does. The RDNA 2 ISA guide gives the `S_LOAD` address as `SGPR[base] + inst_offset + { M0 or SGPR[offset] or zero }` and says of every component, the base included, that "the two LSBs are ignored and treated as if they were zero" (AMD, "RDNA 2" Instruction Set Architecture: Reference Guide, 2020-11-30, §7.2.1 `S_LOAD_DWORD`, Scalar Memory Addressing, page 52 of 283; [PDF](https://gpuopen.com/download/rdna2-shader-instruction-set-architecture.pdf)). @jotitadev found it on macOS ([review](https://github.com/boykopovar/AnyPS5/pull/9790#pullrequestreview-5624571510)): a T# whose dword 0 ends in `01` made the read through its words start one byte past the snapshot and fault. - The emitted read masks the handle pair's low base word with `~3`, and so does the anchored direct read. - The materializer's `ScalarAddressDword` starts from the cleared base, so the records behind such a pointer are read instead of being left `Unmapped`. - The anchored-read part has no red of its own: without it, the anchored read sees an unaligned address and falls back to the lookup, which the rest of the commit already masks. It's kept so the direct path uses the cleared base too. - The test-only commit (0ce262419e) places the shared V# reuse case's texel arrays at +0x100 and +0x300 of a 1024-aligned array, so the T#s' dword 0 ends in `01` and `11` on every platform, as it did in that macOS build. - **Debt:** #9457's "Nested image tables" line says what is accepted now. **Overlap:** - **The stack:** this PR's base is #9457 (on #8939), so their overlaps apply. - **With #9633 and #9749:** only the image-table test registration lists in `CMakeLists.txt` conflict, the same lines #9457's own registrations touch. Keeping both resolves it. The product files auto-merge. - **Composition:** on a local merge with #9749's head, the new tests and the related pointer and image-table set (34 tests) pass. - **Other open PRs touching these files:** this branch's `git merge-tree` conflicts are the same as #9457's head's, so it adds none. That covers #8881, #8564, #7880, #9748, #9335, #9020, #8625 and #8077. #9193, #8406, #8339, #8281 and #7803 merge cleanly with both. - **`FormatVersion`:** 98, this PR's own number on the stack's ladder (see Tested). No serialized structure changes. - **#20519 and #22424 (slopezjur, the opt-in bindless image heap and, on it, layout-only pointer tables):** #7395's and #9457's conflicts (see #7395's Overlap), plus this PR's own in `ResourceTracker.cpp`. Its helpers sit above `TryMakeTableColumn`, which takes #20519's `dynamic` parameter. In the parent-pointer path, its `TryMakeTableColumn` call takes the `dynamic` argument, and its `otherUsers` and `rereadable` refusals return `runtimeAddress()` like #20519's lines around them, which still returns `false` with the heap off. Its own test options keep both, and its `FormatVersion` conflict keeps this PR's number, above #20519's 89. Merge order: this stack first, as proposed in #20519's thread ([comment](https://github.com/boykopovar/AnyPS5/pull/20519#issuecomment-6953598764)). If #20519 lands first, a merge of `main` resolves it here. ### Tested - **Linux, Mesa llvmpipe:** all in `ImageTable.cpp`, in hand-written RDNA. - **`agc_driver_pointer_vsharp_shared_table`:** the record pointer at dwords 2/3 of a waterfall-keyed record, its low word merged with 0xea, a V# at the pointer, and two buffer handles reading T#s at 0x0 and 0x4c0. - Its IR has the title's shape: two `GetBufferResource`s over the same four `LoadAddressU32`s. - Every group's two texels are checked through taken, moved and repointed records, with the same artifact, untouched input, and nothing written past the output. - A control with a data read through a third handle on the V# still refuses. - **`agc_driver_pointer_vsharp_shared_reuse_table`:** the same, plus T#2's dwords 0/1 moved into the pointer registers on one edge before a later `s_load` through them. - Both T#s are checked, along with the word that later load reads from the guest at T#2's dwords + 0x10 (backed by a snapshot at that non-canonical address). - **`agc_driver_nested_image_table` and `agc_driver_nested_sampler_table`:** - d132754dbe's "a T# with another consumer" and "an S# with another consumer" cases are now accepted, and the other consumer reads the right word. - A control whose V# comes from the keyed table record (not re-readable) still refuses. - **Red:** with `ResourceTracker.cpp` at #9457's head, those four tests fail with "GetImageResource dword 0 is not a valid runtime value" (the sampler test with "GetSamplerResource ..."), the title's text. - **GitHub's runners** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39792166217)): - **Linux:** the four tests fail on #9457's head in all 3 runs. They and four other pointer-table tests pass 10 times each with the change. - **Windows:** the runner builds it, and its Vulkan tests skip there. - **Suites:** - On Windows, libc (143 tests) and libkernel (207) pass on both arms. - On Linux, libkernel (197) passes. libc fails 1 of 116 on both arms, #9457's head and this PR, at `precise_wait`: "PreciseSleepUs(50) median overslept target bound" (116147 and 115847 ns, against its 90 µs bound). - It's a timing test outside these files, on GitHub's hosted runners. This run started before our verify runs relaxed its bounds. - **CI's Linux job mirrored** on a cloud Linux machine. The failures are the machine's three IPv6 tests and the `agc_driver_sgpr_pattern_fill_keys` timing flake under `--parallel 4` (it passes alone). - **Validation layer, #9457 against this PR** (CONTRIBUTING's shader rule), on one GitHub Linux runner ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39792254737)): - **Setup:** both runs used `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, `ANYPS5_NO_SHADER_CACHE=1`, `ANYPS5_REQUIRE_VULKAN=1` and `ctest -V`. The device was llvmpipe (LLVM 20.1.2) on Mesa 25.2.8, Ubuntu 24.04.5. - **The tests:** the eight named tests; #9457's tree has six of them. - **The layer:** the loader inserted `VK_LAYER_KHRONOS_validation` 6 times on #9457's tree and 8 with this PR. Neither log has `was not found but was requested by env var VK_INSTANCE_LAYERS`. - **The messages:** both logs report only `VUID-VkDeviceCreateInfo-pNext-pNext`. This PR adds no `VUID-` message. - **`check_conventions.py`:** passes, with no comment lines added. - **Marvel's Spider-Man 2 (PPSA03016 01.004.003), by @hugodearaujo** ([comment](https://github.com/boykopovar/AnyPS5/pull/9790#issuecomment-6352612572)): `test/sm2-9790-on-c00cb0f875` (aeb0b65e8f) with his #9424 merged in, on Linux 7.2.11, AMD Radeon RX 9070 XT, RADV Mesa 26.2.5, Release, a cold shader cache, one run. That branch is this PR's two commits on c00cb0f875, patch-identical to 0e78959001 and 53523163d2, without the later `main` merges. The title gets past `ReadConstBuffer@pc=0x8fa0` and stops at 135 s later in the same shader, at `ReadConstBuffer@pc=0x9a50`, with "GetImageResource dword 0 is not a valid runtime value". `agc_shader_replay` refuses the new request at the same place. That stop is a different shape: a T# in an array inside the pointer-loaded V#'s buffer, at an offset of `(word >> 16) * 32` where the word is read through the same V#. This PR still refuses that as a data read through the V#, and it's a follow-up. - **57bf487021, `main` 499b1cf9fc merged in** (clean; the PR's own diff is unchanged), on GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39815390183)): - **Linux:** the eight tests above, two image-table tests `main` has (`agc_driver_image_table_vouched_lookups` and `agc_driver_image_table_vouch_queued_draws`) and the shader disk cache test pass 10 of 10, none skipped. - **Validation, `main` against this head**, in the same run: `main`'s tree ran the three of these tests it has. The loader inserted `VK_LAYER_KHRONOS_validation` 3 times on `main` and 110 times with this PR, and neither log has `was not found`. Both logs report only `VUID-VkDeviceCreateInfo-pNext-pNext`, so this PR adds no `VUID-` message. - **Windows:** the runner builds them, and the Vulkan tests skip there. - **Suites:** on Linux, libc and libkernel pass. On Windows, libkernel's `guest_raise_in_system_call` failed in the first attempt with this head, and the rerun of that job passed both suites. The libc and libkernel suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **A difference from `main` on lavapipe, with an unmapped record pointer:** `main` and #9457 refuse these shapes at planning, at compile time. With this PR they compile, and the loads the second commit keeps real miss the BDA table, so llvmpipe crashes instead of reporting the fault. - In the SPIR-V, `StopBdaInvocationIf` ends the invocation before that load, but llvmpipe still performs the uniform load from address 0. - llvmpipe does this for any missed scalar BDA load. A probe with no image table, an `s_load_dword` through an unmapped pointer read from a buffer, also crashes on a load from address 0. It ran on this PR's first commit, but it has no image table, which is what this PR changes, and the files that emit these loads (`SpirvBdaRead.cpp`, `SpirvBdaFault.cpp`, `SpirvRuntimeBuffer.cpp` and `SpirvMemoryInstructions.cpp`) are identical to `main`'s. - With mapped memory, as a guest has, the loads read the guest's bytes. - **On an RTX 3070 Laptop GPU** (NVIDIA 617.42, Windows 11, pass/fail only), on a probe branch: [`test/9790-unmapped-record`](https://github.com/EagleBearerYS/AnyPS5/tree/test/9790-unmapped-record) (4dd9a2563d), this PR's head plus an unmapped record pointer in the two shared-V# tests. - The shader that crashes llvmpipe faults cleanly there, with no device loss. The guard stops the load and reports `BDA access failed: address=0x7f12345000 instruction=0x90 bytes=1 stage=4 reason=1`. - The plain shared shader faults through the image table, with `selected the descriptor at 0x7f12345000: unmapped`, as on llvmpipe. - Not tested: an unmapped record pointer on other real GPUs and drivers (AMD, Intel). - **809d8804c1, a merge of #9457's 7f3a25e0cb, which merges `main` 0db47b263d.** The only conflict was `ShaderDiskCache.hpp`'s `FormatVersion` line: `main` moved to 45 (#7831), and this branch keeps its 46. On GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39930538218)), the pointer, nested, image-table and disk-cache sets (27 tests) pass 10 runs in a row on Linux. On Windows the set has 29, with two Windows-only disk-cache tests: they build, 5 pass 10 runs in a row, and the other 24, which need a Vulkan device, skip. The libc and libkernel suites pass on both, run with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. An earlier run linked here didn't run this set, so it's replaced. - **The low-bits commits, 47a4e592ee and 0ce262419e,** on GitHub's runners: - **Red,** with the four product files of 47a4e592ee reverted on 0ce262419e ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39965087447), 3 runs): on Linux, `agc_driver_pointer_vsharp_shared_reuse_table` crashes llvmpipe, `agc_driver_bda_anchor_reads` fails "scalar loads from a base with low bits 1 byte 32784 is 0x87618183, expected 0x61818380", and `agc_shader_memory` and `agc_shader_bindless` fail "scalar address rule: a base with low bits 1 is not dword-aligned"; the other 14 pass. On Windows, `agc_shader_memory` and `agc_shader_bindless` fail with the same rule line. - **Green at 0ce262419e** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39957516026)): on Linux, 18 of 18 tests pass 10 runs in a row, none skipped; on Windows, 15 pass 10 runs in a row and the 3 that need a Vulkan device (`agc_driver_bda_anchor_reads`, `agc_driver_pointer_vsharp_shared_table` and `_reuse_table`) skip; none 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. - **47a4e592ee alone** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39957769181), 3 runs): on Linux 18 of 18 pass; on Windows 15 pass and the same 3 skip. - **Validation layer**, the base against 0ce262419e, on the Linux runner ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39957516026)): the layer loaded 3 times on the base and 30 with the change, and both logs report only `VUID-VkDeviceCreateInfo-pNext-pNext`, so the change adds no `VUID-` message. - **cfd61b79c7, a merge of #9457's dc18bf7bf7** (which carries #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/40077344770)): `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: 42 run, 42 pass, 0 skip, 0 fail. Windows: 44 run, 20 pass, 24 skip (Vulkan device tests; the runner has none), 0 fail. - The full `^agc` set once ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40077606208)): Linux 984 run, 919 pass, 64 skip, 1 fail; Windows 1003 run, 272 pass, 729 skip, 2 fail. The failures are `agc_driver_sgpr_pattern_fill_keys` on Linux ("the dispatch completed 17 times without a pending write over the keys") and `agc_driver_pipelined_metadata_pass` and its `_draw_pipeline` variant on Windows (`vkCreateInstance` returns -9 on the device-less runner). `main` 379b1dca32 shows the same three with the same messages ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40067086619)); `agc_driver_sgpr_pattern_fill_keys` failed 1 of 4 runs there. - The libc and libkernel suites pass on both runners, run with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **Validation, `main` 379b1dca32 against cfd61b79c7** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40083022163)), on one GitHub Linux runner (llvmpipe, LLVM 20.1.2) with the setup above and the focused set: - `main`'s tree ran the 24 of these tests it has, 24 pass. This head ran 42: 42 pass, 0 skip, 0 fail. - The loader inserted `VK_LAYER_KHRONOS_validation` 8 times on `main` and 26 times with this head, and neither log has `was not found`. - Both logs report only `VUID-VkDeviceCreateInfo-pNext-pNext`, so the refreshed head adds no `VUID-` message. - **ab388afb74, 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/40100198310)) 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: 42 run, 42 pass, 0 skip, 0 fail. Windows: 44 run, 20 pass, 24 skip (no Vulkan device), 0 fail. The libc and libkernel suites pass on both, run with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **6779c1495a, 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/40136043152)) 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: 42 run, 42 pass, 0 skip, 0 fail. Windows: 44 run, 20 pass, 24 skip (no Vulkan device), 0 fail. - The libc suite passes on both (143 tests on Linux, 170 on Windows) and the libkernel suite on Linux (206). On Windows, libkernel's `guest_raise_in_system_call` timed out at 30 s, 220th of 222; this PR changes nothing in libkernel. Run alone on this head 20 times in a row ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40141882722)), it and `guest_raise_exception` pass on Windows, and both suites pass on both runners. The suites ran 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/9790#issuecomment-6405788410)): this PR's 6779c1495a, which carries #9457, 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, 68 entries, pass on both GPUs, `agc_driver_pointer_vsharp_shared_table` and `_shared_reuse_table` among them. - With `ResourceTracker.cpp` at #9457 and the rest of this PR kept, exactly the four tests this description names fail on both GPUs with `GetImageResource dword 0 is not a valid runtime value`: `agc_driver_nested_image_table`, `agc_driver_nested_sampler_table`, `agc_driver_pointer_vsharp_shared_table` and `_shared_reuse_table`. The other 19 table tests pass. - Of 269 `agc_` entries, the same ones fail with and without the stack, none of them table tests. - **Marvel's Spider-Man 2 (PPSA03016 01.004.003) at 6779c1495a on current `main`, by @hugodearaujo** ([comment](https://github.com/boykopovar/AnyPS5/pull/9790#issuecomment-6425760140)): this head merged into `main` f95acfc948 (clean; `main` has #9424), Linux 7.2.11, RX 9070 XT, RADV Mesa 26.2.5, Release, a fresh shader cache in each run, X pressed every 30 s, 480 s limit. - `main` f95acfc948 alone stops at 211 s, at the first dispatch of the compute shader whose `s_swappc_b64` at pc 0x1fe0 calls a computed target, with `GetImageResource dword 0 is not a valid runtime value` (chain from `ReadConstBuffer@pc=0x000084bc`). - With this PR, 2 of 2 runs have no recompile error. Both end when his VRAM guard stops the game, at 270 s and 223 s, as free VRAM drops from about 8.4 GB to 0.6 GB within 10 s. In the run with `APS5_DUMP_SHADERS=1`, that shader is first dispatched at 206 s and prepares: no `.prepare.req` or `_failed.req` is written for it. - `agc_shader_replay` on this tree still refuses the four `.prepare.req` files saved at the earlier stops, at `ReadConstBuffer@pc=0x9a50`. They came from trees without `main`'s table-call linking changes (0a4027df9a, ef2b164b15, 01e7d158b6); he reads the program linked at dispatch as probably different now, which can't be shown, since a `.prepare.req` is written only when preparation fails. - **Apple M2 Max with MoltenVK, by @jotitadev** ([review](https://github.com/boykopovar/AnyPS5/pull/9790#pullrequestreview-5663584425)): macOS 27.2, x86_64 Release under Rosetta, 6779c1495a merged onto `main` b986c11a34 with the macOS port changes (`FormatVersion` resolved to a new number). MoltenVK 1.4.2 (Vulkan SDK 1.4.363.0) and MoltenVK `main` with SPIRV-Cross #2704, `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1`. - **Green:** the 19 `^agc_driver_(pointer_|nested_|bda_anchor)` tests pass 3 of 3 runs on each driver, `_shared_reuse_table` and `bda_anchor_reads` included. - **Red:** with only the source side of 47a4e592ee reverted, `_shared_reuse_table` fails with `BDA access failed: ... instruction=0xd8 bytes=1 stage=4 reason=1` and `bda_anchor_reads` with `scalar loads from a base with low bits 1 byte 32784 is 0x87618183, expected 0x61818380`, on both drivers; the other 17 pass. - **Validation layer** (SDK driver): no VUID that points at this change. The 34 `VUID-vkCreateDescriptorSetLayout-support-09582` come from the image table layout on MoltenVK (KhronosGroup/MoltenVK#2573), as on the base; the 20 `VUID-VkSamplerCreateInfo-samplerMipLodBias-04467` in `nested_sampler_table` come from MoltenVK's portability subset. - **The whole `^agc` suite** (SDK driver): the same 41 failures as the base; with MoltenVK `main` + #2704, the base's 40 less `cross_workgroup_flag`, nothing new. - **5b81551960: f447f2bf03, a merge of #9457's 62992d7437, the format commit fefc0c352c, the test-only commit 4125a67e6e, and 5b81551960, a merge of #9457's merge of `main` 0cd07dc4ab** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40642059306)). - **f447f2bf03** takes #9457's merge of #8939 (with #7223's 153400ba2b and the test-only commits of #7395 and #8939) and #9457's format commit. Clean, and this PR's own diff is unchanged. - **fefc0c352c** gives this PR its own disk-cache format, 57. 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. - **4125a67e6e** drops two checks that expected planning to refuse a shape with `not a valid runtime value`, from the assertions @oneandonlydean listed on #9969: a T# with another consumer whose V# only the table snapshot holds, and a data read through a third handle on a pointer-loaded V#'s words. The two summary lines no longer name refusals, and the sampled results stay. - **5b81551960** merges #9457's merge of `main` 0cd07dc4ab, with #9457's resolution of mrfelek's #10228. Clean here, and this PR's changed lines are the same. - The shared-V#, BDA anchor, nested, vouch and SGPR-fill tests with the disk-cache, bindless and shader-memory tests ran 10 times with no failure. Linux: 28 run, 28 pass, 0 skip, 0 fail. Windows: 30 run, 23 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. - **5aa0ca45e7, a merge of #9457's 88620551d5**, which carries #7395's test-only commit ca14648806 (the nested-sampler test no longer asserts that an S# with another consumer is refused) ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40656511206)). The one conflict was that S# case in `agc_driver_nested_sampler_table`: this PR plans the S# and checks its sampled result (53523163d2), so the merge keeps that check and drops only the `refused` helper, which nothing uses any more. This PR's diff now adds the S# case with its sampled-result check, where it used to replace #7395's refusal; the test at the head differs from 5b81551960 only by the helper. The shared-V#, BDA anchor, nested, vouch and SGPR-fill tests with the disk-cache, bindless and shader-memory tests ran 10 times with no failure. Linux: 28 run, 28 pass, 0 skip, 0 fail. Windows: 30 run, 23 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. - **e3196d5721, a merge of #9457's 9a44f18aeb, which carries `main` 38ccd50f83 and with it #11507's `FormatVersion` 49** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40665712856)). Clean: `FormatVersion` stays 57, and this PR's diff over #9457 is the same. The ladder is now: `main` is at 49 since #11507 (hugodearaujo), and #7223, #9508, #9748 and other open PRs use 49 too. Ours take one number each: #7395 50, #8939 51, #10000 52, #9457 53, #10489 54, #9633 55, #9749 56, #9790 57, #10846 59 and #9969 60. 58 is held by our draft #7642 and by #10193 (Celegans12), which carries #7642's commits; #7642 moves above 60 at its next update. The shared-V#, BDA anchor, nested, vouch and SGPR-fill 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: 29 run, 29 pass, 0 skip, 0 fail. Windows: 31 run, 23 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. - **4e6a2bfce0: 7147fd71b5, a merge of #9457's 19bed84013, and 4e6a2bfce0, the format commit** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40861404189)). - **7147fd71b5** takes #7395's test-only commit d908758281, which drops `agc_driver_nested_image_table`'s two checks that a valid shader is refused (a V# with another buffer consumer and a T# with another consumer), #7395's merge of #7223's 0dbf5478b2 (yabanana's merge of `main` f7e84c4cf1) and the format commits below this PR. Two conflicts: `FormatVersion`, which stays this PR's until the next commit, and `tests/execution/ImageTable.cpp`, where d908758281 removes the shared-V# refusal check and its helper next to this PR's T#-with-another-consumer case; the merge takes the removal and keeps this PR's case, which plans that T# and checks its sampled words. This PR's diff no longer removes the T# refusal check itself, since #7395 now does. - **4e6a2bfce0** gives this PR its own disk-cache format, 59 (58 is #10193's). The ladder: `main` is at 49 since #11507 (hugodearaujo), and #9508, #9748 and other open PRs use 49 too; #7223 is at 50 since yabanana's 0dbf5478b2. Ours take one number each: #7395 51, #10000 52, #8939 53, #10489 54, #9457 55, #9633 56, #9749 57, #9790 59, #9969 60 and #10846 61. 58 is held by #10193 (Celegans12), which carries the commits of our draft #7642, and #7642 takes 62 at its next update. - The pointer, nested, image-table and disk-cache tests with `agc_shader_bindless`, `agc_shader_memory` and 17 other `agc_shader_` tests (table snapshots, selected records, memo budgets and pair layouts) ran 10 times with no failure. Linux: 46 run, 46 pass, 0 skip, 0 fail. Windows: 48 run, 25 pass, 23 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. - **eddf966ddb, a merge of #9457's 31bd0dea17, which carries #7395's 4769d5a745, which drops "and refusals" from two nested-table test summary lines** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40948118719)). 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: 46 run, 46 pass, 0 skip, 0 fail. Windows: 48 run, 25 pass, 23 skip, 0 fail; the 23 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. - **a5efbc3ec5, a merge of #9457's head 4eaf19b304**, oneandonlydean's merge of `main` b08c539c50 into #9457 ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41264710648)). - **The one conflict** was `CMakeLists.txt`, from #12862's split, resolved with `tools/agc_test_split.py resolve`. It moves this PR's registrations into `tests/cmake/agc_driver_image_table_tests.cmake`, next to the stack's (+4 −2 against 4eaf19b304). - **`FormatVersion`** merged cleanly and stays this PR's own. Apart from the move, this PR's diff is unchanged. - **The count:** with `-DBUILD_TESTING=ON`, `ctest -N` gives 3098 tests: `main` b08c539c50's 3081 plus the stack's 17 tests (#9457's 15 and this PR's 2), each listed once. - **×10** of this PR's verify set. Linux: 21 run, 21 pass, 0 skip, 0 fail. Windows: 21 run, 2 pass, 19 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 199 and 308 tests on Linux and 226 and 330 on Windows, with 0 failed. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **Validation**, `VK_LAYER_KHRONOS_validation` on GitHub's Linux runner ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41264686702)), `main` b08c539c50 against this merge, for the same tests. The loader inserted the layer 2 times on main and 19 with this merge. The only VUID in either arm is `VUID-VkDeviceCreateInfo-pNext-pNext`, so this merge adds none. `agc_driver_image_table` fails in that mode in both arms, because the mode treats that `main` message as a failure. - **NVIDIA RTX 2000 Ada Generation** at a5efbc3ec5, from TechLevelZero's NVIDIA bot ([report](https://github.com/boykopovar/AnyPS5/pull/9790#issuecomment-6554596774)): driver 595.99.02, Ubuntu 26.04.1, this head merged onto `main` 3741ca9, 2,540 of 3,121 tests selected. - 2,491 passed, 5 failed and 44 skipped. None of the failures is new: 3 also fail on `main`, and 2 are unstable on `main`. - With `VK_LAYER_KHRONOS_validation`, over 947 tests on the GPU, there are no new validation IDs against `main`. 17 of the stack's nested and pointer table tests ran with the layer but aren't in `main`'s baseline, so they weren't compared. - **172dd67c21: 8bcf1dd4bc, a merge of #9457's 04d09eef56, and the format commit 172dd67c21** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41415389780)). The one conflict was `FormatVersion`, which the format commit moves from 59 to 71, above #9457's 67 and #9633's 70. This PR's own diff is otherwise unchanged. The image-table, disk-cache, BDA anchor-read, shader-memory, nested and pointer tests, with #7694's `agc_shader_descriptor_phis`, pass 10 runs in a row. Linux: 32 run, 32 pass, 0 skip, 0 fail. Windows: 34 run, 10 pass, 24 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/9790#issuecomment-6575264985)): 2,569 passed, 6 failed, none new (3 also fail on `main`, 3 unstable on `main`), 45 skipped, with no new validation IDs (990 tests on the GPU). - **a12bac51d6, a merge of #9457's 0a4f7cdbed, which carries #7395's merge of `main` 4f64f81ef7** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41461342557)). Clean: `FormatVersion` stays 71, and this PR's own diff is unchanged. The `ResourceMaterializer.cpp` resolution, with #12246's view loop moved back into `Snapshot`, comes from #7395's merge (see #7395). The image-table, disk-cache, BDA anchor-read, shader-memory, nested and pointer tests, with #7694's `agc_shader_descriptor_phis`, pass 10 runs in a row. Linux: 32 run, 32 pass, 0 skip, 0 fail. Windows: 34 run, 10 pass, 24 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. - **Ghostrunner (PPSA03685), replays of the stack by @xXPBSXx** ([comment](https://github.com/boykopovar/AnyPS5/pull/9790#issuecomment-6592580784)): a request captured in a game run on `main` 92d2fdc343 (NVIDIA GeForce RTX 4080 SUPER, driver 610.74, Windows, Release), replayed with `agc_shader_replay --prepare`, no GPU. Each PR's diff over `main`, without its tests, was applied alone on 92d2fdc343, this PR's at a12bac51d6. - Without the stack, 2 of 2 title runs ended after 121 s and 97 s on one compute shader with `GetImageResource dword 0 is not a valid runtime value`, a descriptor reached through a `ReadFirstLane`/`Ballot` waterfall over constant-buffer values. The replay fails the same way, and so does #7395's diff. - With this PR's diff, as with #8939's, #9457's and #9633's, that step passes and the request stops on `sampler resource limit exceeded` (`MaxSamplers` was 32; #10000 has since raised it to 64). - Their diagnostic, not checked in: with this PR's change and `MaxSamplers` at 128, the request stops on `GetImageResource dword 0` again, so the shader has at least one more chain the stack doesn't resolve. - **6b38153c07, a merge of `main` 4f41f4c375** ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41611196876), [the PR's own tests ×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41619877937)). - **The conflicts:** `ShaderDiskCache.hpp`'s `FormatVersion`, where `main` is now at 52 (#10000) and this PR keeps its 71; 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: 17 run, 17 pass, 0 skip, 0 fail. Windows: 17 run, 0 pass, 17 skip (no Vulkan device), 0 fail. - **@XairRrR approved this head** ([review](https://github.com/boykopovar/AnyPS5/pull/9790#pullrequestreview-5753398038)). On a Debian 13 VM (GCC 14.2.0, Release, lavapipe on Mesa 26.1.6), the tree merged with `main` 4f41f4c375 builds. Their selected tests ran 2,233 with no new failures (7 known failures also fail on `main`), the validation comparison with `main` over 787 tests shows no new `VUID-`, and the focused set passes 22 of 22. Both negative controls fail as described: with the tracker change reverted, `agc_driver_nested_image_table`, `agc_driver_nested_sampler_table`, `agc_driver_pointer_vsharp_shared_table` and `_shared_reuse_table` fail with `GetImageResource dword 0 is not a valid runtime value`; with the scalar-base low-bits change reverted, `_shared_reuse_table` crashes in llvmpipe and `agc_driver_bda_anchor_reads`, `agc_shader_memory` and `agc_shader_bindless` fail. Their two non-blocking notes are the SMEM base-alignment source, which What now cites (the RDNA 2 ISA guide, §7.2.1), and the kept descriptor words, which the debt entry discloses. - **ebaa9b1565, a merge of #9457's 20cc916ce9,** which carries `main` c2eafe4461 with yabanana's #7223 through #8939 and #7395 ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41776054106)). - **The conflicts:** `ShaderDiskCache.hpp`'s `FormatVersion`, which stays 71 (`main` is at 56 since #7223), and `docs/dev/debt/shader.md`. There #7395 adds a sentence on a nested child's T# to "Nested image tables", which this PR rewrites. The entry keeps this PR's wording, and the sentence moves into its own entry after it, "Nested image table children", since the two together are over the debt files' 1,000 characters. This PR's other 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: 32 run, 32 pass, 0 skip, 0 fail. Windows: 34 run, 10 pass, 24 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. - **AMD Radeon RX 6300 (RADV NAVI24)** at this head, from TechLevelZero's AMD bot ([report](https://github.com/boykopovar/AnyPS5/pull/9790#issuecomment-6626435381)): merged onto `main` 5b1d381, Mesa 25.2.8, Ubuntu 26.04.1, 2,914 of 3,883 tests selected. 2,846 passed, 8 failed and 60 skipped. None of the failures is new: 7 also fail on `main`, and 1 is unstable on `main`. With `VK_LAYER_KHRONOS_validation`, there are no new validation IDs against `main`, over 990 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. - **32a8525931, a merge of #9457's e75a7104b9,** which carries `main` 8eaf82f315 through #8939 and #7395 ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/42336910464)). - **The conflict:** `docs/dev/debt/shader.md`, where JJenkx's #15305's "runtime resource snapshot" entry, which comes with `main`, sits right above "Nested image tables", which this PR rewrites. Both stay: #15305's entry, then this PR's "Nested image tables" and "Nested image table children". 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: 33 run, 33 pass, 0 skip, 0 fail. Windows: 35 run, 10 pass, 25 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 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. - **8527df3287, a merge of #9457's 2bbcdd60fc,** which carries `main` 006d11fca5 through #8939 and #7395 ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/42370706866)). - **Clean:** #7395's merge takes the one conflict with `main`, frankea's #9020's `FormatVersion` 57, and `FormatVersion` stays 71 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: 33 run, 33 pass, 0 skip, 0 fail. Windows: 35 run, 10 pass, 25 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 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. - **a8ad90a6cc: 6b37286c68, a merge of #9457's 5be1abeb41 into oneandonlydean's a7234e908f (his merge of `main` 3eb7a74e1c), and the format commit a8ad90a6cc,** for oneandonlydean's ask on #9457 ([comment](https://github.com/boykopovar/AnyPS5/pull/9457#issuecomment-6808481769)). #9457's head carries `main` 017bd95f5f through #7395 and #8939 ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/43350872705)). - **The conflict:** only `ShaderDiskCache.hpp`'s `FormatVersion` line. The merge takes #9457's 81, and the format commit gives this PR 88, the lowest number above 81 that no open PR holds (a check of every open PR's head on 11-13). This PR's own lines are unchanged apart from that line: file by file, its diff over #9457 matches the previous one by patch-id, except `ShaderDiskCache.hpp` (that line) and `docs/dev/debt/shader.md`, where its two entries are unchanged and the lines around them are `main`'s newer wording. - **×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: 47 run, 47 pass, 0 skip, 0 fail. Windows: 49 run, 10 pass, 39 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. - **5e4ba4e635, a merge of #9457's d007acef13, without conflicts,** which carries `main` e22c5fb941 through #9457, #8939 and #7395 ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/43458975804)). - **×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: 48 run, 48 pass, 0 skip, 0 fail. Windows: 50 run, 11 pass, 39 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 5e4ba4e635: `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. - **Marvel's Spider-Man 2 (PPSA03016), a related data point from Tamalero, not a run of this PR** ([comment](https://github.com/boykopovar/AnyPS5/discussions/10195#discussioncomment-19527427)): on 11-07, `main` with #9749 stopped at `ReadConstBuffer@0x8f3c`, on a V# that backs two T#s, at +0x420 and +0x4c0. A local prototype that accepts a pointer-loaded V# whose other users are fixed-offset T# reads gets past it, on `main` 60afded3d6 with #9749 and #14296. That's the shape this PR handles (its V# at pc 0x8f54 feeds T#s at 0x0 and +0x4c0), at another pc and first offset. - **f031b24892, a merge of #9457's b0b62f859b, without conflicts,** which carries `main` bd278f3654 through #9457, #8939 and #7395 ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/43576704142)). - **`FormatVersion`:** `main`'s 69, this PR's 88. #7395's merge takes #19530's move of `main` from 68 to 69, and this PR's own diff over #9457 is unchanged. - **×10:** the same tests as on 5e4ba4e635. Linux: 48 run, 48 pass, 0 skip, 0 fail. Windows: 50 run, 11 pass, 39 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. - **Apple M5 Pro with MoltenVK, by @kali113** ([comment](https://github.com/boykopovar/AnyPS5/pull/9790#issuecomment-6884197823)): macOS 27.2.1, AppleClang 21.0.0, x86_64 Release under Rosetta, MoltenVK 1.4.2 (Vulkan SDK 1.4.363.1), validation layer 1.4.363. `main` 6a86d4d1a9 with #17425's curl build helper, against that tree with this head `f031b24892` merged (clean), both with `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1` and `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, one `ctest -V` run of the pointer, nested, BDA anchor, image-table, shader-memory, disk-cache and sampler-limit tests. - **The base:** 52 selected, 38 pass, 13 fail, 1 skips. **With this PR:** 67 selected, 53 pass, 13 fail, 1 skips. The 15 tests the head has over `main`, this PR's and the stack's below it, all pass, `agc_driver_pointer_vsharp_shared_table`, `_shared_reuse_table` and `agc_driver_nested_sampler_table` among them. Every test both arms have ends the same way. - **The 13 failures** are the same on both arms: `agc_driver_image_table` and its packed variants fail their validation-output check on `VUID-vkCreateDescriptorSetLayout-support-09582`, for a layout of about 262,150 descriptors against MoltenVK's `maxPerSetDescriptors` of 1,212, as in jotitadev's run above. No other VUID appears with this PR. Both arms skip `agc_driver_many_direct_samplers` (fewer than 33 samplers per stage or set), and the loader inserted the layer 39 times on the base and 53 with this PR, with no missing-layer warning. - **ec6c32b269, the format commit** ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/43653636898)), moves `FormatVersion` from 88 to 87. Pipodi's #18455 reads 88 too since its merge of `main` (head `81362e7b90`), and two identical lines merge without a conflict, so whichever of the two landed second would keep the other's number. 87 is the one number between #9749's 83 and #9969's 89 that no open PR's head held, on checks of every open PR's head at 23:25Z on 14 Nov and again at 01:57Z on 15 Nov, before the push. Nothing else changes. - **×10:** the same tests as on f031b24892. Linux ([job](https://github.com/EagleBearerYS/AnyPS5/actions/runs/43653636898/job/132627309784)): 48 run, 48 pass, 0 skip, 0 fail. Windows: 50 run, 11 pass, 39 skip (no Vulkan device), 0 fail, with the same tests passing and skipping as on f031b24892. The libc and libkernel suites run 380 and 376 tests on Linux with 0 failed. On Windows, the job's first attempt ([job](https://github.com/EagleBearerYS/AnyPS5/actions/runs/43653636898/job/132627310007)) ran libc's 410 with 0 failed and failed one of libkernel's 404, `guest_timed_wait_cpu`, 400th of 404, on an AMD EPYC 7763 host: its `sceKernelUsleep(100 us)` P99 overshoots were 4478, 4666 and 3665 µs against a limit of under 2900 µs. The second attempt ([job](https://github.com/EagleBearerYS/AnyPS5/actions/runs/43653636898/job/132658186861)) ran 410 and 404 with 0 failed. This commit changes only `ShaderDiskCache.hpp:16`. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes only `precise_wait`'s median bounds on GitHub's hosted runners. The run's tree had #19899's `_putenv_s` test fix on top, as on f031b24892's run; it isn't on this branch. - **aadbb73413, a merge of #9457's d896ff422b,** which carries `main` 328cbf673e through #9457, #8939 and #7395 ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/43816790564), [with #21255's test change](https://github.com/EagleBearerYS/AnyPS5/actions/runs/43831952163)). - **The conflict:** only `FormatVersion`, where #9457 now takes 95, above this PR's 87. The merge moves this PR to 98. This PR's own lines are unchanged apart from the `FormatVersion` line. - **×10:** the same tests as on ec6c32b269. Linux: 55 run, 54 pass, 0 skip, 1 fail. Windows: 57 run, 11 pass, 46 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 aadbb73413 ([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/9790#issuecomment-6925577419)): 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 aadbb73413 merged onto `main` e4caa07950 (a clean merge), against `main` e4caa07950 alone, `ctest -R '^(agc_driver_(bda_anchor_reads|image_table|nested_(image|sampler)_table.*|pointer_.*_table)|agc_shader_.*)$'`. `main`: 58 of 58 pass. This PR: 73 of 73 pass, including the 15 tests `main` doesn't have: this PR's two (`agc_driver_pointer_vsharp_shared_table` and `_vsharp_shared_reuse_table`) and the 13 of #9457, #8939 and #7395. No test skips on either side. The layer was inserted 7 times on `main` and 21 times with this PR; most `agc_shader_*` tests create no Vulkan instance. No `VUID-` line on either side, and every test that creates a device selected the RTX 4090. - **#8939's null record pointer fix, by the merge 543d3b4867** of #9457's new head (test only, `tests/execution/ImageTable.cpp`), for #8939's `agc_driver_pointer_phi_lane_and_table` and `agc_driver_pointer_phi_lane_not_table`. @frankea's Windows 11 RTX 4090 run ([comment](https://github.com/boykopovar/AnyPS5/pull/8939#issuecomment-6963380582)) failed them here too, at aadbb73413, 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/44197913237/job/134444098057), on an earlier commit with the same tree): the 17 `^agc_driver_pointer_` and `^agc_driver_nested_` tests pass, none skipped. - **Windows** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/44211453034)), with Sankalp7317's 4-line `_putenv_s` fix ([#19899](https://github.com/boykopovar/AnyPS5/pull/19899)) merged for the run only: the first attempt failed in the libkernel suite, where `guest_poll`, `guest_process_time_rdtsc` and `guest_process_time_rdtsc_scaled` exited with `0xc0000409`. The re-run of the Windows job ([attempt 2](https://github.com/EagleBearerYS/AnyPS5/actions/runs/44211453034/attempts/2)) passed: the build, the libc and libkernel suites with 421 and 417 tests and 0 failed, and the 17 tests skipping (no Vulkan device). old..new touches only `ImageTable.cpp`. The Windows GPU case itself can only be re-run by a tester. - **3b2426ac0a, a merge of #9457's dbe3b94942,** which carries `main` d89f26516c through #9457, without conflicts ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/44433630595), [with #21255's test change](https://github.com/EagleBearerYS/AnyPS5/actions/runs/44451654918)). - **No conflicts:** this PR's `FormatVersion` stays 98, 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: 55 run, 53 pass, 0 skip, 2 fail. Windows: 57 run, 11 pass, 46 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 3b2426ac0a ([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. - **`agc_driver_image_table` in this PR's ×10:** it reached its 30 s timeout once, on an AMD EPYC 7763 runner. It passed in #9969's ×10 ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/44433825578)) and in #9969's run with #21255's test change ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/44451654918)), both on trees that hold this PR's 3b2426ac0a. - **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 arm** ([comment](https://github.com/boykopovar/AnyPS5/pull/9969#issuecomment-7013222450)): Arch Linux (kernel 7.3.4), RADV (Mesa 26.2.7), GCC 16.2.1 Release, `BUILD_TESTING=ON`, validation layer 1.4.363, with `ANYPS5_REQUIRE_VULKAN=1` and `ANYPS5_NO_SHADER_CACHE=1`, `ctest -V -R '^agc_driver_pointer_|^agc_driver_nested_|^agc_shader_nested_|^agc_driver_image_table|^agc_shader_memory|^agc_shader_disk_cache|^agc_shader_sampler_limits'`, 3 runs per arm. #9969's 630bbb0a2e (with #7395, #8939, #9457 and #9790; their merge 2c9689c0c3), merged onto `main` e1ab104e0a (clean), against `main` e1ab104e0a alone; it carries this PR's head 3b2426ac0a. `main`: 39 tests, 38 pass, 1 skip in each run. The arm: 56 tests, 55 pass, 1 skip in each run; the counts include the tests of the arm's other PRs. The one skip is the same in every arm, `main`'s included: `agc_driver_image_table_vouched_lookups` (the device reports host-imported pages written after a GPU read). The layer was inserted 32 times on `main` and 48 times in each arm, and never reported missing. No `VUID-` line in any arm, and every Vulkan test selected the RX 9070 XT. - **5821a3e2fa, a merge of #9457's ef586f90ca,** which carries `main` d50640e264 through #9457, without conflicts ([×10](https://github.com/EagleBearerYS/AnyPS5/actions/runs/44659774807), [with #21255's test change](https://github.com/EagleBearerYS/AnyPS5/actions/runs/44660369966)). - **No conflicts:** this PR's `FormatVersion` stays 98, 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: 55 run, 54 pass, 0 skip, 1 fail. Windows: 57 run, 11 pass, 46 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 410 and 417 tests on Linux and 439 and 438 on Windows, with 0 failed apart from `guest_thermal_sensors` (below). The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes only `precise_wait`'s median bounds on GitHub's hosted runners. - **The Linux failure, `agc_driver_image_table_packed_guards`, also fails on `main` d89f26516c alone** in the same harness on GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/44469816375): the `^agc_driver_image_table` tests ×10, 29 run, only this one fails). `main`'s own Linux job, on the project's self-hosted runner, passes it at 244b338dd0 ([job](https://github.com/boykopovar/AnyPS5/actions/runs/44455102712/job/135332957346)). fernandomcrsilva's open #21255 changes that test. With #21255's test change on top of #9969's dc97c68c75, which holds this PR's 5821a3e2fa ([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. - **`guest_thermal_sensors`:** libkernel's `guest_thermal_sensors` reached its 20 s timeout in the Linux suite, on one of GitHub's Intel Xeon 6975P-C runners. It times out in every run I have on those runners, `main` 0694c4cbd6 alone included ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/43832502375)), and passed in this refresh's runs on Intel Xeon Platinum 8573C and AMD EPYC runners. This PR changes no libkernel file. - **The Windows tree:** the runs' trees had Sankalp7317's 4-line `_putenv_s` test fix ([#19899](https://github.com/boykopovar/AnyPS5/pull/19899)) on top, because `main`'s Windows test build breaks without it ("'setenv' was not declared" in `UploadCacheReadOnlyFlush.cpp`, from #18037); it isn't on this branch. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: #9457 - [x] Fixes: none (related: #6191) - [x] Unblocks: Marvel's Spider-Man 2 (PPSA03016, #6191) past `ReadConstBuffer@pc=0x8fa0` (hugodearaujo's run, with #9424); its next stop is `ReadConstBuffer@pc=0x9a50` in the same shader, a follow-up - [x] GPUs tested: Mesa llvmpipe (LLVM 20.1.2), Ubuntu 24.04, on GitHub's Linux runner and a cloud Linux machine; NVIDIA RTX 2000 Ada Generation (driver 595.99.02, Ubuntu 26.04.1; TechLevelZero's NVIDIA bot); AMD Radeon RX 9070 XT (RADV, Mesa 26.2.5), Linux, in hugodearaujo's title run; NVIDIA GeForce RTX 3070 Laptop GPU (617.42), Windows 11, in the unmapped-pointer probe; 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 - [x] AI-assisted: yes
MarcZX10 commented 2026-10-22 16:28:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T16:28:59Z.

Review: CHANGES_REQUESTED


The change is carefully scoped to the declared #9457 stack. The current-main conventions check and git diff --check pass. I inspected the nested-column capture/materialization paths and the PR’s reported pointer-shared T#/V# tests and validation-layer comparison. I did not build or execute the shader/Vulkan tests locally in this review. Hosted PR checks currently cover eligibility, conventions, intake, labels and report; product and relinker builds are skipped. The reported Linux validation-layer comparison uses #9457’s head as the baseline, which is appropriate for this stacked delta.

The exact head is 69 commits behind live main (8499ea52e571b0edfc1feecfd3f6b9944012b359), while #9457 is still open. CONTRIBUTING.md says to keep branches up to date with main. Please refresh the stack against current main as the prerequisite progresses, then rerun the focused image-table/Vulkan tests and validation-layer comparison on the final merge base before merge. I confirmed Git can auto-merge the current head with main, so this is a synchronization and final verification request, not a reported textual conflict.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5617546534 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9790#pullrequestreview-5617546534). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T16:28:59Z. **Review:** CHANGES_REQUESTED --- The change is carefully scoped to the declared #9457 stack. The current-main conventions check and `git diff --check` pass. I inspected the nested-column capture/materialization paths and the PR’s reported pointer-shared T#/V# tests and validation-layer comparison. I did not build or execute the shader/Vulkan tests locally in this review. Hosted PR checks currently cover eligibility, conventions, intake, labels and report; product and relinker builds are skipped. The reported Linux validation-layer comparison uses #9457’s head as the baseline, which is appropriate for this stacked delta. The exact head is 69 commits behind live `main` (`8499ea52e571b0edfc1feecfd3f6b9944012b359`), while #9457 is still open. CONTRIBUTING.md says to keep branches up to date with `main`. Please refresh the stack against current `main` as the prerequisite progresses, then rerun the focused image-table/Vulkan tests and validation-layer comparison on the final merge base before merge. I confirmed Git can auto-merge the current head with main, so this is a synchronization and final verification request, not a reported textual conflict.
MarcZX10 commented 2026-10-22 16:55:54 +00:00 (Migrated from github.com)

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

Review: COMMENTED


I refreshed the exact head 53523163d22faf335ff71418b74fd0c672473122 against current main (11f976b27c16ed91633f00039dba5dfd97dd7cc1). Current-main conventions, git diff --check, and merge-tree checks pass. The reported Linux llvmpipe shader, validation-layer and negative-control results are contributor-reported; the hosted product jobs are skipped. This VM has no Vulkan device suitable for the required paired validation run, so I did not claim a local shader test. The branch is 82 commits ahead and 24 behind its merge-base relation; it includes the declared #9457 stack. Please keep the dependent stack current and rerun the required same-GPU main/change validation comparison after rebasing before merge.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5617847609 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9790#pullrequestreview-5617847609). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T16:55:54Z. **Review:** COMMENTED --- I refreshed the exact head `53523163d22faf335ff71418b74fd0c672473122` against current `main` (`11f976b27c16ed91633f00039dba5dfd97dd7cc1`). Current-main conventions, `git diff --check`, and merge-tree checks pass. The reported Linux llvmpipe shader, validation-layer and negative-control results are contributor-reported; the hosted product jobs are skipped. This VM has no Vulkan device suitable for the required paired validation run, so I did not claim a local shader test. The branch is 82 commits ahead and 24 behind its merge-base relation; it includes the declared #9457 stack. Please keep the dependent stack current and rerun the required same-GPU main/change validation comparison after rebasing before merge.
jotitadev commented 2026-10-23 06:08:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-23T06:08:19Z.

Review: COMMENTED


First run on Apple silicon. The new agc_driver_pointer_vsharp_shared_reuse_table fails on this machine. The cause is not Apple-specific: it depends on where FloatTexels and OtherFloatTexels land within 1 KiB.

Setup: Apple M2 Max (32 GB), macOS 27.2, x86_64 build under Rosetta, Release, BUILD_TESTING=ON. Method: #8658 (feat/macos-port) @ 4e0468722f plus this PR's diff from its merge base (head 57bf487021), not main, since main does not build on macOS yet. Two drivers: MoltenVK 1.4.2 (Vulkan SDK 1.4.363.0), and MoltenVK main with SPIRV-Cross #2704. ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1, ctest -j1 --timeout 30 -V.

Failure, with both drivers on every run:

[gpu] deferred write-back failed: BDA access failed: address=0xc16000000102cc64 instruction=0xd8 bytes=1 stage=4 reason=1
AGC graphics: pointer V# table with two T#s whose second T#'s words also reach the record pointer's registers: the T#s read through the V# behind the record's pointer faulted:

Cause: I printed the addresses from the test in the same run:

images0=0x102cc4100 images1=0x102cc5100 behind0=0xc16000000102cc50 behind1=0xc16000000102cc60
  • In this build, the texel arrays start at 0x...100. So Image() puts 0x0102cc51 in the second T#'s dword 0, and the two low bits of the word are 01.
  • behindAddress() clears those bits and adds 0x10, so the snapshot covers ...cc60 to ...cc63.
  • The s_load_dword at 0xd8 reads through s[44:45] (T#2's dwords 0 and 1) + 0x10. It faults at ...cc64 with bytes=1, the first byte past the snapshot. So the read starts at ...cc61, not ...cc60: it keeps the two low address bits, but SMEM ignores them.
  • With FloatTexels and OtherFloatTexels changed to alignas(1024) (test-only), the arrays start at 0x...400, dword 0's low bits are 00, and the test passes 3 of 3 with MoltenVK 1.4.2 and 1 of 1 with MoltenVK main. With that change, ctest -R 'pointer_|nested_' passes 20 of 20.

So I think it passes on Linux only because the arrays' address bits 8 and 9 are 0 in that build. The read through the T# words should drop the two low bits as SMEM does, or the test should not depend on them. This is not caused by the macOS port or by MoltenVK.

The rest: the other 19 pointer_|nested_ entries pass as is. In an earlier run on #8658 @ dc0c8db500, the red arm (this PR without 53523163d2's ResourceTracker.cpp) refuses _shared_reuse_table at compile time with GetImageResource dword 0 is not a valid runtime value, as expected. Whole ^agc suite with this PR, SDK driver: the base's failures plus _shared_reuse_table, nothing else.

GPUs tested: Apple M2 Max (MoltenVK 1.4.2 from Vulkan SDK 1.4.363.0, and MoltenVK main + SPIRV-Cross #2704), macOS 27.2.

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

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5624571510 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9790#pullrequestreview-5624571510). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-23T06:08:19Z. **Review:** COMMENTED --- First run on Apple silicon. The new `agc_driver_pointer_vsharp_shared_reuse_table` fails on this machine. The cause is not Apple-specific: it depends on where `FloatTexels` and `OtherFloatTexels` land within 1 KiB. **Setup:** Apple M2 Max (32 GB), macOS 27.2, x86_64 build under Rosetta, Release, `BUILD_TESTING=ON`. Method: #8658 (`feat/macos-port`) @ `4e0468722f` plus this PR's diff from its merge base (head `57bf487021`), not `main`, since `main` does not build on macOS yet. Two drivers: MoltenVK 1.4.2 (Vulkan SDK 1.4.363.0), and MoltenVK `main` with SPIRV-Cross #2704. `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1`, `ctest -j1 --timeout 30 -V`. **Failure,** with both drivers on every run: ``` [gpu] deferred write-back failed: BDA access failed: address=0xc16000000102cc64 instruction=0xd8 bytes=1 stage=4 reason=1 AGC graphics: pointer V# table with two T#s whose second T#'s words also reach the record pointer's registers: the T#s read through the V# behind the record's pointer faulted: ``` **Cause:** I printed the addresses from the test in the same run: ``` images0=0x102cc4100 images1=0x102cc5100 behind0=0xc16000000102cc50 behind1=0xc16000000102cc60 ``` - In this build, the texel arrays start at `0x...100`. So `Image()` puts `0x0102cc51` in the second T#'s dword 0, and the two low bits of the word are `01`. - `behindAddress()` clears those bits and adds 0x10, so the snapshot covers `...cc60` to `...cc63`. - The `s_load_dword` at `0xd8` reads through `s[44:45]` (T#2's dwords 0 and 1) + 0x10. It faults at `...cc64` with `bytes=1`, the first byte past the snapshot. So the read starts at `...cc61`, not `...cc60`: it keeps the two low address bits, but SMEM ignores them. - With `FloatTexels` and `OtherFloatTexels` changed to `alignas(1024)` (test-only), the arrays start at `0x...400`, dword 0's low bits are `00`, and the test passes 3 of 3 with MoltenVK 1.4.2 and 1 of 1 with MoltenVK main. With that change, `ctest -R 'pointer_|nested_'` passes 20 of 20. So I think it passes on Linux only because the arrays' address bits 8 and 9 are 0 in that build. The read through the T# words should drop the two low bits as SMEM does, or the test should not depend on them. This is not caused by the macOS port or by MoltenVK. **The rest:** the other 19 `pointer_|nested_` entries pass as is. In an earlier run on #8658 @ `dc0c8db500`, the red arm (this PR without 53523163d2's `ResourceTracker.cpp`) refuses `_shared_reuse_table` at compile time with `GetImageResource dword 0 is not a valid runtime value`, as expected. Whole `^agc` suite with this PR, SDK driver: the base's failures plus `_shared_reuse_table`, nothing else. GPUs tested: Apple M2 Max (MoltenVK 1.4.2 from Vulkan SDK 1.4.363.0, and MoltenVK main + SPIRV-Cross #2704), macOS 27.2. Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
MarcZX10 commented 2026-10-23 14:20:06 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-23T14:20:06Z.

Review: CHANGES_REQUESTED


I reviewed exact head 0ce262419ed23b740be00f98f8f82bdfed945bde.

The new scalar-address correction is a meaningful improvement: the guest address emitter masks the low two bits of the base for scalar reads, the anchored BDA path uses the aligned base, and the shared-V# regression now forces descriptor dword addresses ending in 01 and 11. The Linux runner's failure without the correction and pass with it directly addresses the prior platform-dependent test setup. Exact-head conventions and whitespace checks pass.

I cannot approve the shader change on the current evidence because its required comparison has not been rerun for this head. The PR changes the shader recompiler and declares Unblocks: PPSA03016; CONTRIBUTING requires the focused tests on current main and the change on the same GPU with validation enabled, no new VUID- messages, and no missing requested layer. The recorded paired validation-layer report compares #9457 with an earlier revision, before the scalar-base fix. The cited RX 9070 XT title run also used a pre-fix test branch; after this exact fix was published, the requested macOS rerun is still pending. Please refresh the #9457 stack against current main, then record the same-GPU baseline/combined-head focused run with the required environment and validation-layer comparison. If available, add a title rerun at this exact head so the stated Unblocks result covers the base-alignment correction.

Current main is e94545a5; this head is 34 commits ahead and 389 behind its merge base, with seven shared files changed on both sides. Git's merge-tree is clean, but the dependency #9457 is still open at 7f3a25e0. Keep the declared stack coordinated and refresh it before merge. Hosted product/relinker jobs are skipped. I did not run Vulkan tests locally because this workspace exposes no Vulkan device (/dev/dri, vulkaninfo and nvidia-smi are unavailable).

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5629564532 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9790#pullrequestreview-5629564532). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-23T14:20:06Z. **Review:** CHANGES_REQUESTED --- I reviewed exact head `0ce262419ed23b740be00f98f8f82bdfed945bde`. The new scalar-address correction is a meaningful improvement: the guest address emitter masks the low two bits of the base for scalar reads, the anchored BDA path uses the aligned base, and the shared-V# regression now forces descriptor dword addresses ending in `01` and `11`. The Linux runner's failure without the correction and pass with it directly addresses the prior platform-dependent test setup. Exact-head conventions and whitespace checks pass. I cannot approve the shader change on the current evidence because its required comparison has not been rerun for this head. The PR changes the shader recompiler and declares `Unblocks: PPSA03016`; CONTRIBUTING requires the focused tests on current `main` and the change on the same GPU with validation enabled, no new `VUID-` messages, and no missing requested layer. The recorded paired validation-layer report compares #9457 with an earlier revision, before the scalar-base fix. The cited RX 9070 XT title run also used a pre-fix test branch; after this exact fix was published, the requested macOS rerun is still pending. Please refresh the #9457 stack against current `main`, then record the same-GPU baseline/combined-head focused run with the required environment and validation-layer comparison. If available, add a title rerun at this exact head so the stated `Unblocks` result covers the base-alignment correction. Current `main` is `e94545a5`; this head is 34 commits ahead and 389 behind its merge base, with seven shared files changed on both sides. Git's merge-tree is clean, but the dependency #9457 is still open at `7f3a25e0`. Keep the declared stack coordinated and refresh it before merge. Hosted product/relinker jobs are skipped. I did not run Vulkan tests locally because this workspace exposes no Vulkan device (`/dev/dri`, `vulkaninfo` and `nvidia-smi` are unavailable).
adriadam10 commented 2026-10-24 02:48:13 +00:00 (Migrated from github.com)

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

Review: CHANGES_REQUESTED


Read the commits that are not in the #9457 stack (the shared V# planning, the real V# for other users of a T#/S# word, and the scalar base masking); the logic looks consistent. Blockers before this can merge:

  • It is stacked on #7223, #7395, #8939, #9457, #9633 and #9749, all still open, and it conflicts with main in ResourceTracker.cpp (inherited from the base). Once the bases land, refresh this branch against main.
  • MarcZX10's review asks for the focused tests on main and on the change on the same GPU with VK_LAYER_KHRONOS_validation, no new VUID- messages and no missing-layer warning. The recorded comparison predates 47a4e592ee/0ce262419e. Please redo it on the refreshed head. That review is CHANGES_REQUESTED and blocks our merge queue until it is addressed.
  • The Spider-Man 2 run and the macOS rerun are also from before the low-bits fix; if you can, repeat the title run at the final head so Unblocks covers it.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5636477471 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9790#pullrequestreview-5636477471). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-24T02:48:13Z. **Review:** CHANGES_REQUESTED --- Read the commits that are not in the #9457 stack (the shared V# planning, the real V# for other users of a T#/S# word, and the scalar base masking); the logic looks consistent. Blockers before this can merge: - It is stacked on #7223, #7395, #8939, #9457, #9633 and #9749, all still open, and it conflicts with `main` in `ResourceTracker.cpp` (inherited from the base). Once the bases land, refresh this branch against `main`. - MarcZX10's review asks for the focused tests on `main` and on the change on the same GPU with `VK_LAYER_KHRONOS_validation`, no new `VUID-` messages and no missing-layer warning. The recorded comparison predates 47a4e592ee/0ce262419e. Please redo it on the refreshed head. That review is `CHANGES_REQUESTED` and blocks our merge queue until it is addressed. - The Spider-Man 2 run and the macOS rerun are also from before the low-bits fix; if you can, repeat the title run at the final head so `Unblocks` covers it.
jotitadev commented 2026-10-27 07:32:50 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-27T07:32:50Z.

Review: COMMENTED


@EagleBearerYS the macOS rerun you asked for: fixed on Apple silicon.

Setup: Apple M2 Max, macOS 27.2, x86_64 Release build under Rosetta. Head 6779c1495a merged onto main b986c11a34 plus the macOS port changes; the only conflict, FormatVersion in ShaderDiskCache.hpp, I resolved to a new number (not plain main, which does not build on macOS yet). Two drivers: MoltenVK 1.4.2 (Vulkan SDK 1.4.363.0), and MoltenVK main with SPIRV-Cross #2704. ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1, ctest -R '^agc_driver_(pointer_|nested_|bda_anchor)' -j1 --timeout 30.

  • Green: 19 of 19 pass on 3 of 3 runs with each driver, including _shared_reuse_table and bda_anchor_reads.
  • Red: I reverted only the source side of 47a4e592ee and kept the tests. _shared_reuse_table then fails as in my first report, with both drivers: BDA access failed: ... instruction=0xd8 bytes=1 stage=4 reason=1. bda_anchor_reads also fails: scalar loads from a base with low bits 1 byte 32784 is 0x87618183, expected 0x61818380. The other 17 pass.
  • Validation layer (SDK driver, layer loaded in all 19): no VUID that points at this change. 34 VUID-vkCreateDescriptorSetLayout-support-09582 come from the image table layout on MoltenVK (KhronosGroup/MoltenVK#2573), as on the base. 20 VUID-VkSamplerCreateInfo-samplerMipLodBias-04467 in nested_sampler_table come from the portability subset.
  • Whole ^agc suite (SDK driver): the same 41 failures as the base without this PR. With MoltenVK main + #2704: the base's 40 minus cross_workgroup_flag, nothing new.

GPUs tested: Apple M2 Max (MoltenVK 1.4.2 from Vulkan SDK 1.4.363.0, and MoltenVK main + SPIRV-Cross #2704), macOS 27.2.

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

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5663584425 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9790#pullrequestreview-5663584425). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-27T07:32:50Z. **Review:** COMMENTED --- @EagleBearerYS the macOS rerun you asked for: fixed on Apple silicon. **Setup:** Apple M2 Max, macOS 27.2, x86_64 Release build under Rosetta. Head `6779c1495a` merged onto `main` b986c11a34 plus the macOS port changes; the only conflict, `FormatVersion` in `ShaderDiskCache.hpp`, I resolved to a new number (not plain `main`, which does not build on macOS yet). Two drivers: MoltenVK 1.4.2 (Vulkan SDK 1.4.363.0), and MoltenVK `main` with SPIRV-Cross #2704. `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1`, `ctest -R '^agc_driver_(pointer_|nested_|bda_anchor)' -j1 --timeout 30`. - **Green:** 19 of 19 pass on 3 of 3 runs with each driver, including `_shared_reuse_table` and `bda_anchor_reads`. - **Red:** I reverted only the source side of 47a4e592ee and kept the tests. `_shared_reuse_table` then fails as in my first report, with both drivers: `BDA access failed: ... instruction=0xd8 bytes=1 stage=4 reason=1`. `bda_anchor_reads` also fails: `scalar loads from a base with low bits 1 byte 32784 is 0x87618183, expected 0x61818380`. The other 17 pass. - **Validation layer** (SDK driver, layer loaded in all 19): no VUID that points at this change. 34 `VUID-vkCreateDescriptorSetLayout-support-09582` come from the image table layout on MoltenVK (KhronosGroup/MoltenVK#2573), as on the base. 20 `VUID-VkSamplerCreateInfo-samplerMipLodBias-04467` in `nested_sampler_table` come from the portability subset. - **Whole `^agc` suite** (SDK driver): the same 41 failures as the base without this PR. With MoltenVK `main` + #2704: the base's 40 minus `cross_workgroup_flag`, nothing new. GPUs tested: Apple M2 Max (MoltenVK 1.4.2 from Vulkan SDK 1.4.363.0, and MoltenVK main + SPIRV-Cross #2704), macOS 27.2. Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
MarcZX10 commented 2026-10-29 09:11:11 +00:00 (Migrated from github.com)

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

Review: CHANGES_REQUESTED


Re-check — changes requested\n\nThe stack still has a test-policy blocker identified in the shared parent: tests/execution/ImageTable.cpp:1744-1754 pins a valid shared-V# shape to a throw. Please remove that unsupported-but-valid throw expectation while retaining the sampled-word/reuse, bounds/budget and genuine malformed-input/fault tests. Coordinate the single parent fix with #9457/#7395 and carry it through this child; do not implement the unsupported shape as part of this correction.\n\nThe current head is e3196d5721 and is still 869 commits behind current main aaccd0ba39. After the parent fix and stack refresh, rerun the focused image-table/pointer/disk-cache/shader-memory tests with the required Vulkan validation environment on both current main and the exact integrated stack, and recheck the cache-version ladder and overlap order. The earlier scalar-address/title evidence does not validate this unrefreshed tree. I did not run GPU tests locally.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5695275567 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9790#pullrequestreview-5695275567). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T09:11:11Z. **Review:** CHANGES_REQUESTED --- ## Re-check — changes requested\n\nThe stack still has a test-policy blocker identified in the shared parent: tests/execution/ImageTable.cpp:1744-1754 pins a valid shared-V# shape to a throw. Please remove that unsupported-but-valid throw expectation while retaining the sampled-word/reuse, bounds/budget and genuine malformed-input/fault tests. Coordinate the single parent fix with #9457/#7395 and carry it through this child; do not implement the unsupported shape as part of this correction.\n\nThe current head is e3196d57217604cf265943ad6cbc74a343602b80 and is still 869 commits behind current main aaccd0ba39. After the parent fix and stack refresh, rerun the focused image-table/pointer/disk-cache/shader-memory tests with the required Vulkan validation environment on both current main and the exact integrated stack, and recheck the cache-version ladder and overlap order. The earlier scalar-address/title evidence does not validate this unrefreshed tree. I did not run GPU tests locally.
MarcZX10 commented 2026-10-29 22:38:46 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T22:38:46Z.

Review: CHANGES_REQUESTED


Re-checked — new head, changes requested

The test-policy finding is resolved at eddf966ddb1a7a1a15db6d303954026adda8031f, but the required Vulkan comparison still uses an older main snapshot.

What I ran

Reviewed exact head eddf966ddb1a7a1a15db6d303954026adda8031f, PR base f7e84c4cf1609cc10bac95a44cd431805e5ebc8a, and current main fdd1753204a4732e1011539cc9d3bb69f70b27a6. The local merge preview against current main is clean. On Linux, without building, I ran:

git diff --check upstream/main...refs/review/pr-9790
python3 tools/check_conventions.py --base upstream/main --head refs/review/pr-9790
git merge-tree --write-tree upstream/main refs/review/pr-9790

I inspected the revised shared-V# test, current dependency state, the author-provided NVIDIA report, and hosted CI. I did not build or run GPU tests locally.

Results

Check Result
Diff whitespace check Passed; no output.
Repository conventions Passed.
Current-main merge preview Clean; tree d4e1edc97f4a5b32c4b1fbe5d9d2c8e22da1c486.
Hosted CI Windows and Ubuntu/Windows relinker jobs passed; macOS relinker jobs were queued; Linux product and specialized jobs were skipped.
NVIDIA report (author-provided) On head eddf966, the selected suite reports 2,330 passed and 3 failures also present on its bb04a4f baseline; no new validation IDs were reported. I did not independently run this.
Raw output from local checks
All conventions checks passed.
d4e1edc97f4a5b32c4b1fbe5d9d2c8e22da1c486

git diff --check produced no output and exited successfully.

Negative control

Assertion Baseline/change Result
Focused shader tests and Vulkan validation Author's paired run: head eddf966 on bb04a4f versus that same baseline Author reports no new VUIDs and no new test failures. This does not compare against current main fdd1753.

Findings

Blocking

  • Current-main validation remains outstanding. The latest GPU report is useful evidence for eddf966 against bb04a4f, but current main is now fdd1753 (202 commits beyond that reported baseline). The PR depends on #9457, which remains open and depends on #8939, so I am not asking for a standalone rebase. After the dependency stack is ready on current main, the shader change still needs the repository-required same-machine/GPU focused ctest -V comparison with VK_LAYER_KHRONOS_validation, ANYPS5_NO_SHADER_CACHE=1, and ANYPS5_REQUIRE_VULKAN=1, including confirmation that the layer loaded and no new VUID- appeared.

Non-blocking

  • The earlier test-policy finding is resolved: the shared-V# test now accepts the valid high-word pointer control instead of asserting that this unsupported shape must throw.

Sources

Not verified

I did not build or run the shader tests, validation layer, or title on this machine. The NVIDIA results are author/CI-provided. macOS relinker jobs were still queued when checked.

To get this to a good state

Once #8939 and #9457 are resolved and the dependency stack is integrated with current main, post the required same-GPU baseline/change validation comparison for the final integrated head. I will recheck that exact head and rerun the non-building checks above.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5705895903 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9790#pullrequestreview-5705895903). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T22:38:46Z. **Review:** CHANGES_REQUESTED --- # Re-checked — new head, changes requested The test-policy finding is resolved at `eddf966ddb1a7a1a15db6d303954026adda8031f`, but the required Vulkan comparison still uses an older main snapshot. ## What I ran Reviewed exact head `eddf966ddb1a7a1a15db6d303954026adda8031f`, PR base `f7e84c4cf1609cc10bac95a44cd431805e5ebc8a`, and current `main` `fdd1753204a4732e1011539cc9d3bb69f70b27a6`. The local merge preview against current `main` is clean. On Linux, without building, I ran: ```sh git diff --check upstream/main...refs/review/pr-9790 python3 tools/check_conventions.py --base upstream/main --head refs/review/pr-9790 git merge-tree --write-tree upstream/main refs/review/pr-9790 ``` I inspected the revised shared-V# test, current dependency state, the author-provided NVIDIA report, and hosted CI. I did not build or run GPU tests locally. ## Results | Check | Result | |---|---| | Diff whitespace check | Passed; no output. | | Repository conventions | Passed. | | Current-main merge preview | Clean; tree `d4e1edc97f4a5b32c4b1fbe5d9d2c8e22da1c486`. | | Hosted CI | Windows and Ubuntu/Windows relinker jobs passed; macOS relinker jobs were queued; Linux product and specialized jobs were skipped. | | NVIDIA report (author-provided) | On head `eddf966`, the selected suite reports 2,330 passed and 3 failures also present on its `bb04a4f` baseline; no new validation IDs were reported. I did not independently run this. | <details> <summary>Raw output from local checks</summary> ```text All conventions checks passed. d4e1edc97f4a5b32c4b1fbe5d9d2c8e22da1c486 ``` `git diff --check` produced no output and exited successfully. </details> ## Negative control | Assertion | Baseline/change | Result | |---|---|---| | Focused shader tests and Vulkan validation | Author's paired run: head `eddf966` on `bb04a4f` versus that same baseline | Author reports no new VUIDs and no new test failures. This does not compare against current `main` `fdd1753`. | ## Findings ### Blocking - **Current-main validation remains outstanding.** The latest GPU report is useful evidence for `eddf966` against `bb04a4f`, but current `main` is now `fdd1753` (202 commits beyond that reported baseline). The PR depends on #9457, which remains open and depends on #8939, so I am not asking for a standalone rebase. After the dependency stack is ready on current `main`, the shader change still needs the repository-required same-machine/GPU focused `ctest -V` comparison with `VK_LAYER_KHRONOS_validation`, `ANYPS5_NO_SHADER_CACHE=1`, and `ANYPS5_REQUIRE_VULKAN=1`, including confirmation that the layer loaded and no new `VUID-` appeared. ### Non-blocking - The earlier test-policy finding is resolved: the shared-V# test now accepts the valid high-word pointer control instead of asserting that this unsupported shape must throw. ## Sources - [Current-main AGC/shader validation requirement, pinned to `fdd1753`](https://github.com/boykopovar/AnyPS5/blob/fdd1753204a4732e1011539cc9d3bb69f70b27a6/CONTRIBUTING.md#L72) - [Updated shared-V# test at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/eddf966ddb1a7a1a15db6d303954026adda8031f/core/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cpp#L1748-L1762) - [NVIDIA report for head `eddf966`](https://github.com/boykopovar/AnyPS5/pull/9790#issuecomment-6509830050) ## Not verified I did not build or run the shader tests, validation layer, or title on this machine. The NVIDIA results are author/CI-provided. macOS relinker jobs were still queued when checked. ## To get this to a good state Once #8939 and #9457 are resolved and the dependency stack is integrated with current `main`, post the required same-GPU baseline/change validation comparison for the final integrated head. I will recheck that exact head and rerun the non-building checks above.
MarcZX10 commented 2026-11-01 03:33:10 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-01T03:33:10Z.

Review: CHANGES_REQUESTED


Re-checked — new head, changes requested

The updated head includes #9457 and the report shows no VUID unique to this change, but the required validation run still reports a missing-layer warning and uses an outdated main baseline.

What I ran

  • Reviewed PR head a5efbc3ec560aa54d859ec8becd304ad33633fff, PR base b08c539c505c48341146c705bc72d9b603cdb3a7; the stack check saw current main at c0e05f40e385f23f34a5ef9c3fe675f86089f5db.
  • Environment: Debian 12, Linux x86-64, Python 3.11.2. No compiler was invoked and I did not build or run C++/GPU tests locally.
  • Commands:
python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 9790
python3 tools/pr_stack_check.py 9790 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-stack-9790-final
gh run view 41264686702 -R EagleBearerYS/AnyPS5 --log-failed
gh api repos/boykopovar/AnyPS5/compare/b08c539c505c48341146c705bc72d9b603cdb3a7...c0e05f40e385f23f34a5ef9c3fe675f86089f5db --jq '[.files[].filename | select(test("ResourceMaterializer|ResourceTracker|SpirvImageEmitter|SpirvMemoryInstructions|ImageTable|PresentationPass|ShaderDiskCache"))]'

Results

Check Result
git diff --check and repository conventions/template Passed on the exact PR head/base.
Current-main change comparison Since the tested baseline b08c539, current main changed PresentationPass.cpp, ResourceMaterializer.cpp, ShaderDiskCache.cpp, SpirvImageEmitter.cpp, and related tests.
Dependency/merge preview The PR head is included in the current #9457 head and previews cleanly against main; however, the declared stack still has open dependencies. #7223 and #8939 conflict with current main, and #7395 does not include #8939's current head.
Validation workflow 41264686702 The author-provided paired run reports the same VUID-VkDeviceCreateInfo-pNext-pNext on both arms and no new VUID, but its Linux job failed: agc_driver_image_table failed on both arms and the required layer-missing check counted one warning in each log. Windows succeeded.
Current PR hosted checks Eligibility, conventions, library portability, labels, and report were queued at the last snapshot.
Local build/tests Not run.
Unedited output excerpts from the hosted validation run
with main's implementation: fail
4/4 Test #1006: agc_driver_image_table ...........***Failed  Error regular expression found in output. Regex=[SYNC-HAZARD-|VUID-|was not found but was requested by env var VK_INSTANCE_LAYERS]
with the fix, 1 runs: fail
validation layer: inserted 2 times on main and 19 with the fix; loader layer lines 122 and 1159; 'was not found' 1 and 1 times
VUIDs with main's implementation: VUID-VkDeviceCreateInfo-pNext-pNext
VUIDs with the fix: VUID-VkDeviceCreateInfo-pNext-pNext
VUIDs the fix adds (none of them anywhere in main's log): none
RESULT os=Linux before=fail after=fail count=21 skipped=0 suite=pass new-failures=none tests=agc_driver_bda_anchor_reads|agc_driver_image_table|agc_shader_disk_cache|agc_shader_memory regex=^agc_driver_pointer_|^agc_driver_nested_ validation=layer-missing

Findings

Blocking

The evidence does not yet satisfy the repository's AGC/shader validation requirement. The workflow log for run 41264686702 reports was not found but was requested by env var VK_INSTANCE_LAYERS once in each arm, and its Linux job exits unsuccessfully because agc_driver_image_table logs the existing VUID-VkDeviceCreateInfo-pNext-pNext on both arms. The absence of a new VUID is useful, but the run does not confirm that the requested layer was consistently available and the focused validation command completed cleanly.

The baseline is also no longer current: the run compares main b08c539c505c48341146c705bc72d9b603cdb3a7 with the PR stack, while current main is c0e05f40e385f23f34a5ef9c3fe675f86089f5db and has since changed shader/AGC paths used by this stack. The dependency chain remains open, so I am not asking for a standalone rebase. After the dependencies are integrated with current main, rerun the same focused tests on that main and the final stack, on one machine/GPU, and include logs showing the layer was found in every arm, no missing-layer warning, and no new VUIDs. If a pre-existing VUID still makes CTest fail on both arms, report that baseline failure separately from the comparison result.

Non-blocking

The report's comparison found no VUID unique to the changed arm. The current stack preview is clean, and the local diff/convention checks passed.

Sources

Not verified

I did not run a local build, C++ test, Vulkan validation test, or GPU test. The hosted report is an author-provided run; I inspected its workflow log. Console behavior was not tested.

To get this to a good state

Let the declared dependency stack land, integrate the final branch with current main, and rerun the paired focused validation with a consistently loaded layer. I will recheck the resulting head and repeat the same no-build checks.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5726252534 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9790#pullrequestreview-5726252534). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-01T03:33:10Z. **Review:** CHANGES_REQUESTED --- # Re-checked — new head, changes requested The updated head includes #9457 and the report shows no VUID unique to this change, but the required validation run still reports a missing-layer warning and uses an outdated `main` baseline. ## What I ran - Reviewed PR head `a5efbc3ec560aa54d859ec8becd304ad33633fff`, PR base `b08c539c505c48341146c705bc72d9b603cdb3a7`; the stack check saw current `main` at `c0e05f40e385f23f34a5ef9c3fe675f86089f5db`. - Environment: Debian 12, Linux x86-64, Python 3.11.2. No compiler was invoked and I did not build or run C++/GPU tests locally. - Commands: ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 9790 python3 tools/pr_stack_check.py 9790 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-stack-9790-final gh run view 41264686702 -R EagleBearerYS/AnyPS5 --log-failed gh api repos/boykopovar/AnyPS5/compare/b08c539c505c48341146c705bc72d9b603cdb3a7...c0e05f40e385f23f34a5ef9c3fe675f86089f5db --jq '[.files[].filename | select(test("ResourceMaterializer|ResourceTracker|SpirvImageEmitter|SpirvMemoryInstructions|ImageTable|PresentationPass|ShaderDiskCache"))]' ``` ## Results | Check | Result | |---|---| | `git diff --check` and repository conventions/template | Passed on the exact PR head/base. | | Current-main change comparison | Since the tested baseline `b08c539`, current `main` changed `PresentationPass.cpp`, `ResourceMaterializer.cpp`, `ShaderDiskCache.cpp`, `SpirvImageEmitter.cpp`, and related tests. | | Dependency/merge preview | The PR head is included in the current #9457 head and previews cleanly against `main`; however, the declared stack still has open dependencies. #7223 and #8939 conflict with current `main`, and #7395 does not include #8939's current head. | | Validation workflow 41264686702 | The author-provided paired run reports the same `VUID-VkDeviceCreateInfo-pNext-pNext` on both arms and no new VUID, but its Linux job failed: `agc_driver_image_table` failed on both arms and the required layer-missing check counted one warning in each log. Windows succeeded. | | Current PR hosted checks | Eligibility, conventions, library portability, labels, and report were queued at the last snapshot. | | Local build/tests | Not run. | <details> <summary>Unedited output excerpts from the hosted validation run</summary> ```text with main's implementation: fail 4/4 Test #1006: agc_driver_image_table ...........***Failed Error regular expression found in output. Regex=[SYNC-HAZARD-|VUID-|was not found but was requested by env var VK_INSTANCE_LAYERS] with the fix, 1 runs: fail validation layer: inserted 2 times on main and 19 with the fix; loader layer lines 122 and 1159; 'was not found' 1 and 1 times VUIDs with main's implementation: VUID-VkDeviceCreateInfo-pNext-pNext VUIDs with the fix: VUID-VkDeviceCreateInfo-pNext-pNext VUIDs the fix adds (none of them anywhere in main's log): none RESULT os=Linux before=fail after=fail count=21 skipped=0 suite=pass new-failures=none tests=agc_driver_bda_anchor_reads|agc_driver_image_table|agc_shader_disk_cache|agc_shader_memory regex=^agc_driver_pointer_|^agc_driver_nested_ validation=layer-missing ``` </details> ## Findings ### Blocking The evidence does not yet satisfy the repository's AGC/shader validation requirement. The workflow log for run `41264686702` reports `was not found but was requested by env var VK_INSTANCE_LAYERS` once in each arm, and its Linux job exits unsuccessfully because `agc_driver_image_table` logs the existing `VUID-VkDeviceCreateInfo-pNext-pNext` on both arms. The absence of a *new* VUID is useful, but the run does not confirm that the requested layer was consistently available and the focused validation command completed cleanly. The baseline is also no longer current: the run compares `main` `b08c539c505c48341146c705bc72d9b603cdb3a7` with the PR stack, while current `main` is `c0e05f40e385f23f34a5ef9c3fe675f86089f5db` and has since changed shader/AGC paths used by this stack. The dependency chain remains open, so I am not asking for a standalone rebase. After the dependencies are integrated with current `main`, rerun the same focused tests on that `main` and the final stack, on one machine/GPU, and include logs showing the layer was found in every arm, no missing-layer warning, and no new VUIDs. If a pre-existing VUID still makes CTest fail on both arms, report that baseline failure separately from the comparison result. ### Non-blocking The report's comparison found no VUID unique to the changed arm. The current stack preview is clean, and the local diff/convention checks passed. ## Sources - [Repository's paired AGC/shader validation rule at current `main`](https://github.com/boykopovar/AnyPS5/blob/c0e05f40e385f23f34a5ef9c3fe675f86089f5db/CONTRIBUTING.md#L73) - [Hosted paired-validation workflow log for stack commit `a5efbc3ec560`](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41264686702) - [PR's resource-materialization changes at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/a5efbc3ec560aa54d859ec8becd304ad33633fff/core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp) - [Current-main resource-materialization changes](https://github.com/boykopovar/AnyPS5/blob/c0e05f40e385f23f34a5ef9c3fe675f86089f5db/core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp) ## Not verified I did not run a local build, C++ test, Vulkan validation test, or GPU test. The hosted report is an author-provided run; I inspected its workflow log. Console behavior was not tested. ## To get this to a good state Let the declared dependency stack land, integrate the final branch with current `main`, and rerun the paired focused validation with a consistently loaded layer. I will recheck the resulting head and repeat the same no-build checks.
XairRrR commented 2026-11-03 08:45:15 +00:00 (Migrated from github.com)

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

Review: CHANGES_REQUESTED


Reviewed — changes requested

This pull request does not merge cleanly into main (4f41f4c375): head a12bac51d6 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:5749258625 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9790#pullrequestreview-5749258625). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-11-03T08:45:15Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested This pull request does not merge cleanly into `main` (4f41f4c375f5abb487dbd184fbc150f31994d762): head a12bac51d69810df27d2d18d5520ce87acef7428 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=2923 head=a12bac51d69810df27d2d18d5520ce87acef7428 -->
XairRrR commented 2026-11-03 13:56:38 +00:00 (Migrated from github.com)

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

Review: APPROVED


Re-checked — approved

This push (6b38153c07) merges main into the branch. The merged tree builds, the focused table, BDA-anchor and shader-memory tests pass, the validation layer reports no new VUID-, and both negative controls (the tracker change, and the scalar-base low-bits change) fail exactly as the description says.

What changed since my last review

I had no text from my earlier review, so this re-check covers the whole change again. The new commit, 6b38153c07, is a merge of main. It changes no product line of this PR's own delta over #9457's head 0a4f7cdbed, except where main touched the same files (ResourceTracker.cpp and SpirvEmitterState.hpp). FormatVersion is 71, above main's 52.

Scope: the diff against main also carries the open stack below this PR (#7223, #7395, #8939, #9457). I reviewed this PR's own delta in detail: the diff from 0a4f7cdbed to a12bac51d6, made of the shared-V# planning, the unrewritten V# copy, the planning-only fixpoint, the SMEM base masking and its tests. I read the stack's code only far enough to follow it, since those parts are reviewed on their own PRs.

What I ran

Head 6b38153c074944c7aca01b4d66d0a241c34ec646, main 4f41f4c375f5abb487dbd184fbc150f31994d762, merged tree 1b423f740b78b8d6a4d88183b2a0b7cbf67ba11a. Debian 13 VM, GCC 14.2.0, Release, lavapipe (Mesa 26.1.6, LLVM 19).

git diff --check 4f41f4c375f5abb487dbd184fbc150f31994d762...6b38153c074944c7aca01b4d66d0a241c34ec646
python3 tools/check_conventions.py --base 4f41f4c375f5abb487dbd184fbc150f31994d762
ctest --test-dir build -j8 --test-load 32 --output-on-failure -R "^agc_driver_(pointer_|nested_|bda_anchor)|^agc_shader_memory$|^agc_shader_bindless$|^agc_shader_nested"
# control 1: git diff 0a4f7cdbed a12bac51d6 -- ResourceTracker.cpp, reverse-applied
ninja -C build -j32 -l32 agc_driver_image_table_tests agc_shader_memory_tests
ctest --test-dir build -j8 --test-load 32 -R "^agc_driver_(pointer_|nested_)"
# control 2: the same delta of ImageTableAbi.hpp, SpirvBdaRead.cpp, SpirvMemoryInstructions.cpp, SpirvEmitterState.hpp, reverse-applied
ninja -C build -j32 -l32 agc_driver_image_table_tests agc_shader_memory_tests agc_driver_bda_anchor_reads_tests
ctest --test-dir build -j8 --test-load 32 -R "^agc_driver_(pointer_|nested_|bda_anchor)|^agc_shader_memory$|^agc_shader_bindless$"
# merged files restored with git show 1b423f740b:<path>, rebuilt
VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_NO_SHADER_CACHE=1 ctest --test-dir build -j8 --test-load 32 -V -R "^agc_driver_(pointer_vsharp_shared|nested_(image|sampler)_table$|bda_anchor)"
git status --porcelain
Check Result
git diff --check clean
check_conventions.py All conventions checks passed
Build (script) configure, build and libs OK
Selected tests (script) 2233 ran, 0 new failures, 0 timeouts; 7 known failures that fail on main too
Validation (script, main against merge) 787 tests, layer loaded in 786, none missing, 0 tests with a new VUID-
Focused set, merged tree 22 of 22 pass
Focused validation run, merged tree 5 of 5 pass, no VUID- lines, no was not found
Worktree after the controls git status --porcelain empty

Negative control

  • The tracker delta (ResourceTracker.cpp at #9457's level): agc_driver_nested_image_table, agc_driver_nested_sampler_table, agc_driver_pointer_vsharp_shared_table and _shared_reuse_table fail with GetImageResource dword 0 is not a valid runtime value. The other 13 pointer and nested tests pass. This matches the description and wachi35676's run.
  • The low-bits product side (47a4e592ee): agc_driver_pointer_vsharp_shared_reuse_table segfaults in llvmpipe, and agc_driver_bda_anchor_reads, agc_shader_memory and agc_shader_bindless fail. The other 16 pass, which also matches the description.

Previous findings

No previous review text was available, so there are no earlier findings to track.

I checked the other reviewers' points:

  • The test-policy pin (oneandonlydean, MarcZX10): stays resolved. No test in this delta asserts the not a valid runtime value refusal.
  • The macOS low-bits bug (jotitadev): resolved. The test now forces a T# dword 0 ending in 01 and 11, and my control 2 reproduces the crash on Linux without the fix.
  • The paired validation comparison (MarcZX10): on this machine, main 4f41f4c375 against the current merge, the layer loaded in every compared test but one, none reported it missing, and no new VUID- appeared.

New findings

Blocking

None.

Non-blocking

  • The SMEM base-alignment rule has no cited source. At core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvMemoryInstructions.cpp:194 and core/shader/recompiler/ImageTableAbi.hpp:133, the 64-bit base of an s_load through an SGPR pair now drops its low two bits.
    • This changes shader instruction semantics. CONTRIBUTING asks such a change to name its source: an ISA section, or a hardware measurement with the GPU.
    • The description and 47a4e592ee say only "as SMEM does". The V# bases off a DWORD boundary entry in docs/dev/debt/shader.md records a console measurement for s_buffer_load, not for s_load through a pointer.
    • Suggested fix: cite the RDNA2 ISA section on scalar memory addressing in the description, or add an s_load case to that debt entry, unverified on hardware until measured.
  • Kept descriptor words can differ from the snapshot. Under core/shader/recompiler/Optimization/src/ResourceTracker.cpp:159-172, a T# or S# word that has other users is now read from the guest's V# at dispatch, while its descriptor handle takes the snapshot. A guest write between snapshot and dispatch can make the two differ. This is disclosed in the debt line (docs/dev/debt/shader.md:61), so I note it for reviewers rather than as a defect.

Not verified

  • Real GPUs: not run here. NVIDIA, AMD (RADV and Windows) and MoltenVK results are as reported in the description and comments.
  • The Marvel's Spider-Man 2 (PPSA03016) run: author-reported (hugodearaujo), not run here.
  • The stack's own code (#7223, #7395, #8939, #9457): not reviewed in depth in this re-check. This PR can only merge after those land.
  • Windows and macOS builds: not built here.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5753398038 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9790#pullrequestreview-5753398038). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-11-03T13:56:38Z. **Review:** APPROVED --- # Re-checked — approved This push (6b38153c07) merges `main` into the branch. The merged tree builds, the focused table, BDA-anchor and shader-memory tests pass, the validation layer reports no new `VUID-`, and both negative controls (the tracker change, and the scalar-base low-bits change) fail exactly as the description says. ## What changed since my last review I had no text from my earlier review, so this re-check covers the whole change again. The new commit, 6b38153c07, is a merge of `main`. It changes no product line of this PR's own delta over #9457's head 0a4f7cdbed, except where `main` touched the same files (`ResourceTracker.cpp` and `SpirvEmitterState.hpp`). `FormatVersion` is 71, above `main`'s 52. Scope: the diff against `main` also carries the open stack below this PR (#7223, #7395, #8939, #9457). I reviewed this PR's own delta in detail: the diff from 0a4f7cdbed to a12bac51d6, made of the shared-V# planning, the unrewritten V# copy, the planning-only fixpoint, the SMEM base masking and its tests. I read the stack's code only far enough to follow it, since those parts are reviewed on their own PRs. ## What I ran Head `6b38153c074944c7aca01b4d66d0a241c34ec646`, `main` `4f41f4c375f5abb487dbd184fbc150f31994d762`, merged tree `1b423f740b78b8d6a4d88183b2a0b7cbf67ba11a`. Debian 13 VM, GCC 14.2.0, Release, lavapipe (Mesa 26.1.6, LLVM 19). ``` git diff --check 4f41f4c375f5abb487dbd184fbc150f31994d762...6b38153c074944c7aca01b4d66d0a241c34ec646 python3 tools/check_conventions.py --base 4f41f4c375f5abb487dbd184fbc150f31994d762 ctest --test-dir build -j8 --test-load 32 --output-on-failure -R "^agc_driver_(pointer_|nested_|bda_anchor)|^agc_shader_memory$|^agc_shader_bindless$|^agc_shader_nested" # control 1: git diff 0a4f7cdbed a12bac51d6 -- ResourceTracker.cpp, reverse-applied ninja -C build -j32 -l32 agc_driver_image_table_tests agc_shader_memory_tests ctest --test-dir build -j8 --test-load 32 -R "^agc_driver_(pointer_|nested_)" # control 2: the same delta of ImageTableAbi.hpp, SpirvBdaRead.cpp, SpirvMemoryInstructions.cpp, SpirvEmitterState.hpp, reverse-applied ninja -C build -j32 -l32 agc_driver_image_table_tests agc_shader_memory_tests agc_driver_bda_anchor_reads_tests ctest --test-dir build -j8 --test-load 32 -R "^agc_driver_(pointer_|nested_|bda_anchor)|^agc_shader_memory$|^agc_shader_bindless$" # merged files restored with git show 1b423f740b:<path>, rebuilt VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_NO_SHADER_CACHE=1 ctest --test-dir build -j8 --test-load 32 -V -R "^agc_driver_(pointer_vsharp_shared|nested_(image|sampler)_table$|bda_anchor)" git status --porcelain ``` | Check | Result | |---|---| | `git diff --check` | clean | | `check_conventions.py` | All conventions checks passed | | Build (script) | configure, build and `libs` OK | | Selected tests (script) | 2233 ran, 0 new failures, 0 timeouts; 7 known failures that fail on `main` too | | Validation (script, `main` against merge) | 787 tests, layer loaded in 786, none missing, 0 tests with a new `VUID-` | | Focused set, merged tree | 22 of 22 pass | | Focused validation run, merged tree | 5 of 5 pass, no `VUID-` lines, no `was not found` | | Worktree after the controls | `git status --porcelain` empty | ## Negative control - **The tracker delta** (`ResourceTracker.cpp` at #9457's level): `agc_driver_nested_image_table`, `agc_driver_nested_sampler_table`, `agc_driver_pointer_vsharp_shared_table` and `_shared_reuse_table` fail with `GetImageResource dword 0 is not a valid runtime value`. The other 13 pointer and nested tests pass. This matches the description and wachi35676's run. - **The low-bits product side** (47a4e592ee): `agc_driver_pointer_vsharp_shared_reuse_table` segfaults in llvmpipe, and `agc_driver_bda_anchor_reads`, `agc_shader_memory` and `agc_shader_bindless` fail. The other 16 pass, which also matches the description. ## Previous findings No previous review text was available, so there are no earlier findings to track. I checked the other reviewers' points: - **The test-policy pin** (oneandonlydean, MarcZX10): stays resolved. No test in this delta asserts the `not a valid runtime value` refusal. - **The macOS low-bits bug** (jotitadev): resolved. The test now forces a T# dword 0 ending in `01` and `11`, and my control 2 reproduces the crash on Linux without the fix. - **The paired validation comparison** (MarcZX10): on this machine, `main` 4f41f4c375 against the current merge, the layer loaded in every compared test but one, none reported it missing, and no new `VUID-` appeared. ## New findings ### Blocking None. ### Non-blocking - **The SMEM base-alignment rule has no cited source.** At `core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvMemoryInstructions.cpp:194` and `core/shader/recompiler/ImageTableAbi.hpp:133`, the 64-bit base of an `s_load` through an SGPR pair now drops its low two bits. - This changes shader instruction semantics. CONTRIBUTING asks such a change to name its source: an ISA section, or a hardware measurement with the GPU. - The description and 47a4e592ee say only "as SMEM does". The `V# bases off a DWORD boundary` entry in `docs/dev/debt/shader.md` records a console measurement for `s_buffer_load`, not for `s_load` through a pointer. - Suggested fix: cite the RDNA2 ISA section on scalar memory addressing in the description, or add an `s_load` case to that debt entry, unverified on hardware until measured. - **Kept descriptor words can differ from the snapshot.** Under `core/shader/recompiler/Optimization/src/ResourceTracker.cpp:159-172`, a T# or S# word that has other users is now read from the guest's V# at dispatch, while its descriptor handle takes the snapshot. A guest write between snapshot and dispatch can make the two differ. This is disclosed in the debt line (`docs/dev/debt/shader.md:61`), so I note it for reviewers rather than as a defect. ## Not verified - **Real GPUs:** not run here. NVIDIA, AMD (RADV and Windows) and MoltenVK results are as reported in the description and comments. - **The Marvel's Spider-Man 2 (PPSA03016) run:** author-reported (hugodearaujo), not run here. - **The stack's own code** (#7223, #7395, #8939, #9457): not reviewed in depth in this re-check. This PR can only merge after those land. - **Windows and macOS builds:** not built here. <!-- anyps5-bots job=3367 head=6b38153c074944c7aca01b4d66d0a241c34ec646 -->
MarcZX10 commented 2026-11-14 10:15:53 +00:00 (Migrated from github.com)

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

Review: APPROVED


Reviewed — looks good

Nothing blocks this change; the reviewed implementation and reported checks support the pointer keyed table and descriptor reread behavior.

What I ran

  • Read the prepared description, commits, manifest, and diff for head 5e4ba4e635d0c58daba1434ff223003be625be9e.
  • Read the changed planner, materializer, ABI, SPIR-V lookup and BDA code, plus relevant test hunks and callers. No commands or tests were run in this review.

Results

Check Result Note
Targeted source review passed Traced planning through snapshot and lookup
Tests run by reviewer not run Reported runs are author supplied
Remaining changed files not run See Not verified

Findings

Blocking

None.

Non-blocking

None.

Not verified

  • Did not read ShaderMemory.cpp, which was excluded from files/ for size, or the full contents of the changed files; review focused on the implementation and test hunks relevant to the change.
  • Did not inspect every changed file or independently run reported tests. The description reports 48 focused Linux tests passing ten runs, 50 Windows tests with 39 skipped for lack of a Vulkan device, and platform and title runs from contributors.
  • Other changed files not read in full: ShaderDiskCache.cpp, ShaderDiskCache.hpp, SpirvEmitterState.hpp, SpirvBdaRead.cpp, SpirvMemoryInstructions.cpp, ImageTable.cpp, and the CMake registrations. The diff hunks for these were read where relevant.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5903704217 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9790#pullrequestreview-5903704217). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-14T10:15:53Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change; the reviewed implementation and reported checks support the pointer keyed table and descriptor reread behavior. ## What I ran - Read the prepared description, commits, manifest, and diff for head `5e4ba4e635d0c58daba1434ff223003be625be9e`. - Read the changed planner, materializer, ABI, SPIR-V lookup and BDA code, plus relevant test hunks and callers. No commands or tests were run in this review. ## Results | Check | Result | Note | |---|---|---| | Targeted source review | passed | Traced planning through snapshot and lookup | | Tests run by reviewer | not run | Reported runs are author supplied | | Remaining changed files | not run | See Not verified | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified - Did not read `ShaderMemory.cpp`, which was excluded from `files/` for size, or the full contents of the changed files; review focused on the implementation and test hunks relevant to the change. - Did not inspect every changed file or independently run reported tests. The description reports 48 focused Linux tests passing ten runs, 50 Windows tests with 39 skipped for lack of a Vulkan device, and platform and title runs from contributors. - Other changed files not read in full: `ShaderDiskCache.cpp`, `ShaderDiskCache.hpp`, `SpirvEmitterState.hpp`, `SpirvBdaRead.cpp`, `SpirvMemoryInstructions.cpp`, `ImageTable.cpp`, and the CMake registrations. The diff hunks for these were read where relevant. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-16 12:55:40 +00:00 (Migrated from github.com)

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

Review: COMMENTED


Reviewed — no blocking findings

The reviewed head is aadbb734134f17f1a6f8968562e6c2248de4c633; source inspection found no verified blocking defect, and the reported focused CI checks pass.

What I ran

Read the prepared description, commit list, manifest, and diff, then inspected targeted source ranges through repo_read.py. No commands or tests were run. The description’s CI and hardware results are author-reported, not runs performed for this review.

Results

Check Result Note
Targeted source review passed Core planner and materializer paths inspected
Tests in this review not run CI results are author-reported

Findings

Blocking

None verified in the code inspected.

Non-blocking

None.

Not verified

The full text of core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp was excluded from the review folder because it was too large; its relevant diff was inspected, but its implementation and surrounding test helpers were not. Other changed files listed as included in the manifest were not all read in full, so this is not a complete review of every changed file. No tests were run here. The reported Linux, Windows, and GPU runs were not independently verified.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5920299870 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9790#pullrequestreview-5920299870). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-16T12:55:40Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The reviewed head is `aadbb734134f17f1a6f8968562e6c2248de4c633`; source inspection found no verified blocking defect, and the reported focused CI checks pass. ## What I ran Read the prepared description, commit list, manifest, and diff, then inspected targeted source ranges through `repo_read.py`. No commands or tests were run. The description’s CI and hardware results are author-reported, not runs performed for this review. ## Results | Check | Result | Note | |---|---|---| | Targeted source review | passed | Core planner and materializer paths inspected | | Tests in this review | not run | CI results are author-reported | ## Findings ### Blocking None verified in the code inspected. ### Non-blocking None. ## Not verified The full text of `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` was excluded from the review folder because it was too large; its relevant diff was inspected, but its implementation and surrounding test helpers were not. Other changed files listed as included in the manifest were not all read in full, so this is not a complete review of every changed file. No tests were run here. The reported Linux, Windows, and GPU runs were not independently verified. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-18 03:58:37 +00:00 (Migrated from github.com)

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

Review: COMMENTED


Reviewed — comments

The review is incomplete because several changed files are excluded from the prepared bundle, so a formal decision is not justified.

What I ran

  • Read the prepared description, commit list, manifest, and the opening portion of the diff for head 543d3b48674e72734dec3f043ab0fa278fca7f45.
  • No tests or build checks were run.

Results

Check Result Note
Prepared review materials passed Description, commits, manifest, and diff inspected
Code audit not run Full change set not inspected
Tests and build not run No commands run

Findings

Blocking

None verified.

Non-blocking

None.

Not verified

The manifest lists 1,650 lines and indicates that some changed files are excluded because they are too large for the review folder. I did not inspect the complete diff or targeted repository code; therefore correctness, security, performance, and test coverage for the complete change remain unverified. The files I read were review/description.md, review/commits.md, review/manifest.json, and review/diff.patch lines 1–180. No repository source files were read.

To get this to a good state

Complete the code review of the excluded and uninspected changed files before making a formal review decision.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5950594423 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9790#pullrequestreview-5950594423). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-18T03:58:37Z. **Review:** COMMENTED --- # Reviewed — comments The review is incomplete because several changed files are excluded from the prepared bundle, so a formal decision is not justified. ## What I ran - Read the prepared description, commit list, manifest, and the opening portion of the diff for head `543d3b48674e72734dec3f043ab0fa278fca7f45`. - No tests or build checks were run. ## Results | Check | Result | Note | |---|---|---| | Prepared review materials | passed | Description, commits, manifest, and diff inspected | | Code audit | not run | Full change set not inspected | | Tests and build | not run | No commands run | ## Findings ### Blocking None verified. ### Non-blocking None. ## Not verified The manifest lists 1,650 lines and indicates that some changed files are excluded because they are too large for the review folder. I did not inspect the complete diff or targeted repository code; therefore correctness, security, performance, and test coverage for the complete change remain unverified. The files I read were `review/description.md`, `review/commits.md`, `review/manifest.json`, and `review/diff.patch` lines 1–180. No repository source files were read. ## To get this to a good state Complete the code review of the excluded and uninspected changed files before making a formal review decision.
MarcZX10 commented 2026-11-19 20:58:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T20:58:13Z.

Review: APPROVED


Reviewed — looks good

Nothing blocks this change; the complete source review supports merging, though I did not run checks in this session.

What I ran

Reviewed head 3b2426ac0a8e92a52e572566cc1d46462cd16ac0 using the prepared diff and repo_read.py for targeted source reads. No commands or tests were run by me. The author-reported runs in the PR description are not tests I performed.

Results

Check Result Note
Source review passed Changed planner, materializer, and emission paths inspected
Tests in this session not run Author-reported results are described separately
Changed test source not applicable ShaderMemory.cpp was read at its changed regions via repo_read.py

Findings

Blocking

None.

Non-blocking

None.

Not verified

I did not run builds, tests, validation layers, or GPU/title checks. The PR description reports broad focused test runs, including a recent Linux GPU run with a baseline-matching agc_driver_image_table_packed_guards failure and one timeout; it reports these as known/environmental and passing with the referenced test change. I did not independently verify those reports.

Read all 18 changed files listed as reviewed in the manifest, including ShaderMemory.cpp through targeted ranges from repo_read.py. No changed file was excluded by rule; files.json was unavailable, and the review README identifies ShaderMemory.cpp as too large for the review folder, so its changed regions were read from the pinned head through the reader.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5983283669 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9790#pullrequestreview-5983283669). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-19T20:58:13Z. **Review:** APPROVED --- # Reviewed — looks good Nothing blocks this change; the complete source review supports merging, though I did not run checks in this session. ## What I ran Reviewed head `3b2426ac0a8e92a52e572566cc1d46462cd16ac0` using the prepared diff and `repo_read.py` for targeted source reads. No commands or tests were run by me. The author-reported runs in the PR description are not tests I performed. ## Results | Check | Result | Note | |---|---|---| | Source review | passed | Changed planner, materializer, and emission paths inspected | | Tests in this session | not run | Author-reported results are described separately | | Changed test source | not applicable | `ShaderMemory.cpp` was read at its changed regions via `repo_read.py` | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified I did not run builds, tests, validation layers, or GPU/title checks. The PR description reports broad focused test runs, including a recent Linux GPU run with a baseline-matching `agc_driver_image_table_packed_guards` failure and one timeout; it reports these as known/environmental and passing with the referenced test change. I did not independently verify those reports. Read all 18 changed files listed as `reviewed` in the manifest, including `ShaderMemory.cpp` through targeted ranges from `repo_read.py`. No changed file was excluded by rule; `files.json` was unavailable, and the review README identifies `ShaderMemory.cpp` as too large for the review folder, so its changed regions were read from the pinned head through the reader. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-20 05:55:02 +00:00 (Migrated from github.com)

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

Review: COMMENTED


Reviewed — no blocking findings

The reviewed head is 5821a3e2faad35036f9506a334b627a1f1183178; the source inspected supports the described nested and pointer-keyed table behavior, with one changed test file unavailable in full.

What I ran

No commands or tests were run. I inspected the prepared diff and manifest, then read targeted ranges from the pinned repository using repo_read.py.

Results

Check Result Note
Diff and changed paths passed Prepared bundle inspected
Focused source review passed Planner and materializer paths read
Tests not run Author and CI runs are not independently verified

Findings

Blocking

None identified in the code inspected.

Non-blocking

None.

Not verified

The complete text of core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp was excluded from the review folder and not read. I also did not read every changed file in full, inspect the entire diff, or run tests. The description’s reported test results and claims about hardware behavior were not independently verified.

Files read: review/description.md, review/commits.md, review/manifest.json, and targeted portions of review/diff.patch; targeted repository ranges from core/shader/recompiler/Optimization/src/ResourceTracker.cpp and core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp.

Files excluded: core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp (too large for the review folder). The manifest lists other changed files; not all their full text was read.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5988176876 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9790#pullrequestreview-5988176876). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-20T05:55:02Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The reviewed head is `5821a3e2faad35036f9506a334b627a1f1183178`; the source inspected supports the described nested and pointer-keyed table behavior, with one changed test file unavailable in full. ## What I ran No commands or tests were run. I inspected the prepared diff and manifest, then read targeted ranges from the pinned repository using `repo_read.py`. ## Results | Check | Result | Note | |---|---|---| | Diff and changed paths | passed | Prepared bundle inspected | | Focused source review | passed | Planner and materializer paths read | | Tests | not run | Author and CI runs are not independently verified | ## Findings ### Blocking None identified in the code inspected. ### Non-blocking None. ## Not verified The complete text of `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` was excluded from the review folder and not read. I also did not read every changed file in full, inspect the entire diff, or run tests. The description’s reported test results and claims about hardware behavior were not independently verified. Files read: `review/description.md`, `review/commits.md`, `review/manifest.json`, and targeted portions of `review/diff.patch`; targeted repository ranges from `core/shader/recompiler/Optimization/src/ResourceTracker.cpp` and `core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp`. Files excluded: `core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp` (too large for the review folder). The manifest lists other changed files; not all their full text was read. ## To get this to a good state Nothing is required.
MarcZX10 commented 2026-11-23 05:52:36 +00:00 (Migrated from github.com)

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

Review: COMMENTED


Reviewed — comments

The source review covered the planner and scalar-address changes, but the full test file and direct test execution were unavailable, so a formal approval is not justified.

What I ran

Reviewed head 2aa25e42b807653b6d80d3da88fb93342987d431 from the prepared bundle. No commands or tests were run; author-reported results are not treated as runs performed for this review.

Results

Check Result Note
Planner source review passed Targeted changed paths read
Test execution not run No local test runner used
Full changed-file review not run One changed test file was excluded

Findings

Blocking

None verified.

Non-blocking

  • The shared-V# acceptance and pointer-Phi traversal add substantial planner logic. The description reports extensive synthetic and CI coverage, but I did not independently run those tests.

Sources

Not verified

Read: ResourceTracker.cpp, ImageTableAbi.hpp, SpirvBdaRead.cpp, SpirvMemoryInstructions.cpp, ShaderMemory.cpp changed hunk via the diff, and the prepared description, commits, manifest, and diff. The changed ShaderMemory.cpp full text was excluded as too large; it was not read. Other changed files were listed but not read in full. No build or tests were run.

To get this to a good state

Nothing is required. Optional: run the focused pointer-table, nested-table, shader-memory, and image-table tests on this exact head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6017112624 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9790#pullrequestreview-6017112624). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-23T05:52:36Z. **Review:** COMMENTED --- # Reviewed — comments The source review covered the planner and scalar-address changes, but the full test file and direct test execution were unavailable, so a formal approval is not justified. ## What I ran Reviewed head `2aa25e42b807653b6d80d3da88fb93342987d431` from the prepared bundle. No commands or tests were run; author-reported results are not treated as runs performed for this review. ## Results | Check | Result | Note | |---|---|---| | Planner source review | passed | Targeted changed paths read | | Test execution | not run | No local test runner used | | Full changed-file review | not run | One changed test file was excluded | ## Findings ### Blocking None verified. ### Non-blocking - The shared-V# acceptance and pointer-Phi traversal add substantial planner logic. The description reports extensive synthetic and CI coverage, but I did not independently run those tests. ## Sources - `ResourceTracker.cpp` at the reviewed head: https://github.com/boykopovar/AnyPS5/blob/2aa25e42b807653b6d80d3da88fb93342987d431/core/shader/recompiler/Optimization/src/ResourceTracker.cpp - `ImageTableAbi.hpp` at the reviewed head: https://github.com/boykopovar/AnyPS5/blob/2aa25e42b807653b6d80d3da88fb93342987d431/core/shader/recompiler/ImageTableAbi.hpp - `SpirvMemoryInstructions.cpp` at the reviewed head: https://github.com/boykopovar/AnyPS5/blob/2aa25e42b807653b6d80d3da88fb93342987d431/core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvMemoryInstructions.cpp ## Not verified Read: `ResourceTracker.cpp`, `ImageTableAbi.hpp`, `SpirvBdaRead.cpp`, `SpirvMemoryInstructions.cpp`, `ShaderMemory.cpp` changed hunk via the diff, and the prepared description, commits, manifest, and diff. The changed `ShaderMemory.cpp` full text was excluded as too large; it was not read. Other changed files were listed but not read in full. No build or tests were run. ## To get this to a good state Nothing is required. Optional: run the focused pointer-table, nested-table, shader-memory, and image-table tests on this exact head.
MarcZX10 commented 2026-11-26 11:36:39 +00:00 (Migrated from github.com)

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

Review: COMMENTED


Reviewed — comments

The diff supports the stated shader-planning changes, but I did not read every changed source file or run the reported checks, so a formal approval is not justified.

What I ran

  • Read the prepared description, commit list, manifest, and diff for head f4165c7fcf8efda07023d836281ea7a41fb8cc21.
  • Read targeted source ranges in ResourceTracker.cpp, SpirvBdaRead.cpp, SpirvMemoryInstructions.cpp, and ImageTableAbi.hpp.
  • No commands or tests were run; reported test results are author supplied.

Results

Check Result Note
Diff and targeted source review passed Core planning and address changes inspected
Tests not run Results in the description were not independently verified

Findings

Blocking

None identified in the inspected changes.

Non-blocking

The description reports that the game proceeds past the original shader failure but later stops at a different descriptor shape, which this change still refuses. That follow-up remains outside the stated scope.

Not verified

  • I did not read ShaderMemory.cpp, agc_driver_image_table_tests.cmake, BdaAnchorReads.cpp, ImageTable.cpp, SpirvEmitterState.hpp, ShaderDiskCache.hpp, or docs/dev/debt/shader.md at the pinned head. Those files were listed as changed; ShaderMemory.cpp was excluded from the review folder for size and is available only through repo_read.py.
  • I did not run tests, builds, validation-layer checks, or hardware tests. The extensive results in the PR description remain author reported.
  • Complete title behavior and behavior on GPUs and drivers beyond those described remain unverified.

To get this to a good state

Nothing is required. Optional: read the remaining changed files and run the focused checks on this head before treating the review as a formal approval.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6073471451 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9790#pullrequestreview-6073471451). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-26T11:36:39Z. **Review:** COMMENTED --- # Reviewed — comments The diff supports the stated shader-planning changes, but I did not read every changed source file or run the reported checks, so a formal approval is not justified. ## What I ran - Read the prepared description, commit list, manifest, and diff for head `f4165c7fcf8efda07023d836281ea7a41fb8cc21`. - Read targeted source ranges in `ResourceTracker.cpp`, `SpirvBdaRead.cpp`, `SpirvMemoryInstructions.cpp`, and `ImageTableAbi.hpp`. - No commands or tests were run; reported test results are author supplied. ## Results | Check | Result | Note | |---|---|---| | Diff and targeted source review | passed | Core planning and address changes inspected | | Tests | not run | Results in the description were not independently verified | ## Findings ### Blocking None identified in the inspected changes. ### Non-blocking The description reports that the game proceeds past the original shader failure but later stops at a different descriptor shape, which this change still refuses. That follow-up remains outside the stated scope. ## Not verified - I did not read `ShaderMemory.cpp`, `agc_driver_image_table_tests.cmake`, `BdaAnchorReads.cpp`, `ImageTable.cpp`, `SpirvEmitterState.hpp`, `ShaderDiskCache.hpp`, or `docs/dev/debt/shader.md` at the pinned head. Those files were listed as changed; `ShaderMemory.cpp` was excluded from the review folder for size and is available only through `repo_read.py`. - I did not run tests, builds, validation-layer checks, or hardware tests. The extensive results in the PR description remain author reported. - Complete title behavior and behavior on GPUs and drivers beyond those described remain unverified. ## To get this to a good state Nothing is required. Optional: read the remaining changed files and run the focused checks on this head before treating the review as a formal approval.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

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

Merge

Merge the changes and update on Forgejo.

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

git switch 'main'
git merge --no-ff 'upstream-pr/9790'
git switch 'upstream-pr/9790'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/9790'
git switch 'upstream-pr/9790'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/9790'
git switch 'main'
git merge --squash 'upstream-pr/9790'
git switch 'main'
git merge --ff-only 'upstream-pr/9790'
git switch 'main'
git merge 'upstream-pr/9790'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!9790
No description provided.