fix(agc): decode cube descriptors with slices past their last whole cube #7533

Merged
hugodearaujo merged 1 commit from upstream-pr/7533 into main 2026-10-20 10:24:47 +00:00
hugodearaujo commented 2026-10-18 12:38:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by hugodearaujo on 2026-10-18T12:38:34Z.


What

A cube texture descriptor whose range, BASE_ARRAY to DEPTH, holds six slices or more but not a whole number of cubes threw (does not contain a multiple of 6 array slices). It now decodes with every slice of that range, and the views a sampled texture is made of (the snapshot of guest memory, the view of a storage image, and its depth and repacked copies) hold them all.

  • Loads: in #1308, loads through a partial cube range were measured on RDNA2 to stop at DEPTH, so the slices past the last whole cube are kept.
  • Sampling: a whole cube still reads its six faces. Sampling the cube that the range cuts short is out-of-range cube-array sampling, which the technical debt already lists as unimplemented.
  • Ranges of fewer than six slices still throw.

Title

Assassin's Creed Mirage (PPSA13960, 01.007.000), with #6343 and #7532 applied, binds this cube to compute shader 0x1000b28c00: R32_FLOAT, 128x128, SW_64KB_S, BASE_ARRAY 0, DEPTH 6.

10e88300 c1600000 001fc01f b0900204 00000006 00700000 00000000 00000000

The shader samples it once (image_sample_lz with dim:SQ_RSRC_IMG_CUBE), taking the face from v_cubeid with no array index, so it reads faces 0 to 5 of the first cube. It writes the result to slice s12 (its z group) of a six-slice R8 2D array.

On main the dispatch throws:

AGC graphics: guest cube texture descriptor does not contain a multiple of 6 array slices (format 22, 128x128x7, type 11, tile 9, mips 0..0 of 1) (base array 0)

Runs on main 0d078f75d with only libSceAgcDriver.prx differing, both with the title's shaders compiled by an earlier run:

  • main: that error.

  • This PR: past it, then the next unimplemented path. #6973, #6987, #6989, #6995 and #7002 change that path.

    AGC graphics: a storage image access of 0x10e0720000+0x870000 overlaps multisampled color target 0x10e0720000+0x870000 (4 samples), whose samples are only on the host: guest access to it is not implemented
    

