fix(agc): bind a written TYPE 0 or 1 static image slot as a null storage image #10906

Merged
EagleBearerYS merged 6 commits from upstream-pr/10906 into main 2026-11-02 10:25:00 +00:00
EagleBearerYS commented 2026-10-25 09:05:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-25T09:05:18Z.


What

A static image slot (no image table) that is written, and not atomic, whose T# has TYPE 0 or 1, is now bound as a null storage image. A read-only slot with such a T# has been bound that way since #4779, #5473 and #5828, and so has a written slot with a zero base. With VK_EXT_robustness2's nullDescriptor, its stores are discarded and its loads return zero; without it, the heap's placeholder image is used, which keeps stores (already in the debt file). Atomic slots, and TYPE 2 to 7 in any slot, still throw.

Ratchet & Clank: Rift Apart (PPSA01474) stops at 1,300 s on a compute shader whose image 4 is a written, never-read storage slot holding a buffer V# (04efd000 00040011 00017a00 00005204 ..., TYPE 0). No other source reads those SRT words, and the store is reached on every path (#9749).

  • nullImageDescriptor (ResourceMaterializer.cpp): TYPE <= 1 is null for a read or written, non-atomic slot with no table, instead of read-only slots only.
  • DrawWriteRanges (WrittenBuffers.cpp): a written storage image whose words are IsNullTextureResource adds no write range, as DispatchWriteRanges already does. It skipped only a zero base, and threw on a TYPE 0 or 1 T#. IsNullTextureResource itself already returns true for TYPE <= 1 in any slot.
  • docs/dev/debt/libSceAgcDriver.md: a written-slot entry after the TYPE 0/1 entry gives the store measurement (second commit, split out of that entry in the merge of main 5b5d24cb22).

Measurement: on an AMD Radeon PRO V620 (gfx1030, RDNA2; Ubuntu 24.04.5, kernel 7.0.0-38, in-kernel amdgpu, ROCm 6.3.3), Tamalero ran tools/hw-oracle/probe_type0_store.py (test/hw-oracle-type0-store) with PPSA01474's eight words (result):

  • control: a valid TYPE 9 image_store changed its 32 dwords;
  • TYPE 0 and TYPE 1: the image_store changed no dword from base−0xe00 to base+0xf000, with no fault or hang.

Not measured: atomics, other RDNA generations, and the console's gfx1013.

Related: #9749 (the PPSA01474 diagnostics), #9633, #4139 and #5828 (the read measurements), #4779, #5473. Overlaps:

  • #10556 (mixyt): adds an unset-format rule on the line above nullImageDescriptor's TYPE ≤ 1 line. The two compose; this one rebases after it.
  • #10193 and our #7642: each gains one WrittenBuffers.cpp hunk next to DrawWriteRanges' null check, from the GPU-heap change they carry. This one goes first: #10193 already conflicts with main and is much larger, and #7642 is ours. They keep both lines when they rebase.

