fix(shader): read a chased pointer's high word at its own offset #9749
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9749"
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-22T12:19:33Z.
What
This is stacked on #9633.
With #9633, Ratchet & Clank: Rift Apart (PPSA01474) got past its 0x10b84 stop. It then stopped at the next T# load, in compute 0x116bb67100 (Tamalero's run):
Ratchet & Clank: Rift Apart (PPSA01474), 11-13: this PR got the title past 0x13bc0 in Tamalero's run of 10-22 (see Tested). 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 shape: onmainfb542a2b6f, which has #14636,agc_driver_pointer_chase_split_tablefails 3 of 3 with #9633 merged and passes 3 of 3 with this PR merged (llvmpipe, a cloud Linux machine).Tamalero's trace of the same shader (comment) shows a third chase step:
s_buffer_load_dwordx16from 0x40.#9633's chase arm required the high word at the low word's immediate + 4, so the walk refused this step. Its V# offset and its depth (3 of 4) were already covered. #9633's
2c1a65045calready gives each word pair through a V# its own chase site, so the new high immediate becomes part of that site.The change:
PointerChasegainsreadHighImmediate, the high word's own immediate. Tamalero's trace suggested the field.The tracker takes the edge's high-word read when it has:
The old rule, low + 4, is one case of this.
The snapshot reads each chased pointer's high word at that immediate.
The shader disk cache encodes the field.
FormatVersiongoes from #9633's 96 to 97.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. A decoded chase with an unaligned high immediate, or one equal to the low immediate, is refused.Debt: #9633's chase line now says each word is read at its own fixed immediate, through the arm's V# at the arm's buffer offset.
The chased V#'s base (
52ae6543ae): on a diagnostic build of this PR, Tamalero's run stopped after 781 s onAGC driver: invalid shader memory read address(comment), on a V# read as4f81f1f 0 ffffffff 0.TableSnapshotter::Chase()checked the four words it reads as a V#, but not the alignment of the address it then reads through that V#, and the driver's shader memory reader throws on an unaligned address.Chase()now treats an unaligned base as unresolved, as the snapshot's other runtime-address reads do. That step isn't captured, so a dispatch that takes it faults as outside the snapshot, like a link to memory the snapshot can't read.Overlap:
git merge-treeconflicts are the same as #9633's head's, so it adds none: #9508, #8881, #7880, #7642, #9335, #9020, #8625, #8564, #8077, #7689 and #7684. #9671 and #7622 merge cleanly.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.Tested
Linux, Mesa llvmpipe: the new
agc_driver_pointer_chase_split_tablereproduces Rift Apart's shape in hand-written RDNA:It checks every taken and skipped step, including a node only the third step reaches, then a moved link, then a link outside the snapshot, which faults as outside the snapshot.
Refusal controls, refused on both trees until
c4f25ba3fcremoved them, since they required valid shapes to be refused:Red: with #9633's tracker and materializer, the test fails with "GetImageResource dword 0 is not a valid runtime value", Rift Apart's text. A scratch build whose closure stops one step short makes the T# fault, so the test does prove the third step.
GitHub's runners (run):
CI's Linux job mirrored on a cloud Linux machine. The failures are the machine's three IPv6 tests, a timing test that passes alone (
agc_driver_sgpr_pattern_fill_keys), and two lavapipe JITIllegalfailures on a new host CPU, which also fail on an unrelated tree.Validation layer, #9633 against this PR (CONTRIBUTING's shader rule), on one GitHub Linux runner (run):
VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation,ANYPS5_NO_SHADER_CACHE=1,ANYPS5_REQUIRE_VULKAN=1andctest -V. The device was llvmpipe (LLVM 20.1.2) on Mesa 25.2.8, Ubuntu 24.04.5.VK_LAYER_KHRONOS_validation5 times on #9633's tree and 7 with this PR. Neither log haswas not found but was requested by env var VK_INSTANCE_LAYERS.VUID-VkDeviceCreateInfo-pNext-pNext. This PR adds noVUID-message.check_conventions.py: passes, with no comment lines added.Ratchet & Clank: Rift Apart (PPSA01474), by @Tamalero (comment): content 01.005.003, Linux (CachyOS, kernel 7.2.9), GCC 16.2.1, Release, RTX 4090 (NVIDIA 615.78.08), the executable relinked once with this head's relinker, cold shader cache, no input.
6db7b36aefwith only7ab0765c37reverted: at 294 s, compute 0x116bb66a00 stops atLoadAddressU32@pc=0x13bc0, at the same sites as on #9633.6db7b36aef: 425 s with no refusal at 0x13bc0. Then compute 0x116bb61900 stops onShaderRecompiler::Recompile: sampler resource limit exceeded.agc_shader_replay. The control refuses both at the T# load; with this PR both pass it and stop on the sampler limit,ShaderInfo::MaxSamplers = 32inAddSampler.Rift Apart's later stops, in Tamalero's diagnostic runs of 10-24 and 10-25: after the sampler limit,
invalid shader memory read address, which52ae6543aefixes (comment), and thenruntime image descriptor is invalidat a storage image that is written and never read, with a TYPE 0 T# (comment). That last stop has its own PR, #10906, which binds such a slot as a null storage image: on gfx1030 a store through those words is dropped (Tamalero's measurement).After merging #9633's refreshed head (
820dc4070e; this PR's own diff is unchanged), on GitHub's runners (run):VK_LAYER_KHRONOS_validation3 times onmain's tree (the three of these tests it has) and 100 times with this PR, and neither log haswas not found. Both logs report onlyVUID-VkDeviceCreateInfo-pNext-pNext, so this PR adds noVUID-message. The device was llvmpipe on Mesa 25.2.8, Ubuntu 24.04.5.APS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.6db7b36aef,mainb7d1d47a5fmerged in (clean; this PR's own diff is unchanged), on GitHub's runners (run):main's tree ran the three of them it has. The loader insertedVK_LAYER_KHRONOS_validation3 times onmainand 100 times with this PR, and neither log haswas not found. Both logs report onlyVUID-VkDeviceCreateInfo-pNext-pNext, so this PR adds noVUID-message.APS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.b2d4afc64d,mainc55d7c8e7bmerged in (clean; this PR's own diff is unchanged), on GitHub's runners (run):main's tree ran the three of them it has. The loader insertedVK_LAYER_KHRONOS_validation3 times onmainand 100 times with this PR, and neither log haswas not found. Both logs report onlyVUID-VkDeviceCreateInfo-pNext-pNext, so this PR adds noVUID-message.APS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.8abb8a40a6, a merge of #9633's6b64604048, which mergesmain0db47b263d. The only conflict wasShaderDiskCache.hpp'sFormatVersionline:mainmoved to 45 (#7831), and this branch keeps its 48. On GitHub's runners (run), the pointer, nested, image-table and disk-cache sets (28 tests) pass 10 runs in a row on Linux. On Windows the set has 30, with two Windows-only disk-cache tests: they build, 5 pass 10 runs in a row, and the other 25, 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.a36e95bd11, a merge of #9633's5b6c96f938(which carries #7395's and #8939's merges ofmain379b1dca32). It's clean apart fromFormatVersion, which goes to 52: #9633 is at 48 now, and #10000, #9969 and #10489 take 49 to 51. This PR's own diff is otherwise unchanged.agc_shader_bindless,agc_shader_memoryand the^agc_driver_pointer_,^agc_driver_nested_,^agc_driver_image_tableand^agc_shader_disk_cachetests. Linux: 30 run, 30 pass, 0 skip, 0 fail. Windows: 32 run, 7 pass, 25 skip (Vulkan device tests; the runner has none), 0 fail.^agcset once (run): Linux 985 run, 920 pass, 64 skip, 1 fail; Windows 1004 run, 272 pass, 730 skip, 2 fail. The failures areagc_driver_sgpr_pattern_fill_keyson Linux ("the dispatch completed 17 times without a pending write over the keys") andagc_driver_pipelined_metadata_passand its_draw_pipelinevariant on Windows (vkCreateInstancereturns -9 on the device-less runner).main379b1dca32shows the same three with the same messages (run);agc_driver_sgpr_pattern_fill_keysfailed 1 of 4 runs there.APS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.Ratchet & Clank: Rift Apart (PPSA01474) with #10000's limits, by @oneandonlydean (comment), on
test/9749-sampler-masks(b340d224db, #10000's sampler limits on this PR's earlier headb2d4afc64d): one 600 s run from a cold shader cache withAPS5_DUMP_IR=all. Nosampler resource limit exceededline, nowhat()or terminate and no stop line: it ran the whole 600 s. 7840 IR blocks were dumped. The highest shader pc is 0x1f2c8, and 980 block lines are at or past 0x13bc0. This covers that branch, not this PR's current head.7bcb8f4239, a merge of #9633's72f48b702f(which carries #7395's merge ofmainc9b2660d56). The only conflict wasFormatVersion, which goes to 55. This PR's own diff is otherwise 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: 30 run, 30 pass, 0 skip, 0 fail. Windows: 32 run, 7 pass, 25 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.67053a3281, a merge of #9633's839cad8ea1, which carries #7395's merge of #7223'sf1cc524085(yabanana's merge ofmainc8d34aa8f4). Clean:FormatVersionstays at 55, and this PR's own diff is unchanged: the merge brings in exactly what #9633'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: 30 run, 30 pass, 0 skip, 0 fail. Windows: 32 run, 7 pass, 25 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.52ae6543ae, the chased V#'s base, red/green against67053a3281on GitHub's runners (run).agc_driver_pointer_chase_tablegains a case where the V# at a chased pointer that no group's step goes through has an unaligned base, and requires that the snapshot records no range that starts unaligned.agc_shader_bindless,agc_shader_memory,^agc_driver_pointer_,^agc_driver_nested_,^agc_driver_image_table,^agc_shader_disk_cache): Linux: 30 run, 30 pass, 0 skip, 0 fail. Windows: 32 run, 7 pass, 25 skip (no Vulkan device), 0 fail.67053a3281against52ae6543ae(run),agc_driver_pointer_chase_tableonce on Linux (llvmpipe) withVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation,ANYPS5_NO_SHADER_CACHE=1andANYPS5_REQUIRE_VULKAN=1: the layer was inserted once on each tree, neither log haswas not found but was requested, and both report onlyVUID-VkDeviceCreateInfo-pNext-pNext, so the commit adds noVUID-message.APS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.7d6ab8ab36:5e0d923429, a merge of #9633's68d04647f3, the format commitfc0c03d48e, and7d6ab8ab36, a merge of #9633's merge ofmain0cd07dc4ab(run).5e0d923429takes #9633's merge of #9457 (with #7223's153400ba2b, the test-only commits of #7395 and #8939, and the stack's format commits). Clean, and this PR's own diff is unchanged.fc0c03d48egives this PR its own disk-cache format, 56, one above #9633's 55. 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.7d6ab8ab36merges #9633's merge ofmain0cd07dc4ab. Clean here, and this PR's changed lines are the same.tests/execution,agc_driver_pipelined_metadata_passfails atvkCreateInstance(-9) on GitHub's device-less runner, before this PR's code;mainfails it the same way there (run), and upstream's Windows job builds it as a skipped stub.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.ac64b90241, a merge of #9633'sb5a199bac2, 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 chase, split-chase, SGPR-fill, nested-sampler and pipelined metadata tests with the disk-cache, bindless and shader-memory tests. Linux ran them 10 times with no failure: 9 run, 9 pass, 0 skip, 0 fail. Windows: 11 run, 6 pass, 4 skip (the Vulkan device tests), 1 fail: on our verify's Windows build, which compilestests/execution,agc_driver_pipelined_metadata_passfails atvkCreateInstance(-9) on GitHub's device-less runner, before this PR's code;mainfails it the same way there (run), and upstream's Windows job builds it as a skipped stub. Suites: libc and libkernel pass on Linux (166 and 264). On Windows libc passes (194), and libkernel passes 283 of 286:exec_arguments,guest_timed_join_import_libkernel_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.32ba4ec353, a merge of037f579a20, #9633's merge of #9457's9a44f18aeb, which carriesmain38ccd50f83and with it #11507'sFormatVersion49 (run). Clean:FormatVersionstays 56 (see What), and this PR's diff over #9633 is the same. The chase, split-chase, SGPR-fill, nested-sampler and pipelined metadata tests with the disk-cache, bindless and shader-memory tests and #11507'sagc_driver_image_sample_short_cube. Linux ran them 10 times with no failure: 10 run, 10 pass, 0 skip, 0 fail. Windows: 12 run, 6 pass, 5 skip (the Vulkan device tests), 1 fail: on our verify's Windows build, which compilestests/execution,agc_driver_pipelined_metadata_passfails atvkCreateInstance(-9) on GitHub's device-less runner, before this PR's code;mainfails it the same way there (run), and upstream's Windows job builds it as a skipped stub. Suites: libc and libkernel pass on Linux (166 and 265). On Windows libc passes (194), and libkernel passes 284 of 287:exec_arguments,guest_timed_join_import_libkernel_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.f469f4d1b7, a merge of #9633's6c139245aa, which adds the edited-V# chase (run). Four places conflicted, and the merge keeps both sides in each:agc_driver_pointer_chase_split_tableand #9633'sagc_driver_pointer_chase_edited_table;PointerChasekeeps this PR'sreadHighImmediateand gains #9633'sedits;ShaderDiskCache.cppwrites and readsreadHighImmediateand then the edits, in the same order, and keeps both validation checks;docs/dev/debt/shader.mdstates both rules, this PR's two words at their own immediates and #9633's edited V# words, worded to stay under the checker's 1000 characters.FormatVersionstays 56. The chase, split-chase, edited-chase, chase-words, SGPR-fill, nested-sampler and pipelined metadata tests with the disk-cache, bindless and shader-memory tests and #11507'sagc_driver_image_sample_short_cube. Linux ran them 10 times with no failure: 12 run, 12 pass, 0 skip, 0 fail. Windows: 14 run, 6 pass, 7 skip (the Vulkan device tests), 1 fail: on our verify's Windows build, which compilestests/execution,agc_driver_pipelined_metadata_passfails atvkCreateInstance(-9) on GitHub's device-less runner, before this PR's code;mainfails it the same way there (run), and upstream's Windows job builds it as a skipped stub. Suites: libc and libkernel pass on Linux (166 and 265). On Windows libc passes (194), and libkernel passes 284 of 287:exec_arguments,guest_timed_join_import_libkernel_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.c4f25ba3fc:85d0352ef0, a merge of #9633'see8767ff0d, the format commitf6b5d58d10, and the test-only commitc4f25ba3fc(run).85d0352ef0takes #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), the format commits below this PR and #9633's test-only commitee8767ff0d. The one conflict was intests/execution/ImageTable.cpp, in two places next to this PR's lines: the merge takes ee8767ff0d's removal of the looped and five-step chase shaders and of their refusal checks, and keeps this PR's split-word shaders and the speculative keys it adds to the conditional chase test.f6b5d58d10gives this PR its own disk-cache format, 57, one above #9633's 56.c4f25ba3fcdrops the split-word pointer chase test's three checks that a valid shader is refused (a high word read through another V#, at another buffer offset, and at the low word), with their helper and their shader words, under the same test rule. None of these shapes is implemented. The taken and skipped steps, the node only the third step reaches, the moved link and the link outside the snapshot are still checked. Apart from these and the format line, this PR's diff over #9633 is unchanged.agc_shader_bindlessandagc_shader_memoryran 10 times with no failure. Linux: 31 run, 31 pass, 0 skip, 0 fail. Windows: 33 run, 8 pass, 25 skip (the Vulkan device tests; the Windows runner has no Vulkan device), 0 fail. The libc and libkernel suites run 191 and 291 tests on Linux and 220 and 314 on Windows, with 0 failed. They ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.eac5dce947andbabbb0eafd, for XairRrR's review, on a merge of #9633'sa727b7653f(×10 run, negative control run).42a4f381efmerges #9633's head, which carries #7395's4769d5a745, which drops "and refusals" from two nested-table test summary lines. It's clean and brings only that change.eac5dce947rewrites the chase entry indocs/dev/debt/shader.mdto lead with what stays refused, and adds this PR's two refusals: a high word read at the low word's own immediate, and a chased V# whose base leaves either word's address unaligned (52ae6543ae), which ends the chase even inside the snapshot. Whether the console reads the dword-aligned address there instead is not measured. The entry is under the conventions check's 1,000 characters.babbb0eafdadds a disk-cache round trip for a pointer-keyed column with one chase whose high word has its own immediate (agc_shader_disk_cache). The chase tests run withANYPS5_NO_SHADER_CACHE=1, so nothing coveredreadHighImmediatein the cache before. As a negative control, a decoder that reads the field into a throwaway makes the new check fail on both runners: "a pointer chase whose high word has its own immediate changed in a disk-cache round trip".APS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.NVIDIA RTX 2000 Ada Generation at
99d77ab33a, from TechLevelZero's NVIDIA bot (report): driver 595.99.02, Ubuntu 26.04.1, this head merged ontomain3741ca9, 2,542 of 3,121 tests selected.main, and 1 is unstable onmain.VK_LAYER_KHRONOS_validation, over 949 tests on the GPU, there are no new validation IDs againstmain. 19 of the stack's nested and pointer table tests ran with the layer but aren't inmain's baseline, so they weren't compared.4699b25e2d:d4ef08da08, a merge of #9633's280d6d6c44, and the format commit4699b25e2d(run). Two conflicts:FormatVersion, which the format commit moves from 57 to 72, above #9633's 70, andagc_driver_image_table_tests.cmake, where this PR's split-chase registration is kept.ShaderDiskCache.cppmerged cleanly with #9633's numbers, which this PR doesn't change. This PR's own diff is otherwise unchanged. The image-table, disk-cache, BDA anchor-read, shader-memory, nested and pointer tests, with #7694'sagc_shader_descriptor_phis, pass 10 runs in a row. Linux: 34 run, 34 pass, 0 skip, 0 fail. Windows: 36 run, 10 pass, 26 skip, 0 fail. Suites: libc and libkernel pass on Linux (210 and 310) and on Windows (237 and 331). The suites ran 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,571 passed, 6 failed, none new (3 also fail onmain, 3 unstable onmain), 45 skipped, with no new validation IDs (992 tests on the GPU).8fa3da8d9e, a merge of #9633'sb9fab3f82e, which carries #7395's merge ofmain4f64f81ef7(run). Clean:FormatVersionstays 72, 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 image-table, disk-cache, BDA anchor-read, shader-memory, nested and pointer tests, with #7694'sagc_shader_descriptor_phis, pass 10 runs in a row. Linux: 34 run, 34 pass, 0 skip, 0 fail. Windows: 36 run, 10 pass, 26 skip (no Vulkan device), 0 fail. Suites: libc and libkernel pass on Linux (217 and 318) and on Windows (244 and 339). The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.agctest, once (run): Linux: 1,261 run, 1,182 pass, 78 skip, 1 fail. Windows: 1,297 run, 390 pass, 907 skip (no Vulkan device), 0 fail. The one failure isagc_driver_pipeline_journal's 120-second timeout, whichmain88e804b0a7's own run of every test hits too (run).13e0df876d, a merge ofmain4f41f4c375(×10, the PR's own tests ×10).ShaderDiskCache.hpp'sFormatVersion, wheremainis now at 52 (#10000) and this PR keeps its 72; 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: 19 run, 19 pass, 0 skip, 0 fail. Windows: 19 run, 0 pass, 19 skip (no Vulkan device), 0 fail.c4f25ba3fcresolved. On a Debian 13 VM (GCC 14.2.0, lavapipe on Mesa 26.1.6), the tree merged withmain4f41f4c375builds. Their selected tests ran 2,235 with no new failures (7 known failures also fail onmain), the validation comparison withmainover 789 tests shows no newVUID-, and the focused tests pass 27 of 27. Their negative control, the decoder droppingreadHighImmediate, failsagc_shader_disk_cache.18bc368ab1, a merge of #9633's6089e589a8, which carriesmainc2eafe4461with yabanana's #7223 through #9457, #8939 and #7395 (×10).ShaderDiskCache.hpp'sFormatVersion, which stays 72 (mainis at 56 since #7223), anddocs/dev/debt/shader.md, where this PR's wording of the pointer-keyed chase 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: 34 run, 34 pass, 0 skip, 0 fail. Windows: 36 run, 10 pass, 26 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 301 and 325 tests on Linux and 331 and 343 on Windows, with 0 failed. The suites ran 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,911 of 3,878 tests selected. 2,855 passed, 6 failed and 50 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 989 tests on the GPU.agc_shader_nested_sampler_snapshot_retryran with the layer but isn't inmain's baseline, so it wasn't compared.da7bcad1d1, a merge of #9633's527a907ad8, which carriesmain8eaf82f315through #9457, #8939 and #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: 35 run, 35 pass, 0 skip, 0 fail. Windows: 37 run, 10 pass, 27 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 327 and 344 tests on Linux and 358 and 371 on Windows, with 0 failed. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.e3c81a7714, a merge of #9633's0fd3c90456, which carriesmain006d11fca5through #9457, #8939 and #7395 (×10).main, frankea's #9020'sFormatVersion57, andFormatVersionstays 72 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: 35 run, 35 pass, 0 skip, 0 fail. Windows: 37 run, 10 pass, 27 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 327 and 344 tests on Linux and 358 and 371 on Windows, with 0 failed. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.54eab5bb7a, a merge of #9633'sf086739418, which carriesmaindd7c8de5dethrough #9457, #8939 and #7395 (×10).docs/dev/debt/shader.md, where this PR's wording of the pointer-keyed chase entry sits next to #10489's rewording of the image-table entry (the image limit is now 128). Both are kept.FormatVersionstays 72, 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: 49 run, 49 pass, 0 skip, 0 fail. Windows: 51 run, 10 pass, 41 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 344 and 346 tests on Linux 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.aec64b8636:fef555f82a, a merge of #9633'sb55705b34f, and the format commitaec64b8636, which carriesmain017bd95f5fthrough #9633, #9457, #8939 and #7395 (×10, everyagctest).FormatVersion, where #9633 now takes 82, above this PR's 72. The merge takes 82, and the format commit moves this PR to 83. 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: 49 run, 49 pass, 0 skip, 0 fail. Windows: 51 run, 10 pass, 41 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 350 and 348 tests on Linux with 0 failed, and 380 and 375 on Windows. On Windows, libkernel'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, once, since #14636 is itself a recompiler change: 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.39b162b371:ad2a93618b, a merge of #9457'sd007acef13, and39b162b371, a merge of #9633's56416624f1, both without conflicts, which carrymaine22c5fb941through #9633, #9457, #8939 and #7395 (×10). The second merge changes no file:39b162b371has ad2a93618b's tree, which the ×10 ran.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: 50 run, 50 pass, 0 skip, 0 fail. Windows: 52 run, 11 pass, 41 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 379 and 372 tests on Linux and 406 and 400 on Windows, with 0 failed. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.Validation at
39b162b371(the run testedad2a93618b, which has the same tree):maine22c5fb941against this head on GitHub's Linux runner (lavapipe, layer 1.3.275), withVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation,ANYPS5_NO_SHADER_CACHE=1andANYPS5_REQUIRE_VULKAN=1underctest -V, over the focused tests above (run). The loader inserted the layer 27 times onmainand 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 head's including the fouragc_driver_pointer_chase_*tests, whichmaindoesn't have. 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.VUID-line. Themaine22c5fb941arm is his earlier run on the same machine (comment), 32 of 32 in 3 of 3 runs with none. No run printed "was not found but was requested", and the only tests withoutInsert instance layer "VK_LAYER_KHRONOS_validation"are nine CPU-only ones that print no Vulkan output.b0e80e539e, a merge of #9633'sae857ccc9b, without conflicts, which carriesmainbd278f3654through #9633, #9457, #8939 and #7395 (×10).FormatVersion:main's 69, this PR's 83. #7395's merge takes #19530's move ofmainfrom 68 to 69, and this PR's own diff over #9633 is unchanged.39b162b371. Linux: 50 run, 50 pass, 0 skip, 0 fail. Windows: 52 run, 11 pass, 41 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 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.510fd2384d, a merge of #9633's99e3511c6a, which carriesmain328cbf673ethrough #9633, #9457, #8939 and #7395 (×10, with #21255's test change).FormatVersion, where #9633 now takes 96, above this PR's 83. The merge moves this PR to 97. This PR's own lines are unchanged apart from theFormatVersionline.b0e80e539e. Linux: 57 run, 56 pass, 0 skip, 1 fail. Windows: 59 run, 11 pass, 48 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 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 this head (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.NVIDIA GeForce RTX 4090, by @domx4q, with the Khronos validation layer (comment): Arch Linux (kernel 7.3.4), GCC 16.2.1 Release, driver 620.70.06, Vulkan 1.4.357, validation layer 1.4.363.1, with
ANYPS5_REQUIRE_VULKAN=1andANYPS5_NO_SHADER_CACHE=1. This head510fd2384dmerged ontomaine4caa07950(their merge 44a4f4bcdb, clean), againstmaine4caa07950alone,ctest -R 'pointer|image_table|nested|agc_shader_disk_cache|agc_shader_memory|bda_anchor'.main: 78 of 78 pass. This PR: 95 of 95 pass, including the 17 testsmaindoesn't have: this PR'sagc_driver_pointer_chase_split_table, #9633's three (agc_driver_pointer_chase_table,_words_tableand_edited_table) and the 13 of #9457, #8939 and #7395. No test skips on either side. The layer was inserted 43 times onmainand 59 times with this PR; the tests without an insert are CPU-only. NoVUID-line on either side, and every test that creates a device selected the RTX 4090.#8939's null record pointer fix, by the merge
365f2b551fof #9633'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 on #8939, #9457, #9790 and #9969, withselected the descriptor at 0x0: unmapped; this PR carries the same tests. 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 19 tests skip (no Vulkan device). The Windows GPU case itself can only be re-run by a tester.bee5a91996, a merge of #9633's2f104ac486, which carriesmaind89f26516cthrough #9633, without conflicts (×10, with #21255's test change).FormatVersionstays 97, 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: 57 run, 56 pass, 0 skip, 1 fail. Windows: 59 run, 11 pass, 48 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 410 and 411 tests on Linux and 439 and 432 on Windows, with 0 failed apart 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 #9749'sbee5a91996, this PR's own head (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.AMD Radeon RX 9070 XT (RADV GFX1201), by @hugodearaujo, with the Khronos validation layer (comment): Arch Linux (kernel 7.3.4), RADV (Mesa 26.2.7), GCC 16.2.1 Release,
BUILD_TESTING=ON, validation layer 1.4.363, 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. This headbee5a91996merged ontomaine1ab104e0a(their merge b726f51423, clean), againstmaine1ab104e0aalone.main: 39 tests, 38 pass, 1 skip in each run. This PR: 56 tests, 55 pass, 1 skip in each run; the counts include the tests of #7395, #8939, #9457 and #9633, which this head carries. The one skip is the same in every arm,main's included:agc_driver_image_table_vouched_lookups(the device reports host-imported pages written after a GPU read). 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.dd2c6b1aee, a merge of #9633'sf96acd992d, which carriesmaind50640e264through #9633, without conflicts (×10, with #21255's test change).FormatVersionstays 97, 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: 57 run, 56 pass, 0 skip, 1 fail. Windows: 59 run, 11 pass, 48 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 410 and 417 tests on Linux and 439 and 438 on Windows, with 0 failed 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 #9749'sdd2c6b1aee, this PR's own head (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. That run's Windows job reached the job time limit while building on an AMD EPYC 7763 runner, before any test ran.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 Intel Xeon Platinum 8573C and 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.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)main(see What)Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-22T12:20:30Z.
@Tamalero this is the follow-up for the third read you traced on #9633.
PointerChasenow keeps the high word's own immediate (readHighImmediate, as you suggested), so the walk takes compute 0x116bb67100's step with the low word at 0x54 and the high word at 0x6c, and the snapshot reads the high word there. It's stacked on #9633 at2c1a65045c. The disk cache format moves to 48, so older cache entries aren't reused. If you can run Rift Apart on this PR's head the same way as before, we'd like to know where it stops next.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T14:55:37Z.
Review: CHANGES_REQUESTED
I found no logic defect in the new high-word-immediate handling: the tracker records it, the snapshot reads it, the cache serializes/validates it, and the added positive/refusal tests cover the separate offsets. The PR report provides substantial repeated Linux test and VVL evidence. Current-base
git diff --checkand conventions pass, and merge-tree with currentmainis clean. I did not run the GPU suite locally; the workspace has no configured build and under 700 MB free.Please update the integration checklist before approval. The PR says it is stacked on #9633, which is still open, but currently lists only
Depends on: #9457; record #9633 as the prerequisite (the earlier stack is transitively included by it). Also this head is based on3ca07d0, 19 commits behind currentmainb7d1d47. Rebase/refresh it and rerun the focused shader tests. The VVL evidence I see for this increment compares #9633 to this PR; after the refresh, include the required same-GPUmainversus final-headctest -Vcomparison with the prescribed environment, confirm the layer loaded, and compareVUID-output.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T17:04:23Z.
Review: COMMENTED
The final head
6db7b36aefce38828c2392ca2c147fd230529492is based on current mainb7d1d47a5fand merges cleanly with today’s11f976b27c16ed91633f00039dba5dfd97dd7cc1; conventions and diff-check pass. The report now contains Linux llvmpipe positive/refusal cases, a red control against #9633, repeated CI runs, and a main-versus-change validation-layer comparison where the layer loaded in both and neither showed a new VUID. The integration checklist is still stale in the body I can see: it saysDepends on: #9457, while the author comment says it was corrected to #9633. Please make sure the actual checklist text is updated toDepends on: #9633(which carries #9457/#8939 transitively) before merge. I did not independently rerun the GPU suite locally.Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-10-29T13:28:11Z.
Review: APPROVED
Reviewed — approved
I reviewed this PR's increment over #9633: the high word's own immediate in
PointerChaseand the alignment check on the chased V#'s base. It merges cleanly into currentmain, builds, its focused tests pass under the validation layer with noVUID-messages, and reverting the increment makes the new and changed tests fail. The description's Tested section is out of date in two places (see Non-blocking).What I ran
c4f25ba3fc7dcf52255f7d12f657ea4c885368a9main:157b02c4f1803e9d2cd757677b9a805961203fc4ee8767ff0de59e6db33a0c9ac941792b30915d77(an ancestor of this head)Results
mainlibSceAgcDriver/CMakeLists.txt,ResourceMaterializer.cpp,ShaderDiskCache.cpp,docs/dev/debt/shader.md)git diff --checkcheck_conventions.pyAll conventions checks passed.--target libs, merged treemain, validation layermainhas 12 of the 31)mainwas not found but was requested by env var VK_INSTANCE_LAYERSVUID-linesagc_driver_pointer_chase_split_tableandagc_driver_pointer_chase_tablefailMerged tree, focused tests (excerpt)
Negative control
On the merged tree I reverse-applied this PR's production changes over #9633 (
ControlFlowInfo.hpp,ResourceTracker.cpp,ResourceMaterializer.cpp,ShaderDiskCache.cpp,ShaderDiskCache.hpp), kept the tests, and rebuiltagc_driver_image_table_tests. Both tests this PR adds or changes fail, each for the reason it targets:Output without the increment
The split test's failure has the same text as Rift Apart's stop in the description. I then restored the merged files.
Findings
Blocking
None.
Non-blocking
FormatVersiongoes from #9633's 55 to 56", and its ladder lists "#9633 55, #9749 56, #9790 57". At this headShaderDiskCache.hpp:16is 57:f6b5d58d10moved it because #9633 now uses 56. #9790's diff uses 59. Please update the What bullet and the ladder.c4f25ba3fcremoved those three checks, andRunPointerChaseSplitTestsno longer has them. Please drop that bullet, or note that the controls were removed and why.readHighImmediatethrough the shader disk cache. The encoder and decoder carry the field, and the decoder refuses unaligned or low-equal values (ShaderDiskCache.cpp:1169,:1346,:1401). But the chase tests run withANYPS5_NO_SHADER_CACHE=1, andcore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cppnever builds aPointerChase. If the decoder lost the field, the cached plan would keepreadHighImmediate = 0. The snapshot would then read the high word at the arm's buffer offset plus 0 instead of at its own immediate, and the wrong pointer would fault as outside the snapshot only on a warm cache. Theagc_shader_disk_cachepass in the description and here doesn't cover this path. A warm-cache run of the split shader, or an encode/decode equality check on a plan with a split chase, would cover it. The gap was already there for #9633's chase fields.docs/dev/debt/shader.md:57(line 56 at the head) says a V# that isn't a buffer, or a read past the V# or outside the snapshot, ends the chase. Since52ae6543ae, a chased V# whose base makes the low or high word's address unaligned also ends it (ResourceMaterializer.cpp:1087), even when the memory is inside the snapshot. Separately, the tracker refuses a high word read at the low word's own immediate (ResourceTracker.cpp:1067). Both are gaps a reader of the debt file would want listed. The first matters most: if the hardware reads the dword-aligned address there, the snapshot leaves out a pointer the GPU can select.The tracker change itself looks right to me.
ChaseHighReadpairs the high word by the IR's ownGetAddressResource(low, high)operands, not by a layout guess. It still requires the arm's V# (or an equivalent one) and the same buffer offset, and the old low + 4 rule is a special case of the new one.readHighImmediateis set beforesite()compares chases, so two arms that differ only in their high immediate get separate sites. The tracker builds aPointerChaseonly in this walk (ResourceTracker.cpp:1104), so no tracker path leaves the field at its default.Not verified
main). I built and tested it only as part of the merged tree. This approval covers the increment over #9633, and this PR should merge only after #9633.Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-03T08:26:37Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
This pull request does not merge cleanly into
main(4f41f4c375): head8fa3da8d9econflicts 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-03T13:51:28Z.
Review: APPROVED
Re-checked — approved
The three non-blocking findings from my review of
c4f25ba3fcare resolved. Since then the PR added a disk-cache round trip forreadHighImmediate(babbb0eafd), the debt entry now names the two refusals (eac5dce947), and the description is updated. The rest is stack andmainmerges plus disk-cache format bumps. The merged tree builds, the focused tests pass, the validation comparison withmainshows no newVUID-, and dropping the field in the decoder makes the new check fail.What changed since my last review
babbb0eafd(test):verifyPlanRoundTripbuilds a pointer-keyed column with onePointerChase{8, 16, 4, 24, 40, {}}, so the high word is read 16 bytes past the low word. It encodes and decodes the plan and requires the chases to come back equal (ShaderDiskCache.cpp#L2389-L2397). The value 40 is 4-aligned and differs fromreadImmediate24, so the decoder's validation accepts it.eac5dce947(docs): the chase entry (shader.md#L64) now starts with what stays refused. That includes a high word read at the low word's immediate, and a chased V# whose base leaves either word's address unaligned. It also says the console's behaviour at an unaligned base is not measured.4769d5a745and the commits brought in from #7395/#7223 (nested budget reset on retry, the epoch check for a lone nested sampler table, the Windows PATH fix): these belong to the base PRs. I built and ran them only as part of the merged tree.FormatVersionis now 72 (ShaderDiskCache.hpp#L16), abovemain's 52.What I ran
13e0df876dc226aedd498201c5f8725f2a664ccd,main4f41f4c375f5abb487dbd184fbc150f31994d762, merged treeef1441126d788e6d2417a6e90d976e431cfccf37(Debian 13 VM, GCC 14.2.0, lavapipe on Mesa 26.1.6).git diff --checkcheck_conventions.pyAll conventions checks passed.libs(script)mainlayer_missing_inempty; 0 tests with a newVUID-git status --porcelainafterwardsNegative control output
Previous findings
ShaderDiskCache.hpp:16. The refusal-control bullet now saysc4f25ba3fcremoved those checks.readHighImmediatethrough the disk cache: resolved.babbb0eafdadds the check. I made the decoder read the field into a discarded local (ShaderDiskCache.cpp:1365), andagc_shader_disk_cachethen fails with the new message. With the merged file restored it passes. This matches the author's reported negative control.New findings
Blocking
None.
Non-blocking
mainis at 51 since #6959". Onmain4f41f4c375,FormatVersionis 52. The PR's 72 is still above it, so nothing breaks, but the ladder in the description should say 52 formain.Not verified
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-14T10:21:40Z.
Review: COMMENTED
Reviewed — comments
The review is incomplete because
ShaderMemory.cppwas excluded from the prepared bundle and I did not run the reported checks.What I ran
Reviewed head
39b162b371f823b2bb4ad4cbe961eccae425fac5using the prepared diff and repository reader. No commands or tests were run.Results
Findings
Blocking
None verified in the inspected code.
Non-blocking
None.
Not verified
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppwas excluded because it was too large for the review folder. The full text ofcore/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cppwas not read; its diff was inspected. No tests were run, and author reported test results were not independently confirmed.To get this to a good state
Nothing is required. Optional: complete review of
ShaderMemory.cppand run the focused tests before treating this review as approval.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-14T11:41:03Z.
Review: COMMENTED
Reviewed — no blocking findings
The inspected changes show no verified blocking defect, but this review is incomplete because the full changed implementation and test files were not all inspected.
What I ran
Head:
b0e80e539e588c7fa55e3aac61bda9f8e0b380f0. Read the prepared description, commits, manifest, and selected ranges of the diff using the review reader. No commands or tests were run.Results
Findings
Blocking
None verified in the inspected ranges.
Non-blocking
None.
Not verified
The full implementation and all test changes were not inspected. In particular,
ResourceTracker.cpp,ResourceMaterializer.cpp, andShaderMemory.cppwere not read from the repository at the pinned head; only selected diff ranges were reviewed. The prepared description reports extensive prior test runs, which were not independently rerun here. The changed-file manifest lists 15 files; the full text ofShaderMemory.cppwas excluded from the review folder. Other changed files were included, but their full contents were not all read.To get this to a good state
Nothing is required. The author may request a complete review after the remaining changed implementation and test files are inspected.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-16T12:59:28Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change based on the code inspected; the focused tests are reported by the author, not run in this review.
What I ran
Reviewed head
510fd2384dd3e831e1c69fe6e99ba8219de91103using the prepared diff andrepo_read.py. No commands or tests were run. The bundle reports a clean merge check against its stated base,main.Read
description.md,commits.md,manifest.json, and the relevant hunks ofdiff.patch. Read the changed repository filesResourceTracker.cpp,ResourceMaterializer.cpp,ImageTableAbi.hpp, andShaderDiskCache.cppthrough the pinned reader.ShaderMemory.cppwas excluded from the review bundle because it was too large; the other changed files were listed as included, but not all of their full text was read.Results
ShaderMemory.cppnot included in bundleFindings
Blocking
None in the code inspected.
Non-blocking
None.
Not verified
The full contents of
ShaderMemory.cppand the other included changed files not named above were not read. Tests, builds, and console behavior were not independently verified. The description reports focused Linux tests and Windows builds, with Vulkan tests skipped on Windows.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-18T03:55:51Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change based on the targeted source review; the focused checks reported in the PR description were author-reported and were not run here.
What I ran
Reviewed head
365f2b551fbf9ee85806586fb754c094d0f68015usingrepo_read.pyagainst the prepared review bundle and pinned repository source. No tests or build commands were run.Results
Findings
Blocking
None found in the source inspected.
Non-blocking
None.
Not verified
The full text of
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppwas excluded from the review bundle. I read its added retry test and nearby context through the pinned reader, but did not inspect the complete file. I also did not read every changed file or run tests/builds, so this review does not support approval.Files read:
core/shader/recompiler/Optimization/src/ResourceTracker.cpp,core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp,core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/ControlFlowInfo.hpp,core/shader/recompiler/ShaderDiskCache.cpp,core/shader/recompiler/ShaderDiskCache.hpp,core/shader/recompiler/SpirvBackend/src/SpirvImageEmitter.cpp(targeted search only),core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp(targeted ranges),core/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cpp(targeted ranges), and both changed CMake test files. The changed test fileShaderDiskCache.cpp,ImageTableAbi.hpp,ResourcePlan.hpp,Recompiler.cpp, anddocs/dev/debt/shader.mdwere not read in full;files.jsonwas unavailable under that name, so the review-folder listing was used to identify included and excluded files.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T05:54:13Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing in the production changes I inspected demonstrates a blocking defect; approval is not justified because one changed file was not read and I did not run checks.
What I ran
Reviewed head
dd2c6b1aee4d4fe2dcb1572906fa9d64f1c11ce8using the prepared patch andrepo_read.py. No tests or builds were run.Results
Findings
Blocking
None identified in the source inspected.
Non-blocking
None.
Not verified
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppwas excluded from the prepared full-text files as too large; I read only its changed region throughrepo_read.py. I did not read every changed file listed as reviewed in the manifest, so the test additions and remaining changed files are not fully verified. I did not run the author-reported tests or hardware checks.Files read:
review/description.md,review/commits.md,review/manifest.json,review/diff.patch,core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp(targeted range),core/shader/recompiler/Optimization/src/ResourceTracker.cpp,core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp,core/shader/recompiler/ShaderDiskCache.cpp(targeted range), andcore/shader/recompiler/ShaderDiskCache.hpp.Files excluded or not fully read:
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppwas excluded fromfiles/due to size; other changed files were not read in full.To get this to a good state
Nothing is required. Optional: complete review of the changed files not read and run the focused tests on this head.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-23T05:50:34Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the focused tests described by the author exercise split high-word pointer chases, snapshot closure, and cache round-tripping.
What I ran
Reviewed head
198784fc4eeefae6ae5290253c11818539d206f6using the prepared diff and repository reader. No commands or tests were run in this review.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
I read the added lines in all nine changed files listed in the review manifest and targeted surrounding code in the tracker, materializer, and cache decoder. I did not run tests, build the change, or verify the reported console behavior. The description reports focused Linux tests and Windows builds, with Vulkan tests skipped on Windows; these are author-reported results, not runs performed here.
To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T02:26:45Z.
Review: COMMENTED
Reviewed — comments
Nothing blocks this; the points below are optional.
What I ran
Reviewed head
ce812ac2be4af274fa5f92b49a90266f7ea5fa8b. No commands or tests were run; the test results in the PR description are author reported.Results
Negative control
Not run.
Findings
Blocking
None verified in the inspected code.
Non-blocking
Sources
Not verified
The changed files listed in
manifest.jsonarecore/libs/prx/libSceAgcDriver/tests/ShaderDiskCache.cpp,core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_image_table_tests.cmake,core/libs/prx/libSceAgcDriver/tests/execution/ImageTable.cpp,core/shader/recompiler/IntermediateRepresentation/include/IntermediateRepresentation/IrMetadata/ControlFlowInfo.hpp,core/shader/recompiler/Optimization/src/ResourceMaterializer.cpp,core/shader/recompiler/Optimization/src/ResourceTracker.cpp,core/shader/recompiler/ShaderDiskCache.cpp,core/shader/recompiler/ShaderDiskCache.hpp, anddocs/dev/debt/shader.md. I inspected the diff and targeted ranges inResourceTracker.cpp,ResourceMaterializer.cpp, andShaderDiskCache.cpp; I did not read the complete text of any changed file. No files were excluded by the prepared review manifest, and no test execution was performed.To get this to a good state
Nothing is required. The optional point is to complete the review of the changed files and independently run the relevant tests before treating this as a formal merge decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-26T11:37:44Z.
Review: COMMENTED
Reviewed — no blocking findings
No blocking defect was found in the inspected pointer-chase changes; runtime checks were not run in this review.
What I ran
Reviewed head
df176da31de9e15179bd53bca81054013c103a24using the prepared review bundle and the pinned repository reader. No tests or build commands were run. The author’s reported test results were not independently run here.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The hardware and CI results in the PR description were not independently verified. The complete 936-line execution-test addition in
ImageTable.cppwas not read in full; targeted chase logic, cache round-trip coverage, and test registration were inspected. The other changed files listed in the review bundle were not individually read beyond relevant diff portions. The review bundle’s exclusions were not available throughfiles.json; the bundle listing reported all nine changed files as included.To get this to a good state
Nothing is required.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.