feat(agc): read individual multisample image samples #6601

Merged
Amoenus merged 4 commits from upstream-pr/6601 into main 2026-10-19 08:14:13 +00:00
Amoenus commented 2026-10-15 22:28:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-15T22:28:40Z.


What

Shared sample-preserving readback foundation requested in #6570 (Onimusha: Way of the Sword, PPSA27836). Adds TextureDetiler::DispatchMultisampleReadback, which records per-sample fetches into a linear storage buffer, in layer/y/x/fragment order. Supports unsigned 1/2/4/8/16-byte element views and D32 depth, 2/4/8 samples, array layers and partial element windows. Invalid formats, counts, ranges and dispatch limits throw.

Uses a sampled 2D-array view in GENERAL. The depth variant fetches floating-point depth and bitcasts to DWORDs; the unsigned variant preserves element bits and the unused bytes of a final packed word. The caller owns image/view lifetimes, producer/readback barriers and completion. Descriptor/pipeline ownership is lazy and follows the detiler's existing descriptor-ring lifecycle.

Semantics: Vulkan specifies floating-point reads of depth aspects and per-sample OpImageFetch without a sampler. Both generated modules require only Shader capability. Source images need sampled usage; storage usage is not used by the fixtures. This avoids a storage-image prerequisite for native D32 readback.

@simonbronk will consume the reader in the depth publisher discussed in #6570; the reported stop is AGC graphics: sample-preserving guest publication of native multisample depth is not implemented. Guest-memory publication, ownership/coherence and HTILE remain that follow-up. #6588 provides the complementary CPU layout/retile helper independently. No dependency on #5881 and no title-unblock claim from this utility alone. No duplicate reader found in current source/open PRs and exact-helper/related-readback searches.

Tested

Current submitted head: 7f53a96a9f, rebased directly onto main 0bb238b4a447f448e5d6592eae39d43a6a8c7d8c. Only adjacent debt entries conflicted; both are retained, with this entry before the final existing entry. No production resolution was needed. The reader implementation, shaders and fixture are unchanged from the previously tested3e3cf1da06, including cache locking and snapshot exclusion.

  • Full Release relinker/system-library and reader/graphics/recorder builds pass on Windows11 Enterprise26200 / WinLibs GCC15.2r7 and Ubuntu24.04 WSL2 / GCC13.3.
  • All six reader groups (uint8/16/32/64/128 and D32) pass3/3 on each actual physical RTX5080 and AMD Radeon Graphics:36 fresh processes. Each exercises2x/4x/8x, two layers, full/partial reads, sentinels, reuse,2D controls and guarded pipeline-cache creation. No unavailable subcases or whole-test skips. Selected names/IDs and Khronos1.4.363 loading are verified; no observed VUIDs, validation errors or warnings. NVIDIA tests overlapped a separate ordinary Sonic replay, so no uncontended timing/performance claim.
  • Linux llvmpipe LLVM20.1.2/Mesa25.2.8: the six reader groups pass3/3,18 processes. Available4x runs;36 explicit2x/8x unavailability lines are excluded from exercised coverage. No whole-test skip. Linux validation layer unavailable.
  • Connected graphics, pipeline-cache and pipeline-library clear/build-exclusion controls pass3/3 on each OS:18 additional invocations, 72 passing processes total; every selected invocation finishes below30s (maximum6.0s). Cache build/snapshot exclusion is also checked inside each reader invocation. Shader cache/pipeline journal disabled; driver caches uncontrolled.
  • Cppcheck2.20 then clang-tidy23.1.3 analyzed all four changed C++ TUs in90.141s, no parser/configuration failures. No selected clang-tidy diagnostics. Two Cppcheck reports concern the same existing thin-equation lookup; its null branch calls throwing Require(false) before either dereference. These are inspected advisories, not a clean Cppcheck claim. Conventions and diff checks pass.
  • Earlier unsupported-count red/green controls and jotitadev's independent RTX3070/Mesa26.0.3 retest retain their prior source pins in the review thread; they are not represented as fresh7f53 runs. No new title-unblock, guest-publication, HTILE-completion, FPS, whole-suite or console-equivalence claim: this remains the shared sample reader for #6570 and dependent PRs.