Tested

  • GitHub's runners: run 40176856334, with the Khronos validation layer loaded: with the fix, 48 AGC tests pass 10 of 10 on Linux (0 skipped) and 47 on Windows (1 skipped). On Windows, with this PR's tests and main's ResourceMaterializer.cpp and WrittenBuffers.cpp, agc_shader_type_zero_image_materialization and agc_driver_draw_write_ranges fail.
  • Linux x86-64 (Ubuntu 24.04, gcc 13.3.0), no title:
    • agc_shader_type_zero_image_materialization: TYPE 0 and 1 written and read-write storage slots materialize as null with their words unchanged; atomic slots and TYPE 2 still throw. Fails on main with runtime image descriptor is invalid.
    • agc_driver_draw_write_ranges: written TYPE 0 and 1 storage images, and the reported words, add no draw or dispatch write range next to a real one. Fails on main with unsupported image type 0.
    • agc_driver_graphics: the reported words are IsNullTextureResource, and DecodeTextureResource refuses them.
    • Each product line alone turns its own test green.
    • CI-configured build, then ctest as an unprivileged user: 2,214 tests, 2,119 passed, 90 skipped and 5 failed. The five need IPv6, which that machine lacks: guest_net_buffer_validation, guest_socket_options, guest_socket_stream_options, guest_socket_address_length and guest_tcp.
  • Khronos validation on main and on this branch over the focused tests: lavapipe (Mesa 25.2.8) with vulkan-validationlayers 1.3.275 loaded on both sides. The only VUID, VUID-VkDeviceCreateInfo-pNext-pNext at device creation, is the same on main and on this branch. On GitHub's Linux runner (the same run), the layer is loaded on both arms and the VUIDs are the same: only VUID-VkDeviceCreateInfo-pNext-pNext; the fix adds none.
  • AMD hardware, per tablefrogpillow's report (comment), on RADV (Mesa 25.2.8) with the Khronos validation layer on, on an RX Vega 56 (GCN5), an RX 7900 GRE (RDNA3) and a Ryzen 7 7800X3D's integrated GPU (RDNA2):
    • agc_driver_graphics, agc_shader_memory, agc_driver_draw_write_ranges and agc_driver_draw_write_ranges_draw_pipeline pass 4 of 4 on all three;
    • 787 shader and AGC tests fail the same set on 0d41b11bc1 and on its merge-base e5f23554c9: four float tests specific to GCN5, nothing new;
    • with WrittenBuffers.cpp and ResourceMaterializer.cpp back at the merge-base and this PR's tests kept, agc_shader_memory, agc_driver_draw_write_ranges and agc_driver_draw_write_ranges_draw_pipeline fail.
  • a11c83a3c1, a merge of main e05ba6feeb (run). main's #9186 extends the multisampled colour target debt entry right after the type-0 and type-1 descriptor entry this PR rewrites; the merge keeps both entries, and nothing else conflicted. The agc_driver_draw_write_ranges, agc_driver_graphics, agc_shader_memory and agc_shader_type_zero_image_materialization tests, with the other tests whose names those match, pass 10 runs in a row. Linux: 50 run, 50 pass, 0 skip, 0 fail. Windows: 49 run, 49 pass, 0 skip, 0 fail. The before arm fails agc_shader_type_zero_image_materialization, agc_shader_memory and agc_driver_draw_write_ranges on both. Suites: libc and libkernel pass on Linux (144 and 207) and on Windows (171 and 223). The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • Ratchet & Clank: Rift Apart (PPSA01474), by @Tamalero (comment): RTX 4090, no input, no extra environment, cold shader cache, on test/9749-null-storage (b9d0797d48: this PR's 38288a49f6 and 0d41b11bc1 merged onto #9749's head 52ae6543ae), with #10000's 12b89239c7 merged in locally; without #10000 the branch stops at 214 s on sampler resource limit exceeded. It gets past the 1,300 s stop: there is no runtime image descriptor is invalid line and no other error before 2,632 s, and after the old stop it loads about 980 more textures and compiles new shaders. At 2,632 s a different compute shader, 0x116bb6ef00, stops on GetImageResource dword 0 is not a valid runtime value, with dword 0 coming from a LoadAddressU32 at pc 0xd4d4 behind a tree of Phis. That stop is outside this PR.
  • NVIDIA GeForce RTX 5070 Ti (621.01) and an AMD Radeon RDNA2 iGPU (AMD 2026.04.17), Windows 11, by @wachi35676 (comment): WinLibs GCC 15.2.0, Release, this PR's a11c83a3c1 merged onto main aeff26bd9, ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1, no validation layer. Both drivers report nullDescriptor.
    • agc_driver_graphics, agc_shader_memory, both agc_driver_draw_write_ranges entries, agc_shader_type_zero_image_materialization and the other agc_shader_ tests, 44 entries, pass on both GPUs.
    • With main's ResourceMaterializer.cpp and WrittenBuffers.cpp, agc_shader_type_zero_image_materialization fails with runtime image descriptor is invalid, and both agc_driver_draw_write_ranges entries with unsupported image type 0.
    • A local probe, not part of this PR: a compute image_store through a written slot holding a TYPE 0 T#, a TYPE 1 T# or the words from Ratchet & Clank: Rift Apart (04efd000 00040011 00017a00 00005204 ...) recompiles, binds and dispatches on both drivers with no device fault or error. main refuses all three with runtime image descriptor is invalid, and TYPE 2 is still refused. On the probe's path even a TYPE 9 control store didn't reach guest memory, so it shows that both drivers take the null storage binding, not the discard itself.
    • Of 248 agc_ entries, the same ones fail with and without the change.
  • 83b7421070, after oneandonlydean's review (run): agc_shader_type_zero_image_materialization no longer requires TYPE 0 and 1 atomic slots to be refused, since atomics on these descriptors aren't measured. Both atomic cases are out of its loop, including the atomic-only one main's test already had; the materializer still refuses them. The written and read-write null-materialization checks, the unchanged-words checks and the reserved TYPE 2 checks stay. The run's 18 tests, agc_driver_draw_write_ranges, agc_driver_graphics, agc_shader_memory, agc_shader_type_zero_image_materialization and 14 other agc_shader_* tests, pass 10 runs in a row. Linux: 18 run, 18 pass, 0 skip, 0 fail. Windows: 18 run, 18 pass, 0 skip, 0 fail. Suites: libc and libkernel pass on Linux (144 and 207) and on Windows (171 and 223). The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • 06cb325282, a merge of main 5b5d24cb22 (run, run). DavidAmsellem's #7910 rewrote main's type-0 and type-1 texture descriptor entry in docs/dev/debt/libSceAgcDriver.md with gfx1100 (RDNA3) read measurements; this PR had extended that entry for written slots. The merge keeps main's entry as it is and moves this PR's written-slot text into a new entry after it, with the same store measurement and atomic rule. Nothing else conflicted, and the code and test lines this PR changes are the same.
    • The first run took the tests for every file the merge changes against 83b7421070, 10 runs each, with the Khronos validation layer loaded on Linux. Linux: 269 run, 259 pass, 10 skip, 0 fail, and the validation comparison is clean. Windows: 287 run, 199 pass, 86 skip, 2 fail. The two failures are agc_driver_frame_replay and agc_driver_frame_replay_concurrent, whose agc_frame_replay helper exited with 0xC0000139 (entry point not found) within 0.2 s.
    • The second run, on the same commit, adds the agc_driver_frame_replay tests to this PR's focused tests, and all of them pass 10 runs in a row. Linux: 53 run, 53 pass, 0 skip, 0 fail. Windows: 57 run, 57 pass, 0 skip, 0 fail, including all eight agc_driver_frame_replay tests. The before arm, with main's implementation, fails agc_shader_type_zero_image_materialization on both.
    • Suites: libc and libkernel pass on Linux (145 and 210) in both runs, and on Windows (172 and 231) in the second. In the first, guest_timed_join_import_libkernel_sys and guest_timed_join_import_libkernel_web failed in the Windows libkernel suite; they fail on main too (run). The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • df709c67fd, a merge of main 2b1ae87c69, which brings savvaniss's #8223 (run).
    • The conflict: docs/dev/debt/libSceAgcDriver.md only. This PR adds its "Written type-0 and type-1 texture descriptors" entry next to the old "Multisampled color targets … lose their guest-read guards" entry. #8223 replaced that old entry and added "Shader buffer access to native multisample targets".
    • The resolution: this PR's entry, then main's two. This PR's copy of the old entry was the same as the merge base's, and its own diff is unchanged.
    • ×10: this PR's agc_shader_type_zero_image_materialization, the other tests of agc_driver_graphics_tests, agc_shader_memory_tests and agc_driver_draw_write_ranges_tests, and the agc_driver_frame_replay tests.
      • Linux: 71 run, 71 pass, 0 skip, 0 fail.
      • Windows: 68 run, 68 pass, 0 skip, 0 fail.
      • The libc and libkernel suites run 199 and 307 tests on Linux and 226 and 329 on Windows, with 0 failed. The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: #10556 (merge order only; the two compose)
  • Fixes: none
  • Unblocks: PPSA01474, once its run on #9633 and #9749 gets past this stop
  • GPUs tested: lavapipe (Mesa 25.2.8, llvmpipe), Ubuntu 24.04; the measurement above on an AMD Radeon PRO V620 (gfx1030); RADV on an RX Vega 56, an RX 7900 GRE and a Ryzen 7 7800X3D's integrated GPU, per tablefrogpillow's report; NVIDIA GeForce RTX 5070 Ti (621.01) and an AMD Radeon RDNA2 iGPU (AMD 2026.04.17), Windows 11, per wachi35676's report
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5003342674 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10906). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-25T09:05:18Z. --- ### What A static image slot (no image table) that is written, and not atomic, whose T# has TYPE 0 or 1, is now bound as a null storage image. A read-only slot with such a T# has been bound that way since #4779, #5473 and #5828, and so has a written slot with a zero base. With VK_EXT_robustness2's `nullDescriptor`, its stores are discarded and its loads return zero; without it, the heap's placeholder image is used, which keeps stores (already in the debt file). Atomic slots, and TYPE 2 to 7 in any slot, still throw. Ratchet & Clank: Rift Apart (PPSA01474) stops at 1,300 s on a compute shader whose image 4 is a written, never-read storage slot holding a buffer V# (`04efd000 00040011 00017a00 00005204 ...`, TYPE 0). No other source reads those SRT words, and the store is reached on every path ([#9749](https://github.com/boykopovar/AnyPS5/pull/9749#issuecomment-6394778216)). - `nullImageDescriptor` (`ResourceMaterializer.cpp`): TYPE <= 1 is null for a read or written, non-atomic slot with no table, instead of read-only slots only. - `DrawWriteRanges` (`WrittenBuffers.cpp`): a written storage image whose words are `IsNullTextureResource` adds no write range, as `DispatchWriteRanges` already does. It skipped only a zero base, and threw on a TYPE 0 or 1 T#. `IsNullTextureResource` itself already returns true for TYPE <= 1 in any slot. - `docs/dev/debt/libSceAgcDriver.md`: a written-slot entry after the TYPE 0/1 entry gives the store measurement (second commit, split out of that entry in the merge of `main` 5b5d24cb22). **Measurement:** on an AMD Radeon PRO V620 (gfx1030, RDNA2; Ubuntu 24.04.5, kernel 7.0.0-38, in-kernel amdgpu, ROCm 6.3.3), Tamalero ran `tools/hw-oracle/probe_type0_store.py` ([test/hw-oracle-type0-store](https://github.com/EagleBearerYS/AnyPS5/commit/4f6c57e7d2)) with PPSA01474's eight words ([result](https://github.com/boykopovar/AnyPS5/pull/9749#issuecomment-6395119897)): - **control:** a valid TYPE 9 `image_store` changed its 32 dwords; - **TYPE 0 and TYPE 1:** the `image_store` changed no dword from base−0xe00 to base+0xf000, with no fault or hang. Not measured: atomics, other RDNA generations, and the console's gfx1013. Related: #9749 (the PPSA01474 diagnostics), #9633, #4139 and #5828 (the read measurements), #4779, #5473. Overlaps: - #10556 (mixyt): adds an unset-format rule on the line above `nullImageDescriptor`'s TYPE ≤ 1 line. The two compose; this one rebases after it. - #10193 and our #7642: each gains one `WrittenBuffers.cpp` hunk next to `DrawWriteRanges`' null check, from the GPU-heap change they carry. This one goes first: #10193 already conflicts with `main` and is much larger, and #7642 is ours. They keep both lines when they rebase. ### Tested - **GitHub's runners:** [run 40176856334](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40176856334), with the Khronos validation layer loaded: with the fix, 48 AGC tests pass 10 of 10 on Linux (0 skipped) and 47 on Windows (1 skipped). On Windows, with this PR's tests and main's `ResourceMaterializer.cpp` and `WrittenBuffers.cpp`, `agc_shader_type_zero_image_materialization` and `agc_driver_draw_write_ranges` fail. - **Linux** x86-64 (Ubuntu 24.04, gcc 13.3.0), no title: - `agc_shader_type_zero_image_materialization`: TYPE 0 and 1 written and read-write storage slots materialize as null with their words unchanged; atomic slots and TYPE 2 still throw. Fails on main with `runtime image descriptor is invalid`. - `agc_driver_draw_write_ranges`: written TYPE 0 and 1 storage images, and the reported words, add no draw or dispatch write range next to a real one. Fails on main with `unsupported image type 0`. - `agc_driver_graphics`: the reported words are `IsNullTextureResource`, and `DecodeTextureResource` refuses them. - Each product line alone turns its own test green. - CI-configured build, then `ctest` as an unprivileged user: 2,214 tests, 2,119 passed, 90 skipped and 5 failed. The five need IPv6, which that machine lacks: `guest_net_buffer_validation`, `guest_socket_options`, `guest_socket_stream_options`, `guest_socket_address_length` and `guest_tcp`. - **Khronos validation** on main and on this branch over the focused tests: lavapipe (Mesa 25.2.8) with vulkan-validationlayers 1.3.275 loaded on both sides. The only VUID, `VUID-VkDeviceCreateInfo-pNext-pNext` at device creation, is the same on main and on this branch. On GitHub's Linux runner (the same run), the layer is loaded on both arms and the VUIDs are the same: only `VUID-VkDeviceCreateInfo-pNext-pNext`; the fix adds none. - **AMD hardware, per tablefrogpillow's report** ([comment](https://github.com/boykopovar/AnyPS5/pull/10906#issuecomment-6396580632)), on RADV (Mesa 25.2.8) with the Khronos validation layer on, on an RX Vega 56 (GCN5), an RX 7900 GRE (RDNA3) and a Ryzen 7 7800X3D's integrated GPU (RDNA2): - `agc_driver_graphics`, `agc_shader_memory`, `agc_driver_draw_write_ranges` and `agc_driver_draw_write_ranges_draw_pipeline` pass 4 of 4 on all three; - 787 shader and AGC tests fail the same set on 0d41b11bc1 and on its merge-base e5f23554c9: four float tests specific to GCN5, nothing new; - with `WrittenBuffers.cpp` and `ResourceMaterializer.cpp` back at the merge-base and this PR's tests kept, `agc_shader_memory`, `agc_driver_draw_write_ranges` and `agc_driver_draw_write_ranges_draw_pipeline` fail. - **a11c83a3c1, a merge of `main` e05ba6feeb** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40200070978)). `main`'s #9186 extends the multisampled colour target debt entry right after the type-0 and type-1 descriptor entry this PR rewrites; the merge keeps both entries, and nothing else conflicted. The `agc_driver_draw_write_ranges`, `agc_driver_graphics`, `agc_shader_memory` and `agc_shader_type_zero_image_materialization` tests, with the other tests whose names those match, pass 10 runs in a row. Linux: 50 run, 50 pass, 0 skip, 0 fail. Windows: 49 run, 49 pass, 0 skip, 0 fail. The before arm fails `agc_shader_type_zero_image_materialization`, `agc_shader_memory` and `agc_driver_draw_write_ranges` on both. Suites: libc and libkernel pass on Linux (144 and 207) and on Windows (171 and 223). The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **Ratchet & Clank: Rift Apart (PPSA01474), by @Tamalero** ([comment](https://github.com/boykopovar/AnyPS5/pull/9749#issuecomment-6403242574)): RTX 4090, no input, no extra environment, cold shader cache, on `test/9749-null-storage` (b9d0797d48: this PR's 38288a49f6 and 0d41b11bc1 merged onto #9749's head 52ae6543ae), with #10000's 12b89239c7 merged in locally; without #10000 the branch stops at 214 s on `sampler resource limit exceeded`. It gets past the 1,300 s stop: there is no `runtime image descriptor is invalid` line and no other error before 2,632 s, and after the old stop it loads about 980 more textures and compiles new shaders. At 2,632 s a different compute shader, 0x116bb6ef00, stops on `GetImageResource dword 0 is not a valid runtime value`, with dword 0 coming from a `LoadAddressU32` at pc 0xd4d4 behind a tree of `Phi`s. That stop is outside this PR. - **NVIDIA GeForce RTX 5070 Ti (621.01) and an AMD Radeon RDNA2 iGPU (AMD 2026.04.17), Windows 11, by @wachi35676** ([comment](https://github.com/boykopovar/AnyPS5/pull/10906#issuecomment-6404530325)): WinLibs GCC 15.2.0, Release, this PR's a11c83a3c1 merged onto `main` aeff26bd9, `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1`, no validation layer. Both drivers report `nullDescriptor`. - `agc_driver_graphics`, `agc_shader_memory`, both `agc_driver_draw_write_ranges` entries, `agc_shader_type_zero_image_materialization` and the other `agc_shader_` tests, 44 entries, pass on both GPUs. - With `main`'s `ResourceMaterializer.cpp` and `WrittenBuffers.cpp`, `agc_shader_type_zero_image_materialization` fails with `runtime image descriptor is invalid`, and both `agc_driver_draw_write_ranges` entries with `unsupported image type 0`. - A local probe, not part of this PR: a compute `image_store` through a written slot holding a TYPE 0 T#, a TYPE 1 T# or the words from Ratchet & Clank: Rift Apart (`04efd000 00040011 00017a00 00005204 ...`) recompiles, binds and dispatches on both drivers with no device fault or error. `main` refuses all three with `runtime image descriptor is invalid`, and TYPE 2 is still refused. On the probe's path even a TYPE 9 control store didn't reach guest memory, so it shows that both drivers take the null storage binding, not the discard itself. - Of 248 `agc_` entries, the same ones fail with and without the change. - **83b7421070, after oneandonlydean's review** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40279805093)): `agc_shader_type_zero_image_materialization` no longer requires TYPE 0 and 1 atomic slots to be refused, since atomics on these descriptors aren't measured. Both atomic cases are out of its loop, including the atomic-only one `main`'s test already had; the materializer still refuses them. The written and read-write null-materialization checks, the unchanged-words checks and the reserved TYPE 2 checks stay. The run's 18 tests, `agc_driver_draw_write_ranges`, `agc_driver_graphics`, `agc_shader_memory`, `agc_shader_type_zero_image_materialization` and 14 other `agc_shader_*` tests, pass 10 runs in a row. Linux: 18 run, 18 pass, 0 skip, 0 fail. Windows: 18 run, 18 pass, 0 skip, 0 fail. Suites: libc and libkernel pass on Linux (144 and 207) and on Windows (171 and 223). The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **06cb325282, a merge of `main` 5b5d24cb22** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40304728658), [run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40313368087)). DavidAmsellem's #7910 rewrote `main`'s type-0 and type-1 texture descriptor entry in `docs/dev/debt/libSceAgcDriver.md` with gfx1100 (RDNA3) read measurements; this PR had extended that entry for written slots. The merge keeps `main`'s entry as it is and moves this PR's written-slot text into a new entry after it, with the same store measurement and atomic rule. Nothing else conflicted, and the code and test lines this PR changes are the same. - The first run took the tests for every file the merge changes against 83b7421070, 10 runs each, with the Khronos validation layer loaded on Linux. Linux: 269 run, 259 pass, 10 skip, 0 fail, and the validation comparison is clean. Windows: 287 run, 199 pass, 86 skip, 2 fail. The two failures are `agc_driver_frame_replay` and `agc_driver_frame_replay_concurrent`, whose `agc_frame_replay` helper exited with 0xC0000139 (entry point not found) within 0.2 s. - The second run, on the same commit, adds the `agc_driver_frame_replay` tests to this PR's focused tests, and all of them pass 10 runs in a row. Linux: 53 run, 53 pass, 0 skip, 0 fail. Windows: 57 run, 57 pass, 0 skip, 0 fail, including all eight `agc_driver_frame_replay` tests. The before arm, with `main`'s implementation, fails `agc_shader_type_zero_image_materialization` on both. - Suites: libc and libkernel pass on Linux (145 and 210) in both runs, and on Windows (172 and 231) in the second. In the first, `guest_timed_join_import_libkernel_sys` and `guest_timed_join_import_libkernel_web` failed in the Windows libkernel suite; they fail on `main` too ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40238050809)). The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **df709c67fd, a merge of `main` 2b1ae87c69**, which brings savvaniss's #8223 ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41134216919)). - **The conflict:** `docs/dev/debt/libSceAgcDriver.md` only. This PR adds its "Written type-0 and type-1 texture descriptors" entry next to the old "Multisampled color targets … lose their guest-read guards" entry. #8223 replaced that old entry and added "Shader buffer access to native multisample targets". - **The resolution:** this PR's entry, then `main`'s two. This PR's copy of the old entry was the same as the merge base's, and its own diff is unchanged. - **×10:** this PR's `agc_shader_type_zero_image_materialization`, the other tests of `agc_driver_graphics_tests`, `agc_shader_memory_tests` and `agc_driver_draw_write_ranges_tests`, and the `agc_driver_frame_replay` tests. - Linux: 71 run, 71 pass, 0 skip, 0 fail. - Windows: 68 run, 68 pass, 0 skip, 0 fail. - The libc and libkernel suites run 199 and 307 tests on Linux and 226 and 329 on Windows, with 0 failed. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: #10556 (merge order only; the two compose) - [x] Fixes: none - [x] Unblocks: PPSA01474, once its run on #9633 and #9749 gets past this stop - [x] GPUs tested: lavapipe (Mesa 25.2.8, llvmpipe), Ubuntu 24.04; the measurement above on an AMD Radeon PRO V620 (gfx1030); RADV on an RX Vega 56, an RX 7900 GRE and a Ryzen 7 7800X3D's integrated GPU, per tablefrogpillow's report; NVIDIA GeForce RTX 5070 Ti (621.01) and an AMD Radeon RDNA2 iGPU (AMD 2026.04.17), Windows 11, per wachi35676's report - [x] AI-assisted: yes
MarcZX10 commented 2026-10-25 09:48:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-25T09:48:33Z.

