fix(shader): follow pointer hops and fixed-offset V# reads behind a record pointer #9457
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9457"
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-21T22:35:57Z.
What
Two shapes from #6191's family that the planner still refuses on #8939. Each gets its own commit and test.
1. Pointer hops after a pointer-keyed record pointer (Gran Turismo 7 (PPSA01317), frankea on #6191, comment).
The chain: 28 of the World Map's 29 refused compute shaders read a record (an SRT V#, a
readfirstlanekey in a waterfall loop) whose dwords 2-3 are a pointer P1. P1's words are a Phi of the record read under several keys and aBallotlane-mask word. ThenP2 = [P1 + 0]and the T# at[P2 + 0x340]:Why it refuses:
TryMakeIndirectColumnrefuses any pointer hop once the record pointer is merged:if (!hops.empty() && (buffer || merged)) return false;.What the steps after it already do for a pointer-keyed column: the snapshot stores each record's pointer before it applies
pointerHops. The shader looks the T# up by the record-level pointer (parentPointer).ShaderDiskCachealready serializes and accepts hops on such columns.The change: the guard now refuses hops only for buffer columns.
2. A T# at a fixed offset of a pointer-loaded V# (Marvel's Spider-Man 2 (PPSA03016), hugodearaujo on #8939, comment).
The chain: a record keyed by
readfirstlane << 4, dwords 2-3 a pointer, a V# loaded at that pointer plus an immediate, and the T# read at a fixed offset of that V#'s buffer, with no second key:Why it refuses:
TryMakeTableColumnrefused it, becauseMatchAffineOffsetfails on an immediate offset.The change: hugodearaujo's change, kept as their commit. A fixed offset under a pointer-loaded V# becomes a one-key child of the nested path: key 0, stride the descriptor size, addend the immediate. A fixed offset under a runtime V# still refuses, as before.
Not in this PR:
0x120aed7f00, a table V# carried around a loop that callees overwrite). It looks like the shape #8077 handles.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).Overlap:
TryMakeIndirectColumnwhen every arm is the same table read. The shapes here have arms under different keys and aBallotword, which #7880 leaves refused. The two compose: an equivalent-arm Phi can take #7880's plain column, and the rest the pointer-keyed one. The textual overlap is in #7395's and #8939's lines, which this PR stacks on.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. #9633, #9749, #9790 and #9969 stack on this PR, above its 81. Whichever lands second on a number takes the next free one.ResourceTracker.cpp: this PR'sfixedrefusal and #20519'sruntimeAddress()return both stay. Its own test options keep both, and itsFormatVersionconflict 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.Tested
main(11-13):main7201da4f0e, which has #14636, still refuses this PR's shapes: its three tests fail 3 of 3 with #8939 merged and this PR's code left out, and pass 3 of 3 with this PR merged (llvmpipe, a cloud Linux machine).tests/execution/ImageTable.cpp(lavapipe, Linux, CI's flags):agc_driver_pointer_hop_table: Gran Turismo 7's shape, aBallot-merged P1, a hop at +0 and the T# at +0x340, across four key groups. It checks every lane's color. The constant arm and theBallotarm each fault outside the snapshot. A re-pointed link block is followed without a recompile.GetImageResource dword 0 is not a valid runtime value; chain: LoadAddressU32@pc=0x000000b4(GetAddressResource(LoadAddressU32@pc=0x000000a8(GetAddressResource(Phi(Immediate, Phi(ReadConstBuffer@pc=0x00000074(...), CompositeExtractU32x4(Ballot(LogicalAnd), Immediate))), ...agc_driver_pointer_vsharp_fixed_tableandagc_driver_pointer_vsharp_fixed_offset_table: Spider-Man 2's shape, with the T# at offsets 0 and 0x40. A moved record pointer and a moved V# are both followed without a recompile.GetImageResource dword 0 is not a valid runtime value; chain: ReadConstBuffer@pc=0x0000008c(GetBufferResource(LoadAddressU32@pc=0x00000080(GetAddressResource(ReadConstBuffer@pc=0x00000074(...image_table|pointer(23 tests) ×5 and the disk-cache and ShaderMemory tests (10) pass. The full CI ctest gives 1834/1838; the 4 failures areagc_driver_pipelined_fill(a flake on main too) and 3 IPv6 socket tests the machine can't run. Registration and conventions pass.FormatVersion, 95, its number on the stack's format ladder (see Tested). Refusals are never stored, no serialized field changes, and the cache's source version hashesResourceTracker.cpp.precise_wait(libc, Linux), which also failed on both sides in #9396's runs, andguest_raise_in_system_call(libkernel, Windows), a 30 s timeout seen in other runs on that runner.c00cb0f87merged ontomaind6eafa54d(clean).668118771and0843cca39, tests kept), the 3 new ctests fail on both GPUs with the chains above. The other 13nested_/pointer_tests pass.agc_driver_(nested_|pointer_)tests pass 3 of 3 on each GPU, none skipped, andimage_table|pointer|disk_cache|shader_memory|sampler_table(27 tests) passes 3 of 3 on each.^agcsuite on the 3070 (877 tests, withoutdisplay_buffer_dcc,driver_flipandlds_atomics64): 874 pass and 1 skips. The 3 failures,agc_driver_sample_order,_grid_referenceand_recipe_depth_locations, fail the same way onmainon that card.2a5db7ae45,maincc0078595dmerged in (clean; the PR's own diff is unchanged), on GitHub's runners (run):nested_/pointer_tests and the disk-cache tests pass 10 of 10, none skipped. libkernel's suite passes. libc's one failure,precise_wait, fails the same way withmain's implementation.check_conventions.pypasses on the merged head.mainagainst this head (run): one GitHub Linux runner, Ubuntu 24.04.5, llvmpipe (Mesa 25.2.8, LLVM 20.1.2),ANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1andVK_LAYER_KHRONOS_validation. This head's arm ran 3 times, its 20 tests passing each time, andmain's once, its 4 tests passing; none skipped or failed.main, so its arm runs the image-table tests it has,agc_driver_image_table_vouched_lookupsandagc_driver_image_table_vouch_queued_draws, with the disk-cache tests. This head's arm runs those and the 16.VUID-VkDeviceCreateInfo-pNext-pNext, and this head adds noVUID-message.main0c6a5bd593with #9424.ReadConstBuffer@pc=0x8560, at 142 s and 146 s. With #8939 (a7d1e62b53) added it stops there too, at 137 s in both runs.c00cb0f875), in one run, it gets past 0x8560 and stops at 131 s atReadConstBuffer@pc=0x8fa0overLoadAddressU32@pc=0x8f54.agc_shader_replayof the request that stopped at 0x8560 in a #8939 run refuses at 0x8fa0 as well.c00cb0f875, this PR before its merge ofmain, because the merged head doesn't get that far on this title: since #9137 it throws in the title's first 40 s onsceSystemServiceParamGetInt(parameter 100, then 208 and 210). The PR's own diff is the same in both heads.7f3a25e0cb, a merge of #8939's9162d9df8f, 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 (25 tests) pass 10 runs in a row on Linux. On Windows the set has 27, with two Windows-only disk-cache tests: they build, 5 pass 10 runs in a row, and the other 22, which need a Vulkan device, skip. The libc and libkernel suites pass on both, run 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 requests the driver dumped at use, RTX 4090, Windows 11. Replay only, on their GT7 integration branch (main513ca7e55with the GT7 pull requests in #4697's list and local diagnostics), without and with #9969 at7588a5359, which carries this PR at7f3a25e0cwith #9790, #8939, #7395 and #7223.Ballotword with arms that are the pointer loaded at 0x20ec, so on some edges the second hop starts from the first hop's result. This PR doesn't plan that shape.0x120aed7f00is unchanged (0x19a0 behind 0x198c), the shader this PR leaves out.dc18bf7bf7, a merge of #8939's08586677a1(#7395's and #8939's merges ofmain379b1dca32). 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.agc_shader_bindless,agc_shader_memoryand the^agc_driver_pointer_,^agc_driver_nested_,^agc_driver_image_tableand^agc_shader_disk_cachetests. Linux: 27 run, 27 pass, 0 skip, 0 fail. Windows: 29 run, 7 pass, 22 skip (Vulkan device tests; the runner has none), 0 fail.APS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.960abd84ea, 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: 27 run, 27 pass, 0 skip, 0 fail. Windows: 29 run, 7 pass, 22 skip (no Vulkan device), 0 fail. The libc and libkernel suites pass on both, run withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.0d4dab1baa, 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: 27 run, 27 pass, 0 skip, 0 fail. Windows: 29 run, 7 pass, 22 skip (no Vulkan device), 0 fail. The libc and libkernel suites pass on both (143 and 206 tests on Linux, 170 and 222 on Windows), run withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.0d4dab1bamerged cleanly ontomainaeff26bd9, WinLibs GCC 15.2.0, Release,ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1, no validation layer.pointer_andnested_table tests,image_table,vouch,disk_cacheand theagc_shader_tests, 66 entries, pass on both GPUs.ResourceTracker.cpphunks of668118771and0843cca39reverted,agc_driver_pointer_hop_table,agc_driver_pointer_vsharp_fixed_tableand_fixed_offset_tablefail on both GPUs, the same three as in jotitadev's RTX 3070 control.agc_entries, the same ones fail with and without the stack.822cb220e7:7c5094bda9, a merge of #8939's4750c85fcd, the format commit62992d7437, and822cb220e7, a merge of #8939's merge ofmain0cd07dc4ab(run).7c5094bda9takes #8939's merge of #7395 (which carries #7223's153400ba2b), its format commit and its test-only commit. Clean, and this PR's own diff is unchanged.62992d7437gives this PR its own disk-cache format, 53 (52 is #10000's). The open bumps take one number each: #7223 49 (as do #9508, #9748 and other open PRs), #7395 50, #8939 51, #10000 52, #9457 53, #10489 54, #9633 55, #9749 56, #9790 57, #9969 58, #10846 59. Whichever lands second on a number takes the next free one.822cb220e7merges #8939's merge ofmain0cd07dc4ab. One conflict, inTryMakeIndirectColumn(ResourceTracker.cpp): mrfelek's #10228 lets a non-address offset that isn't affine or masked match as a first-lane offset (MatchFirstLaneOffset), on the line where this PR's fixed-offset case (hugodearaujo's0843cca39d) branches off. The merge keeps both: an immediate offset on a pointer-loaded V# takes the fixed path first, and otherwise the affine, masked and then first-lane matches run as onmain. This PR's changed lines are the same.agc_shader_memorycarries #10228's first-lane cases) ran 10 times with no failure. Linux: 10 run, 10 pass, 0 skip, 0 fail. Windows: 12 run, 6 pass, 6 skip (the Vulkan device tests), 0 fail.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.88620551d5, a merge of #8939's24d5cbbcec, which carries #7395's test-only commitca14648806(the nested-sampler test no longer asserts that an S# with another consumer is refused) (run). Clean, and this PR's changed lines are the same. The hop, fixed-offset, vouch, sample-order and nested-sampler tests with the disk-cache, bindless and shader-memory tests ran 10 times with no failure. Linux: 11 run, 11 pass, 0 skip, 0 fail. Windows: 13 run, 6 pass, 7 skip (the Vulkan device tests), 0 fail. Suites: libc and libkernel pass on Linux (166 and 264). On Windows libc passes (194), and libkernel passes 283 of 286:exec_arguments,guest_timed_join_import_libkernel_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.9a44f18aeb, a merge of #8939's408401b351, which carriesmain38ccd50f83and with it #11507'sFormatVersion49 (run). Clean:FormatVersionstays 53 (see What), and this PR's diff over #8939 is the same. The hop, fixed-offset, vouch, sample-order and nested-sampler tests with the disk-cache, bindless and shader-memory tests and #11507'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.19bed84013:4830d6ed4d, a merge of #8939's3e2ebbbf35, and19bed84013, the format commit (run).4830d6ed4dtakes #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), #7395's merge of #7223's0dbf5478b2(yabanana's merge ofmainf7e84c4cf1) and #8939's format commit. Clean.19bed84013gives this PR its own disk-cache format, 55 (54 is #10489's). Apart from that line, this PR's diff over #8939 is unchanged.agc_shader_bindlessandagc_shader_memoryran 10 times with no failure. Linux: 27 run, 27 pass, 0 skip, 0 fail. Windows: 29 run, 8 pass, 21 skip (the Vulkan device tests; the Windows runner has no Vulkan device), 0 fail. The libc and libkernel suites run 191 and 291 tests on Linux and 220 and 314 on Windows, with 0 failed. They ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.31bd0dea17, a merge of #8939'sffa34ecc26, which carries #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: 27 run, 27 pass, 0 skip, 0 fail. Windows: 29 run, 8 pass, 21 skip, 0 fail; the 21 skip because the runner has no Vulkan device. The libc and libkernel suites run 191 and 291 tests on Linux and 220 and 314 on Windows, with 0 failed. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.4eaf19b304, from TechLevelZero's NVIDIA bot (report): driver 595.99.02, Ubuntu 26.04.1, this head merged ontomain3741ca9, 2,538 of 3,121 tests selected.main, and 2 are unstable onmain.VK_LAYER_KHRONOS_validation, over 945 tests on the GPU, there are no new validation IDs againstmain. 15 of the nested and pointer table tests ran with the layer but aren't inmain's baseline, so they weren't compared.49f6939fc0:9c765e7907, a merge of #8939'sdf80d9b636, and49f6939fc0, the format commit, onmainb08c539c5(run).9c765e7907takes #8939's headdf80d9b636, which merges #7395's5fdf20fc3d. It had two conflicts, both resolved to this PR's side: theFormatVersionline, which the next commit replaces, andagc_driver_image_table_tests.cmake, where this PR's registrations already include #8939's.49f6939fc0gives this PR its own disk-cache format, 67, past #8939's 66. No open pull request uses 67. Apart from that line, this PR's diff over #8939 is unchanged.agc_shader_bindlessandagc_shader_memoryran 10 times with no failure. Linux: 29 run, 29 pass, 0 skip, 0 fail. Windows: 31 run, 10 pass, 21 skip, 0 fail; the 21 skip because the runner has no Vulkan device. The libc and libkernel suites run 199 and 308 tests on Linux and 226 and 330 on Windows, with 0 failed. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.VK_LAYER_KHRONOS_validationon GitHub's Linux runner (run),mainb08c539c5against this head, for the same tests. The loader inserted the layer 8 times onmainand 23 with this head. The only VUID in either arm isVUID-VkDeviceCreateInfo-pNext-pNext, for a device struct (VkPhysicalDeviceMaintenance8FeaturesKHR) newer than that layer version, so this head adds none.agc_driver_image_tablefails in that mode in both arms, because the mode treats thatmainmessage as a failure.04d09eef56, a merge of #8939's87984fe728, which carries #7395's merge ofmain88e804b0a7(run). Clean:FormatVersionstays 67, and this PR's own diff is unchanged. 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: 30 run, 30 pass, 0 skip, 0 fail. Windows: 32 run, 11 pass, 21 skip, 0 fail. Suites: libc and libkernel pass on Linux (210 and 310) and on Windows (237 and 331). The suites ran 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,569 passed, 4 failed, none new (3 also fail onmain, 1 unstable onmain), 45 skipped, with no new validation IDs (988 tests on the GPU).0a4f7cdbed:04d09eef56plus one merge, of #8939'safb123a49e, which carries #7395's merge ofmain4f64f81ef7for #12246 (run). Clean:FormatVersionstays 67, and this PR's own diff is unchanged since04d09eef56. 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: 30 run, 30 pass, 0 skip, 0 fail. Windows: 32 run, 11 pass, 21 skip (no Vulkan device), 0 fail. Suites: libc and libkernel pass on Linux (217 and 318) and on Windows (244 and 339). The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.7aa70b1bd2, a merge ofmain4f41f4c375(×10, the PR's own tests ×10).ShaderDiskCache.hpp'sFormatVersion, wheremainis now at 52 (#10000) and this PR keeps its 67; anddocs/dev/debt/shader.md, where this PR's entries andmain's new entries 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_cache,^agc_shader_sampler_limits,^agc_shader_nestedor^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 withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.^agc_driver_pointer_and^agc_driver_nested_test, the image-table tests in this PR's diff overmain, which the first run's names left out. Linux: 15 run, 15 pass, 0 skip, 0 fail. Windows: 15 run, 0 pass, 15 skip (no Vulkan device), 0 fail.20cc916ce9, a merge of #8939's9eab037489, which carriesmainc2eafe4461with yabanana's #7223 through #7395 (×10).ShaderDiskCache.hpp'sFormatVersion, which stays 67 (mainis at 56 since #7223). 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: 30 run, 30 pass, 0 skip, 0 fail. Windows: 32 run, 10 pass, 22 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 301 and 325 tests on Linux and 331 and 343 on Windows, with 0 failed. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.mainb8efa62, driver 595.99.02, Ubuntu 26.04.1, 2,903 of 3,878 tests selected. 2,848 passed, 5 failed and 50 skipped. None of the failures is new: 3 also fail onmain, and 2 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.main1c8c0ef, Mesa 25.2.8, Ubuntu 26.04.1, 3,846 tests run. 3,766 passed, 18 failed and 62 skipped. None of the failures is new: 11 also fail onmain, and 7 are unstable onmain. WithVK_LAYER_KHRONOS_validation, there are no new validation IDs againstmain, over 1,441 tests on the GPU. 84 tests, among them this PR's nested and pointer tests, ran with the layer but aren't inmain's baseline, so they weren't compared.c147aa8647, which carries this PR: RTX 3080 Ti, NVIDIA 615.71.09, Linux, title 01.001.005.APS5_DUMP_SHADERS), throughagc_shader_replay. Thepc=0xb600GetSamplerResourcestop is gone: that S# sits at a fixed offset of a V# loaded through the record's pointer, which this PR plans (#7395 plans it only at a keyed offset). The same request then stops at a T# atpc=0xb9f8(GetImageResource dword 0).pc=0xb600and stops 148 s in at thepc=0xb9f8T#.pc=0xb9f8(see #7395).e75a7104b9, a merge of #8939'sc9de9a962c, which carriesmain8eaf82f315through #7395 (×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: 31 run, 31 pass, 0 skip, 0 fail. Windows: 33 run, 10 pass, 23 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 327 and 344 tests on Linux and 358 and 371 on Windows, with 0 failed. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.2bbcdd60fc, a merge of #8939's3cc9dd79e9, which carriesmain006d11fca5through #7395 (×10).main, frankea's #9020'sFormatVersion57, andFormatVersionstays 67 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: 31 run, 31 pass, 0 skip, 0 fail. Windows: 33 run, 10 pass, 23 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 327 and 344 tests on Linux and 358 and 371 on Windows, with 0 failed. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.e2c68c094a, a merge of #8939'se22ac325f8, which carriesmaindd7c8de5dethrough #7395 (×10).main, #10489'sFormatVersion60 and its rewording of the image-table debt entry, andFormatVersionstays 67 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: 45 run, 45 pass, 0 skip, 0 fail. Windows: 47 run, 10 pass, 37 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 344 and 346 tests on Linux and 375 and 373 on Windows, with 0 failed. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.5be1abeb41:e200d82346, a merge of #8939'sbddad7dfa0, and the format commit5be1abeb41, which carriesmain017bd95f5fthrough #8939 and #7395 (×10).FormatVersion, where #8939 now takes 80, above this PR's 67. The merge takes 80, and the format commit moves this PR to 81. This PR's own lines are unchanged apart from 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: 45 run, 45 pass, 0 skip, 0 fail. Windows: 47 run, 10 pass, 37 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 350 and 348 tests on Linux with 0 failed, and 380 and 375 on Windows. On Windows, libkernel'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.d007acef13, a merge of #8939's95c2a47c76, without conflicts, which carriesmaine22c5fb941through #8939 and #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: 46 run, 46 pass, 0 skip, 0 fail. Windows: 48 run, 11 pass, 37 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 379 and 372 tests on Linux and 406 and 400 on Windows, with 0 failed. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.239ae90b7b, which carries this PR'sd007acef13:maine22c5fb941against that head, withVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation,ANYPS5_NO_SHADER_CACHE=1andANYPS5_REQUIRE_VULKAN=1underctest -V, over the stack's focused tests:mainpasses its 32 tests and the head its 49, 3 of 3 runs each, with noVUID-line in either arm. No run printed "was not found but was requested", and every test that creates a Vulkan instance loggedInsert instance layer "VK_LAYER_KHRONOS_validation".mainand 43 on the head. The only VUID in either log isVUID-VkDeviceCreateInfo-pNext-pNext, which that layer logs atvkCreateDeviceonmaintoo, for a structure newer than its 1.3.275 header (VkStructureType1000574000), so the head adds none. That message fails the same 14 tests in both arms,agc_driver_image_tableand its 13_packedvariants, because the run's failure regex matches anyVUID-; the other tests pass, 19 onmainand 36 on the head. The run counts 14 "was not found but was requested" matches per arm, and each is ctest printing that failure regex for one of the 14; no loader line in either log says the layer was missing.b0b62f859b, a merge of #8939's1376724c9f, without conflicts, which carriesmainbd278f3654through #8939 and #7395 (×10).FormatVersion:main's 69, this PR's 81. #7395's merge takes #19530's move ofmainfrom 68 to 69, and this PR's own diff over #8939 is unchanged.d007acef13. Linux: 46 run, 46 pass, 0 skip, 0 fail. Windows: 48 run, 11 pass, 37 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 380 and 376 tests on Linux and 410 and 404 on Windows, with 0 failed. The suites ran 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.d896ff422b, a merge of #8939'sb4a5b1a618, which carriesmain328cbf673ethrough #8939 and #7395 (×10, with #21255's test change).FormatVersion, where #8939 now takes 94, above this PR's 81. The merge moves this PR to 95. This PR's own lines are unchanged apart from theFormatVersionline.b0b62f859b. Linux: 53 run, 52 pass, 0 skip, 1 fail. Windows: 55 run, 11 pass, 44 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 391 and 390 tests on Linux and 421 and 417 on Windows, with 0 failed. The suites ran 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'sd896ff422b(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 headd896ff422bmerged ontomaine4caa07950(their merge 27327d03fe, clean), againstmaine4caa07950alone,ctest -R '^agc_.*(image_table|pointer)|^agc_shader_(disk_cache|memory)'.main: 41 of 41 pass. This PR: 52 of 52 pass, including the 11 testsmaindoesn't have: this PR's three (agc_driver_pointer_hop_table,_vsharp_fixed_table,_vsharp_fixed_offset_table) and the eight of #8939 and #7395. NoVUID-line on either side, and every device test selected the RTX 4090.709efea84bof #8939's new head (test only,tests/execution/ImageTable.cpp), for #8939'sagc_driver_pointer_phi_lane_and_tableandagc_driver_pointer_phi_lane_not_table. @frankea's Windows 11 RTX 4090 run (comment) failed them here too, atd896ff422b, withselected 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 onlyImageTable.cpp.^agc_driver_pointer_and^agc_driver_nested_tests pass, none skipped._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 15 tests skip (no Vulkan device). The Windows GPU case itself can only be re-run by a tester.main33876d3742with #9020, #7256 andmain's0cbbcfd05c, plus each PR's diff against328cbf673e. On that base and with #9457 (d896ff422b), #9790 (aadbb73413) and #9969 (20b045a8de), every run (2 of 2 each) stops at compute shader0x120aed7f00, 127 to 166 s after the press, withGetImageResource dword 0 is not a valid runtime value, chainLoadAddressU32@pc=0x19a0←LoadAddressU32@pc=0x198c←ReadConstBuffer@pc=0xac8. An offline replay of the dumped request refuses the same way onmain328cbf673eand on each head. That is the shader this PR leaves out, as noted above.dbe3b94942, a merge of #8939's606212c86e, which carriesmaind89f26516cthrough #8939, without conflicts (×10, with #21255's test change).FormatVersionstays 95, 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: 53 run, 52 pass, 0 skip, 1 fail. Windows: 55 run, 11 pass, 44 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 410 and 411 tests on Linux and 439 and 432 on Windows, with 0 failed. The suites ran 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'sdbe3b94942(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._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 headdbe3b94942.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. #9633's2f104ac486carries this PR's headdbe3b94942. The new tests pass, and of the 1302 tests the change reaches, the only failures are onesmainalso fails on that GPU (#23232, #23711, #23942).ef586f90ca, a merge of #8939's2eecdd6fc8, which carriesmaind50640e264through #8939, without conflicts (×10, with #21255's test change).FormatVersionstays 95, 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: 53 run, 52 pass, 0 skip, 1 fail. Windows: 55 run, 11 pass, 44 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 410 and 417 tests on Linux and 439 and 438 on Windows, with 0 failed. The suites ran 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'sef586f90ca(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
main; 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)ReadConstBuffer@pc=0x8560(hugodearaujo's run above); the next stop, 0x8f54/0x8fa0, needs a follow-up. Gran Turismo 7's shape is untested on that title5eb49d1893, see Tested; not re-run since); AMD Radeon RX 9070 XT (RADV, Mesa 26.2.7, Arch Linux, with the validation layer), by @hugodearaujo; NVIDIA RTX 4060 (driver 616.56, Windows 11, no validation layer), by @ShootanoJumperRelated: #6191
Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-21T22:48:51Z.
@frankea @hugodearaujo @spiff637, this draft is the next step on #6191's chain for your titles, stacked on #8939 (
fix/shader-table-family-6191,c00cb0f875):Ballotword, can now take a pointer hop. #8939 refused any hop behind a merged pointer. @frankea, could you replay the 29 against this branch and say which ones clear? The odd one (0x120aed7f00, the table V# carried around the loop) isn't covered here. It looks like the shape #8077 handles, so a replay of #8077's head on that shader would tell.ReadConstBuffer@pc=0x8560. The next stop you described, the linked pointer at pc 0x8f54, isn't in this PR yet.Its tests pass on lavapipe. It hasn't run on either title or on real hardware yet.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T04:34:53Z.
Review: CHANGES_REQUESTED
The new lavapipe tests exercise both reported resource-chain shapes, include negative controls and relocation-without-recompile cases, and the PR reports Windows compilation plus the relevant focused CI results. I cannot treat the AGC/shader validation protocol as complete from the current report: it does not show the same focused tests run on current
mainand this change withANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1, andVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, confirm the requested validation layer loaded in both runs, or compare newVUID-messages. Please attach those paired logs/results and name the GPU/driver/OS as required. Also, this head is based on0c6a5bdrather than currentmain(110a18ba01); please rebase and rerun conventions, overlap and the focused validation suite on the updated tree. I did not run local GPU tests.Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-22T07:58:55Z.
Review: COMMENTED
First run on a hardware GPU: an RTX 3070, plus lavapipe again.
Setup: Ubuntu 26.04, GCC 15.2, Release, head
c00cb0f87merged ontomaind6eafa54d(clean merge).ANYPS5_GPUpicks the device,ANYPS5_REQUIRE_VULKAN=1, ctest-j1.668118771and0843cca39, source only, tests kept).agc_driver_pointer_hop_table,agc_driver_pointer_vsharp_fixed_tableandagc_driver_pointer_vsharp_fixed_offset_tablefail on both GPUs with theGetImageResource dword 0 is not a valid runtime valuechains from the description. The other 13nested_/pointer_tests pass.agc_driver_(nested_|pointer_)tests pass 3 of 3 on each GPU, none skipped.image_table|pointer|disk_cache|shader_memory|sampler_table(27 tests) passes 3 of 3 on each.^agcsuite on the 3070 (877 tests, withoutdisplay_buffer_dcc,driver_flip,lds_atomics64): 874 pass, 1 skips (stencil_ref_export). The 3 failures areagc_driver_sample_order,_grid_referenceand_recipe_depth_locations, which fail the same way onmaind6eafa54don this card.GPUs tested: NVIDIA GeForce RTX 3070 (driver 595.99.02), Mesa lavapipe 26.0.3 (LLVM 21.1.8), Ubuntu 26.04
Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-22T08:41:45Z.
@jotitadev thanks for the RTX 3070 run with a red control. The three new cases fail with the fixes reverted and pass with them on hardware as well as on lavapipe, which is what this draft needed beyond llvmpipe. It's in Tested and on the GPUs tested line now.
Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-22T11:12:06Z.
@MarcZX10 thanks. By your review's points:
mainagainst this head on one GitHub Linux runner (run): Ubuntu 24.04.5, llvmpipe (Mesa 25.2.8, LLVM 20.1.2), withANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1andVK_LAYER_KHRONOS_validation, 3 runs each. The 16 new tests aren't onmain, so its arm runs the image-table testsmainhas,agc_driver_image_table_vouched_lookupsandagc_driver_image_table_vouch_queued_draws, with the disk-cache tests; this head's arm runs those and the 16. The layer loads in both runs. Both log onlyVUID-VkDeviceCreateInfo-pNext-pNext, and this head adds noVUID-message.main:maincc0078595dis merged in (2a5db7ae45), with the PR's own diff unchanged. The focused tests pass 10 of 10 on both runners (run), andcheck_conventions.pypasses.mainhas moved 7 commits since, none in this PR's files.Both runs are in Tested.
Imported from boykopovar/AnyPS5. Originally posted by hugodearaujo on 2026-10-22T12:04:34Z.
@EagleBearerYS I ran this on Marvel's Spider-Man 2 (PPSA03016 01.004.003). It gets past
ReadConstBuffer@pc=0x8560. The title now stops at 131 s on the next shape, the 0x8f54/0x8fa0 pair whose IR is on #8939 (comment):main0c6a5bd593ReadConstBuffer@pc=0x8560a7d1e62b53+ #9424ReadConstBuffer@pc=0x8560c00cb0f875+ #9424ReadConstBuffer@pc=0x8fa0overLoadAddressU32@pc=0x8f54c00cb0f875, this PR before its merge ofmain, because the merge head doesn't get that far on this title. Since #9137, the title throws in its first 40 s onsceSystemServiceParamGetInt: parameter 100, then 208 and 210. The PR's own diff is the same in both heads.agc_shader_replayon the request that stopped at 0x8560 before (shader_11e2b39b00, from a #8939 run) now refuses at 0x8fa0 as well.I can run a candidate for the 0x8f54 shape when there is one.
Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-22T12:12:38Z.
@hugodearaujo thanks for running Marvel's Spider-Man 2 on this, with
mainand #8939 as controls, and for replaying the old request. Getting past 0x8560 on the title is now in Tested and on the Unblocks line, with your note on why you ranc00cb0f875. Your IR for the 0x8f54/0x8fa0 pair on #8939 is being looked at for a follow-up, and we'll take you up on running a candidate when there is one. ThesceSystemServiceParamGetIntthrow on the merged head is noted separately.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-24T02:31:37Z.
Review: CHANGES_REQUESTED
The change itself looks right to me: the hop guard now refuses only buffer columns, the fixed-offset case is limited to a pointer-loaded V# (a runtime V# still refuses), and the three new tests each fail on the base chains shown in the description.
What blocks it:
mainsince #7880 merged (TryMakeIndirectColumnnow reads throughUnwrapTableRead). This PR inherits that conflict and can't land before them.if (!hops.empty() && buffer) return false;guard inTryMakeIndirectColumnagainstmain'sUnwrapTableReadpath, rerun the three new tests, and renumberFormatVersionto whatever is next onmain.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T09:11:08Z.
Review: CHANGES_REQUESTED
Re-check — changes requested\n\nThe author's earlier paired Vulkan report answered my original validation request for the then-tested tree, and the rebase has now moved the branch to head
9a44f18aeb. That evidence does not cover current main: this head is still 869 commits behind aaccd0ba39.\n\nThere is also a current test-policy blocker in the shared parent stack. The remaining shared-V# and T#-with-another-consumer cases at tests/execution/ImageTable.cpp:1699-1712 require valid but unimplemented shader shapes to throw. Please remove those throw pins while preserving sampled-result, bounds/budget and malformed-input/fault coverage. Coordinate the shared parent change with #7395 and carry the single fix through #9790; do not duplicate it in each child.\n\nAfter the parent fix and current-main refresh, rerun the focused image-table/disk-cache/shader-memory tests on main and the resulting stack with the required Vulkan validation layer, no-cache and required-Vulkan settings. Keep the title result limited to the exact updated stack. I did not run GPU tests locally.Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-03T08:45:29Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
This pull request does not merge cleanly into
main(4f41f4c375): head0a4f7cdbedconflicts incore/shader/recompiler/ShaderDiskCache.hppdocs/dev/debt/shader.mdPlease rebase it onto current
main. I will review the change once it merges cleanly.Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-03T14:18:24Z.
Review: APPROVED
Re-checked — approved
Since my last review the branch has only taken new merges of
main, the latest being7aa70b1. The merged tree builds, passes the checks, the focused tests and the validation comparison. Reverting the PR's two planner hunks makes exactly its three new tests fail.What changed since my last review
The text of my previous review is not available, so I reviewed the whole change again rather than only a delta. Since earlier heads, the branch has gained merges of #8939/#7395/#7223 and of
main. The latest is7aa70b1, a merge ofmain. This PR's own changes are the same twoResourceTracker.cpphunks:if (!hops.empty() && buffer) return false;;FormatVersionis 67, abovemain's 52.What I ran
Head
7aa70b1bd2fcda0a48d036901c3de73ad6c6f739,main4f41f4c375f5abb487dbd184fbc150f31994d762, merged tree305bc0a81e4dd874e65b111aa19064ffaa681591. Debian 13 VM, GCC 14.2.0, Release, lavapipe (Mesa 26.1.6, LLVM 19).Results
maingit diff --checkcheck_conventions.pylibs(script)maintoo.VUID-git status --porcelainempty; the 3 tests pass again after the rebuildNegative control output (truncated)
Previous findings
I can't list them one by one because the earlier review text is not available. Instead I checked the points raised by other reviewers on this thread:
main'sUnwrapTableReadpath (adriadam10): the guard is atcore/shader/recompiler/Optimization/src/ResourceTracker.cpp:1201. It runs after the hop walk, and the merged path is taken only whenUnwrapTableReadreturns null. For a pointer-keyed column, the materializer stores each record's pointer before it followspointerHops, and the SPIR-V lookup uses that same record-level pointer (parentPointer). The two sides agree, so allowing hops there is consistent.ResourceTracker.cpp:860(if (fixed) return false;).not a valid runtime valueany more.FormatVersion: 67, abovemain's 52.New findings
Blocking
None.
Non-blocking
None.
Not verified
main, this PR's diff also carries the still-open #7223, #7395 and #8939. Whether to land the combined branch or the parents first is a maintainer decision, discussed in the thread. My verdict covers the merged tree as a whole.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-16T13:06:27Z.
Review: COMMENTED
Reviewed — no blocking findings
The inspected planner, materialization, and cache paths show no verified blocking defect; the full changed-file review and tests were not completed.
What I ran
Inspected the prepared diff and targeted source ranges at head
d896ff422bf8e9bc919af9ae027f983d74ca6d26usingrepo_read.pyreader tools. No tests were run.Results
Findings
Blocking
None verified in the inspected code.
Non-blocking
None.
Not verified
The review is incomplete: not every added line or changed file was read.
ShaderMemory.cppwas read only around the new snapshot retry helper.ResourceTracker.cppplanner paths and related materialization and cache ranges were inspected; other changed files and added-line ranges were not fully reviewed. No tests were run, and the author-reported test results were not independently verified.Files read:
description.md,commits.md,manifest.json,diff.patch,README.md,ResourceTracker.cpp,ResourceMaterializer.cpp,ShaderDiskCache.cpp,SpirvImageEmitter.cpp, and the targetedShaderMemory.cpprange.files.jsonwas not available as a reader path. The review folder listsShaderMemory.cppas excluded from the prepared files due to size; it was accessed only through the reader. Remaining changed files and uninspected ranges were not read.To get this to a good state
Nothing is required. Optional: complete the remaining changed-line review and run the focused tests before making a formal approval decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-18T03:22:12Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the review supports merging based on the inspected code and reported validation.
What I ran
Reviewed head
709efea84b94c3377f8734937e22def0065b79f0. No build or tests were run. Read the prepared description, commit list, manifest and diff, plus targeted pinned-head ranges inResourceTracker.cpp,ResourceMaterializer.cpp,SpirvImageEmitter.cppandShaderDiskCache.cpp. The fullShaderMemory.cppwas excluded by the review bundle; its changed hunks were inspected in the diff only.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The complete
ShaderMemory.cppand runtime behavior on a physical console were not verified. The extensive test results in the PR description are author-reported. Other changed files were reviewed through the prepared diff; targeted pinned-head source ranges were read for the main planner and runtime lookup paths.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T05:57:30Z.
Review: COMMENTED
Reviewed — no blocking findings
The inspected code shows no verified blocking defect, but the review is incomplete because I did not read every changed line or run checks.
What I ran
Reviewed head
ef586f90ca52bd89ce0f1dfdc52c59fcec71141dusing the prepared review documents andrepo_read.py. No commands or tests were run.Results
Findings
Blocking
None verified in the inspected code.
Non-blocking
None.
Not verified
I read the description, commits, manifest, and targeted portions of the diff. At the repository head, I read
ResourceTracker.cpp,ResourceMaterializer.cpp, andSpirvImageEmitter.cpp. I did not read every changed line in the included test and metadata files;ShaderMemory.cppwas excluded from the review folder and I did not read it through the reader. I did not run tests or build checks. The change therefore needs a complete review before approval.To get this to a good state
Nothing is required for this comment. Optionally, complete the changed-line review and run the relevant checks before making a formal decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-23T05:54:21Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the points below are optional.
What I ran
4fedba5e36d86bcfa682c276bf1a6fec02381b51using the pinnedrepo_read.pyreader.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(changed regions),core/shader/recompiler/Optimization/src/ResourceTracker.cpp(changed regions),core/shader/recompiler/ShaderDiskCache.hpp, anddocs/dev/debt/shader.md(changed region). All changed files are listed as included in the review manifest; unrelated file regions and excluded-by-rule files were not reviewed.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-26T11:45:36Z.
Review: APPROVED
Reviewed — looks good
The reviewed head is
a3617bb2555c5f5a39bafa0f792951b8e40dc11e; source inspection found no concrete defect in the pointer table planning changes, and no tests were run in this review.What I ran
repo_read.py.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
No build, tests, or runtime validation were performed. The author and CI report extensive test runs in the PR description; those reports were not independently verified here. All changed files listed in the manifest were included and read:
agc_driver_image_table_tests.cmake,ImageTable.cpp,ResourceTracker.cpp,ShaderDiskCache.hpp, andshader.md.files.jsonwas not available as a review document; the reader's file listing confirmed the five changed files and their inclusion.To get this to a good state
Nothing is required.