fix(shader): plan several T#s read through one pointer-loaded V#, keeping the V# real for their other uses #9790
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9790"
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-22T15:05:53Z.
What
This is stacked on #9457.
With #9457, Marvel's Spider-Man 2 (PPSA03016) gets past
ReadConstBuffer@pc=0x8560. It then stops at 131 s in compute 0x11e2b38300 (hugodearaujo's run):hugodearaujo's IR (comment) shows the shape:
#9457's nested tables refuse both parts:
d132754dbeadded that check after a T# read with another user crashed lavapipe. Planning rewrites the V# handle such a read goes through, and drops the V#'s word loads.The change, three commits and a test-only one:
47a4e592ee), as SMEM does. The RDNA 2 ISA guide gives theS_LOADaddress asSGPR[base] + inst_offset + { M0 or SGPR[offset] or zero }and says of every component, the base included, that "the two LSBs are ignored and treated as if they were zero" (AMD, "RDNA 2" Instruction Set Architecture: Reference Guide, 2020-11-30, §7.2.1S_LOAD_DWORD, Scalar Memory Addressing, page 52 of 283; PDF). @jotitadev found it on macOS (review): a T# whose dword 0 ends in01made the read through its words start one byte past the snapshot and fault.~3, and so does the anchored direct read.ScalarAddressDwordstarts from the cleared base, so the records behind such a pointer are read instead of being leftUnmapped.0ce262419e) places the shared V# reuse case's texel arrays at +0x100 and +0x300 of a 1024-aligned array, so the T#s' dword 0 ends in01and11on every platform, as it did in that macOS build.Overlap:
CMakeLists.txtconflict, the same lines #9457's own registrations touch. Keeping both resolves it. The product files auto-merge.git merge-treeconflicts are the same as #9457's head's, so it adds none. That covers #8881, #8564, #7880, #9748, #9335, #9020, #8625 and #8077. #9193, #8406, #8339, #8281 and #7803 merge cleanly with both.FormatVersion: 98, this PR's own number on the stack's ladder (see Tested). No serialized structure changes.ResourceTracker.cpp. Its helpers sit aboveTryMakeTableColumn, which takes #20519'sdynamicparameter. In the parent-pointer path, itsTryMakeTableColumncall takes thedynamicargument, and itsotherUsersandrereadablerefusals returnruntimeAddress()like #20519's lines around them, which still returnsfalsewith the heap off. 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
ImageTable.cpp, in hand-written RDNA.agc_driver_pointer_vsharp_shared_table: the record pointer at dwords 2/3 of a waterfall-keyed record, its low word merged with 0xea, a V# at the pointer, and two buffer handles reading T#s at 0x0 and 0x4c0.GetBufferResources over the same fourLoadAddressU32s.agc_driver_pointer_vsharp_shared_reuse_table: the same, plus T#2's dwords 0/1 moved into the pointer registers on one edge before a laters_loadthrough them.agc_driver_nested_image_tableandagc_driver_nested_sampler_table:ResourceTracker.cppat #9457's head, those four tests fail with "GetImageResource dword 0 is not a valid runtime value" (the sampler test with "GetSamplerResource ..."), the title's text.precise_wait: "PreciseSleepUs(50) median overslept target bound" (116147 and 115847 ns, against its 90 µs bound).agc_driver_sgpr_pattern_fill_keystiming flake under--parallel 4(it passes alone).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_validation6 times on #9457's tree and 8 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.test/sm2-9790-on-c00cb0f875(aeb0b65e8f) with his #9424 merged in, on Linux 7.2.11, AMD Radeon RX 9070 XT, RADV Mesa 26.2.5, Release, a cold shader cache, one run. That branch is this PR's two commits onc00cb0f875, patch-identical to0e78959001and53523163d2, without the latermainmerges. The title gets pastReadConstBuffer@pc=0x8fa0and stops at 135 s later in the same shader, atReadConstBuffer@pc=0x9a50, with "GetImageResource dword 0 is not a valid runtime value".agc_shader_replayrefuses the new request at the same place. That stop is a different shape: a T# in an array inside the pointer-loaded V#'s buffer, at an offset of(word >> 16) * 32where the word is read through the same V#. This PR still refuses that as a data read through the V#, and it's a follow-up.57bf487021,main499b1cf9fcmerged in (clean; the PR's own diff is unchanged), on GitHub's runners (run):mainhas (agc_driver_image_table_vouched_lookupsandagc_driver_image_table_vouch_queued_draws) and the shader disk cache test pass 10 of 10, none skipped.mainagainst this head, in the same run:main's tree ran the three of these tests it has. The loader insertedVK_LAYER_KHRONOS_validation3 times onmainand 110 times with this PR, and neither log haswas not found. Both logs report onlyVUID-VkDeviceCreateInfo-pNext-pNext, so this PR adds noVUID-message.guest_raise_in_system_callfailed in the first attempt with this head, and the rerun of that job passed both suites. The libc and libkernel suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.mainon lavapipe, with an unmapped record pointer:mainand #9457 refuse these shapes at planning, at compile time. With this PR they compile, and the loads the second commit keeps real miss the BDA table, so llvmpipe crashes instead of reporting the fault.StopBdaInvocationIfends the invocation before that load, but llvmpipe still performs the uniform load from address 0.s_load_dwordthrough an unmapped pointer read from a buffer, also crashes on a load from address 0. It ran on this PR's first commit, but it has no image table, which is what this PR changes, and the files that emit these loads (SpirvBdaRead.cpp,SpirvBdaFault.cpp,SpirvRuntimeBuffer.cppandSpirvMemoryInstructions.cpp) are identical tomain's.test/9790-unmapped-record(4dd9a2563d), this PR's head plus an unmapped record pointer in the two shared-V# tests.BDA access failed: address=0x7f12345000 instruction=0x90 bytes=1 stage=4 reason=1.selected the descriptor at 0x7f12345000: unmapped, as on llvmpipe.809d8804c1, a merge of #9457's7f3a25e0cb, 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 (27 tests) pass 10 runs in a row on Linux. On Windows the set has 29, with two Windows-only disk-cache tests: they build, 5 pass 10 runs in a row, and the other 24, which need a Vulkan device, skip. The libc and libkernel suites pass on both, run 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.47a4e592eeand0ce262419e, on GitHub's runners:47a4e592eereverted on0ce262419e(run, 3 runs): on Linux,agc_driver_pointer_vsharp_shared_reuse_tablecrashes llvmpipe,agc_driver_bda_anchor_readsfails "scalar loads from a base with low bits 1 byte 32784 is 0x87618183, expected 0x61818380", andagc_shader_memoryandagc_shader_bindlessfail "scalar address rule: a base with low bits 1 is not dword-aligned"; the other 14 pass. On Windows,agc_shader_memoryandagc_shader_bindlessfail with the same rule line.0ce262419e(run): on Linux, 18 of 18 tests pass 10 runs in a row, none skipped; on Windows, 15 pass 10 runs in a row and the 3 that need a Vulkan device (agc_driver_bda_anchor_reads,agc_driver_pointer_vsharp_shared_tableand_reuse_table) skip; none 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.47a4e592eealone (run, 3 runs): on Linux 18 of 18 pass; on Windows 15 pass and the same 3 skip.0ce262419e, on the Linux runner (run): the layer loaded 3 times on the base and 30 with the change, and both logs report onlyVUID-VkDeviceCreateInfo-pNext-pNext, so the change adds noVUID-message.cfd61b79c7, a merge of #9457'sdc18bf7bf7(which carries #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: 42 run, 42 pass, 0 skip, 0 fail. Windows: 44 run, 20 pass, 24 skip (Vulkan device tests; the runner has none), 0 fail.^agcset once (run): Linux 984 run, 919 pass, 64 skip, 1 fail; Windows 1003 run, 272 pass, 729 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.main379b1dca32againstcfd61b79c7(run), on one GitHub Linux runner (llvmpipe, LLVM 20.1.2) with the setup above and the focused set:main's tree ran the 24 of these tests it has, 24 pass. This head ran 42: 42 pass, 0 skip, 0 fail.VK_LAYER_KHRONOS_validation8 times onmainand 26 times with this head, and neither log haswas not found.VUID-VkDeviceCreateInfo-pNext-pNext, so the refreshed head adds noVUID-message.ab388afb74, 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: 42 run, 42 pass, 0 skip, 0 fail. Windows: 44 run, 20 pass, 24 skip (no Vulkan device), 0 fail. The libc and libkernel suites pass on both, run withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.6779c1495a, 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: 42 run, 42 pass, 0 skip, 0 fail. Windows: 44 run, 20 pass, 24 skip (no Vulkan device), 0 fail.guest_raise_in_system_calltimed out at 30 s, 220th of 222; this PR changes nothing in libkernel. Run alone on this head 20 times in a row (run), it andguest_raise_exceptionpass on Windows, and both suites pass on both runners. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.6779c1495a, which carries #9457, merged 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, 68 entries, pass on both GPUs,agc_driver_pointer_vsharp_shared_tableand_shared_reuse_tableamong them.ResourceTracker.cppat #9457 and the rest of this PR kept, exactly the four tests this description names fail on both GPUs withGetImageResource dword 0 is not a valid runtime value:agc_driver_nested_image_table,agc_driver_nested_sampler_table,agc_driver_pointer_vsharp_shared_tableand_shared_reuse_table. The other 19 table tests pass.agc_entries, the same ones fail with and without the stack, none of them table tests.6779c1495aon currentmain, by @hugodearaujo (comment): this head merged intomainf95acfc948(clean;mainhas #9424), Linux 7.2.11, RX 9070 XT, RADV Mesa 26.2.5, Release, a fresh shader cache in each run, X pressed every 30 s, 480 s limit.mainf95acfc948alone stops at 211 s, at the first dispatch of the compute shader whoses_swappc_b64at pc 0x1fe0 calls a computed target, withGetImageResource dword 0 is not a valid runtime value(chain fromReadConstBuffer@pc=0x000084bc).APS5_DUMP_SHADERS=1, that shader is first dispatched at 206 s and prepares: no.prepare.reqor_failed.reqis written for it.agc_shader_replayon this tree still refuses the four.prepare.reqfiles saved at the earlier stops, atReadConstBuffer@pc=0x9a50. They came from trees withoutmain's table-call linking changes (0a4027df9a,ef2b164b15,01e7d158b6); he reads the program linked at dispatch as probably different now, which can't be shown, since a.prepare.reqis written only when preparation fails.6779c1495amerged ontomainb986c11a34with the macOS port changes (FormatVersionresolved to a new number). MoltenVK 1.4.2 (Vulkan SDK 1.4.363.0) and MoltenVKmainwith SPIRV-Cross #2704,ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1.^agc_driver_(pointer_|nested_|bda_anchor)tests pass 3 of 3 runs on each driver,_shared_reuse_tableandbda_anchor_readsincluded.47a4e592eereverted,_shared_reuse_tablefails withBDA access failed: ... instruction=0xd8 bytes=1 stage=4 reason=1andbda_anchor_readswithscalar loads from a base with low bits 1 byte 32784 is 0x87618183, expected 0x61818380, on both drivers; the other 17 pass.VUID-vkCreateDescriptorSetLayout-support-09582come from the image table layout on MoltenVK (KhronosGroup/MoltenVK#2573), as on the base; the 20VUID-VkSamplerCreateInfo-samplerMipLodBias-04467innested_sampler_tablecome from MoltenVK's portability subset.^agcsuite (SDK driver): the same 41 failures as the base; with MoltenVKmain+ #2704, the base's 40 lesscross_workgroup_flag, nothing new.5b81551960:f447f2bf03, a merge of #9457's62992d7437, the format commitfefc0c352c, the test-only commit4125a67e6e, and5b81551960, a merge of #9457's merge ofmain0cd07dc4ab(run).f447f2bf03takes #9457's merge of #8939 (with #7223's153400ba2band the test-only commits of #7395 and #8939) and #9457's format commit. Clean, and this PR's own diff is unchanged.fefc0c352cgives this PR its own disk-cache format, 57. The open bumps take one number each: #7223 49 (as do #9508, #9748 and other open PRs), #7395 50, #8939 51, #10000 52, #9457 53, #10489 54, #9633 55, #9749 56, #9790 57, #9969 58, #10846 59.4125a67e6edrops two checks that expected planning to refuse a shape withnot a valid runtime value, from the assertions @oneandonlydean listed on #9969: a T# with another consumer whose V# only the table snapshot holds, and a data read through a third handle on a pointer-loaded V#'s words. The two summary lines no longer name refusals, and the sampled results stay.5b81551960merges #9457's merge ofmain0cd07dc4ab, with #9457's resolution of mrfelek's #10228. Clean here, and this PR's changed lines are the same.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.5aa0ca45e7, a merge of #9457's88620551d5, which carries #7395's test-only commitca14648806(the nested-sampler test no longer asserts that an S# with another consumer is refused) (run). The one conflict was that S# case inagc_driver_nested_sampler_table: this PR plans the S# and checks its sampled result (53523163d2), so the merge keeps that check and drops only therefusedhelper, which nothing uses any more. This PR's diff now adds the S# case with its sampled-result check, where it used to replace #7395's refusal; the test at the head differs from5b81551960only by the helper. The shared-V#, BDA anchor, nested, vouch and SGPR-fill tests with the disk-cache, bindless and shader-memory tests ran 10 times with no failure. Linux: 28 run, 28 pass, 0 skip, 0 fail. Windows: 30 run, 23 pass, 7 skip (the Vulkan device tests), 0 fail. Suites: libc and libkernel pass on Linux (166 and 264). On Windows libc passes (194), and libkernel passes 283 of 286:exec_arguments,guest_timed_join_import_libkernel_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.e3196d5721, a merge of #9457's9a44f18aeb, which carriesmain38ccd50f83and with it #11507'sFormatVersion49 (run). Clean:FormatVersionstays 57, and this PR's diff over #9457 is the same. The ladder is now:mainis at 49 since #11507 (hugodearaujo), and #7223, #9508, #9748 and other open PRs use 49 too. Ours take one number each: #7395 50, #8939 51, #10000 52, #9457 53, #10489 54, #9633 55, #9749 56, #9790 57, #10846 59 and #9969 60. 58 is held by our draft #7642 and by #10193 (Celegans12), which carries #7642's commits; #7642 moves above 60 at its next update. The shared-V#, BDA anchor, nested, vouch and SGPR-fill tests with the disk-cache, bindless and shader-memory tests and #11507'sagc_driver_image_sample_short_cuberan 10 times with no failure. Linux: 29 run, 29 pass, 0 skip, 0 fail. Windows: 31 run, 23 pass, 8 skip (the Vulkan device tests), 0 fail. Suites: libc and libkernel pass on Linux (166 and 265). On Windows libc passes (194), and libkernel passes 284 of 287:exec_arguments,guest_timed_join_import_libkernel_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.4e6a2bfce0:7147fd71b5, a merge of #9457's19bed84013, and4e6a2bfce0, the format commit (run).7147fd71b5takes #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 the format commits below this PR. Two conflicts:FormatVersion, which stays this PR's until the next commit, andtests/execution/ImageTable.cpp, whered908758281removes the shared-V# refusal check and its helper next to this PR's T#-with-another-consumer case; the merge takes the removal and keeps this PR's case, which plans that T# and checks its sampled words. This PR's diff no longer removes the T# refusal check itself, since #7395 now does.4e6a2bfce0gives this PR its own disk-cache format, 59 (58 is #10193's). The ladder:mainis at 49 since #11507 (hugodearaujo), and #9508, #9748 and other open PRs use 49 too; #7223 is at 50 since yabanana's0dbf5478b2. Ours take one number each: #7395 51, #10000 52, #8939 53, #10489 54, #9457 55, #9633 56, #9749 57, #9790 59, #9969 60 and #10846 61. 58 is held by #10193 (Celegans12), which carries the commits of our draft #7642, and #7642 takes 62 at its next update.agc_shader_bindless,agc_shader_memoryand 17 otheragc_shader_tests (table snapshots, selected records, memo budgets and pair layouts) ran 10 times with no failure. Linux: 46 run, 46 pass, 0 skip, 0 fail. Windows: 48 run, 25 pass, 23 skip (the Vulkan device tests; the Windows runner has no Vulkan device), 0 fail. The libc and libkernel suites run 191 and 291 tests on Linux and 220 and 314 on Windows, with 0 failed. They ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.eddf966ddb, a merge of #9457's31bd0dea17, 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: 46 run, 46 pass, 0 skip, 0 fail. Windows: 48 run, 25 pass, 23 skip, 0 fail; the 23 skip because the runner has no Vulkan device. The libc and libkernel suites run 191 and 291 tests on Linux and 220 and 314 on Windows, with 0 failed. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.a5efbc3ec5, a merge of #9457's head4eaf19b304, oneandonlydean's merge ofmainb08c539c50into #9457 (run).CMakeLists.txt, from #12862's split, resolved withtools/agc_test_split.py resolve. It moves this PR's registrations intotests/cmake/agc_driver_image_table_tests.cmake, next to the stack's (+4 −2 against4eaf19b304).FormatVersionmerged cleanly and stays this PR's own. Apart from the move, this PR's diff is unchanged.-DBUILD_TESTING=ON,ctest -Ngives 3098 tests:mainb08c539c50's 3081 plus the stack's 17 tests (#9457's 15 and this PR's 2), each listed once.APS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.VK_LAYER_KHRONOS_validationon GitHub's Linux runner (run),mainb08c539c50against this merge, for the same tests. The loader inserted the layer 2 times on main and 19 with this merge. The only VUID in either arm isVUID-VkDeviceCreateInfo-pNext-pNext, so this merge adds none.agc_driver_image_tablefails in that mode in both arms, because the mode treats thatmainmessage as a failure.a5efbc3ec5, from TechLevelZero's NVIDIA bot (report): driver 595.99.02, Ubuntu 26.04.1, this head merged ontomain3741ca9, 2,540 of 3,121 tests selected.main, and 2 are unstable onmain.VK_LAYER_KHRONOS_validation, over 947 tests on the GPU, there are no new validation IDs againstmain. 17 of the stack's nested and pointer table tests ran with the layer but aren't inmain's baseline, so they weren't compared.172dd67c21:8bcf1dd4bc, a merge of #9457's04d09eef56, and the format commit172dd67c21(run). The one conflict wasFormatVersion, which the format commit moves from 59 to 71, above #9457's 67 and #9633's 70. This PR's own diff is otherwise unchanged. The image-table, disk-cache, BDA anchor-read, shader-memory, nested and pointer tests, with #7694'sagc_shader_descriptor_phis, pass 10 runs in a row. Linux: 32 run, 32 pass, 0 skip, 0 fail. Windows: 34 run, 10 pass, 24 skip, 0 fail. Suites: libc and libkernel pass on Linux (210 and 310) and on Windows (237 and 331). The suites ran 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, 6 failed, none new (3 also fail onmain, 3 unstable onmain), 45 skipped, with no new validation IDs (990 tests on the GPU).a12bac51d6, a merge of #9457's0a4f7cdbed, which carries #7395's merge ofmain4f64f81ef7(run). Clean:FormatVersionstays 71, 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: 32 run, 32 pass, 0 skip, 0 fail. Windows: 34 run, 10 pass, 24 skip (no Vulkan device), 0 fail. Suites: libc and libkernel pass on Linux (217 and 318) and on Windows (244 and 339). The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.main92d2fdc343(NVIDIA GeForce RTX 4080 SUPER, driver 610.74, Windows, Release), replayed withagc_shader_replay --prepare, no GPU. Each PR's diff overmain, without its tests, was applied alone on92d2fdc343, this PR's ata12bac51d6.GetImageResource dword 0 is not a valid runtime value, a descriptor reached through aReadFirstLane/Ballotwaterfall over constant-buffer values. The replay fails the same way, and so does #7395's diff.sampler resource limit exceeded(MaxSamplerswas 32; #10000 has since raised it to 64).MaxSamplersat 128, the request stops onGetImageResource dword 0again, so the shader has at least one more chain the stack doesn't resolve.6b38153c07, a merge ofmain4f41f4c375(×10, the PR's own tests ×10).ShaderDiskCache.hpp'sFormatVersion, wheremainis now at 52 (#10000) and this PR keeps its 71; 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: 17 run, 17 pass, 0 skip, 0 fail. Windows: 17 run, 0 pass, 17 skip (no Vulkan device), 0 fail.main4f41f4c375builds. Their selected tests ran 2,233 with no new failures (7 known failures also fail onmain), the validation comparison withmainover 787 tests shows no newVUID-, and the focused set passes 22 of 22. Both negative controls fail as described: with the tracker change reverted,agc_driver_nested_image_table,agc_driver_nested_sampler_table,agc_driver_pointer_vsharp_shared_tableand_shared_reuse_tablefail withGetImageResource dword 0 is not a valid runtime value; with the scalar-base low-bits change reverted,_shared_reuse_tablecrashes in llvmpipe andagc_driver_bda_anchor_reads,agc_shader_memoryandagc_shader_bindlessfail. Their two non-blocking notes are the SMEM base-alignment source, which What now cites (the RDNA 2 ISA guide, §7.2.1), and the kept descriptor words, which the debt entry discloses.ebaa9b1565, a merge of #9457's20cc916ce9, which carriesmainc2eafe4461with yabanana's #7223 through #8939 and #7395 (×10).ShaderDiskCache.hpp'sFormatVersion, which stays 71 (mainis at 56 since #7223), anddocs/dev/debt/shader.md. There #7395 adds a sentence on a nested child's T# to "Nested image tables", which this PR rewrites. The entry keeps this PR's wording, and the sentence moves into its own entry after it, "Nested image table children", since the two together are over the debt files' 1,000 characters. This PR's other lines are unchanged apart from 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: 32 run, 32 pass, 0 skip, 0 fail. Windows: 34 run, 10 pass, 24 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 301 and 325 tests on Linux and 331 and 343 on Windows, with 0 failed. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.main5b1d381, Mesa 25.2.8, Ubuntu 26.04.1, 2,914 of 3,883 tests selected. 2,846 passed, 8 failed and 60 skipped. None of the failures is new: 7 also fail onmain, and 1 is unstable onmain. WithVK_LAYER_KHRONOS_validation, there are no new validation IDs againstmain, over 990 tests on the GPU.agc_shader_nested_sampler_snapshot_retryran with the layer but isn't inmain's baseline, so it wasn't compared.32a8525931, a merge of #9457'se75a7104b9, which carriesmain8eaf82f315through #8939 and #7395 (×10).docs/dev/debt/shader.md, where JJenkx's #15305's "runtime resource snapshot" entry, which comes withmain, sits right above "Nested image tables", which this PR rewrites. Both stay: #15305's entry, then this PR's "Nested image tables" and "Nested image table children". This PR's own lines are unchanged.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: 33 run, 33 pass, 0 skip, 0 fail. Windows: 35 run, 10 pass, 25 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 327 and 344 tests on Linux and 358 and 371 on Windows, with 0 failed. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.8527df3287, a merge of #9457's2bbcdd60fc, which carriesmain006d11fca5through #8939 and #7395 (×10).main, frankea's #9020'sFormatVersion57, andFormatVersionstays 71 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: 33 run, 33 pass, 0 skip, 0 fail. Windows: 35 run, 10 pass, 25 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 327 and 344 tests on Linux and 358 and 371 on Windows, with 0 failed. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.a8ad90a6cc:6b37286c68, a merge of #9457's5be1abeb41into oneandonlydean'sa7234e908f(his merge ofmain3eb7a74e1c), and the format commita8ad90a6cc, for oneandonlydean's ask on #9457 (comment). #9457's head carriesmain017bd95f5fthrough #7395 and #8939 (×10).ShaderDiskCache.hpp'sFormatVersionline. The merge takes #9457's 81, and the format commit gives this PR 88, the lowest number above 81 that no open PR holds (a check of every open PR's head on 11-13). This PR's own lines are unchanged apart from that line: file by file, its diff over #9457 matches the previous one by patch-id, exceptShaderDiskCache.hpp(that line) anddocs/dev/debt/shader.md, where its two entries are unchanged and the lines around them aremain's newer wording.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: 47 run, 47 pass, 0 skip, 0 fail. Windows: 49 run, 10 pass, 39 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 350 and 348 tests on Linux with 0 failed, and 380 and 375 on Windows. On Windows, libkernel'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.5e4ba4e635, a merge of #9457'sd007acef13, without conflicts, which carriesmaine22c5fb941through #9457, #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: 48 run, 48 pass, 0 skip, 0 fail. Windows: 50 run, 11 pass, 39 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 379 and 372 tests on Linux and 406 and 400 on Windows, with 0 failed. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.239ae90b7b, which carries this PR's5e4ba4e635: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.mainwith #9749 stopped atReadConstBuffer@0x8f3c, on a V# that backs two T#s, at +0x420 and +0x4c0. A local prototype that accepts a pointer-loaded V# whose other users are fixed-offset T# reads gets past it, onmain60afded3d6with #9749 and #14296. That's the shape this PR handles (its V# at pc 0x8f54 feeds T#s at 0x0 and +0x4c0), at another pc and first offset.f031b24892, a merge of #9457'sb0b62f859b, without conflicts, which carriesmainbd278f3654through #9457, #8939 and #7395 (×10).FormatVersion:main's 69, this PR's 88. #7395's merge takes #19530's move ofmainfrom 68 to 69, and this PR's own diff over #9457 is unchanged.5e4ba4e635. Linux: 48 run, 48 pass, 0 skip, 0 fail. Windows: 50 run, 11 pass, 39 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 380 and 376 tests on Linux and 410 and 404 on Windows, with 0 failed. The suites ran 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.main6a86d4d1a9with #17425's curl build helper, against that tree with this headf031b24892merged (clean), both withANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1andVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, onectest -Vrun of the pointer, nested, BDA anchor, image-table, shader-memory, disk-cache and sampler-limit tests.main, this PR's and the stack's below it, all pass,agc_driver_pointer_vsharp_shared_table,_shared_reuse_tableandagc_driver_nested_sampler_tableamong them. Every test both arms have ends the same way.agc_driver_image_tableand its packed variants fail their validation-output check onVUID-vkCreateDescriptorSetLayout-support-09582, for a layout of about 262,150 descriptors against MoltenVK'smaxPerSetDescriptorsof 1,212, as in jotitadev's run above. No other VUID appears with this PR. Both arms skipagc_driver_many_direct_samplers(fewer than 33 samplers per stage or set), and the loader inserted the layer 39 times on the base and 53 with this PR, with no missing-layer warning.ec6c32b269, the format commit (×10), movesFormatVersionfrom 88 to 87. Pipodi's #18455 reads 88 too since its merge ofmain(head81362e7b90), and two identical lines merge without a conflict, so whichever of the two landed second would keep the other's number. 87 is the one number between #9749's 83 and #9969's 89 that no open PR's head held, on checks of every open PR's head at 23:25Z on 14 Nov and again at 01:57Z on 15 Nov, before the push. Nothing else changes.f031b24892. Linux (job): 48 run, 48 pass, 0 skip, 0 fail. Windows: 50 run, 11 pass, 39 skip (no Vulkan device), 0 fail, with the same tests passing and skipping as onf031b24892. The libc and libkernel suites run 380 and 376 tests on Linux with 0 failed. On Windows, the job's first attempt (job) ran libc's 410 with 0 failed and failed one of libkernel's 404,guest_timed_wait_cpu, 400th of 404, on an AMD EPYC 7763 host: itssceKernelUsleep(100 us)P99 overshoots were 4478, 4666 and 3665 µs against a limit of under 2900 µs. The second attempt (job) ran 410 and 404 with 0 failed. This commit changes onlyShaderDiskCache.hpp:16. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxes onlyprecise_wait's median bounds on GitHub's hosted runners. The run's tree had #19899's_putenv_stest fix on top, as on f031b24892's run; it isn't on this branch.aadbb73413, a merge of #9457'sd896ff422b, which carriesmain328cbf673ethrough #9457, #8939 and #7395 (×10, with #21255's test change).FormatVersion, where #9457 now takes 95, above this PR's 87. The merge moves this PR to 98. This PR's own lines are unchanged apart from theFormatVersionline.ec6c32b269. Linux: 55 run, 54 pass, 0 skip, 1 fail. Windows: 57 run, 11 pass, 46 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 391 and 390 tests on Linux and 421 and 417 on Windows, with 0 failed. The suites ran 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'saadbb73413(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 headaadbb73413merged ontomaine4caa07950(a clean merge), againstmaine4caa07950alone,ctest -R '^(agc_driver_(bda_anchor_reads|image_table|nested_(image|sampler)_table.*|pointer_.*_table)|agc_shader_.*)$'.main: 58 of 58 pass. This PR: 73 of 73 pass, including the 15 testsmaindoesn't have: this PR's two (agc_driver_pointer_vsharp_shared_tableand_vsharp_shared_reuse_table) and the 13 of #9457, #8939 and #7395. No test skips on either side. The layer was inserted 7 times onmainand 21 times with this PR; mostagc_shader_*tests create no Vulkan instance. NoVUID-line on either side, and every test that creates a device selected the RTX 4090.543d3b4867of #9457'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, ataadbb73413, 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 first attempt failed in the libkernel suite, whereguest_poll,guest_process_time_rdtscandguest_process_time_rdtsc_scaledexited with0xc0000409. The re-run of the Windows job (attempt 2) passed: the build, the libc and libkernel suites with 421 and 417 tests and 0 failed, and the 17 tests skipping (no Vulkan device). old..new touches onlyImageTable.cpp. The Windows GPU case itself can only be re-run by a tester.3b2426ac0a, a merge of #9457'sdbe3b94942, which carriesmaind89f26516cthrough #9457, without conflicts (×10, with #21255's test change).FormatVersionstays 98, 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: 55 run, 53 pass, 0 skip, 2 fail. Windows: 57 run, 11 pass, 46 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 410 and 411 tests on Linux and 439 and 432 on Windows, with 0 failed. The suites ran 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's3b2426ac0a(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.agc_driver_image_tablein this PR's ×10: it reached its 30 s timeout once, on an AMD EPYC 7763 runner. It passed in #9969's ×10 (run) and in #9969's run with #21255's test change (run), both on trees that hold this PR's3b2426ac0a._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), merged ontomaine1ab104e0a(clean), againstmaine1ab104e0aalone; it carries this PR's head3b2426ac0a.main: 39 tests, 38 pass, 1 skip in each run. The arm: 56 tests, 55 pass, 1 skip in each run; the counts include the tests of the arm's other PRs. The one skip is the same in every arm,main's included:agc_driver_image_table_vouched_lookups(the device reports host-imported pages written after a GPU read). The layer was inserted 32 times onmainand 48 times in each arm, and never reported missing. NoVUID-line in any arm, and every Vulkan test selected the RX 9070 XT.5821a3e2fa, a merge of #9457'sef586f90ca, which carriesmaind50640e264through #9457, without conflicts (×10, with #21255's test change).FormatVersionstays 98, 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: 55 run, 54 pass, 0 skip, 1 fail. Windows: 57 run, 11 pass, 46 skip (no Vulkan device), 0 fail. The libc and libkernel suites run 410 and 417 tests on Linux and 439 and 438 on Windows, with 0 failed apart fromguest_thermal_sensors(below). The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxes onlyprecise_wait's median bounds on GitHub's hosted runners.agc_driver_image_table_packed_guards, also fails onmaind89f26516calone in the same harness on GitHub's runners (run: the^agc_driver_image_tabletests ×10, 29 run, only this one fails).main's own Linux job, on the project's self-hosted runner, passes it at244b338dd0(job). fernandomcrsilva's open #21255 changes that test. With #21255's test change on top of #9969'sdc97c68c75, which holds this PR's5821a3e2fa(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.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)ReadConstBuffer@pc=0x8fa0(hugodearaujo's run, with #9424); its next stop isReadConstBuffer@pc=0x9a50in the same shader, a follow-up5eb49d1893, see Tested; not re-run since); AMD Radeon RX 9070 XT (RADV, Mesa 26.2.7, Arch Linux, with the validation layer), by @hugodearaujoImported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T16:28:59Z.
Review: CHANGES_REQUESTED
The change is carefully scoped to the declared #9457 stack. The current-main conventions check and
git diff --checkpass. I inspected the nested-column capture/materialization paths and the PR’s reported pointer-shared T#/V# tests and validation-layer comparison. I did not build or execute the shader/Vulkan tests locally in this review. Hosted PR checks currently cover eligibility, conventions, intake, labels and report; product and relinker builds are skipped. The reported Linux validation-layer comparison uses #9457’s head as the baseline, which is appropriate for this stacked delta.The exact head is 69 commits behind live
main(8499ea52e571b0edfc1feecfd3f6b9944012b359), while #9457 is still open. CONTRIBUTING.md says to keep branches up to date withmain. Please refresh the stack against currentmainas the prerequisite progresses, then rerun the focused image-table/Vulkan tests and validation-layer comparison on the final merge base before merge. I confirmed Git can auto-merge the current head with main, so this is a synchronization and final verification request, not a reported textual conflict.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T16:55:54Z.
Review: COMMENTED
I refreshed the exact head
53523163d22faf335ff71418b74fd0c672473122against currentmain(11f976b27c16ed91633f00039dba5dfd97dd7cc1). Current-main conventions,git diff --check, and merge-tree checks pass. The reported Linux llvmpipe shader, validation-layer and negative-control results are contributor-reported; the hosted product jobs are skipped. This VM has no Vulkan device suitable for the required paired validation run, so I did not claim a local shader test. The branch is 82 commits ahead and 24 behind its merge-base relation; it includes the declared #9457 stack. Please keep the dependent stack current and rerun the required same-GPU main/change validation comparison after rebasing before merge.Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-23T06:08:19Z.
Review: COMMENTED
First run on Apple silicon. The new
agc_driver_pointer_vsharp_shared_reuse_tablefails on this machine. The cause is not Apple-specific: it depends on whereFloatTexelsandOtherFloatTexelsland within 1 KiB.Setup: Apple M2 Max (32 GB), macOS 27.2, x86_64 build under Rosetta, Release,
BUILD_TESTING=ON. Method: #8658 (feat/macos-port) @4e0468722fplus this PR's diff from its merge base (head57bf487021), notmain, sincemaindoes not build on macOS yet. Two drivers: MoltenVK 1.4.2 (Vulkan SDK 1.4.363.0), and MoltenVKmainwith SPIRV-Cross #2704.ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1,ctest -j1 --timeout 30 -V.Failure, with both drivers on every run:
Cause: I printed the addresses from the test in the same run:
0x...100. SoImage()puts0x0102cc51in the second T#'s dword 0, and the two low bits of the word are01.behindAddress()clears those bits and adds 0x10, so the snapshot covers...cc60to...cc63.s_load_dwordat0xd8reads throughs[44:45](T#2's dwords 0 and 1) + 0x10. It faults at...cc64withbytes=1, the first byte past the snapshot. So the read starts at...cc61, not...cc60: it keeps the two low address bits, but SMEM ignores them.FloatTexelsandOtherFloatTexelschanged toalignas(1024)(test-only), the arrays start at0x...400, dword 0's low bits are00, and the test passes 3 of 3 with MoltenVK 1.4.2 and 1 of 1 with MoltenVK main. With that change,ctest -R 'pointer_|nested_'passes 20 of 20.So I think it passes on Linux only because the arrays' address bits 8 and 9 are 0 in that build. The read through the T# words should drop the two low bits as SMEM does, or the test should not depend on them. This is not caused by the macOS port or by MoltenVK.
The rest: the other 19
pointer_|nested_entries pass as is. In an earlier run on #8658 @dc0c8db500, the red arm (this PR without 53523163d2'sResourceTracker.cpp) refuses_shared_reuse_tableat compile time withGetImageResource dword 0 is not a valid runtime value, as expected. Whole^agcsuite with this PR, SDK driver: the base's failures plus_shared_reuse_table, nothing else.GPUs tested: Apple M2 Max (MoltenVK 1.4.2 from Vulkan SDK 1.4.363.0, and MoltenVK main + SPIRV-Cross #2704), macOS 27.2.
Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-23T14:20:06Z.
Review: CHANGES_REQUESTED
I reviewed exact head
0ce262419ed23b740be00f98f8f82bdfed945bde.The new scalar-address correction is a meaningful improvement: the guest address emitter masks the low two bits of the base for scalar reads, the anchored BDA path uses the aligned base, and the shared-V# regression now forces descriptor dword addresses ending in
01and11. The Linux runner's failure without the correction and pass with it directly addresses the prior platform-dependent test setup. Exact-head conventions and whitespace checks pass.I cannot approve the shader change on the current evidence because its required comparison has not been rerun for this head. The PR changes the shader recompiler and declares
Unblocks: PPSA03016; CONTRIBUTING requires the focused tests on currentmainand the change on the same GPU with validation enabled, no newVUID-messages, and no missing requested layer. The recorded paired validation-layer report compares #9457 with an earlier revision, before the scalar-base fix. The cited RX 9070 XT title run also used a pre-fix test branch; after this exact fix was published, the requested macOS rerun is still pending. Please refresh the #9457 stack against currentmain, then record the same-GPU baseline/combined-head focused run with the required environment and validation-layer comparison. If available, add a title rerun at this exact head so the statedUnblocksresult covers the base-alignment correction.Current
mainise94545a5; this head is 34 commits ahead and 389 behind its merge base, with seven shared files changed on both sides. Git's merge-tree is clean, but the dependency #9457 is still open at7f3a25e0. Keep the declared stack coordinated and refresh it before merge. Hosted product/relinker jobs are skipped. I did not run Vulkan tests locally because this workspace exposes no Vulkan device (/dev/dri,vulkaninfoandnvidia-smiare unavailable).Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-24T02:48:13Z.
Review: CHANGES_REQUESTED
Read the commits that are not in the #9457 stack (the shared V# planning, the real V# for other users of a T#/S# word, and the scalar base masking); the logic looks consistent. Blockers before this can merge:
maininResourceTracker.cpp(inherited from the base). Once the bases land, refresh this branch againstmain.mainand on the change on the same GPU withVK_LAYER_KHRONOS_validation, no newVUID-messages and no missing-layer warning. The recorded comparison predates 47a4e592ee/0ce262419e. Please redo it on the refreshed head. That review isCHANGES_REQUESTEDand blocks our merge queue until it is addressed.Unblockscovers it.Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-27T07:32:50Z.
Review: COMMENTED
@EagleBearerYS the macOS rerun you asked for: fixed on Apple silicon.
Setup: Apple M2 Max, macOS 27.2, x86_64 Release build under Rosetta. Head
6779c1495amerged ontomainb986c11a34plus the macOS port changes; the only conflict,FormatVersioninShaderDiskCache.hpp, I resolved to a new number (not plainmain, which does not build on macOS yet). Two drivers: MoltenVK 1.4.2 (Vulkan SDK 1.4.363.0), and MoltenVKmainwith SPIRV-Cross #2704.ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1,ctest -R '^agc_driver_(pointer_|nested_|bda_anchor)' -j1 --timeout 30._shared_reuse_tableandbda_anchor_reads.47a4e592eeand kept the tests._shared_reuse_tablethen fails as in my first report, with both drivers:BDA access failed: ... instruction=0xd8 bytes=1 stage=4 reason=1.bda_anchor_readsalso fails:scalar loads from a base with low bits 1 byte 32784 is 0x87618183, expected 0x61818380. The other 17 pass.VUID-vkCreateDescriptorSetLayout-support-09582come from the image table layout on MoltenVK (KhronosGroup/MoltenVK#2573), as on the base. 20VUID-VkSamplerCreateInfo-samplerMipLodBias-04467innested_sampler_tablecome from the portability subset.^agcsuite (SDK driver): the same 41 failures as the base without this PR. With MoltenVKmain+ #2704: the base's 40 minuscross_workgroup_flag, nothing new.GPUs tested: Apple M2 Max (MoltenVK 1.4.2 from Vulkan SDK 1.4.363.0, and MoltenVK main + SPIRV-Cross #2704), macOS 27.2.
Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T09:11:11Z.
Review: CHANGES_REQUESTED
Re-check — changes requested\n\nThe stack still has a test-policy blocker identified in the shared parent: tests/execution/ImageTable.cpp:1744-1754 pins a valid shared-V# shape to a throw. Please remove that unsupported-but-valid throw expectation while retaining the sampled-word/reuse, bounds/budget and genuine malformed-input/fault tests. Coordinate the single parent fix with #9457/#7395 and carry it through this child; do not implement the unsupported shape as part of this correction.\n\nThe current head is
e3196d5721and is still 869 commits behind current mainaaccd0ba39. After the parent fix and stack refresh, rerun the focused image-table/pointer/disk-cache/shader-memory tests with the required Vulkan validation environment on both current main and the exact integrated stack, and recheck the cache-version ladder and overlap order. The earlier scalar-address/title evidence does not validate this unrefreshed tree. I did not run GPU tests locally.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T22:38:46Z.
Review: CHANGES_REQUESTED
Re-checked — new head, changes requested
The test-policy finding is resolved at
eddf966ddb1a7a1a15db6d303954026adda8031f, but the required Vulkan comparison still uses an older main snapshot.What I ran
Reviewed exact head
eddf966ddb1a7a1a15db6d303954026adda8031f, PR basef7e84c4cf1609cc10bac95a44cd431805e5ebc8a, and currentmainfdd1753204a4732e1011539cc9d3bb69f70b27a6. The local merge preview against currentmainis clean. On Linux, without building, I ran:I inspected the revised shared-V# test, current dependency state, the author-provided NVIDIA report, and hosted CI. I did not build or run GPU tests locally.
Results
d4e1edc97f4a5b32c4b1fbe5d9d2c8e22da1c486.eddf966, the selected suite reports 2,330 passed and 3 failures also present on itsbb04a4fbaseline; no new validation IDs were reported. I did not independently run this.Raw output from local checks
git diff --checkproduced no output and exited successfully.Negative control
eddf966onbb04a4fversus that same baselinemainfdd1753.Findings
Blocking
eddf966againstbb04a4f, but currentmainis nowfdd1753(202 commits beyond that reported baseline). The PR depends on #9457, which remains open and depends on #8939, so I am not asking for a standalone rebase. After the dependency stack is ready on currentmain, the shader change still needs the repository-required same-machine/GPU focusedctest -Vcomparison withVK_LAYER_KHRONOS_validation,ANYPS5_NO_SHADER_CACHE=1, andANYPS5_REQUIRE_VULKAN=1, including confirmation that the layer loaded and no newVUID-appeared.Non-blocking
Sources
fdd1753eddf966Not verified
I did not build or run the shader tests, validation layer, or title on this machine. The NVIDIA results are author/CI-provided. macOS relinker jobs were still queued when checked.
To get this to a good state
Once #8939 and #9457 are resolved and the dependency stack is integrated with current
main, post the required same-GPU baseline/change validation comparison for the final integrated head. I will recheck that exact head and rerun the non-building checks above.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-01T03:33:10Z.
Review: CHANGES_REQUESTED
Re-checked — new head, changes requested
The updated head includes #9457 and the report shows no VUID unique to this change, but the required validation run still reports a missing-layer warning and uses an outdated
mainbaseline.What I ran
a5efbc3ec560aa54d859ec8becd304ad33633fff, PR baseb08c539c505c48341146c705bc72d9b603cdb3a7; the stack check saw currentmainatc0e05f40e385f23f34a5ef9c3fe675f86089f5db.Results
git diff --checkand repository conventions/templateb08c539, currentmainchangedPresentationPass.cpp,ResourceMaterializer.cpp,ShaderDiskCache.cpp,SpirvImageEmitter.cpp, and related tests.main; however, the declared stack still has open dependencies. #7223 and #8939 conflict with currentmain, and #7395 does not include #8939's current head.VUID-VkDeviceCreateInfo-pNext-pNexton both arms and no new VUID, but its Linux job failed:agc_driver_image_tablefailed on both arms and the required layer-missing check counted one warning in each log. Windows succeeded.Unedited output excerpts from the hosted validation run
Findings
Blocking
The evidence does not yet satisfy the repository's AGC/shader validation requirement. The workflow log for run
41264686702reportswas not found but was requested by env var VK_INSTANCE_LAYERSonce in each arm, and its Linux job exits unsuccessfully becauseagc_driver_image_tablelogs the existingVUID-VkDeviceCreateInfo-pNext-pNexton both arms. The absence of a new VUID is useful, but the run does not confirm that the requested layer was consistently available and the focused validation command completed cleanly.The baseline is also no longer current: the run compares
mainb08c539c505c48341146c705bc72d9b603cdb3a7with the PR stack, while currentmainisc0e05f40e385f23f34a5ef9c3fe675f86089f5dband has since changed shader/AGC paths used by this stack. The dependency chain remains open, so I am not asking for a standalone rebase. After the dependencies are integrated with currentmain, rerun the same focused tests on thatmainand the final stack, on one machine/GPU, and include logs showing the layer was found in every arm, no missing-layer warning, and no new VUIDs. If a pre-existing VUID still makes CTest fail on both arms, report that baseline failure separately from the comparison result.Non-blocking
The report's comparison found no VUID unique to the changed arm. The current stack preview is clean, and the local diff/convention checks passed.
Sources
maina5efbc3ec560Not verified
I did not run a local build, C++ test, Vulkan validation test, or GPU test. The hosted report is an author-provided run; I inspected its workflow log. Console behavior was not tested.
To get this to a good state
Let the declared dependency stack land, integrate the final branch with current
main, and rerun the paired focused validation with a consistently loaded layer. I will recheck the resulting head and repeat the same no-build checks.Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-03T08:45:15Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
This pull request does not merge cleanly into
main(4f41f4c375): heada12bac51d6conflicts 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:56:38Z.
Review: APPROVED
Re-checked — approved
This push (
6b38153c07) mergesmaininto the branch. The merged tree builds, the focused table, BDA-anchor and shader-memory tests pass, the validation layer reports no newVUID-, and both negative controls (the tracker change, and the scalar-base low-bits change) fail exactly as the description says.What changed since my last review
I had no text from my earlier review, so this re-check covers the whole change again. The new commit,
6b38153c07, is a merge ofmain. It changes no product line of this PR's own delta over #9457's head0a4f7cdbed, except wheremaintouched the same files (ResourceTracker.cppandSpirvEmitterState.hpp).FormatVersionis 71, abovemain's 52.Scope: the diff against
mainalso carries the open stack below this PR (#7223, #7395, #8939, #9457). I reviewed this PR's own delta in detail: the diff from0a4f7cdbedtoa12bac51d6, made of the shared-V# planning, the unrewritten V# copy, the planning-only fixpoint, the SMEM base masking and its tests. I read the stack's code only far enough to follow it, since those parts are reviewed on their own PRs.What I ran
Head
6b38153c074944c7aca01b4d66d0a241c34ec646,main4f41f4c375f5abb487dbd184fbc150f31994d762, merged tree1b423f740b78b8d6a4d88183b2a0b7cbf67ba11a. Debian 13 VM, GCC 14.2.0, Release, lavapipe (Mesa 26.1.6, LLVM 19).git diff --checkcheck_conventions.pylibsOKmaintoomainagainst merge)VUID-VUID-lines, nowas not foundgit status --porcelainemptyNegative control
ResourceTracker.cppat #9457's level):agc_driver_nested_image_table,agc_driver_nested_sampler_table,agc_driver_pointer_vsharp_shared_tableand_shared_reuse_tablefail withGetImageResource dword 0 is not a valid runtime value. The other 13 pointer and nested tests pass. This matches the description and wachi35676's run.47a4e592ee):agc_driver_pointer_vsharp_shared_reuse_tablesegfaults in llvmpipe, andagc_driver_bda_anchor_reads,agc_shader_memoryandagc_shader_bindlessfail. The other 16 pass, which also matches the description.Previous findings
No previous review text was available, so there are no earlier findings to track.
I checked the other reviewers' points:
not a valid runtime valuerefusal.01and11, and my control 2 reproduces the crash on Linux without the fix.main4f41f4c375against the current merge, the layer loaded in every compared test but one, none reported it missing, and no newVUID-appeared.New findings
Blocking
None.
Non-blocking
core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvMemoryInstructions.cpp:194andcore/shader/recompiler/ImageTableAbi.hpp:133, the 64-bit base of ans_loadthrough an SGPR pair now drops its low two bits.47a4e592eesay only "as SMEM does". TheV# bases off a DWORD boundaryentry indocs/dev/debt/shader.mdrecords a console measurement fors_buffer_load, not fors_loadthrough a pointer.s_loadcase to that debt entry, unverified on hardware until measured.core/shader/recompiler/Optimization/src/ResourceTracker.cpp:159-172, a T# or S# word that has other users is now read from the guest's V# at dispatch, while its descriptor handle takes the snapshot. A guest write between snapshot and dispatch can make the two differ. This is disclosed in the debt line (docs/dev/debt/shader.md:61), so I note it for reviewers rather than as a defect.Not verified
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-14T10:15:53Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the reviewed implementation and reported checks support the pointer keyed table and descriptor reread behavior.
What I ran
5e4ba4e635d0c58daba1434ff223003be625be9e.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
ShaderMemory.cpp, which was excluded fromfiles/for size, or the full contents of the changed files; review focused on the implementation and test hunks relevant to the change.ShaderDiskCache.cpp,ShaderDiskCache.hpp,SpirvEmitterState.hpp,SpirvBdaRead.cpp,SpirvMemoryInstructions.cpp,ImageTable.cpp, and the CMake registrations. The diff hunks for these were read where relevant.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-16T12:55:40Z.
Review: COMMENTED
Reviewed — no blocking findings
The reviewed head is
aadbb734134f17f1a6f8968562e6c2248de4c633; source inspection found no verified blocking defect, and the reported focused CI checks pass.What I ran
Read the prepared description, commit list, manifest, and diff, then inspected targeted source ranges through
repo_read.py. No commands or tests were run. The description’s CI and hardware results are author-reported, not runs performed for this review.Results
Findings
Blocking
None verified in the code inspected.
Non-blocking
None.
Not verified
The full text of
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppwas excluded from the review folder because it was too large; its relevant diff was inspected, but its implementation and surrounding test helpers were not. Other changed files listed as included in the manifest were not all read in full, so this is not a complete review of every changed file. No tests were run here. The reported Linux, Windows, and GPU runs were not independently verified.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-18T03:58:37Z.
Review: COMMENTED
Reviewed — comments
The review is incomplete because several changed files are excluded from the prepared bundle, so a formal decision is not justified.
What I ran
543d3b48674e72734dec3f043ab0fa278fca7f45.Results
Findings
Blocking
None verified.
Non-blocking
None.
Not verified
The manifest lists 1,650 lines and indicates that some changed files are excluded because they are too large for the review folder. I did not inspect the complete diff or targeted repository code; therefore correctness, security, performance, and test coverage for the complete change remain unverified. The files I read were
review/description.md,review/commits.md,review/manifest.json, andreview/diff.patchlines 1–180. No repository source files were read.To get this to a good state
Complete the code review of the excluded and uninspected changed files before making a formal review decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T20:58:13Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the complete source review supports merging, though I did not run checks in this session.
What I ran
Reviewed head
3b2426ac0a8e92a52e572566cc1d46462cd16ac0using the prepared diff andrepo_read.pyfor targeted source reads. No commands or tests were run by me. The author-reported runs in the PR description are not tests I performed.Results
ShaderMemory.cppwas read at its changed regions viarepo_read.pyFindings
Blocking
None.
Non-blocking
None.
Not verified
I did not run builds, tests, validation layers, or GPU/title checks. The PR description reports broad focused test runs, including a recent Linux GPU run with a baseline-matching
agc_driver_image_table_packed_guardsfailure and one timeout; it reports these as known/environmental and passing with the referenced test change. I did not independently verify those reports.Read all 18 changed files listed as
reviewedin the manifest, includingShaderMemory.cppthrough targeted ranges fromrepo_read.py. No changed file was excluded by rule;files.jsonwas unavailable, and the review README identifiesShaderMemory.cppas too large for the review folder, so its changed regions were read from the pinned head through the reader.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T05:55:02Z.
Review: COMMENTED
Reviewed — no blocking findings
The reviewed head is
5821a3e2faad35036f9506a334b627a1f1183178; the source inspected supports the described nested and pointer-keyed table behavior, with one changed test file unavailable in full.What I ran
No commands or tests were run. I inspected the prepared diff and manifest, then read targeted ranges from the pinned repository using
repo_read.py.Results
Findings
Blocking
None identified in the code inspected.
Non-blocking
None.
Not verified
The complete text of
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppwas excluded from the review folder and not read. I also did not read every changed file in full, inspect the entire diff, or run tests. The description’s reported test results and claims about hardware behavior were not independently verified.Files read:
review/description.md,review/commits.md,review/manifest.json, and targeted portions ofreview/diff.patch; targeted repository ranges fromcore/shader/recompiler/Optimization/src/ResourceTracker.cppandcore/shader/recompiler/Optimization/src/ResourceMaterializer.cpp.Files excluded:
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cpp(too large for the review folder). The manifest lists other changed files; not all their full text was read.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-23T05:52:36Z.
Review: COMMENTED
Reviewed — comments
The source review covered the planner and scalar-address changes, but the full test file and direct test execution were unavailable, so a formal approval is not justified.
What I ran
Reviewed head
2aa25e42b807653b6d80d3da88fb93342987d431from the prepared bundle. No commands or tests were run; author-reported results are not treated as runs performed for this review.Results
Findings
Blocking
None verified.
Non-blocking
Sources
ResourceTracker.cppat the reviewed head:github.com/boykopovar/AnyPS5@2aa25e42b8/core/shader/recompiler/Optimization/src/ResourceTracker.cppImageTableAbi.hppat the reviewed head:github.com/boykopovar/AnyPS5@2aa25e42b8/core/shader/recompiler/ImageTableAbi.hppSpirvMemoryInstructions.cppat the reviewed head:github.com/boykopovar/AnyPS5@2aa25e42b8/core/shader/recompiler/SpirvBackend/src/SpirvMemory/SpirvMemoryInstructions.cppNot verified
Read:
ResourceTracker.cpp,ImageTableAbi.hpp,SpirvBdaRead.cpp,SpirvMemoryInstructions.cpp,ShaderMemory.cppchanged hunk via the diff, and the prepared description, commits, manifest, and diff. The changedShaderMemory.cppfull text was excluded as too large; it was not read. Other changed files were listed but not read in full. No build or tests were run.To get this to a good state
Nothing is required. Optional: run the focused pointer-table, nested-table, shader-memory, and image-table tests on this exact head.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-26T11:36:39Z.
Review: COMMENTED
Reviewed — comments
The diff supports the stated shader-planning changes, but I did not read every changed source file or run the reported checks, so a formal approval is not justified.
What I ran
f4165c7fcf8efda07023d836281ea7a41fb8cc21.ResourceTracker.cpp,SpirvBdaRead.cpp,SpirvMemoryInstructions.cpp, andImageTableAbi.hpp.Results
Findings
Blocking
None identified in the inspected changes.
Non-blocking
The description reports that the game proceeds past the original shader failure but later stops at a different descriptor shape, which this change still refuses. That follow-up remains outside the stated scope.
Not verified
ShaderMemory.cpp,agc_driver_image_table_tests.cmake,BdaAnchorReads.cpp,ImageTable.cpp,SpirvEmitterState.hpp,ShaderDiskCache.hpp, ordocs/dev/debt/shader.mdat the pinned head. Those files were listed as changed;ShaderMemory.cppwas excluded from the review folder for size and is available only throughrepo_read.py.To get this to a good state
Nothing is required. Optional: read the remaining changed files and run the focused checks on this head before treating the review as a formal approval.
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.