Review: APPROVED


Reviewed the exact PR head 0d41b11bc190e630d89ddb7d5b52b0bd511c33e8.

The change is scoped to the measured TYPE 0/1 storage-image case: nullImageDescriptor now recognizes read or written non-atomic descriptors without a table; draw write-range collection skips IsNullTextureResource in the same way dispatch collection already does; and the added tests keep the real neighboring range while excluding TYPE 0/1 ranges for both draw and dispatch. The debt update records the remaining limitation. On hosts without Vulkan nullDescriptor, these descriptors bind the existing shared storage placeholder, so stores can be observed later through a null storage image; this PR does not introduce that behavior, and it is explicitly documented. The binding path does not decode the TYPE 0/1 descriptor or schedule a guest-memory writeback for it.

The author reports an AMD Radeon PRO V620 measurement where TYPE 0 and 1 stores leave the guest dwords unchanged. Their hosted focused run reports 48 Linux AGC tests passing 10/10 and 47 Windows tests passing with one skip; the five full-suite Linux failures require IPv6. Hosted policy, intake, labels, conventions and report checks pass; the repository skips product jobs on this PR path. git diff --check and tools/check_conventions.py --base upstream/main --head upstream/pr-10906 also pass locally. I did not independently run the Vulkan execution tests or hardware probe.