cmake --build build --target relinker libs agc_driver_multisample_readback_tests agc_driver_graphics_tests agc_driver_recorder_tests
ctest --test-dir build -V -j1 --repeat until-fail:3 --timeout 30 -R '^agc_driver_multisample_readback(_(uint8|uint16|uint64|uint128|depth))?$'
ctest --test-dir build -V -j1 --repeat until-fail:3 --timeout 30 -R '^(agc_driver_graphics|agc_pipeline_cache|agc_pipeline_library_clear_waits_for_build)$'

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: none
  • Fixes: none
  • Unblocks: none by itself; foundation for PPSA27836 in #6570
  • GPUs tested: NVIDIA GeForce RTX5080 (10de:2c02),610.62/32.0.16.1062; AMD Radeon(TM) Graphics (1002:13c0),32.0.21036.18; Windows11 Enterprise26200. Mesa25.2.8 llvmpipe LLVM20.1.2, Ubuntu24.04 WSL2
  • AI-assisted: yes, Codex; author responsible
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4880672739 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6601). Originally posted by [Amoenus](https://github.com/Amoenus) on 2026-10-15T22:28:40Z. --- ### What Shared sample-preserving readback foundation requested in #6570 (Onimusha: Way of the Sword, PPSA27836). Adds `TextureDetiler::DispatchMultisampleReadback`, which records per-sample fetches into a linear storage buffer, in layer/y/x/fragment order. Supports unsigned 1/2/4/8/16-byte element views and D32 depth, 2/4/8 samples, array layers and partial element windows. Invalid formats, counts, ranges and dispatch limits throw. Uses a sampled 2D-array view in GENERAL. The depth variant fetches floating-point depth and bitcasts to DWORDs; the unsigned variant preserves element bits and the unused bytes of a final packed word. The caller owns image/view lifetimes, producer/readback barriers and completion. Descriptor/pipeline ownership is lazy and follows the detiler's existing descriptor-ring lifecycle. Semantics: Vulkan specifies [floating-point reads of depth aspects](https://docs.vulkan.org/spec/latest/chapters/resources.html#resources-image-views) and [per-sample OpImageFetch without a sampler](https://docs.vulkan.org/spec/latest/chapters/textures.html#textures-image-operations). Both generated modules require only Shader capability. Source images need sampled usage; storage usage is not used by the fixtures. This avoids a storage-image prerequisite for native D32 readback. @simonbronk will consume the reader in the depth publisher discussed in #6570; the reported stop is `AGC graphics: sample-preserving guest publication of native multisample depth is not implemented`. Guest-memory publication, ownership/coherence and HTILE remain that follow-up. #6588 provides the complementary CPU layout/retile helper independently. No dependency on #5881 and no title-unblock claim from this utility alone. No duplicate reader found in current source/open PRs and exact-helper/related-readback searches. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> **Current submitted head:** [7f53a96a9f](https://github.com/Amoenus/AnyPS5/commit/7f53a96a9fe3632fcc56a0ad7b5dd15a418d9167), rebased directly onto main `0bb238b4a447f448e5d6592eae39d43a6a8c7d8c`. Only adjacent debt entries conflicted; both are retained, with this entry before the final existing entry. No production resolution was needed. The reader implementation, shaders and fixture are unchanged from the previously tested3e3cf1da06, including cache locking and snapshot exclusion. - Full Release relinker/system-library and reader/graphics/recorder builds pass on Windows11 Enterprise26200 / WinLibs GCC15.2r7 and Ubuntu24.04 WSL2 / GCC13.3. - All six reader groups (uint8/16/32/64/128 and D32) pass3/3 on each actual physical RTX5080 and AMD Radeon Graphics:36 fresh processes. Each exercises2x/4x/8x, two layers, full/partial reads, sentinels, reuse,2D controls and guarded pipeline-cache creation. No unavailable subcases or whole-test skips. Selected names/IDs and Khronos1.4.363 loading are verified; no observed VUIDs, validation errors or warnings. NVIDIA tests overlapped a separate ordinary Sonic replay, so no uncontended timing/performance claim. - Linux llvmpipe LLVM20.1.2/Mesa25.2.8: the six reader groups pass3/3,18 processes. Available4x runs;36 explicit2x/8x unavailability lines are excluded from exercised coverage. No whole-test skip. Linux validation layer unavailable. - Connected graphics, pipeline-cache and pipeline-library clear/build-exclusion controls pass3/3 on each OS:18 additional invocations, **72 passing processes total**; every selected invocation finishes below30s (maximum6.0s). Cache build/snapshot exclusion is also checked inside each reader invocation. Shader cache/pipeline journal disabled; driver caches uncontrolled. - Cppcheck2.20 then clang-tidy23.1.3 analyzed all four changed C++ TUs in90.141s, no parser/configuration failures. No selected clang-tidy diagnostics. Two Cppcheck reports concern the same existing thin-equation lookup; its null branch calls throwing `Require(false)` before either dereference. These are inspected advisories, not a clean Cppcheck claim. Conventions and diff checks pass. - Earlier unsupported-count red/green controls and jotitadev's independent RTX3070/Mesa26.0.3 retest retain their prior source pins in the review thread; they are not represented as fresh7f53 runs. No new title-unblock, guest-publication, HTILE-completion, FPS, whole-suite or console-equivalence claim: this remains the shared sample reader for #6570 and dependent PRs. ```sh cmake --build build --target relinker libs agc_driver_multisample_readback_tests agc_driver_graphics_tests agc_driver_recorder_tests ctest --test-dir build -V -j1 --repeat until-fail:3 --timeout 30 -R '^agc_driver_multisample_readback(_(uint8|uint16|uint64|uint128|depth))?$' ctest --test-dir build -V -j1 --repeat until-fail:3 --timeout 30 -R '^(agc_driver_graphics|agc_pipeline_cache|agc_pipeline_library_clear_waits_for_build)$' ``` ### 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: none - [x] Fixes: none - [x] Unblocks: none by itself; foundation for PPSA27836 in #6570 - [x] GPUs tested: NVIDIA GeForce RTX5080 (10de:2c02),610.62/32.0.16.1062; AMD Radeon(TM) Graphics (1002:13c0),32.0.21036.18; Windows11 Enterprise26200. Mesa25.2.8 llvmpipe LLVM20.1.2, Ubuntu24.04 WSL2 - [x] AI-assisted: yes, Codex; author responsible
github-actions[bot] commented 2026-10-15 23:29:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T23:29:56Z.


Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 1341 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 1368 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 1395 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 2434 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/debt/libSceAgcDriver.md
PR 4448 docs/dev/debt/libSceAgcDriver.md
PR 4449 docs/dev/debt/libSceAgcDriver.md
PR 5021 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 5058 docs/dev/debt/libSceAgcDriver.md
PR 5371 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 5372 docs/dev/debt/libSceAgcDriver.md
PR 5426 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 5480 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 5499 core/libs/prx/libSceAgcDriver/CMakeLists.txt
core/libs/prx/libSceAgcDriver/Graphics/include/TextureDetiler.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/TextureDetiler.cpp
docs/dev/debt/libSceAgcDriver.md
PR 5656 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 5925 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/debt/libSceAgcDriver.md
PR 6044 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6146 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/debt/libSceAgcDriver.md
PR 6185 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6186 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6188 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6192 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6194 docs/dev/debt/libSceAgcDriver.md
PR 6223 docs/dev/debt/libSceAgcDriver.md
PR 6249 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6300 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/debt/libSceAgcDriver.md
PR 6501 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6548 docs/dev/debt/libSceAgcDriver.md
PR 6549 docs/dev/debt/libSceAgcDriver.md
PR 6611 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6612 docs/dev/debt/libSceAgcDriver.md
PR 6636 docs/dev/debt/libSceAgcDriver.md
PR 6683 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/debt/libSceAgcDriver.md
PR 6701 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6727 docs/dev/debt/libSceAgcDriver.md
PR 6747 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6762 docs/dev/debt/libSceAgcDriver.md
PR 6763 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6786 docs/dev/debt/libSceAgcDriver.md
PR 6788 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6808 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/debt/libSceAgcDriver.md
PR 6867 docs/dev/debt/libSceAgcDriver.md
PR 6868 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/debt/libSceAgcDriver.md
PR 6937 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6941 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/debt/libSceAgcDriver.md
PR 6946 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/debt/libSceAgcDriver.md
PR 6947 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/debt/libSceAgcDriver.md
PR 6958 docs/dev/debt/libSceAgcDriver.md
PR 6963 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 6966 docs/dev/debt/libSceAgcDriver.md
PR 6977 core/libs/prx/libSceAgcDriver/Graphics/src/TextureDetiler.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7008 docs/dev/debt/libSceAgcDriver.md
PR 7048 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7201 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7223 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7254 docs/dev/debt/libSceAgcDriver.md
PR 7256 docs/dev/debt/libSceAgcDriver.md
PR 7258 docs/dev/debt/libSceAgcDriver.md
PR 7332 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/debt/libSceAgcDriver.md
PR 7390 docs/dev/debt/libSceAgcDriver.md
PR 7395 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7432 docs/dev/debt/libSceAgcDriver.md
PR 7449 docs/dev/debt/libSceAgcDriver.md
PR 7505 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/debt/libSceAgcDriver.md
PR 7514 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7604 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/debt/libSceAgcDriver.md
PR 7615 core/libs/prx/libSceAgcDriver/CMakeLists.txt
PR 7642 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/debt/libSceAgcDriver.md
PR 7650 docs/dev/debt/libSceAgcDriver.md
PR 7800 core/libs/prx/libSceAgcDriver/CMakeLists.txt
docs/dev/debt/libSceAgcDriver.md
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6204438960 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6601#issuecomment-6204438960). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-15T23:29:56Z. --- <!-- pr-overlap --> Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | [PR 1341](https://www.github.com/boykopovar/AnyPS5/pull/1341) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 1368](https://www.github.com/boykopovar/AnyPS5/pull/1368) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 1395](https://www.github.com/boykopovar/AnyPS5/pull/1395) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 2434](https://www.github.com/boykopovar/AnyPS5/pull/2434) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 4448](https://www.github.com/boykopovar/AnyPS5/pull/4448) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 4449](https://www.github.com/boykopovar/AnyPS5/pull/4449) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 5021](https://www.github.com/boykopovar/AnyPS5/pull/5021) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 5058](https://www.github.com/boykopovar/AnyPS5/pull/5058) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 5371](https://www.github.com/boykopovar/AnyPS5/pull/5371) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 5372](https://www.github.com/boykopovar/AnyPS5/pull/5372) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 5426](https://www.github.com/boykopovar/AnyPS5/pull/5426) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 5480](https://www.github.com/boykopovar/AnyPS5/pull/5480) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 5499](https://www.github.com/boykopovar/AnyPS5/pull/5499) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/TextureDetiler.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/TextureDetiler.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 5656](https://www.github.com/boykopovar/AnyPS5/pull/5656) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 5925](https://www.github.com/boykopovar/AnyPS5/pull/5925) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6044](https://www.github.com/boykopovar/AnyPS5/pull/6044) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6146](https://www.github.com/boykopovar/AnyPS5/pull/6146) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6185](https://www.github.com/boykopovar/AnyPS5/pull/6185) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6186](https://www.github.com/boykopovar/AnyPS5/pull/6186) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6188](https://www.github.com/boykopovar/AnyPS5/pull/6188) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6192](https://www.github.com/boykopovar/AnyPS5/pull/6192) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6194](https://www.github.com/boykopovar/AnyPS5/pull/6194) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6223](https://www.github.com/boykopovar/AnyPS5/pull/6223) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6249](https://www.github.com/boykopovar/AnyPS5/pull/6249) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6300](https://www.github.com/boykopovar/AnyPS5/pull/6300) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6501](https://www.github.com/boykopovar/AnyPS5/pull/6501) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6548](https://www.github.com/boykopovar/AnyPS5/pull/6548) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6549](https://www.github.com/boykopovar/AnyPS5/pull/6549) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6611](https://www.github.com/boykopovar/AnyPS5/pull/6611) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6612](https://www.github.com/boykopovar/AnyPS5/pull/6612) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6636](https://www.github.com/boykopovar/AnyPS5/pull/6636) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6683](https://www.github.com/boykopovar/AnyPS5/pull/6683) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6701](https://www.github.com/boykopovar/AnyPS5/pull/6701) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6727](https://www.github.com/boykopovar/AnyPS5/pull/6727) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6747](https://www.github.com/boykopovar/AnyPS5/pull/6747) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6762](https://www.github.com/boykopovar/AnyPS5/pull/6762) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6763](https://www.github.com/boykopovar/AnyPS5/pull/6763) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6786](https://www.github.com/boykopovar/AnyPS5/pull/6786) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6788](https://www.github.com/boykopovar/AnyPS5/pull/6788) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6808](https://www.github.com/boykopovar/AnyPS5/pull/6808) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6867](https://www.github.com/boykopovar/AnyPS5/pull/6867) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6868](https://www.github.com/boykopovar/AnyPS5/pull/6868) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6937](https://www.github.com/boykopovar/AnyPS5/pull/6937) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6941](https://www.github.com/boykopovar/AnyPS5/pull/6941) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6946](https://www.github.com/boykopovar/AnyPS5/pull/6946) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6947](https://www.github.com/boykopovar/AnyPS5/pull/6947) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6958](https://www.github.com/boykopovar/AnyPS5/pull/6958) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6963](https://www.github.com/boykopovar/AnyPS5/pull/6963) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 6966](https://www.github.com/boykopovar/AnyPS5/pull/6966) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6977](https://www.github.com/boykopovar/AnyPS5/pull/6977) | `core/libs/prx/libSceAgcDriver/Graphics/src/TextureDetiler.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7008](https://www.github.com/boykopovar/AnyPS5/pull/7008) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7048](https://www.github.com/boykopovar/AnyPS5/pull/7048) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7201](https://www.github.com/boykopovar/AnyPS5/pull/7201) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7223](https://www.github.com/boykopovar/AnyPS5/pull/7223) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7254](https://www.github.com/boykopovar/AnyPS5/pull/7254) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7256](https://www.github.com/boykopovar/AnyPS5/pull/7256) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7258](https://www.github.com/boykopovar/AnyPS5/pull/7258) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7332](https://www.github.com/boykopovar/AnyPS5/pull/7332) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7390](https://www.github.com/boykopovar/AnyPS5/pull/7390) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7395](https://www.github.com/boykopovar/AnyPS5/pull/7395) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7432](https://www.github.com/boykopovar/AnyPS5/pull/7432) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7449](https://www.github.com/boykopovar/AnyPS5/pull/7449) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7505](https://www.github.com/boykopovar/AnyPS5/pull/7505) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7514](https://www.github.com/boykopovar/AnyPS5/pull/7514) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7604](https://www.github.com/boykopovar/AnyPS5/pull/7604) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7615](https://www.github.com/boykopovar/AnyPS5/pull/7615) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt` | | [PR 7642](https://www.github.com/boykopovar/AnyPS5/pull/7642) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7650](https://www.github.com/boykopovar/AnyPS5/pull/7650) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7800](https://www.github.com/boykopovar/AnyPS5/pull/7800) | `core/libs/prx/libSceAgcDriver/CMakeLists.txt`<br>`docs/dev/debt/libSceAgcDriver.md` |
jotitadev commented 2026-10-16 01:56:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-16T01:56:02Z.

Review: COMMENTED


First Linux run (the body says Linux/lavapipe is unverified). It passes on NVIDIA, but on lavapipe, which the Linux CI job uses, all six new tests fail.

Machine: NVIDIA GeForce RTX 3070, driver 595.99.02, Vulkan 1.4.329, plus lavapipe (Mesa 26.0.3, LLVM 21.1.8) on the same machine. Ubuntu 26.04 (kernel 7.0.0-38), i7-8700, GCC 15.2, Release, BUILD_TESTING=ON. Head 4681a51bd merged into main 5d9dcc42d (clean merge). It builds with GCC on Linux without the #6452 change.

RTX 3070:

  • agc_driver_multisample_readback and the _uint8/_uint16/_uint64/_uint128/_depth cases pass 3/3.
  • ctest -R "^agc|shader|recompiler" -j1 (flip, display and lds_atomics64 excluded) gives the same result as main plus the 6 new tests. The only failure is store_over_untracked, which also fails on main here (#6347).

lavapipe (VK_DRIVER_FILES=.../lvp_icd.json ANYPS5_GPU=llvmpipe):

  • All six fail right away with AGC graphics: readback fixture format does not support its sample count or extent.
  • lavapipe reports sampledImage*SampleCounts and framebuffer*SampleCounts = 1, 4, 8. There is no 2x, and the test's loop starts at {2u, 4u, 8u}. The Require in Surface throws, so the test returns 1 instead of skipping that count.
  • With a local edit that only drops 2u from that loop, all six pass on lavapipe, including D32 and the 128x64 4x depth case. So the reader itself works there.
  • The other multisample tests (native_multisample_depth, sample_mask_multisample, sample_multisample_target, multisample_fill_host_only, agc_multisample_guest_access) pass on lavapipe.

Skipping sample counts the format doesn't support would fix it, with a message such as "the device does not support 2 samples" that tools/check_skips.py accepts. Mesa 25.x lavapipe on the CI runner probably lacks 2x too, but I only checked 26.0.3.

GPUs tested: NVIDIA GeForce RTX 3070 (595.99.02), lavapipe (Mesa 26.0.3, LLVM 21.1.8), Ubuntu 26.04

Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5542083777 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6601#pullrequestreview-5542083777). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-16T01:56:02Z. **Review:** COMMENTED --- First Linux run (the body says Linux/lavapipe is unverified). It passes on NVIDIA, but on lavapipe, which the Linux CI job uses, all six new tests fail. **Machine:** NVIDIA GeForce RTX 3070, driver 595.99.02, Vulkan 1.4.329, plus lavapipe (Mesa 26.0.3, LLVM 21.1.8) on the same machine. Ubuntu 26.04 (kernel 7.0.0-38), i7-8700, GCC 15.2, Release, `BUILD_TESTING=ON`. Head `4681a51bd` merged into `main` `5d9dcc42d` (clean merge). It builds with GCC on Linux without the #6452 change. **RTX 3070:** - `agc_driver_multisample_readback` and the `_uint8/_uint16/_uint64/_uint128/_depth` cases pass 3/3. - `ctest -R "^agc|shader|recompiler" -j1` (flip, display and `lds_atomics64` excluded) gives the same result as `main` plus the 6 new tests. The only failure is `store_over_untracked`, which also fails on `main` here (#6347). **lavapipe (`VK_DRIVER_FILES=.../lvp_icd.json ANYPS5_GPU=llvmpipe`):** - All six fail right away with `AGC graphics: readback fixture format does not support its sample count or extent`. - lavapipe reports `sampledImage*SampleCounts` and `framebuffer*SampleCounts` = 1, 4, 8. There is no 2x, and the test's loop starts at `{2u, 4u, 8u}`. The `Require` in `Surface` throws, so the test returns 1 instead of skipping that count. - With a local edit that only drops `2u` from that loop, all six pass on lavapipe, including D32 and the 128x64 4x depth case. So the reader itself works there. - The other multisample tests (`native_multisample_depth`, `sample_mask_multisample`, `sample_multisample_target`, `multisample_fill_host_only`, `agc_multisample_guest_access`) pass on lavapipe. Skipping sample counts the format doesn't support would fix it, with a message such as "the device does not support 2 samples" that `tools/check_skips.py` accepts. Mesa 25.x lavapipe on the CI runner probably lacks 2x too, but I only checked 26.0.3. GPUs tested: NVIDIA GeForce RTX 3070 (595.99.02), lavapipe (Mesa 26.0.3, LLVM 21.1.8), Ubuntu 26.04 Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
Amoenus commented 2026-10-16 05:45:53 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-16T05:45:53Z.


@jotitadev Thank you for isolating the unsupported 2x count. Fixed in 4b24b3ca0: the fixture reports unsupported format/count/extent combinations and runs the remaining counts; optional 4x cases are checked too. It skips the whole case only when no count can run or per-sample shading is unavailable. Unexpected Vulkan errors and actual readback failures still fail; production code is unchanged.

All six modes pass 5/5 on both physical Windows GPUs (RTX 5080 and AMD Radeon(TM) Graphics): 60 fresh processes, no skips, maximum 0.34 s. Full Windows build/checks and selected Cppcheck/clang-tidy diagnostics pass. The PR body records the exact validation composition and credits your Linux results.

Local Linux update: exact head 4b24b3ca0 now builds and passes all six modes 5/5 on Ubuntu 24.04 WSL2 / GCC 13.3 / Mesa 25.2.8 lavapipe (LLVM 20.1.2). This device supports 4x for these fixtures and explicitly reports 2x/8x unavailable: 30 passing processes, no whole-test skips, maximum 0.14 s. The original 4681a51bd fails all six modes 5/5 in the same environment; restoring this head passes all six again. The large D32 case passes too. This was the reader target/dependencies, not a full Linux app/suite build.

Update: thank you for confirming the corrected head on Mesa 26.0.3 and RTX 3070. Your lavapipe run supplies the requested 4x/8x coverage (all six modes 3/3; only 2x unavailable), and RTX 3070 runs 2x/4x/8x. The PR body now records your source pin and machine separately from our local results. The requested retest is complete.

Written with AI assistance (Codex); I ran the local checks above.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6208986348 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6601#issuecomment-6208986348). Originally posted by [Amoenus](https://github.com/Amoenus) on 2026-10-16T05:45:53Z. --- @jotitadev Thank you for isolating the unsupported 2x count. Fixed in [4b24b3ca0](https://github.com/Amoenus/AnyPS5/commit/4b24b3ca0): the fixture reports unsupported format/count/extent combinations and runs the remaining counts; optional 4x cases are checked too. It skips the whole case only when no count can run or per-sample shading is unavailable. Unexpected Vulkan errors and actual readback failures still fail; production code is unchanged. All six modes pass 5/5 on both physical Windows GPUs (RTX 5080 and AMD Radeon(TM) Graphics): 60 fresh processes, no skips, maximum 0.34 s. Full Windows build/checks and selected Cppcheck/clang-tidy diagnostics pass. The PR body records the exact validation composition and credits your Linux results. Local Linux update: exact head `4b24b3ca0` now builds and passes all six modes 5/5 on Ubuntu 24.04 WSL2 / GCC 13.3 / Mesa 25.2.8 lavapipe (LLVM 20.1.2). This device supports 4x for these fixtures and explicitly reports 2x/8x unavailable: 30 passing processes, no whole-test skips, maximum 0.14 s. The original `4681a51bd` fails all six modes 5/5 in the same environment; restoring this head passes all six again. The large D32 case passes too. This was the reader target/dependencies, not a full Linux app/suite build. Update: thank you for [confirming the corrected head on Mesa 26.0.3 and RTX 3070](https://github.com/boykopovar/AnyPS5/pull/6601#pullrequestreview-5549985186). Your lavapipe run supplies the requested 4x/8x coverage (all six modes 3/3; only 2x unavailable), and RTX 3070 runs 2x/4x/8x. The PR body now records your source pin and machine separately from our local results. The requested retest is complete. Written with AI assistance (Codex); I ran the local checks above.
jotitadev commented 2026-10-16 15:30:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-16T15:30:02Z.

Review: COMMENTED


@Amoenus, as you asked, I re-ran 4b24b3ca0 on the same Mesa 26.0.3 setup. It passes, and both 4x and 8x run there.

Machine: NVIDIA GeForce RTX 3070, driver 595.99.02, Vulkan 1.4.329, plus lavapipe (Mesa 26.0.3, LLVM 21.1.8) on the same machine. Ubuntu 26.04 (kernel 7.0.0-38), i7-8700, GCC 15.2, Release, BUILD_TESTING=ON. Head 4b24b3ca0 merged onto main 0615cd2b8, clean merge (main did not build at the time, #6784).

GPUs tested: NVIDIA GeForce RTX 3070 (595.99.02), lavapipe (Mesa 26.0.3, LLVM 21.1.8), Ubuntu 26.04

lavapipe (ctest -R multisample_readback -V, 3 runs):

  • All six pass in every run, about 0.05 s each.
  • Every mode prints samples=4 and samples=8 as passed. Each also prints one skipped, the device does not support readback fixture format=<f> samples=2 extent=17x5 layers=2. So on this Mesa only 2x is missing, not 8x as on your 25.2.8.

RTX 3070:

  • All six pass, with 2x, 4x and 8x printed for every mode.
  • ctest -R "^agc|shader|recompiler" -E "agc_display_buffer_dcc|agc_driver_flip|agc_driver_lds_atomics64|display|flip" -j1 --timeout 60: 619 tests, only agc_driver_store_over_untracked fails, which also fails on unchanged main here (#6347).

Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5549985186 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6601#pullrequestreview-5549985186). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-16T15:30:02Z. **Review:** COMMENTED --- @Amoenus, as you asked, I re-ran `4b24b3ca0` on the same Mesa 26.0.3 setup. It passes, and both 4x and 8x run there. **Machine:** NVIDIA GeForce RTX 3070, driver 595.99.02, Vulkan 1.4.329, plus lavapipe (Mesa 26.0.3, LLVM 21.1.8) on the same machine. Ubuntu 26.04 (kernel 7.0.0-38), i7-8700, GCC 15.2, Release, `BUILD_TESTING=ON`. Head `4b24b3ca0` merged onto `main` `0615cd2b8`, clean merge (`main` did not build at the time, #6784). GPUs tested: NVIDIA GeForce RTX 3070 (595.99.02), lavapipe (Mesa 26.0.3, LLVM 21.1.8), Ubuntu 26.04 **lavapipe** (`ctest -R multisample_readback -V`, 3 runs): - All six pass in every run, about 0.05 s each. - Every mode prints `samples=4` and `samples=8` as passed. Each also prints one `skipped, the device does not support readback fixture format=<f> samples=2 extent=17x5 layers=2`. So on this Mesa only 2x is missing, not 8x as on your 25.2.8. **RTX 3070:** - All six pass, with 2x, 4x and 8x printed for every mode. - `ctest -R "^agc|shader|recompiler" -E "agc_display_buffer_dcc|agc_driver_flip|agc_driver_lds_atomics64|display|flip" -j1 --timeout 60`: 619 tests, only `agc_driver_store_over_untracked` fails, which also fails on unchanged `main` here (#6347). Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
adriadam10 commented 2026-10-19 08:15:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-19T08:15:17Z.


Checked the reader against the diff: input validation (format, fragments, extent, element and buffer ranges, dispatch limits) throws, pipeline/pool/layout lifetime follows the detiler's ring, pipeline creation holds the cache use lock, and the fixture compares every sample, layer and pixel with sentinels and partial windows. Debt entry is under Functional. Lavapipe and NVIDIA runs by @jotitadev cover the Linux driver paths; merging through the queue.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6262776589 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6601#issuecomment-6262776589). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-19T08:15:17Z. --- Checked the reader against the diff: input validation (format, fragments, extent, element and buffer ranges, dispatch limits) throws, pipeline/pool/layout lifetime follows the detiler's ring, pipeline creation holds the cache use lock, and the fixture compares every sample, layer and pixel with sentinels and partial windows. Debt entry is under Functional. Lavapipe and NVIDIA runs by @jotitadev cover the Linux driver paths; merging through the queue.
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!6601
No description provided.