Tested

  • agc_driver_graphics: a cube descriptor with BASE_ARRAY 0 and DEPTH 6 decodes with seven slices, and its surface holds them. DEPTH 4 still throws. It fails on main.
  • agc_driver_recorder_tests --cube-only (RADV): 64x64 cubes with seven slices, each slice filled with its own value, are sampled at every slice through the four views: the snapshot and the storage view of an R8 cube, the depth copy of an R32_FLOAT cube and the repacked copy of a format 43 cube. It fails on main with the error above, and with the check of the depth or the repacked copy as on main it fails at that copy.
  • Linux (Arch, kernel 7.2.9, GCC 16.2.1, Release, AMD Radeon RX 9070 XT with RADV, Mesa 26.2.4): full CTest with -j8, 1437 of 1438 pass. agc_driver_tessellation segfaults the same way without this PR.
  • Windows Server 2025 VM, WinLibs GCC 15.2, Release, BUILD_TESTING=ON, no GPU: full CTest, no failures out of 1478; agc_driver_gated_dispatch_capture_short_timeout is skipped there.
  • From @savvaniss (comment): Windows 11, Intel UHD Graphics 770 and AMD Radeon RX 9070 XT (AMD driver 32.0.31041.1004), this head merged into main f3059421f. The 68 tests from tests/Recorder.cpp and tests/GuestTextureResource.cpp pass on the RX 9070 XT, and 61 pass with 7 import-settle tests skipped on the UHD 770; with only this PR's test files on main, agc_driver_graphics fails on both with the 7-slice cube refusal.
  • From @MaxLikesCode (comment): Windows 11 Pro, NVIDIA GeForce RTX 4090 (driver 617.42), WinLibs GCC 15.2.0, this head merged into main ad502d717. agc_driver_recorder_tests --cube-only passes 3 of 3, and agc_driver_graphics and the cube tests tools/select_tests.py reaches pass; of the 975 tests it selects, 957 pass, 15 skip and 3 fail, the same 3 that fail on main on that GPU (#7584, #7710, #7708).
  • tools/check_conventions.py passes. tools/pr_overlap.py lists #6457, #6479 and #6730: they change the technical debt entry on the line above the cube entry, so a merge with any of them conflicts on those two adjacent lines of docs/dev/debt/libSceAgcDriver.md. No code overlaps.

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: PPSA13960 #7534
  • GPUs tested: AMD Radeon RX 9070 XT, RADV (Mesa 26.2.4), Arch Linux; by testers on Windows 11: Intel UHD Graphics 770 and AMD Radeon RX 9070 XT (@savvaniss), NVIDIA GeForce RTX 4090 (@MaxLikesCode)
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4909148577 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7533). Originally posted by [hugodearaujo](https://github.com/hugodearaujo) on 2026-10-18T12:38:34Z. --- ### What A cube texture descriptor whose range, `BASE_ARRAY` to `DEPTH`, holds six slices or more but not a whole number of cubes threw (`does not contain a multiple of 6 array slices`). It now decodes with every slice of that range, and the views a sampled texture is made of (the snapshot of guest memory, the view of a storage image, and its depth and repacked copies) hold them all. - Loads: in #1308, loads through a partial cube range were measured on RDNA2 to stop at `DEPTH`, so the slices past the last whole cube are kept. - Sampling: a whole cube still reads its six faces. Sampling the cube that the range cuts short is out-of-range cube-array sampling, which the technical debt already lists as unimplemented. - Ranges of fewer than six slices still throw. ### Title Assassin's Creed Mirage (PPSA13960, 01.007.000), with #6343 and #7532 applied, binds this cube to compute shader `0x1000b28c00`: R32_FLOAT, 128x128, `SW_64KB_S`, `BASE_ARRAY` 0, `DEPTH` 6. ``` 10e88300 c1600000 001fc01f b0900204 00000006 00700000 00000000 00000000 ``` The shader samples it once (`image_sample_lz` with `dim:SQ_RSRC_IMG_CUBE`), taking the face from `v_cubeid` with no array index, so it reads faces 0 to 5 of the first cube. It writes the result to slice `s12` (its z group) of a six-slice R8 2D array. On `main` the dispatch throws: ``` AGC graphics: guest cube texture descriptor does not contain a multiple of 6 array slices (format 22, 128x128x7, type 11, tile 9, mips 0..0 of 1) (base array 0) ``` Runs on `main` `0d078f75d` with only `libSceAgcDriver.prx` differing, both with the title's shaders compiled by an earlier run: - `main`: that error. - This PR: past it, then the next unimplemented path. #6973, #6987, #6989, #6995 and #7002 change that path. ``` AGC graphics: a storage image access of 0x10e0720000+0x870000 overlaps multisampled color target 0x10e0720000+0x870000 (4 samples), whose samples are only on the host: guest access to it is not implemented ``` ### Tested - `agc_driver_graphics`: a cube descriptor with `BASE_ARRAY` 0 and `DEPTH` 6 decodes with seven slices, and its surface holds them. `DEPTH` 4 still throws. It fails on `main`. - `agc_driver_recorder_tests --cube-only` (RADV): 64x64 cubes with seven slices, each slice filled with its own value, are sampled at every slice through the four views: the snapshot and the storage view of an R8 cube, the depth copy of an R32_FLOAT cube and the repacked copy of a format 43 cube. It fails on `main` with the error above, and with the check of the depth or the repacked copy as on `main` it fails at that copy. - Linux (Arch, kernel 7.2.9, GCC 16.2.1, Release, AMD Radeon RX 9070 XT with RADV, Mesa 26.2.4): full CTest with `-j8`, 1437 of 1438 pass. `agc_driver_tessellation` segfaults the same way without this PR. - Windows Server 2025 VM, WinLibs GCC 15.2, Release, `BUILD_TESTING=ON`, no GPU: full CTest, no failures out of 1478; `agc_driver_gated_dispatch_capture_short_timeout` is skipped there. - From @savvaniss ([comment](https://github.com/boykopovar/AnyPS5/pull/7533#issuecomment-6255603804)): Windows 11, Intel UHD Graphics 770 and AMD Radeon RX 9070 XT (AMD driver 32.0.31041.1004), this head merged into `main` f3059421f. The 68 tests from `tests/Recorder.cpp` and `tests/GuestTextureResource.cpp` pass on the RX 9070 XT, and 61 pass with 7 import-settle tests skipped on the UHD 770; with only this PR's test files on `main`, `agc_driver_graphics` fails on both with the 7-slice cube refusal. - From @MaxLikesCode ([comment](https://github.com/boykopovar/AnyPS5/pull/7533#issuecomment-6258564076)): Windows 11 Pro, NVIDIA GeForce RTX 4090 (driver 617.42), WinLibs GCC 15.2.0, this head merged into `main` ad502d717. `agc_driver_recorder_tests --cube-only` passes 3 of 3, and `agc_driver_graphics` and the cube tests `tools/select_tests.py` reaches pass; of the 975 tests it selects, 957 pass, 15 skip and 3 fail, the same 3 that fail on `main` on that GPU (#7584, #7710, #7708). - `tools/check_conventions.py` passes. `tools/pr_overlap.py` lists #6457, #6479 and #6730: they change the technical debt entry on the line above the cube entry, so a merge with any of them conflicts on those two adjacent lines of `docs/dev/debt/libSceAgcDriver.md`. No code overlaps. ### Checklist - [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: PPSA13960 #7534 - [x] GPUs tested: AMD Radeon RX 9070 XT, RADV (Mesa 26.2.4), Arch Linux; by testers on Windows 11: Intel UHD Graphics 770 and AMD Radeon RX 9070 XT (@savvaniss), NVIDIA GeForce RTX 4090 (@MaxLikesCode) - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-18 12:48:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-18T12:48:41Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 5372 docs/dev/debt/libSceAgcDriver.md L140-141

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 1368 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 1395 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 2434 docs/dev/debt/libSceAgcDriver.md
PR 4448 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 4449 docs/dev/debt/libSceAgcDriver.md
PR 5021 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 5058 docs/dev/debt/libSceAgcDriver.md
PR 5499 docs/dev/debt/libSceAgcDriver.md
PR 5609 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 5925 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6146 docs/dev/debt/libSceAgcDriver.md
PR 6185 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6186 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6187 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6188 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6192 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6194 docs/dev/debt/libSceAgcDriver.md
PR 6197 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6202 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6209 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6223 docs/dev/debt/libSceAgcDriver.md
PR 6273 docs/dev/debt/libSceAgcDriver.md
PR 6280 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6292 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6300 docs/dev/debt/libSceAgcDriver.md
PR 6412 docs/dev/debt/libSceAgcDriver.md
PR 6481 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6498 docs/dev/debt/libSceAgcDriver.md
PR 6539 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6548 docs/dev/debt/libSceAgcDriver.md
PR 6549 docs/dev/debt/libSceAgcDriver.md
PR 6615 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6636 docs/dev/debt/libSceAgcDriver.md
PR 6682 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6683 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6727 docs/dev/debt/libSceAgcDriver.md
PR 6747 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6808 docs/dev/debt/libSceAgcDriver.md
PR 6867 docs/dev/debt/libSceAgcDriver.md
PR 6868 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6926 docs/dev/debt/libSceAgcDriver.md
PR 6946 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6947 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/debt/libSceAgcDriver.md
PR 6960 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 6970 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6971 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 6977 core/libs/prx/libSceAgcDriver/Graphics/src/GuestTextureResource.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7002 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7048 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 7085 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7256 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7332 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7446 docs/dev/debt/libSceAgcDriver.md
PR 7449 docs/dev/debt/libSceAgcDriver.md
PR 7457 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
PR 7505 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7514 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
PR 7604 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7618 core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7642 core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp
core/libs/prx/libSceAgcDriver/tests/Recorder.cpp
docs/dev/debt/libSceAgcDriver.md
PR 7668 docs/dev/debt/libSceAgcDriver.md
PR 7862 docs/dev/debt/libSceAgcDriver.md
PR 7927 docs/dev/debt/libSceAgcDriver.md
PR 7948 core/libs/prx/libSceAgcDriver/Graphics/src/GuestTextureResource.cpp
core/libs/prx/libSceAgcDriver/tests/GuestTextureResource.cpp
docs/dev/debt/libSceAgcDriver.md
PR 8014 docs/dev/debt/libSceAgcDriver.md
PR 8099 docs/dev/debt/libSceAgcDriver.md
PR 8145 docs/dev/debt/libSceAgcDriver.md
PR 8223 docs/dev/debt/libSceAgcDriver.md
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6250105505 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7533#issuecomment-6250105505). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-18T12:48:41Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | [PR 5372](https://www.github.com/boykopovar/AnyPS5/pull/5372) | `docs/dev/debt/libSceAgcDriver.md` [L140-141](https://github.com/boykopovar/AnyPS5/blob/02fb1ce5324304f292453b9dd458cea2e3633160/docs/dev/debt/libSceAgcDriver.md#L140-L141) | | | 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 1368](https://www.github.com/boykopovar/AnyPS5/pull/1368) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 1395](https://www.github.com/boykopovar/AnyPS5/pull/1395) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 2434](https://www.github.com/boykopovar/AnyPS5/pull/2434) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 4448](https://www.github.com/boykopovar/AnyPS5/pull/4448) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`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/tests/Recorder.cpp` | | [PR 5058](https://www.github.com/boykopovar/AnyPS5/pull/5058) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 5499](https://www.github.com/boykopovar/AnyPS5/pull/5499) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 5609](https://www.github.com/boykopovar/AnyPS5/pull/5609) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 5925](https://www.github.com/boykopovar/AnyPS5/pull/5925) | `core/libs/prx/libSceAgcDriver/tests/Recorder.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6146](https://www.github.com/boykopovar/AnyPS5/pull/6146) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6185](https://www.github.com/boykopovar/AnyPS5/pull/6185) | `core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6186](https://www.github.com/boykopovar/AnyPS5/pull/6186) | `core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6187](https://www.github.com/boykopovar/AnyPS5/pull/6187) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6188](https://www.github.com/boykopovar/AnyPS5/pull/6188) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6192](https://www.github.com/boykopovar/AnyPS5/pull/6192) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6194](https://www.github.com/boykopovar/AnyPS5/pull/6194) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6197](https://www.github.com/boykopovar/AnyPS5/pull/6197) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6202](https://www.github.com/boykopovar/AnyPS5/pull/6202) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6209](https://www.github.com/boykopovar/AnyPS5/pull/6209) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6223](https://www.github.com/boykopovar/AnyPS5/pull/6223) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6273](https://www.github.com/boykopovar/AnyPS5/pull/6273) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6280](https://www.github.com/boykopovar/AnyPS5/pull/6280) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6292](https://www.github.com/boykopovar/AnyPS5/pull/6292) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6300](https://www.github.com/boykopovar/AnyPS5/pull/6300) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6412](https://www.github.com/boykopovar/AnyPS5/pull/6412) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6481](https://www.github.com/boykopovar/AnyPS5/pull/6481) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6498](https://www.github.com/boykopovar/AnyPS5/pull/6498) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6539](https://www.github.com/boykopovar/AnyPS5/pull/6539) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [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 6615](https://www.github.com/boykopovar/AnyPS5/pull/6615) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6636](https://www.github.com/boykopovar/AnyPS5/pull/6636) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6682](https://www.github.com/boykopovar/AnyPS5/pull/6682) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6683](https://www.github.com/boykopovar/AnyPS5/pull/6683) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [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/tests/Recorder.cpp` | | [PR 6808](https://www.github.com/boykopovar/AnyPS5/pull/6808) | `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/tests/Recorder.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6926](https://www.github.com/boykopovar/AnyPS5/pull/6926) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 6946](https://www.github.com/boykopovar/AnyPS5/pull/6946) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6947](https://www.github.com/boykopovar/AnyPS5/pull/6947) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 6960](https://www.github.com/boykopovar/AnyPS5/pull/6960) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 6970](https://www.github.com/boykopovar/AnyPS5/pull/6970) | `core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6971](https://www.github.com/boykopovar/AnyPS5/pull/6971) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 6977](https://www.github.com/boykopovar/AnyPS5/pull/6977) | `core/libs/prx/libSceAgcDriver/Graphics/src/GuestTextureResource.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7002](https://www.github.com/boykopovar/AnyPS5/pull/7002) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7048](https://www.github.com/boykopovar/AnyPS5/pull/7048) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 7085](https://www.github.com/boykopovar/AnyPS5/pull/7085) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7256](https://www.github.com/boykopovar/AnyPS5/pull/7256) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7332](https://www.github.com/boykopovar/AnyPS5/pull/7332) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7446](https://www.github.com/boykopovar/AnyPS5/pull/7446) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7449](https://www.github.com/boykopovar/AnyPS5/pull/7449) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7457](https://www.github.com/boykopovar/AnyPS5/pull/7457) | `core/libs/prx/libSceAgcDriver/tests/Recorder.cpp` | | [PR 7505](https://www.github.com/boykopovar/AnyPS5/pull/7505) | `core/libs/prx/libSceAgcDriver/tests/Recorder.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7514](https://www.github.com/boykopovar/AnyPS5/pull/7514) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp` | | [PR 7604](https://www.github.com/boykopovar/AnyPS5/pull/7604) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7618](https://www.github.com/boykopovar/AnyPS5/pull/7618) | `core/libs/prx/libSceAgcDriver/tests/Recorder.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7642](https://www.github.com/boykopovar/AnyPS5/pull/7642) | `core/libs/prx/libSceAgcDriver/Graphics/src/Texture.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/Recorder.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 7668](https://www.github.com/boykopovar/AnyPS5/pull/7668) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7862](https://www.github.com/boykopovar/AnyPS5/pull/7862) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7927](https://www.github.com/boykopovar/AnyPS5/pull/7927) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 7948](https://www.github.com/boykopovar/AnyPS5/pull/7948) | `core/libs/prx/libSceAgcDriver/Graphics/src/GuestTextureResource.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/GuestTextureResource.cpp`<br>`docs/dev/debt/libSceAgcDriver.md` | | [PR 8014](https://www.github.com/boykopovar/AnyPS5/pull/8014) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 8099](https://www.github.com/boykopovar/AnyPS5/pull/8099) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 8145](https://www.github.com/boykopovar/AnyPS5/pull/8145) | `docs/dev/debt/libSceAgcDriver.md` | | [PR 8223](https://www.github.com/boykopovar/AnyPS5/pull/8223) | `docs/dev/debt/libSceAgcDriver.md` |
savvaniss commented 2026-10-18 21:53:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by savvaniss on 2026-10-18T21:53:11Z.


Intel and AMD Windows data: with this PR the 68 tests from tests/Recorder.cpp and tests/GuestTextureResource.cpp pass on an Intel UHD 770 and an AMD RX 9070 XT. Without it, agc_driver_graphics fails on both.

Windows 11 Pro 26300, WinLibs GCC 15.2.0 r7, Release, every execution test built, ANYPS5_NO_SHADER_CACHE=1, serial CTest. Intel UHD Graphics 770 (8086:a780), driver 32.0.101.7088. AMD Radeon RX 9070 XT (1002:7550), driver 32.0.31041.1004, with VkCache emptied first. This head bfcb8fcdf merged into main f3059421f. "Without" means this PR's test files on main f3059421f, with none of its other changes.

Tests, ×3 UHD 770 RX 9070 XT
This head: 68 tests 61 pass, 7 import-settle tests skip (no other queue family to settle imports on) 68 of 68 pass
Without agc_driver_graphics fails: guest cube texture descriptor does not contain a multiple of 6 array slices (format 56, 32x32x7, type 11, tile 0, mips 0..0 of 1) (base array 0) same

I also ran full CTest with this PR and the 14 other open AGC PRs I tested in the same batch merged together (#7647, #7641, #7630, #7627, #7603, #7600, #7591, #7579, #7535, #7474, #7462, #7050, #7048, #7650). Neither GPU showed a failure beyond main's own, except #7650's new test.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6255603804 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7533#issuecomment-6255603804). Originally posted by [savvaniss](https://github.com/savvaniss) on 2026-10-18T21:53:11Z. --- Intel and AMD Windows data: with this PR the 68 tests from `tests/Recorder.cpp` and `tests/GuestTextureResource.cpp` pass on an Intel UHD 770 and an AMD RX 9070 XT. Without it, `agc_driver_graphics` fails on both. Windows 11 Pro 26300, WinLibs GCC 15.2.0 r7, Release, every execution test built, `ANYPS5_NO_SHADER_CACHE=1`, serial CTest. Intel UHD Graphics 770 (`8086:a780`), driver 32.0.101.7088. AMD Radeon RX 9070 XT (`1002:7550`), driver 32.0.31041.1004, with `VkCache` emptied first. This head `bfcb8fcdf` merged into `main` `f3059421f`. "Without" means this PR's test files on `main` `f3059421f`, with none of its other changes. | Tests, ×3 | UHD 770 | RX 9070 XT | |---|---|---| | This head: 68 tests | 61 pass, 7 import-settle tests skip (no other queue family to settle imports on) | 68 of 68 pass | | Without | `agc_driver_graphics` fails: `guest cube texture descriptor does not contain a multiple of 6 array slices (format 56, 32x32x7, type 11, tile 0, mips 0..0 of 1) (base array 0)` | same | I also ran full CTest with this PR and the 14 other open AGC PRs I tested in the same batch merged together (#7647, #7641, #7630, #7627, #7603, #7600, #7591, #7579, #7535, #7474, #7462, #7050, #7048, #7650). Neither GPU showed a failure beyond `main`'s own, except #7650's new test. AI-assisted: yes (Claude Code)
hugodearaujo commented 2026-10-18 21:56:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by hugodearaujo on 2026-10-18T21:56:35Z.


@savvaniss Thanks, that's the cross-vendor data this needed, and the without-PR run is a good control. I added it to the Tested section.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6255635779 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7533#issuecomment-6255635779). Originally posted by [hugodearaujo](https://github.com/hugodearaujo) on 2026-10-18T21:56:35Z. --- @savvaniss Thanks, that's the cross-vendor data this needed, and the without-PR run is a good control. I added it to the Tested section.
MaxLikesCode commented 2026-10-19 02:47:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MaxLikesCode on 2026-10-19T02:47:13Z.


NVIDIA data to go with the AMD and Intel runs: GeForce RTX 4090, driver 617.42, Windows 11 Pro 26200, WinLibs GCC 15.2.0 r7, Release, BUILD_TESTING=ON with every execution test built. This head (bfcb8fcdf) merged into main ad502d717.

  • agc_driver_recorder_tests --cube-only, run by hand with ANYPS5_NO_SHADER_CACHE=1: 3 of 3 pass (Single cube snapshot and storage sampling tests passed).
  • agc_driver_graphics passes, and so do the cube tests the selection reaches (agc_driver_image_sample_cube_derivatives, agc_driver_vop3_cube_clamp, agc_driver_image_plane_address_on_cube).
  • The 975 of 1553 tests tools/select_tests.py selects for this change: 957 pass, 15 skip and 3 fail. The 3 failures are the ones main has on this GPU without this PR: agc_driver_bda_device (#7584), agc_driver_image_table_reuse (#7710) and agc_driver_pixel_lds (#7708). tools/check_skips.py --job windows accepts the skips.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6258564076 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7533#issuecomment-6258564076). Originally posted by [MaxLikesCode](https://github.com/MaxLikesCode) on 2026-10-19T02:47:13Z. --- NVIDIA data to go with the AMD and Intel runs: GeForce RTX 4090, driver 617.42, Windows 11 Pro 26200, WinLibs GCC 15.2.0 r7, Release, `BUILD_TESTING=ON` with every execution test built. This head (bfcb8fcdf) merged into `main` ad502d717. - `agc_driver_recorder_tests --cube-only`, run by hand with `ANYPS5_NO_SHADER_CACHE=1`: 3 of 3 pass (`Single cube snapshot and storage sampling tests passed`). - `agc_driver_graphics` passes, and so do the cube tests the selection reaches (`agc_driver_image_sample_cube_derivatives`, `agc_driver_vop3_cube_clamp`, `agc_driver_image_plane_address_on_cube`). - The 975 of 1553 tests `tools/select_tests.py` selects for this change: 957 pass, 15 skip and 3 fail. The 3 failures are the ones `main` has on this GPU without this PR: `agc_driver_bda_device` (#7584), `agc_driver_image_table_reuse` (#7710) and `agc_driver_pixel_lds` (#7708). `tools/check_skips.py --job windows` accepts the skips. AI-assisted: yes (Claude Code)
hugodearaujo commented 2026-10-19 02:51:26 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by hugodearaujo on 2026-10-19T02:51:26Z.


@MaxLikesCode Thanks, that adds the NVIDIA run this PR was missing. I added it to the Tested section.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6258607825 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7533#issuecomment-6258607825). Originally posted by [hugodearaujo](https://github.com/hugodearaujo) on 2026-10-19T02:51:26Z. --- @MaxLikesCode Thanks, that adds the NVIDIA run this PR was missing. I added it to the Tested section.
hugodearaujo commented 2026-10-20 02:16:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by hugodearaujo on 2026-10-20T02:16:45Z.


Rebased onto main 713ee693e. The only conflict was the TechnicalDebt line next to the cube entry, changed by #6730; the code is unchanged.

Linux (Arch, kernel 7.2.11, GCC 16.2.1, Release, RX 9070 XT with RADV, Mesa 26.2.5): full CTest 1655 of 1659, agc_driver_graphics passes; the four failures also fail on main here: agc_driver_tessellation (#5444), agc_driver_bda_device (#7584), agc_driver_image_table_vouched_lookups (#7766) and agc_driver_guest_memory_lifetime (#7784).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6281776040 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7533#issuecomment-6281776040). Originally posted by [hugodearaujo](https://github.com/hugodearaujo) on 2026-10-20T02:16:45Z. --- Rebased onto `main` 713ee693e. The only conflict was the TechnicalDebt line next to the cube entry, changed by #6730; the code is unchanged. Linux (Arch, kernel 7.2.11, GCC 16.2.1, Release, RX 9070 XT with RADV, Mesa 26.2.5): full CTest 1655 of 1659, `agc_driver_graphics` passes; the four failures also fail on `main` here: `agc_driver_tessellation` (#5444), `agc_driver_bda_device` (#7584), `agc_driver_image_table_vouched_lookups` (#7766) and `agc_driver_guest_memory_lifetime` (#7784).
adriadam10 commented 2026-10-20 10:26:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-20T10:26:02Z.


Checked the diff: the cube decode keeps every slice up to DEPTH (the bound loads use on hardware, measured in #1308), ranges under six slices still throw, and the four sampled views (snapshot, storage, depth copy, repacked copy) are 2D-array views, so the layer count doesn't need to be a multiple of 6. The decode test and the recorder cube test fail on main; the Windows AMD, Intel and NVIDIA runs cover the GPU side. The sRGB-expand view still throws for such cubes, which is fine (exact or throw). Merged.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6288816075 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7533#issuecomment-6288816075). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-20T10:26:02Z. --- Checked the diff: the cube decode keeps every slice up to `DEPTH` (the bound loads use on hardware, measured in #1308), ranges under six slices still throw, and the four sampled views (snapshot, storage, depth copy, repacked copy) are 2D-array views, so the layer count doesn't need to be a multiple of 6. The decode test and the recorder cube test fail on `main`; the Windows AMD, Intel and NVIDIA runs cover the GPU side. The sRGB-expand view still throws for such cubes, which is fine (exact or throw). Merged.
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!7533
No description provided.