The PR declares #10556 as a merge-order dependency and does not claim to fix the broader null-placeholder limitation. I found no blocking issue in the scoped change.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5642592983 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10906#pullrequestreview-5642592983). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-25T09:48:33Z. **Review:** APPROVED --- Reviewed the exact PR head `0d41b11bc190e630d89ddb7d5b52b0bd511c33e8`. The change is scoped to the measured TYPE 0/1 storage-image case: `nullImageDescriptor` now recognizes read or written non-atomic descriptors without a table; draw write-range collection skips `IsNullTextureResource` in the same way dispatch collection already does; and the added tests keep the real neighboring range while excluding TYPE 0/1 ranges for both draw and dispatch. The debt update records the remaining limitation. On hosts without Vulkan `nullDescriptor`, these descriptors bind the existing shared storage placeholder, so stores can be observed later through a null storage image; this PR does not introduce that behavior, and it is explicitly documented. The binding path does not decode the TYPE 0/1 descriptor or schedule a guest-memory writeback for it. The author reports an AMD Radeon PRO V620 measurement where TYPE 0 and 1 stores leave the guest dwords unchanged. Their hosted focused run reports 48 Linux AGC tests passing 10/10 and 47 Windows tests passing with one skip; the five full-suite Linux failures require IPv6. Hosted policy, intake, labels, conventions and report checks pass; the repository skips product jobs on this PR path. `git diff --check` and `tools/check_conventions.py --base upstream/main --head upstream/pr-10906` also pass locally. I did not independently run the Vulkan execution tests or hardware probe. The PR declares #10556 as a merge-order dependency and does not claim to fix the broader null-placeholder limitation. I found no blocking issue in the scoped change. AI-assisted: yes.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!10906
No description provided.