fix(shader): take lane-mask arms and a merged high word in a pointer-keyed record pointer #8939
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/8939"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-21T06:56:08Z.
What
Depends on: #7395. #7223, which #7395 was stacked on, has merged. Until #7395 merges, this PR's diff shows its commits too.
#7395 lets a T# or S# be read through a pointer that a scalar-buffer record holds, with the pointer's low word merged by Phis with constants, lone
Ballotwords and copies of the record word. Two titles' chains refused on the pointer's words:Ballotmask ANDed with theNOTof the loop's lane bit, thes_andn2that clears the current lane.main82f0c9aecplus open PRs and #7395's earlier commits: ABallotword is ANDed into the low word, and the high word is merged through a Phi. One arm of that Phi reads a second buffer, and on that edge the low word is a lane mask: the waterfall loop reusing the SGPR pair, as oneandonlydean read it from the IR (comment).Ratchet & Clank: Rift Apart (PPSA01474), 11-13: this PR got the title past its 0x9a30 stop on retail in Tamalero's run (see Tested); the next stop, 0x10b84, was #9633's. On current
mainthe title doesn't stop there. #14636 removed the title'spc=0x62d4GetSamplerResourcerefusal: with #14636's merge reverted,mainf57c971559aborts on it again (dantdmdarealguy's run). Tamalero's run ofmain4e2acc2120with #18522, on RADV withAPS5_MAX_COMPUTE_SPIRV_WORDS=2000000andAPS5_SKIP_REFUSED_DISPATCHES=1(which skips and logs any compute shader whose recompile fails, code), reaches the first gameplay; the only shaders it skipped were two dropped for size (comment).mainstill refuses this PR's shapes: onmain7201da4f0e, which has #14636, four of this PR's five tests fail 3 of 3 with #7395 merged and this PR's code left out, and pass 3 of 3 with this PR merged (llvmpipe, a cloud Linux machine). The fifth,agc_driver_pointer_vsharp_select_table, passes either way, as before (see Tested).The change, in
ResourceTracker.cpp, for pointer-keyed columns only:fix(shader): take lane-mask ANDs and a high-word Phi in a pointer-keyed record pointer.Ballotword, or an AND or Phi made only of those and immediates. The other operand is walked on, so a record read in it must still match the column. An AND with no lane-mask operand still refuses.fix(shader): skip lane-mask arms built from a waterfall's lane bit in a pointer-keyed record pointer.ShiftLeftLogical32(1, index), and ORs and NOTs of lane-mask operands.FindILsb32,FindUMsb32orReadFirstLane, throughBitwiseAnd32,IAdd32,ISub32, immediates and the arms ofSelectU32.s_ff1_i32_b32,s_ff1_i32_b64,s_bitset0_b32and the shift's ownAND 31.docs(shader): the image-table debt entry lists the new arms and the merged high word, and says that a high word read from a second buffer stays refused.fix(shader): pair a pointer-keyed record pointer's two words by Phi edge, from oneandonlydean's reading of Ratchet & Clank: Rift Apart's IR (comment).docs(shader): the debt entry says the two words are walked edge by edge, and that a second-buffer high word stays refused on an edge whose low word is the record word.fix(shader): refuse a pointer-keyed record arm whose two words are both immediates(9e50a74929). Where the pointer's two words are Phis of one block, an edge on which both are immediates is a constant pointer that no record holds, such as a null pointer, so the walk refuses the column there instead of planning it.At run time, a pointer built from a lane mask faults as outside the snapshot, as #7395's lane-mask arms do.
Disk cache: no plan field changes. This PR still takes its own number on the stack's format ladder, 94 (see Tested).
mainis at 88 since Pipodi's #18455. Ours take one number each: #7642 62 (a draft, held; it takes a free number at its refresh), #7395 93, #8939 94, #9457 95, #9633 96, #9749 97, #9790 98 and #9969 99. The other open PRs changing it hold 89 (#14871, #19852, #21199 and #21240), 90 (#6416, and #16812 and #16814, both stacked on #9969), 91 (#10351) and 92 (#14853), and the rest hold numbers at or belowmain's, from a check of every open PR's head on 11-16. Whichever lands second on a number takes the next free one.Overlap:
FormatVersionconflict 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 ofmainresolves it here.Marvel's Spider-Man 2 (PPSA08338), run by spiff637 (comment), stops on a record → pointer → V# → T# chain keyed by
ReadFirstLane(SelectU32(LogicalAnd, IAdd32, Phi)). The second commit'sagc_driver_pointer_vsharp_select_tablebuilds a record → pointer → V# → T# chain with the T# read under a second key, and it passes without this PR's tracker changes. The title doesn't take it yet: hugodearaujo's run of the US release, Marvel's Spider-Man 2 (PPSA03016), still stops on the #6191 chain with this PR and #7679 (comment). There the T# is read at a fixed offset of the pointer-loaded V#, with no second key, and the same shader then reads its next block through a linked pointer. The test stays as coverage of the keyed form. ycbuzi's Windows run (RTX 4070 SUPER) stops on the same chain, atpc=0x84bc, with this PR's earlier head95c2a47c76and without it (comment).Tested
tests/execution/ImageTable.cpp, on lavapipe. They are synthetic wave64 waterfall loops, assembled withllvm-mc -mcpu=gfx1030 -mattr=+wavefrontsize64. The fourth commit's is the second-buffer shader with one instruction added (s_mov_b32 s44, exec_lo,0xbeac037e) and its three crossing branch offsets adjusted, checked by disassembly.agc_driver_pointer_phi_lane_and_table(lane-mask ANDs),agc_driver_pointer_phi_high_table(a merged high word) andagc_driver_pointer_phi_high_second_table(the second-buffer arm, which refused;4750c85fcdlater removed this test, see below).agc_driver_pointer_phi_lane_not_table(Little Nightmares'BitwiseNot32ands_andn2arms) andagc_driver_pointer_vsharp_select_table(Spider-Man 2's chain).agc_driver_pointer_phi_high_second_lane_table(Rift Apart's edge: the second-buffer high word with a lane-mask low word, which must plan).ResourceTracker.cppreverted and the tests kept, on Linux with CI's configuration:lane_andandhighfail with the dword-0 refusal, andhigh_secondpasses (refused). Each half of the commit fixes only its own test.lane_notfails:GetImageResource dword 0 is not a valid runtime value; chain: LoadAddressU32@pc=0x000000c0(GetAddressResource(Phi(Immediate, Phi(ReadConstBuffer@pc=0x00000074(…), Phi(BitwiseAnd32(CompositeExtractU32x4(Ballot(LogicalAnd), Immediate), BitwiseNot32(ShiftLeftLogical32(Immediate, BitwiseAnd32))), ….vsharp_selectpasses (coverage).e9d4626904),high_second_lanefails:GetImageResource dword 0 is not a valid runtime value; chain: LoadAddressU32@pc=0x00000108(GetAddressResource(Phi(Phi(ReadConstBuffer@pc=0x0000007c(…. The other 10 image-table cases pass,high_secondamong them (refused).agc_shader_disk_cache.2788b8f986, the head before the docs commit): the five new tests, #7395's pointer-Phi and nested sampler tests andagc_shader_disk_cachepass 5 runs in a row on Linux. On Windows the GPU ones skip and the rest pass. The libc and libkernel suites pass on both.a7d1e62b53(the fourth and fifth commits):e9d4626904.agc_shader_disk_cache_large_filepass 5 runs each. Windows: builds; the Vulkan cases skip on the runner.^agc(run): 813 of 874 pass, 60 skip and 1 fails. The one failure isagc_driver_sgpr_pattern_fill_keys, a timing test, which passed in the worker's full run of the same head.6c1371b26stops at 275 s on compute 0x116bb67500:GetImageResource dword 0,LoadAddressU32@pc=0x9a30.a7d1e62b5gets past it, with no regression up to the next stop, as they report. At 270 s it stops on a different shader, compute 0x116bb5ad00:GetImageResource dword 0,LoadAddressU32@pc=0x10b84.pc=0xfd94and aBallotlane-mask word. The high word's other arm isReadConstBuffer@pc=0x10350, through a V# whose four dwords are loaded atpc=0x10338from another pointer.9162d9df8f, a merge of #7395's4661f4bab5, which mergesmain0db47b263d. The only conflict wasShaderDiskCache.hpp'sFormatVersionline:mainmoved to 45 (#7831), and this branch keeps its 46. On GitHub's runners (run), the pointer, nested, image-table and disk-cache sets (22 tests) pass 10 runs in a row on Linux. On Windows the set has 24, with two Windows-only disk-cache tests: they build, 5 pass 10 runs in a row, and the other 19, which need a Vulkan device, skip. The libc and libkernel suites pass on both, run withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners. An earlier run linked here didn't run this set, so it's replaced.agc_shader_replay --preparewithANYPS5_NO_SHADER_CACHE=1on the request the driver dumped, RTX 4090, Windows 11; replay only, no title run. Onmain513ca7e55with #9068, #8070 and #9701 to #9703, it stops on #7459'sGetImageResource dword 0 is not a valid runtime value: a T# behind areadfirstlane-keyed record in a waterfall loop whose pointer Phis carryBallotAND-NOT words. With this PR (9162d9df8) it gets past that and stops onsampler resource limit exceeded, which #10000 raises.agc_shader_replay --prepareon the title's dumped request withANYPS5_NO_SHADER_CACHE=1, Windows 10 22H2, WinLibs GCC, Release; replay only, no title or GPU run. The base ismain0db47b263with #9068, #8070 and #9703.GetImageResource dword 0 is not a valid runtime valueatLoadAddressU32@pc=0x000517dc, and so does the base with #10228.9162d9df8), the 0x517dc load is accepted, and analysis stops onsampler resource limit exceeded.LoadAddressU32@pc=0x0002ef78. Its pointer Phi has, besides the record reads with lane-mask arms, an arm read at a fixed offset of a buffer whose V# is loaded from memory. #9457 with #10000 stops at the same 0x2ef78.08586677a1, a merge of #7395's319fa1f360(which mergesmain379b1dca32), on top of the new commit9e50a74929(6. above). The conflict inResourceTracker.cppis between this PR's paired walk and #7880's unwrap of the pointer's words: pointer-keyed columns keep the paired walk, the others take #7880'sUnwrapTableRead.FormatVersionstays at #7395's 47.agc_shader_memoryandagc_shader_bindlesson both runners withGetImageResource dword 0 is not a valid runtime value(run). And9e50a74929refuses a pointer-keyed Phi edge whose two words are both immediates (a constant pointer no record holds, such as a null pointer), where the walk planned it before.agc_driver_pointer_phi_high_tablefails 3 of 3 on Linux with "a record pointer arm whose two words are both immediates was planned". With the commit, ×10: Linux 24 run, 24 pass, 0 skip, 0 fail; Windows 26 run, 7 pass, 19 skip, 0 fail.agc_shader_bindless,agc_shader_memoryand the^agc_driver_pointer_,^agc_driver_nested_,^agc_driver_image_tableand^agc_shader_disk_cachetests. Linux: 24 run, 24 pass, 0 skip, 0 fail. Windows: 26 run, 7 pass, 19 skip (Vulkan device tests; the runner has none), 0 fail.APS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners. The full^agcset at #9749's and #9790's heads, which carry this merge, shows onlymain's three known failures (see those PRs).main5d3ab7791dwith #9702 merged in, so compute shader 0x200c520000 gets past structurization.GetImageResource dword 0 is not a valid runtime value(LoadAddressU32@pc=0x00051884andpc=0x0005192c).08586677a1merged in as well (it carries #7395's changes and an earlier version of #7223's beneath it, so these runs don't separate the three), neither run has that refusal. Both stop later onstoring storage image results pending over memory outside the write watch without the guest bytes saved before them is not implemented, the check #7048 addresses.sampler resource limit exceeded, the replays' next stop, doesn't appear in these runs.232a8e4c54, a merge of #7395's2525821ac9(which mergesmainc9b2660d56). Clean:FormatVersionfollows #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: 24 run, 24 pass, 0 skip, 0 fail. Windows: 26 run, 7 pass, 19 skip (no Vulkan device), 0 fail. The libc and libkernel suites pass on both, run withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.e2af03bf19, a merge of #7395's71741a70b6, which merges #7223'sf1cc524085(yabanana's merge ofmainc8d34aa8f4). Clean:FormatVersionfollows #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: 24 run, 24 pass, 0 skip, 0 fail. Windows: 26 run, 7 pass, 19 skip (no Vulkan device), 0 fail. The libc and libkernel suites pass on both (143 and 206 tests on Linux, 170 and 222 on Windows), run withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.agc_shader_replay --preparewithANYPS5_NO_SHADER_CACHE=1on a freshshader_200c520000.prepare.reqfrom a run onmain74acfad65.main74acfad65with this PR (e2af03bf19): a title run on an RTX 3080 (617.42) stops after about 152 s onsampler resource limit exceededin compute shader 0x200c520000, and the replay stops the same way. #10000 raises that limit.LoadAddressU32@pc=0x0002ef78(GetImageResource dword 0 is not a valid runtime value). The IR shows the T# pointer is a Phi of the record pointer and a pointer read at offset 0 through a V# loaded from the record at +0x30, with that V#'s words edited before use (& 0xffffon the base's high word,<< 4on the record count,| 0x30000000on word 3). No PR in this stack plans that arm; it's the title's next stop.752620ec73:29365ffe14, a merge of #7395's9343a179b3, the format commitcfb72cb70e, the test-only commit4750c85fcd, and752620ec73, a merge ofmain0cd07dc4ab(run).29365ffe14takes #7395's merge of #7223's153400ba2b(yabanana's merge ofmain0d62324ce2, which moves #7223 toFormatVersion49) and #7395's test-only commit. Clean, and this PR's own diff is unchanged.cfb72cb70egives this PR its own disk-cache format, 51, one above #7395's 50. The open bumps take one number each: #7223 49 (as do #9508, #9748 and other open PRs), #7395 50, #8939 51, #10000 52, #9457 53, #10489 54, #9633 55, #9749 56, #9790 57, #9969 58, #10846 59. Whichever lands second on a number takes the next free one.4750c85fcddrops two checks that expected planning to refuse a shape withnot a valid runtime value, two of the assertions @oneandonlydean listed on #9969, under the rule that tests don't assert that a shape the code doesn't support yet throws: a high-word arm read from a buffer whose V# is loaded through a pointer, and a record-pointer arm whose two words are both immediates. The first was the whole ofagc_driver_pointer_phi_high_second_table's mode, so that test and its registration go; the lane-mask, high-word and second-lane cases stay.752620ec73mergesmain0cd07dc4ab. The one conflict wasResourceTracker.cpp's include list, where mrfelek's #10228 adds<numeric>beside this PR's<set>; both stay. This PR's changed lines are the same.guest_raise_exceptionfailed after "address waking round 47: the handler did not run within 5 s", asmain9fc181dde5does in the same verify setup (run); that is #11813, and this PR doesn't touch libkernel.exec_arguments,guest_timed_join_import_libkernel_sysandguest_timed_join_import_libkernel_webfail at their setup in the verify's Windows build (FileNotFoundErrorstarting the title, or copying the libraries they load), and pass inmain's own Windows job at1829def9bf(job). The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.24d5cbbcec, a merge of #7395'sca14648806(run): #7395's test-only commit, which drops the nested-sampler test's check that an S# with another consumer is refused. Clean, and this PR's changed lines are the same. The pointer-Phi, V#-select, SGPR-fill and nested-sampler tests with the disk-cache, bindless and shader-memory tests ran 10 times with no failure. Linux: 11 run, 11 pass, 0 skip, 0 fail. Windows: 13 run, 6 pass, 7 skip (the Vulkan device tests), 0 fail. Suites: libc and libkernel pass on Linux (166 and 264). On Windows libc passes (194), and libkernel passes 283 of 286:exec_arguments,guest_timed_join_import_libkernel_sysandguest_timed_join_import_libkernel_webfail at their setup in the verify's Windows build (FileNotFoundErrorstarting the title, or copying the libraries they load), and pass inmain's own Windows job at1829def9bf(job). The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.408401b351, a merge of #7395'sca5ba6296f, which carriesmain38ccd50f83and with it #11507'sFormatVersion49 (run). Clean:FormatVersionstays 51 (see What), and this PR's diff over #7395 is the same. The pointer-Phi, V#-select, SGPR-fill and nested-sampler tests with the disk-cache, bindless and shader-memory tests and #11507'sagc_driver_image_sample_short_cuberan 10 times with no failure. Linux: 12 run, 12 pass, 0 skip, 0 fail. Windows: 14 run, 6 pass, 8 skip (the Vulkan device tests), 0 fail. Suites: libc and libkernel pass on Linux (166 and 265). On Windows libc passes (194), and libkernel passes 284 of 287:exec_arguments,guest_timed_join_import_libkernel_sysandguest_timed_join_import_libkernel_webfail at their setup in the verify's Windows build (FileNotFoundErrorstarting the title, or copying the libraries they load), withmain's code too, and pass inmain's own Windows job at1829def9bf(job). The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.3e2ebbbf35:238806dc87, a merge of #7395'se04a705765, and3e2ebbbf35, the format commit (run).238806dc87takes #7395's test-only commitd908758281, which dropsagc_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), and #7395's merge of #7223's0dbf5478b2(yabanana's merge ofmainf7e84c4cf1, which moves #7223 toFormatVersion50). Clean.3e2ebbbf35gives this PR its own disk-cache format, 53 (52 is #10000's). Apart from that line, this PR's diff over #7395 is unchanged.agc_shader_bindlessandagc_shader_memoryran 10 times with no failure. Linux: 24 run, 24 pass, 0 skip, 0 fail. Windows: 26 run, 8 pass, 18 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 withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.ffa34ecc26, a merge of #7395's4769d5a745, 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: 24 run, 24 pass, 0 skip, 0 fail. Windows: 26 run, 8 pass, 18 skip, 0 fail; the 18 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 withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.13c1955909and #7395's967f0dbebbmerged intomain0836dfdf4f. Compute shader 0x2010fa0000 gets past its stop, andagc_shader_replay --prepareon its dumped request prepares it (481,271 SPIR-V words). Onmain, and onmainwith #7395 alone, it fails at pc 0x3300 withGetImageResource dword 0 is not a valid runtime value. The title then stops at compute shader 0x200c340000 with the same message, a pointer chase that #9633 and #9749, stacked on this PR, plan when the chase isn't a loop (from reading the code, not run).3d14230a7c, a merge of #7395's merge ofmain0836dfdf4f(1f158eb5e0) (run).CMakeLists.txtconflicted from #12862's split.tools/agc_test_split.py resolvemoves this PR's registrations intotests/cmake/agc_driver_image_table_tests.cmake: +7 −2 against #7395's merge, the 5 newadd_testlines and #7395's twoset_tests_propertieslines extended with this PR's names.ShaderDiskCache::FormatVersionconflicted too, since #7395's merge brings 63. This PR's own format moves from 53 to 66, the lowest number above 63 that no open PR uses, so its recompiler change keeps a disk cache format of its own.main, left as he made it, so the stack's numbers are uneven until one of them merges again.-DBUILD_TESTING=ON,ctest -Ngives 3089 tests:main's 3075, #7395's 9 and this PR's 5, each listed once.APS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.VK_LAYER_KHRONOS_validationon GitHub's Linux runner (run),main0836dfdf4fagainst this merge, for the same tests. The loader inserted the layer 1 time onmainand 13 with this merge. The only VUID in either arm isVUID-VkDeviceCreateInfo-pNext-pNext, so this merge adds none.agc_driver_image_tablefails in that mode in both arms, because the mode treats thatmainmessage as a failure.agc_shader_nested_snapshot_retry, which this PR now carries through #7395's merge. As on #7395 and #10846, it exits with 0xc0000135 before it starts, because its registration doesn't put libc's directory on PATH on Windows.df80d9b636, below, fixes it.3d14230a7c, from TechLevelZero's NVIDIA bot (report): driver 595.99.02, Ubuntu 26.04.1, 2,509 of 3,087 tests selected.main, and 2 are unstable onmain.VK_LAYER_KHRONOS_validation, there are no new validation IDs againstmain, over 939 tests on the GPU.df80d9b636, a merge of #7395's5fdf20fc3d, which gives #7223'sagc_shader_nested_snapshot_retrylibc's directory on PATH on Windows, beside #7395's sampler retry, as oneandonlydean asked on #10846 (comment). It brings in only that line, so the upstream Windows failure noted above is gone.APS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.maind262000: 39 tests, 39 passed, 0 skipped, 0 failed, both retry tests included.df80d9b636, from TechLevelZero's NVIDIA bot (report): merged ontomaine6f5730, driver 595.99.02, Ubuntu 26.04.1, 2,548 of 3,148 tests selected.main, and 3 are unstable onmain.VK_LAYER_KHRONOS_validation, there are no new validation IDs againstmain, over 946 tests on the GPU. 14 tests ran with the layer but aren't inmain's baseline, so they weren't compared. Both nested snapshot retry tests passed on the GPU.87984fe728, a merge of #7395's3283b23aac, which mergesmain88e804b0a7(run). Clean:FormatVersionstays 66, and this PR's own diff is unchanged; the plan-encoder numbers come from #7395's merge (see #7395). The shader-memory, nested, pointer, image-table, disk-cache and bindless tests, with #7694'sagc_shader_descriptor_phis, pass 10 runs in a row. Linux: 27 run, 27 pass, 0 skip, 0 fail. Windows: 29 run, 11 pass, 18 skip, 0 fail. Suites: libc and libkernel pass on Linux (210 and 310) and on Windows (237 and 331). The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners. TechLevelZero's NVIDIA bot ran this head merged ontomain88e804bon an RTX 2000 Ada (report): 2,563 passed, 7 failed, none new (3 also fail onmain, 4 unstable onmain), 45 skipped, with no new validation IDs (985 tests on the GPU).afb123a49e, a merge of #7395's6cb37cc9ed, which mergesmain4f64f81ef7(run). Clean:FormatVersionstays 66, and this PR's own diff is unchanged. TheResourceMaterializer.cppresolution, with #12246's view loop moved back intoSnapshot, comes from #7395's merge (see #7395). The shader-memory, nested, pointer, image-table, disk-cache and bindless tests, with #7694'sagc_shader_descriptor_phis, pass 10 runs in a row. Linux: 27 run, 27 pass, 0 skip, 0 fail. Windows: 29 run, 11 pass, 18 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 withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.maina4eca2a, Mesa 25.2.8, Ubuntu 26.04.1, 2,754 of 3,591 tests selected. 2,687 passed, 13 failed and 54 skipped. None of the failures is new: 12 also fail onmain, and 1 is unstable onmain. One more, atrace_digesttool test, timed out in the parallel run and passed on its retry. WithVK_LAYER_KHRONOS_validation, there are no new validation IDs againstmain, over 992 tests on the GPU. 15 tests, among them the stack's nested and pointer tests, ran with the layer but aren't inmain's baseline, so they weren't compared.main: 21 tests (agc_driver_pointer_*,agc_driver_image_table*,agc_shader_memory*,agc_shader_disk_cache*) pass, none skipped. Their negative control, with #7395'sResourceTracker.cppin the same tree: the four new cases (agc_driver_pointer_phi_lane_and_table,_high_table,_high_second_lane_tableand_lane_not_table) fail, and #7395's three pass.main92d2fdc343(NVIDIA GeForce RTX 4080 SUPER, driver 610.74, Windows, Release), replayed withagc_shader_replay --prepare, no GPU. Each PR's diff overmain, without its tests, was applied alone on92d2fdc343, this PR's atafb123a49e.GetImageResource dword 0 is not a valid runtime value, a descriptor reached through aReadFirstLane/Ballotwaterfall over constant-buffer values. The replay fails the same way, and so does #7395's diff.sampler resource limit exceeded(MaxSamplerswas 32; #10000 has since raised it to 64).MaxSamplersat 128, the request stops onGetImageResource dword 0again, so the shader has at least one more chain the stack doesn't resolve.58ebe4b440, a merge ofmain4f41f4c375(×10, complete ×10).ShaderDiskCache.hpp'sFormatVersion, wheremainis now at 52 (#10000) and this PR keeps its 66; anddocs/dev/debt/shader.md, where this PR's pointer lane-mask entry andmain's new sampler-limit entry are adjacent and both stay. This PR's own lines are unchanged apart from theFormatVersionline's old value.agc_driver_image_table,agc_driver_many_direct_samplersand every test matching^agc_shader_memory,^agc_shader_disk_cacheor^agc_shader_sampler_limits. Linux: 7 run, 7 pass, 0 skip, 0 fail. Windows: 9 run, 7 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 withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.^agc_driver_pointer_,^agc_driver_nested_,^agc_shader_nestedand^agc_shader_tabletest, so every test in this PR's diff overmainruns. Linux: 22 run, 22 pass, 0 skip, 0 fail. Windows: 24 run, 10 pass, 14 skip (no Vulkan device), 0 fail.windowscheck is red at this head on one test,avplayer_http_patched_modules, atAvPlayerHttpModules.cmake:155, where the owner executableavplayer_http_patched_modules_tests.exewasn't built for the selected test (job). #15375, the fix, has since merged (bfd14d1260). This PR changes no avplayer or HTTP file, and the check passed atafb123a49e.9eab037489, a merge of #7395's014d1e30c3, which carriesmainc2eafe4461with yabanana's #7223 (×10).ShaderDiskCache.hpp'sFormatVersion, which stays 66 (mainis at 56 since #7223), anddocs/dev/debt/shader.md, where this PR's wording of the pointer-keyed image-table entry stays. This PR's own lines are unchanged apart from theFormatVersionline's old value.agc_driver_many_direct_samplersand every test matching^agc_driver_pointer_,^agc_driver_nested_,^agc_shader_nested_,^agc_driver_image_table,^agc_shader_memory,^agc_shader_disk_cacheor^agc_shader_sampler_limits, which takes in every test in this PR's diff overmain. Linux: 27 run, 27 pass, 0 skip, 0 fail. Windows: 29 run, 10 pass, 19 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 withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.main5b1d381, driver 595.99.02, Ubuntu 26.04.1, 2,904 of 3,883 tests selected. 2,849 passed, 6 failed and 49 skipped. None of the failures is new: 3 also fail onmain, and 3 are unstable onmain. WithVK_LAYER_KHRONOS_validation, there are no new validation IDs againstmain, over 985 tests on the GPU.agc_shader_nested_sampler_snapshot_retryran with the layer but isn't inmain's baseline, so it wasn't compared.c9de9a962c, a merge of #7395's0ce8d173a3, which mergesmain8eaf82f315(×10).main, JJenkx's #15305's debt entry, and this PR's own lines are unchanged.agc_driver_many_direct_samplersand every test matching^agc_driver_pointer_,^agc_driver_nested_,^agc_shader_nested_,^agc_driver_image_table,^agc_shader_memory,^agc_shader_disk_cacheor^agc_shader_sampler_limits, which takes in every test in this PR's diff overmain. Linux: 28 run, 28 pass, 0 skip, 0 fail. Windows: 30 run, 10 pass, 20 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 withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.3cc9dd79e9, a merge of #7395's86527d2f76, which mergesmain006d11fca5(×10).main, frankea's #9020'sFormatVersion57, andFormatVersionstays 66 here. This PR's own lines are unchanged apart from theFormatVersionline's old value.agc_driver_many_direct_samplersand every test matching^agc_driver_pointer_,^agc_driver_nested_,^agc_shader_nested_,^agc_driver_image_table,^agc_shader_memory,^agc_shader_disk_cacheor^agc_shader_sampler_limits, which takes in every test in this PR's diff overmain. Linux: 28 run, 28 pass, 0 skip, 0 fail. Windows: 30 run, 10 pass, 20 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 withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.e22ac325f8, a merge of #7395's85e79949ae, which mergesmaindd7c8de5de(×10).docs/dev/debt/shader.md, where this PR's wording of the pointer-keyed image-table entry sits next to #10489's rewording of the image-table entry (the image limit is now 128). Both are kept.FormatVersionstays 66, and this PR's own lines are unchanged apart from theFormatVersionline's old value.agc_driver_many_direct_samplersand every test matching^agc_driver_pointer_,^agc_driver_nested_,^agc_shader_nested_,^agc_driver_image_table,^agc_shader_memory,^agc_shader_disk_cacheor^agc_shader_sampler_limits, which takes in every test in this PR's diff overmain. Linux: 42 run, 42 pass, 0 skip, 0 fail. Windows: 44 run, 10 pass, 34 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 344 and 346 tests on Linux and 375 and 373 on Windows, with 0 failed. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.bddad7dfa0:bc08ac89c7, a merge of #7395's3309a349f6, and the format commitbddad7dfa0, which carriesmain017bd95f5fthrough #7395 (×10).FormatVersion, where #7395 now takes 79, abovemain's 68 from #14636 and above this PR's 66. The merge takes 79, and the format commit moves this PR to 80. This PR's own lines are unchanged apart from theFormatVersionline.agc_driver_many_direct_samplersand every test matching^agc_driver_pointer_,^agc_driver_nested_,^agc_shader_nested_,^agc_driver_image_table,^agc_shader_memory,^agc_shader_disk_cacheor^agc_shader_sampler_limits, which takes in every test in this PR's diff overmain. Linux: 42 run, 42 pass, 0 skip, 0 fail. Windows: 44 run, 10 pass, 34 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'sguest_kernel_resident_fmem_exportandguest_kernel_resident_fmem_export_patchedfail: the same harness fails them onmain7259cce111alone (run), andmain's own Windows job passes them, so they come from the verify harness, not this PR. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.agctest: Everyagctest also ran once on #9749's tree, which holds this PR (run): Linux 1,530 run, 1,437 pass, 93 skip, 0 fail; Windows 1,573 run, 467 pass, 1,106 skip (no Vulkan device), 0 fail.95c2a47c76, a merge of #7395's40d718d87b, without conflicts, which carriesmaine22c5fb941through #7395 (×10).agc_driver_many_direct_samplersand every test matching^agc_driver_pointer_,^agc_driver_nested_,^agc_shader_nested_,^agc_driver_image_table,^agc_shader_memory,^agc_shader_disk_cacheor^agc_shader_sampler_limits, which takes in every test in this PR's diff overmainandmain's newagc_shader_memory_coherent_atomic_loads. Linux: 43 run, 43 pass, 0 skip, 0 fail. Windows: 45 run, 11 pass, 34 skip (no Vulkan device), 0 fail, in both attempts of the Windows job. The libc and libkernel suites run 379 and 372 tests on Linux and 406 and 400 on Windows. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.guest_timed_wait_cpufailed, 1 of the 400 libkernel tests. It logged these three lines and then aborted: The re-run of the Windows job on the same commit (attempt 2) ranguest_timed_wait_cpuand passed it, with the libkernel suite at 400 run, 0 failed. This PR changes no libc or libkernel file, and neither does the rest of the stack. #9457's run ofd007acef13, which carries95c2a47c76, passed the same Windows suite with 400 run, 0 failed (run).1376724c9f, a merge of #7395'se9ddd12bd2, without conflicts, which carriesmainbd278f3654through #7395 (×10).FormatVersion:main's 69, this PR's 80. #7395's merge takes #19530's move ofmainfrom 68 to 69, and this PR's own diff over #7395 is unchanged.95c2a47c76. Linux: 43 run, 43 pass, 0 skip, 0 fail. Windows: 45 run, 11 pass, 34 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 withAPS5_SKIP_TIMING_TESTS=1, which relaxes onlyprecise_wait's median bounds on GitHub's hosted runners._putenv_stest fix (#19899) on top, becausemain's Windows test build breaks without it ("'setenv' was not declared" inUploadCacheReadOnlyFlush.cpp, from #18037); it isn't on this branch.b4a5b1a618, a merge of #7395's3c58f422ee, which carriesmain328cbf673ethrough #7395 (×10, with #21255's test change).FormatVersion, where #7395 now takes 93, above this PR's 80. The merge moves this PR to 94. This PR's own lines are unchanged apart from theFormatVersionline.1376724c9f. Linux: 50 run, 49 pass, 0 skip, 1 fail. Windows: 52 run, 11 pass, 41 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 withAPS5_SKIP_TIMING_TESTS=1, which relaxes onlyprecise_wait's median bounds on GitHub's hosted runners.agc_driver_image_table_packed_guards, fails as onmain: three identical "stage 4 pc 0x68" records, then "unrecoverable packed table format was not poisoned", the same lines as inmain's own Linux job ate249fc47b5(job). fernandomcrsilva's open #21255 changes that test. With #21255's test change on top of #9969's20b045a8de, which holds this PR'sb4a5b1a618(run),agc_driver_image_table_packed_guardspasses 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_sensorsin that run: libkernel'sguest_thermal_sensorsreached its 20 s timeout in the Linux suite. It times out in every run I have on GitHub's Intel Xeon 6975P-C runners,main0694c4cbd6alone included (run), and passes in this PR's own ×10 above and inmain's own job. This PR changes no libkernel file._putenv_stest fix (#19899) on top, becausemain's Windows test build breaks without it ("'setenv' was not declared" inUploadCacheReadOnlyFlush.cpp, from #18037); it isn't on this branch.ANYPS5_REQUIRE_VULKAN=1andANYPS5_NO_SHADER_CACHE=1. This headb4a5b1a618merged ontomaine4caa07950(their merge ee1e118c33, clean), againstmaine4caa07950alone,ctest -R '^agc_.*(image_table|pointer)|^agc_shader_(disk_cache|memory)'.main: 40 of 41 pass. This PR: 48 of 49 pass, including the eight testsmaindoesn't have (this PR's five and #7395's three). The one failure on both sides isagc_driver_image_table_packed_guards, with the same message as onmain, "unrecoverable packed table format was not poisoned" after the "stage 4 pc 0x68" record. fernandomcrsilva's open #21255 changes that test. NoVUID-line on either side, and every device test selected the RTX 4090.5eb49d1893, a null record pointer on Windows (test only,tests/execution/ImageTable.cpp). @frankea's run on Windows 11 with an RTX 4090 (NVIDIA 621.14, MinGW, comment) failedagc_driver_pointer_phi_lane_and_tableandagc_driver_pointer_phi_lane_not_table3 of 3 atb4a5b1a618, and on #9457, #9790 and #9969, both withselected the descriptor at 0x0: unmappedwhere they expectedoutside the snapshot.lane_not_table's zero arm, andlane_and_table's lane-mask arm in the waterfall pass over lanes 32-63. #18253 links Windows test executables without high-entropy addresses, which keeps their stacks near the bottom of the address space. On frankea's machine the selected pointer was 0x0, so the records sat below 4 GiB and their high word was 0, and 0x0 faults as unmapped, as a null pointer does inagc_driver_pointer_phi_sampler_table. GitHub's Windows runner has no Vulkan device, so these tests skip there.selected the descriptor at 0x0: unmapped; otherwise they still have to fault outside the snapshot.^agc_driver_pointer_and^agc_driver_nested_tests pass, none skipped.0x40000000, below 4 GiB. With the old checks,agc_driver_pointer_phi_lane_and_tableand_lane_not_tablefail 3 of 3, each onselected the descriptor at 0x0: unmapped, and the other 10 pass 3 of 3 (job). With the fix, all 12 pass ×10 (job)._putenv_sfix (#19899) merged for the run only: the build passes, the libc and libkernel suites run 421 and 417 tests with 0 failed, and the 12 tests skip (no Vulkan device). The Windows GPU case itself can only be re-run by a tester.maindcf3d15978; B is the samemainwith this head,5eb49d1893, merged in locally.mainalone: both runs stop in compute shader 0x200c520000 onGetImageResource dword 0 is not a valid runtime value(LoadAddressU32@pc=0x000518c4).sampler resource limit exceeded, whichResourceTracker.cppgives when a shader needs more thanMaxSamplerssamplers (64 since #10000).5eb49d1893, by @frankea (comment): one request for compute shader 0x200c520000 dumped onmain3858655d2a, replayed withagc_shader_replay --prepareandANYPS5_NO_SHADER_CACHE=1, macOS x86_64, Release; replay only, no title or GPU run.mainalone, andmainwith #21745: refused atGetImageResource dword 0.mainwith this PR's5eb49d1893(a clean merge): past that refusal, and stops onsampler resource limit exceeded.606212c86e, a merge of #7395'sef102a3a52, which carriesmaind89f26516cthrough #7395, without conflicts (×10, with #21255's test change).FormatVersionstays 94, and its own lines are unchanged.agc_driver_many_direct_samplersand every test matching^agc_driver_pointer_,^agc_driver_nested_,^agc_shader_nested_,^agc_driver_image_table,^agc_shader_memory,^agc_shader_disk_cacheor^agc_shader_sampler_limits, which takes in every test in this PR's diff overmain. Linux: 50 run, 49 pass, 0 skip, 1 fail. Windows: 52 run, 11 pass, 41 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 410 and 411 tests on Linux and 439 and 432 on Windows, with 0 failed apart fromguest_thermal_sensors(below). The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxes onlyprecise_wait's median bounds on GitHub's hosted runners.agc_driver_image_table_packed_guards, also fails onmaind89f26516calone in the same harness on GitHub's runners (run: the^agc_driver_image_tabletests ×10, 29 run, only this one fails).main's own Linux job, on the project's self-hosted runner, passes it at244b338dd0(job). fernandomcrsilva's open #21255 changes that test. With #21255's test change on top of #9969's630bbb0a2e, which holds this PR's606212c86e(run),agc_driver_image_table_packed_guardspasses 10 of 10, and so do the same tests on that tree: Linux 57 run, 57 pass, 0 skip, 0 fail; Windows 59 run, 11 pass, 48 skip (no Vulkan device), 0 fail.guest_thermal_sensors: libkernel'sguest_thermal_sensorsreached 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,main0694c4cbd6alone included (run), and passed in this refresh's runs on AMD EPYC runners. This PR changes no libkernel file._putenv_stest fix (#19899) on top, becausemain's Windows test build breaks without it ("'setenv' was not declared" inUploadCacheReadOnlyFlush.cpp, from #18037); it isn't on this branch.BUILD_TESTING=ON, validation layer 1.4.363, withANYPS5_REQUIRE_VULKAN=1andANYPS5_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's630bbb0a2e(with #7395, #8939, #9457 and #9790; their merge 2c9689c0c3) and #9749'sbee5a91996(with #7395, #8939, #9457 and #9633; their merge b726f51423), each merged ontomaine1ab104e0a(clean), againstmaine1ab104e0aalone; both carry this PR's head606212c86e.main: 39 tests, 38 pass, 1 skip in each run. Each arm: 56 tests, 55 pass, 1 skip in each run; the counts include the tests of each arm's other PRs. The one skip is the same in every arm,main's included:agc_driver_image_table_vouched_lookups(the device reports host-imported pages written after a GPU read). The layer was inserted 32 times onmainand 48 times in each arm, and never reported missing. NoVUID-line in any arm, and every Vulkan test selected the RX 9070 XT.mained1def4dd4withgit merge --no-ff. No validation layer was installed, so these runs say nothing aboutVUID-errors. This head606212c86e: the new tests pass, and of the 1296 tests the change reaches, the only failures are onesmainalso fails on that GPU (#23232, #23711, #23942). Their run of #9633's2f104ac486, which carries this head, has the same result (comment).2eecdd6fc8, a merge of #7395's5b21241399, which carriesmaind50640e264through #7395, without conflicts (×10, with #21255's test change).FormatVersionstays 94, and its own lines are unchanged.agc_driver_many_direct_samplersand every test matching^agc_driver_pointer_,^agc_driver_nested_,^agc_shader_nested_,^agc_driver_image_table,^agc_shader_memory,^agc_shader_disk_cacheor^agc_shader_sampler_limits, which takes in every test in this PR's diff overmain. Linux: 50 run, 49 pass, 0 skip, 1 fail. Windows: 52 run, 11 pass, 41 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 410 and 417 tests on Linux and 439 and 438 on Windows, with 0 failed. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxes onlyprecise_wait's median bounds on GitHub's hosted runners.agc_driver_image_table_packed_guards, also fails onmaind89f26516calone in the same harness on GitHub's runners (run: the^agc_driver_image_tabletests ×10, 29 run, only this one fails).main's own Linux job, on the project's self-hosted runner, passes it at244b338dd0(job). fernandomcrsilva's open #21255 changes that test. With #21255's test change on top of #9969'sdc97c68c75, which holds this PR's2eecdd6fc8(run),agc_driver_image_table_packed_guardspasses 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_clockin the run with #21255's test change: libkernel'sguest_thread_cpu_clockaborted once in that run's Windows suite, on an Intel Xeon 6973P-C runner. ShootanoJumper's #23756 reports this test failing intermittently on Windows onmained1def4dd4under load and changes it. It merged aftermaind50640e264, so these runs don't have it. This PR changes no libkernel file._putenv_stest fix (#19899) on top, becausemain's Windows test build breaks without it ("'setenv' was not declared" inUploadCacheReadOnlyFlush.cpp, from #18037); it isn't on this branch.Checklist
f6fb8b64a9, merged with #7395's6cb37cc9ed(which mergesmain4f64f81ef7) and then withmain4f41f4c375; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)5eb49d1893, see Tested; not re-run since); NVIDIA GeForce RTX 4080 SUPER (Windows 10 Pro), by @xXPBSXx in the Ghostrunner (PPSA03685) title runs; AMD Radeon RX 9070 XT (RADV, Mesa 26.2.7, Arch Linux, with the validation layer), by @hugodearaujo; NVIDIA RTX 4060 (driver 616.56, Windows 11, no validation layer), by @ShootanoJumperImported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-21T13:40:30Z.
@EagleBearerYS thanks for #8939. We ran PPSA01474 on
mainplus #7395 and #8939 (f877d5e5dc; the pointer walk is the same ate9d4626904) and dumped the IR of the shader that stops. It still stops atLoadAddressU32@pc=0x9a30withGetImageResource dword 0 is not a valid runtime value. Its address changes from run to run (0x116bb5d300, 0x116bb66700, 0x116bb5c500 and 0x116bb5c900 are the same program).The IR shows which check refuses it, and why that arm isn't a pointer:
GetAddressResource(low, high), and both words are Phis that merge at pc 0x5a48.ReadConstBufferat offset 0 of a buffer whose V# is loaded through the record pointer, pc 0x900c/0x908c).PointerRecordReadsrefuses that arm on the high-word walk, because it isn't the same record column.BitwiseAnd32(Phi(lane masks), CompositeExtractU32x4(Ballot(true), 0)), a pure lane mask. Every edge that carries a record-column low word carries the record-column high word.So on the one path where the high word comes from the second buffer, the "pointer" is (a lane mask, a T#-table dword). That's the SGPR pair being reused by the waterfall loop, not an address. Tamalero's dump on #6191 (issuecomment-6255548496) agrees: the record's high word is
0x00000012in all 27,396 populated records, and no dword of that T# table equals0x12.Could the walk pair the two words by incoming edge? Concretely:
agc_driver_pointer_phi_high_second_tablekeeps refusing when the second-buffer high word is paired with a record-column low word. A new case pairs it with a lane-mask low word, which should plan, and its record lanes should sample the T# their record selects.This decides it at plan time from the IR alone, with no run-time fault path and no new plan field. If you'd rather keep the walks separate, a run-time fault for pointers built from that arm (as lane-mask pointers already do) would also work for us. We can share the IR excerpt around 0x9a30, and we're happy to run the title on the result.
Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-21T14:07:27Z.
@oneandonlydean, thank you for reading the IR this closely. The edge-by-edge pairing is the better fix, so I've written it as you describe, with both cases:
agc_driver_pointer_phi_high_second_tablekeeps refusing the second-buffer high word paired with the record-column low word, and a new case pairs it with a lane-mask low word and checks that it plans and that each record lane samples the T# its record selects. It's on GitHub's runners now. I'll post here once it's pushed to this branch, so you can run Ratchet & Clank: Rift Apart (PPSA01474) on it.Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-21T14:50:05Z.
@oneandonlydean, thank you for the IR dump and the steps.
a7d1e62b53on this branch pairs the two words as you describe:PointerRecordPairswalks the low- and high-word Phis together. Where both are Phis of one block, each low-word edge takes the high word that arrives from the same predecessor. A word that is no Phi there stays the same on every edge.agc_driver_pointer_phi_high_second_tablestill refuses its second-buffer high word, which it pairs with a record-column low word. The newagc_driver_pointer_phi_high_second_lane_tableis the same shader withs_mov_b32 s44, exec_loadded to the second-buffer arm. That read isBitwiseAnd32(exec_lo, CompositeExtractU32x4(Ballot(true), 0))in the IR, the form you list. It plans, each group's lanes sample the T# their record selects, and that arm faults outside the snapshot when a group takes it.There's no new plan field and no new run-time path.
Tested on GitHub's runners, on
mainb6fe513b9a(run 39613056959):pointer_phi_high_secondcases, plusagc_shader_disk_cache_large_file, 5 runs each, all pass.^agc(run 39613110357): 873 of 874 pass, 60 skip. The one failure isagc_driver_sgpr_pattern_fill_keys, a timing test, which passed in the full run of the same head below.ResourceTracker.cppfrome9d4626904, the new case fails with "GetImageResource dword 0 is not a valid runtime value", andagc_driver_pointer_phi_high_second_tablestill refuses as before;e9d4626904.One shape that planned before is now refused. Both Phis are in one block, one edge carries the record's low word with an immediate high word, and the other carries a lane mask with the record's high word. No edge carries a whole record pointer, so the old plan could only fault at run time there. If you'd rather keep it planned, falling back to the old separate high-word walk when the paired walk finds no high read keeps it as before.
Could you run Ratchet & Clank: Rift Apart (PPSA01474) on
a7d1e62b53? If it stops again, the IR excerpt around the new stop would help.Imported from boykopovar/AnyPS5. Originally posted by Tamalero on 2026-10-21T19:20:35Z.
Retail check of
a7d1e62b5on Ratchet & Clank: Rift Apart (PPSA01474, 01.005.003), Linux, RTX 4090 (NVIDIA 615.78.08), cold shader cache, one unattended run per build:6c1371b26(contains #722387168157aandmainb6fe513b9)GetImageResource dword 0,LoadAddressU32@pc=0x9a30, the stop you dumpeda7d1e62b5GetImageResource dword 0,LoadAddressU32@pc=0x10b84The new chain has the same overall shape one level deeper. The low word is a Phi of the record read at
pc=0xfd94and aBallotlane-mask word (CompositeExtractU32x4). The high word arm isReadConstBuffer@pc=0x10350through a V# whose four dwords are loaded atpc=0x10338from another pointer:So
a7d1e62b5fixes the 0x9a30 stop on the retail title. No regression up to the new stop. I can dump this shader's IR or the runtime values of thepc=0x10338/0x10350reads if that helps.Tested and written by Claude (AI assistant) on a contributor's machine.
Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-21T19:26:30Z.
@Tamalero, thank you for the retail run. It's now in the description: this PR gets Ratchet & Clank: Rift Apart (PPSA01474) past the 0x9a30 stop.
We'd like to look at the 0x10b84 stop next. If you have time, the IR dump would help most:
APS5_DUMP_IR=116bb5ad00: the shader's code address, in lowercase hex without0x.==== IR 0x116bb5ad00 after <pass>blocks to stderr. Only the last block before the stop is needed.If it's easy, the runtime values would help too: on the dispatch that stops, the dword the
pc=0x10350read returns, and the record's high word, the dword after thepc=0xfd94read.We'll read the dump before saying what the fix is.
Imported from boykopovar/AnyPS5. Originally posted by hugodearaujo on 2026-10-21T21:20:49Z.
Marvel's Spider-Man 2 (PPSA03016 01.004.003, the US release of spiff637's PPSA08338) still stops on the #6191 chain with this PR, so #7395 with #7223 doesn't take this title's shape yet.
main0c6a5bd593INDEX_BUFFER_SIZE has not been set(the stop #7679 fixes)main+ #76790x11e2b44c00/0x11e2b34400:GetImageResource dword 0 is not a valid runtime value,ReadConstBuffer@pc=0x8560(GetBufferResource(LoadAddressU32@pc=0x854c(GetAddressResource(ReadConstBuffer@pc=0x1fc4, …a7d1e62b53+ #76790x11e2b37100/0x11e2b39b00, the same chainLinux 7.2.11, RX 9070 XT, RADV Mesa 26.2.5, Release. One run on
main.The shape.
agc_shader_replayon the.prepare.reqthatAPS5_DUMP_SHADERS=1wrote reproduces the refusal offline. The_failed.reqdoesn't, since it lacks the linked callee.ReadFirstLane(…) << 4. Dwords 0–1 are a callee address (the linkeds_swappc_b64targets). Dwords 2–3 are an argument pointer.ReadConstBuffer(V#, 0x0). There is no second key.TryMakeTableColumnrefuses before it reaches the nested path, becauseMatchAffineOffsetfails on the immediate offset.agc_driver_pointer_vsharp_select_tablereads its T# under a second key, which is why that fixture passes.A local change for that part. A fixed offset under a pointer-loaded V# becomes a one-key child: key 0, stride the descriptor size, addend the immediate. It applies only on the nested path; a fixed offset under a runtime V# still refuses as before.
agc_driver_image_tableand the 13 nested and pointer image-table tests pass on the RX 9070 XT.diff on
a7d1e62b53The next refusal, in the same shader (pc 0x8f54 and 0x8fa0):
ReadConstBuffer@pc=0x9000at +0x4c0: a link to the next block.PointerRecordReadsrefuses, because the arms aren't equivalent reads.I haven't tried to take this second shape; how a linked pointer should be planned is your call. I can share the request file and the IR around 0x8f54.
Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-21T21:25:59Z.
@hugodearaujo, thank you for the runs and for tracing both refusals. Your fixed-offset change is right: a T# at a fixed offset of a V# loaded through the record pointer has one record (key 0, the descriptor size as stride, the immediate as addend), which the nested path already serves, and a fixed offset under a runtime V# still refuses as before.
We'd like to carry it as your own commit, with you as its author, in a new PR stacked on this one, together with tests of ours for that shape. If you'd rather open it yourself, say so and we'll leave it to you.
For the linked-pointer shape at 0x8f54 and 0x8fa0, the IR text around those reads would help. We don't need the request file, since it holds the title's shader code.
Imported from boykopovar/AnyPS5. Originally posted by Tamalero on 2026-10-22T01:33:10Z.
@EagleBearerYS here's the IR reading for the 0x10b84 stop. The address changes per run (0x116bb5ad00, 0x116bb61300 and 0x116bb5c500 in three runs on
a7d1e62b5), so I captured the failing request withAPS5_DUMP_SHADERS=1and dumped the IR offline withAPS5_DUMP_IRthroughagc_shader_replay. That reproduces the refusal exactly. I traced the walk with temporary prints in a scratch copy ofResourceTracker.cpp.Short version: the edge pairing works here. Every (low, high) pair the walk pops is consistent, and the case your PR still refuses (a record low word under a second-buffer high word) doesn't occur. The stop has a different cause: the pointer has three sources, and only the first is the record column.
ReadConstBuffer@0x1aa8, dwords 2/3 of the 16-byte record (offsets 8/0xc), stride 16 fromReadFirstLane(...) << 4. Accepted first; it fixeslowReads.ReadConstBuffer@0xfd94, offsets 0/4, where both words come from one read. Its V# is loaded at@0xfd88from offsets 0x60..0x6c of a pointer that is itself a Phi of R.ReadConstBuffer@0x10350, offsets 0/4, again both words from one read. Its V# is loaded at@0x10338from pointer+0x60, where the pointer is the Phi of R and H1.Ballot/BitwiseAnd32) and immediate low words (0xea, 0x3f400000, 0x40c00000), with their high words. There's one join where the low and high Phis sit in different blocks; the walk falls back to unpaired there.H1 and H2 both fail
PointerRecordRead(ResourceTracker.cpp:845, called from:871): offset 0 against the record's 8, and a different buffer, soSameRecordColumnfails. The walk then returns false andTryMakeIndirectColumnrefuses.So the shader chases the pointer conditionally, up to twice (P → V# at P+0x60 → dwords 0/1 → next P), and loads the T# at the final P+0. The final pointer is one of R, H(R) or H(H(R)). Since the column is pointer-keyed and the runtime looks the T# up by pointer value (
LookupTablePointer), one way forward could be:The existing
pointerHopsdon't fit as they are: they're unconditional, and a merged pointer refuses them. Forcing the two failures tocontinue(wrong, only to look further) plans with the R pointers alone and then stops onsampler resource limit exceeded, which may be the next wall after this one.I haven't checked whether the H(R)/H(H(R)) targets fall inside the captured regions. I can run a values pass on this shader if that helps.
Tested and written by Claude (AI assistant) on a contributor's machine.
Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-22T01:38:35Z.
@Tamalero thanks, this is the reading we needed, and the replay through
agc_shader_replayis a reproduction we can check a candidate against.It's new work rather than something #9457 covers. #9457's hops follow unconditional chains of plain address loads, while here the descriptor pointer is a Phi of R, H(R) and H(H(R)), and each hop reads the next pointer through a V# at P+0x60. A chase-hop closure along the lines you describe is planned as a separate PR stacked on #9457, built and tested with a synthetic chase shader. The
sampler resource limit exceededyou hit with the arms forced tocontinuestays out of scope unless it shows up with the real closure.If you can run the values pass, three things would help:
No need to send the capture itself. Once there's a candidate, a replay on your side is what we'd ask for.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-22T02:28:47Z.
@EagleBearerYS I ran
8704f73b79(stacked on #7395 and #7223) on PPSA01474. The edge pairing works: the 0x9a30 stop is gone, and the lane-mask edges there are skipped as intended. The same program now stops later, atLoadAddressU32@pc=0x10b84, with the same genericGetImageResource dword 0 is not a valid runtime value. I read the IR from anAPS5_DUMP_IR=allrun (the "after srt" pass) to see which check refuses it.The pointer is
GetAddressResource(low Phi, high Phi). Paired edge by edge, its live arms are:ReadConstBufferat pc 0x1a88, high word at the column +4);LoadAddressU32words (pc 0xfd84..0xfeb8:ReadConstBuffer@0xfd94overLoadAddressU32@0xfd88);ReadConstBuffer@0x10350overLoadAddressU32@0x10338).The other edges are lane masks paired with stale high words (including a
LoadAddressU32through the 0x9a30 pointer at pc 0xa4b8), which your pairing now skips.As far as I can tell,
PointerRecordPairs→PointerRecordReadrefuses here because every low read must be the same record column as the first (SameRecordColumn: same handle and affine key). The two extra arms come from different buffers, and those buffers' descriptors are themselves loaded from memory. Unlike the 0x9a30 arm, these look like real pointers (low and high from the same handle, paired with a read rather than a lane mask). So this is three pointer sources merged into one SGPR pair, two of them one level deeper.I don't think this belongs in #8939's current scope, which is one record column per pointer. I'm posting it so you know where the program goes next. Would you plan a multi-source pointer like this (one column per source, selected at run time), or does it need a general runtime T# fetch? I can share the IR block for $2037 and the pairing output if useful.
Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-22T02:32:55Z.
@oneandonlydean thanks for running it on Ratchet & Clank: Rift Apart (PPSA01474) and for the IR read. Good to see the 0x9a30 stop gone. 0x10b84 is the stop Tamalero traced (reply): the same three arms, the record column and two chased pointers, each read from offset 0 of a buffer whose V# is loaded from the pointer before it.
To your question: neither, quite. The plan is one pointer-keyed column whose entries cover every pointer the shader can reach from each record: the record's pointer R and the chased H(R) and H(H(R)), read from the snapshot when the dispatch is captured. The shader then looks its run-time pointer up in that column as it does today. So no general run-time T# fetch is needed while the shader fixes the chase depth (two sites here) and the chased memory is in the snapshot. A chase that loops would need a run-time fetch, and it would be refused instead. It's planned as a separate PR stacked on #9457, built with a synthetic shader, and we'll ask you to run it when it's up.
Yes, please post the
$2037IR block and the pairing output here. We'd compare them with the synthetic shader's IR.Imported from boykopovar/AnyPS5. Originally posted by hugodearaujo on 2026-10-22T11:56:47Z.
@EagleBearerYS thanks for carrying the fixed-offset change in #9457 as my commit. I'm running Spider-Man 2 on #9457 now and will post the result there.
Here is the IR around the 0x8f54 and 0x8fa0 reads, after
srt, the last pass before the refusal. The;notes are mine. Reading it again, I described the +0x4c0 arm wrongly above: it isn't a link to another block. Its two words are dwords 0 and 1 of a T# that also feeds anImageSampleRaw. So the pair looks like registers being reused, as with the lane masks at Rift Apart's 0x9a30.%7757/%8551and%7758). On the edge from$353it is dwords 0 and 1 of the T#%11013, which that block reads at +0x4c0 and samples with.GetBufferResourcehandles, one per T#.Imported from boykopovar/AnyPS5. Originally posted by BunnyFl on 2026-11-02T22:07:06Z.
Review: APPROVED
Reviewed this PR's own change on top of #7395's head (
git diffof the two heads:ResourceTracker.cpp, the newagc_driver_pointer_phi_*cases, the cache format and the debt entry). #7395 itself I haven't re-reviewed here.Reads right.
PointerRecordPairswalks the low and high words together, pairing a Phi's arms by predecessor block (PhiIncoming) when both words are Phis in the same block. It skips an edge only when its low word is a constant or a lane mask, and, for paired Phis, refuses an edge where both words are immediates. A record word ANDed with a lane mask is unwrapped only when exactly one AND operand is a lane mask (MaskedRecordWord), and every accepted read must keep the same offset and record column (PointerRecordRead). The skipped edges can't bind a wrong resource silently: per the debt entry (docs/dev/debt/shader.md), the snapshot holds the captured records' pointers and the GPU looks up the actual 64-bit pointer, so a lane-mask value that reaches the lookup faults instead.Tested on Windows 11, WinLibs GCC 15.2.0, with this head merged onto current
main: 21 tests (agc_driver_pointer_*,agc_driver_image_table*,agc_shader_memory*,agc_shader_disk_cache*) pass, nothing skipped. Negative control: with #7395'sResourceTracker.cppin the same merged tree, the four new cases (..._lane_and_table,..._high_table,..._high_second_lane_table,..._lane_not_table) fail and #7395's three pass.agc_driver_pointer_phi_lane_and_tablefails withGetImageResource dword 0 is not a valid runtime value; chain: ... BitwiseAnd32(Phi(CompositeExtractU32x4(Ballot(...(the shape the titles stop on).Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-02T22:36:19Z.
Review: APPROVED
Reviewed — approved
The edge-paired walk of a pointer-keyed record pointer's two words is sound. It merges and builds on current
main, the focused tests pass with no new VUIDs, and four of the five new tests fail without this PR'sResourceTracker.cpp.What I ran
Head
afb123a49ec3f7555c274c769abfa5bbd4f87b81,main9090972b7e91fd266819cbd77a8b058e177b5682, merged tree811a3c5c010226d737ab32ee801a80c9d77bb65d(Release, GCC 14.2.0, Ninja, lavapipe Mesa 26.1.6 / LLVM 19, Debian 13 VM).Results
git diff --checkcheck_conventions.pymain(agc_driver_division, the denormal-mode tests,unwrap_self,vector_constant_factor_tininess)mainagc_driver_pointer_*, nested, image-table, disk-cache, nested snapshot retry,agc_shader_memory,agc_shader_bindless)agc_driver_image_tableat 9.8 svsharp_selectpasses, as the description says it wouldgit status --porcelainempty), 8/8agc_driver_pointer_*pass againNegative control output (truncated)
Negative control
This PR's own production change over #7395 is
ResourceTracker.cpp. It is identical at the head and in the merged tree, andmainhas not changed it since #7395's head6cb37cc9ed. So I replaced only that file with #7395's version (6cb37cc9eda523074d5fd844537c28ce2bbe6907) in the merged tree, kept the tests, and rebuilt.lane_and,high,high_second_laneandlane_notfail with theGetImageResource dword 0refusal the titles stop on.agc_driver_pointer_vsharp_select_tablepasses without the change, as the description says (it is coverage of #7395's chain).This matches BunnyFl's Windows negative control. I then restored the merged file, rebuilt, and confirmed the worktree is clean.
Findings
Blocking
None.
Non-blocking
Dead test mode left behind by
4750c85fcd. The commit removed theagc_driver_pointer_phi_high_second_tableregistration and its--pointer-phi-high-seconddispatch. The test code for it is still there:PointerHighSecondCode(80 words, ImageTable.cpp#L395)PointerMask::HighSecond(L2072)code/nameselection (L2090-L2091)Nothing can reach them. Suggest deleting the array and the enum value, and making the last arm of each ternary explicit.
The rule that refuses an edge where both words are immediates is inconsistent with how other non-record edges are handled. See ResourceTracker.cpp#L1035-L1043.
This is not a correctness problem, because the refusal throws. If the refusal is intended, the debt entry could say so. Otherwise, consider skipping the edge like the other pointer-free edges. Since
4750c85fcdremoved the assertion, no test covers this branch.Stale description items.
agc_driver_pointer_phi_high_second_tableis still described as a test that "must refuse".4750c85fcdremoved that test.e04a705765" is out of date (the head now merges #7395's6cb37cc9ed).Reviewers who read the description to see what the tests cover will be misled.
The merge brings the whole stack. Merging this PR before #7395 (and #7223) lands would bring them in with it: about 1,500 of the 1,695 added lines are theirs (
ResourceMaterializer.cpp,SpirvImageEmitter.cpp, the ABI to 4,ShaderDiskCache66). TheDepends on: #7395line covers this. I reviewed this PR's own change over #7395 in detail, and their parts only as far as this change uses them.Not verified
seenholds (low, high) pairs, which grows quadratically when the two words' Phis are not paired. I have no shader large enough to measure it.Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-03T10:54:24Z.
Review: APPROVED
Re-checked — approved
The only new commit is
58ebe4b440, a clean merge ofmain4f41f4c375(it brings #10000's sampler limits, among others). This PR's own change is the same apart from context lines. Checks and the focused tests pass. The one new VUID the script reports comes from amaintest that this PR does not reach.What changed since my last review
58ebe4b440("Merge main into fix/shader-pointer-key-lane-masks"). Its parents areafb123a49e, which I reviewed last time, andmain4f41f4c375. The commit message lists no conflicts. The range-diff in delta.patch only reorders the cherry-picked commits; the patches are the same.git diff 9090972b7e...afb123a49ewithgit diff 4f41f4c375...58ebe4b440, ignoring index and hunk lines. Three things differ, and all three are context that comes frommain:main'sFormatVersionis now 52, and this PR still replaces it with 66, which is still abovemain's.set_tests_propertiescontext line now includesagc_shader_sampler_limits.docs/dev/debt/shader.mdcontext now has #10000's sampler-limit entry.What I ran
Head
58ebe4b44099cd04f81411a07d2c4d25d95a7a87,main4f41f4c375f5abb487dbd184fbc150f31994d762, merged treebad6f1b67d11d12ed7ed1d1a76b7dbba23e6eee1. Release build with GCC 14.2.0 and Ninja, on lavapipe (Mesa 26.1.6, LLVM 19), in a Debian 13 VM.git diff --checkcheck_conventions.pymain.agc_driver_pointer_*tests, the nested, image-table, disk-cache and nested snapshot retry tests,agc_shader_memory,agc_shader_bindlessandmain's newagc_shader_sampler_limits)agc_shader_sampler_limitsat 14.6 s.agc_driver_native_depth_uniform_planes(see below).The new VUID comes from
main, not from this PR.VUID-vkCmdDispatch-groupCountX-00386inagc_driver_native_depth_uniform_planes. The script marks that test "(test not run on main)".main'sc9987271e3(2026-10-31). That commit is not in the validation baselined1ae628bc2, so the baseline has no run of it to compare with.Graphics/src/DepthSurface.cpp's import of a native multisample D32S8 target. This PR changes nolibSceAgcDriverproduction file.groupCountX (69144) exceeds device limit maxComputeWorkGroupCount[0] (65535), which belongs to that depth-import dispatch, not to an image-table path. I did not run the test on amain-only build.Validation excerpt
Negative control: not rerun. The tests and this PR's
ResourceTracker.cpplines are the same as atafb123a49e, where four of the five new tests failed without the change. Rerunning it here would also be harder:mainhas since changedResourceTracker.cpp(#10000, #12132), so dropping in #7395's version of the file would also revertmain's changes.Previous findings
PointerHighSecondCode,PointerMask::HighSecond). Still open, and unchanged:PointerHighSecondCodeis still at ImageTable.cpp#L395.PointerMask::HighSecondis still at L2072.agc_driver_pointer_phi_high_second_tableas a test that "must refuse", but4750c85fcdremoved that test.e04a705765".Depends on: #7395.New findings
Blocking
None.
Non-blocking
None.
Not verified
agc_driver_native_depth_uniform_planeswith the validation layer on amain-only build. I attribute its VUID tomainfrom where the test comes from and from the code it exercises.main, interact with the stack's nested S# budget beyond the passing tests.agc_shader_sampler_limitsand the nested sampler tests pass together.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-16T16:51:36Z.
Review: COMMENTED
Reviewed — comments
Changes are not ready for a formal approval because I did not run the checks reported by the author, and one changed test file was excluded from the review bundle.
What I ran
Reviewed head
b4a5b1a618ed89404bd05fc910337720844641b1against the prepared diff. No commands or tests were run.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The full contents of
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppwere excluded from the review bundle; its changed hunk was inspected through the reader. The complete changed test files were not read in full. Tests, builds, and physical-console behavior were not independently verified. Other changed files were reviewed through the diff and targeted source ranges.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-18T03:36:54Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change; the points below are optional.
What I ran
Reviewed head
5eb49d189318c048e10d2848f769d58f2c215ccb. No commands or tests were run. Read the prepared description, commits, manifest, full diff, and targeted head context inResourceTracker.cpp,ResourceMaterializer.cpp, andShaderMemory.cppthroughrepo_read.py.Results
Findings
Blocking
None.
Non-blocking
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppwas available through the reader and the changed snapshot retry helper was inspected. Other changed lines in that large file were not examined; no issue is established from that limited review.Not verified
ShaderMemory.cppwas excluded from the prepared review folder because it was too large. Only lines 3980–4050 were read throughrepo_read.py; other changed lines there were not reviewed.ResourceTracker.cpp,ResourceMaterializer.cpp, andShaderMemory.cppfiles rather than their entire contents.To get this to a good state
Nothing is required. Optional: run the focused tests on the current head and inspect the remaining changed lines in
ShaderMemory.cpp.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T07:15:13Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing I inspected shows a verified defect; I did not run checks, and one changed file was excluded from review.
What I ran
606212c86eb33d30a8de2abf6a86edfbc0a9b289using the prepared diff andrepo_read.pyfor targeted source ranges.Results
Findings
Blocking
None verified in the inspected code.
Non-blocking
None.
Not verified
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppwas excluded from the review bundle because it was too large; its changed ranges were read throughrepo_read.py.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T05:04:51Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
Changes are required before merge: ensure the pointer’s low and high words come from the same record key.
What I ran
2eecdd6fc81103facf10c6939d67778700e36c0ausing the prepared review diff andrepo_read.py.Results
Findings
Blocking
core/shader/recompiler/Optimization/src/ResourceTracker.cpp:983—SameRecordColumncompares the buffers, strides, and addends, but never compares the affine keys. The paired walk can therefore accept a low-word read indexed by one key and a high-word read indexed by another. Materialization then combines the two dwords from the same record index, which may not represent either source pointer. Require equivalent affine keys before treating the reads as the same record column.Non-blocking
Not verified
ShaderDiskCache.cpp, both changed CMake test files,ImageTable.cpp,ResourceMaterializer.cpp, andResourceTracker.cpp, plus targeted portions of the diff and repository context.ShaderMemory.cppwas excluded from the review folder as too large; its changed hunks were visible in the prepared diff, but its full text was not read. The remaining changed files listed inmanifest.jsonwere not read in full. Tests and builds were not run; author and CI results in the PR description were not independently verified.To get this to a good state
SameRecordColumn, and add coverage showing that low and high reads with different keys are rejected. Re-run the focused pointer-table tests on the updated head.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-22T11:55:02Z.
Review: APPROVED
Reviewed — looks good
Nothing in the reviewed changes blocks merging; the focused code inspection supports the new pointer-word handling, though this review did not run checks.
What I ran
3a248901892f2454fe86b7dfc97640d739253823usingrepo_read.py.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_table_tests.cmake,core/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cpp,core/shader/recompiler/Optimization/src/ResourceTracker.cpp,core/shader/recompiler/ShaderDiskCache.hpp, anddocs/dev/debt/shader.md(changed sections only). No changed files were excluded by the manifest.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-26T09:03:26Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change; the points below are optional.
What I ran
Reviewed head
9e5960f6b27f5f763911fb7ea7e35d4052b22abcusing the prepared diff and the pinned repository reader. No tests were run.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
No tests were run independently. Reviewed files:
core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_table_tests.cmake,core/shader/recompiler/Optimization/src/ResourceTracker.cpp,core/shader/recompiler/ShaderDiskCache.hpp, anddocs/dev/debt/shader.md. The modified test sourcecore/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cppwas reviewed in the diff only; its full file was not read. The review bundle'sfiles.jsonwas unavailable, so excluded-file inventory and coverage against itsreviewedlist are not verified. Full title and console behavior were not independently verified.To get this to a good state
Nothing is required. Optional: run the focused image-table tests on this exact head.