feat(libSceAgcDriver): render into one array slice of a PS4 color target #9675

Merged
ntamas94 merged 8 commits from upstream-pr/9675 into main 2026-11-06 09:15:34 +00:00
ntamas94 commented 2026-10-22 07:45:10 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ntamas94 on 2026-10-22T07:45:10Z.


What

A GCN CB_COLOR_VIEW that selects an array slice threw "GCN color array slices are not implemented". Gang Beasts (CUSA04865, Unity) renders into single slices of a layered color target. A view of one slice (slice start equal to slice max) now addresses that slice: the surface base plus the slice index times the slice size. A view of several slices still throws, with its own message. A new debt entry, "PS4 color array slices", says so, and that bits [12:11] and [31:24] of the register are ignored because their behaviour is not measured.

This moves the color-slice commit of Get-fix/AnyPS5#3 (opened against ps4/limbo-gpu) to main, as Get-fix asked there. It was stacked on #9431, which is merged; the branch now has current main merged in. The Gnm packet and submission commits of that PR go in their own pull request on top of #9432.

main now rotates the bank of each layer of a 2D-tiled PS4 array in the texture path, as addrlib's ComputeBankFromCoord does for ADDR_TM_2D_TILED_THIN1 (c7a3fff544). A color target of a later slice is not yet placed that way, so a view of slice 1 or later of the two 2D-tiled modes (GcnDisplay2D, GcnThin2D) now throws instead of rendering where the texture path would not read it; the 1D modes have no bank and take any slice. The debt entry says so.

Tested

Windows 11 Pro (10.0.26200), WinLibs GCC, NVIDIA GeForce RTX 2080 (driver 617.14), Release build with BUILD_TESTING=ON, on this branch with current main (bf80054e7c) merged in; #9431 is merged, so the branch's diff against main is this PR's own change:

  • agc_driver_graphics passes, with a new case for slices 0 and 2; three runs. A view of several slices still throws, but the test no longer pins that. Earlier, on #9431's head, with State.cpp reverted to the base the test failed with "GCN color array slices are not implemented".
  • Earlier, on Get-fix/AnyPS5#3 with the rest of my bring-up branch (#7941): Gang Beasts plays a full round (menu, character select, a level with correct lighting and physics, the end of the match and the return to character select).
  • tools/check_conventions.py --base main (bf80054e7c) with this title and description: no findings.
  • Paired validation-layer run: main bf80054e7c (100% tests passed out of 25, the depth, display-buffer and graphics tests of this stack) and this branch with that main merged in (100% tests passed out of 1) with VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ANYPS5_NO_SHADER_CACHE=1, ANYPS5_REQUIRE_VULKAN=1 and VK_LOADER_DEBUG=warn,error, ctest -V, on the NVIDIA GeForce RTX 2080, driver 617.14, Windows 11 (10.0.26200), Vulkan SDK 1.4.363.0: the main log carries the loader's adding layers "VK_LAYER_KHRONOS_validation" line 62 times, this branch's log 0 times, and neither reports was not found but was requested by env var VK_INSTANCE_LAYERS; VUID- ids on main: 0, on this branch: 0, new on this branch: 0. agc_driver_graphics decodes state on the CPU and opens no Vulkan instance, so the layer has nothing to check in this branch's focused test; the main side covers the GPU tests of the stack.

Linux was not run locally.

Checklist

  • Based on current main; no other open PR implements the same functions (current main bf80054e7c merged in; #9431 is merged; searched open boykopovar/AnyPS5 PRs for CB_COLOR_VIEW and color array slices on 2026-10-22; #7668 offsets the CMASK of a PS5 color target slice and does not touch the GCN view)
  • 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 (#9431 is merged)
  • Fixes: none
  • Unblocks: CUSA04865 #7941
  • GPUs tested: NVIDIA GeForce RTX 2080, driver 617.14, Windows 11 (10.0.26200)
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4963907194 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9675). Originally posted by [ntamas94](https://github.com/ntamas94) on 2026-10-22T07:45:10Z. --- ### What A GCN `CB_COLOR_VIEW` that selects an array slice threw "GCN color array slices are not implemented". Gang Beasts (CUSA04865, Unity) renders into single slices of a layered color target. A view of one slice (slice start equal to slice max) now addresses that slice: the surface base plus the slice index times the slice size. A view of several slices still throws, with its own message. A new debt entry, "PS4 color array slices", says so, and that bits [12:11] and [31:24] of the register are ignored because their behaviour is not measured. This moves the color-slice commit of Get-fix/AnyPS5#3 (opened against `ps4/limbo-gpu`) to `main`, as Get-fix asked there. It was stacked on #9431, which is merged; the branch now has current `main` merged in. The Gnm packet and submission commits of that PR go in their own pull request on top of #9432. `main` now rotates the bank of each layer of a 2D-tiled PS4 array in the texture path, as addrlib's `ComputeBankFromCoord` does for `ADDR_TM_2D_TILED_THIN1` (c7a3fff544). A color target of a later slice is not yet placed that way, so a view of slice 1 or later of the two 2D-tiled modes (`GcnDisplay2D`, `GcnThin2D`) now throws instead of rendering where the texture path would not read it; the 1D modes have no bank and take any slice. The debt entry says so. ### Tested Windows 11 Pro (10.0.26200), WinLibs GCC, NVIDIA GeForce RTX 2080 (driver 617.14), Release build with `BUILD_TESTING=ON`, on this branch with current `main` (bf80054e7c) merged in; #9431 is merged, so the branch's diff against `main` is this PR's own change: - `agc_driver_graphics` passes, with a new case for slices 0 and 2; three runs. A view of several slices still throws, but the test no longer pins that. Earlier, on #9431's head, with `State.cpp` reverted to the base the test failed with "GCN color array slices are not implemented". - Earlier, on Get-fix/AnyPS5#3 with the rest of my bring-up branch (#7941): Gang Beasts plays a full round (menu, character select, a level with correct lighting and physics, the end of the match and the return to character select). - `tools/check_conventions.py --base main` (bf80054e7c) with this title and description: no findings. - Paired validation-layer run: `main` bf80054e7c (100% tests passed out of 25, the depth, display-buffer and graphics tests of this stack) and this branch with that `main` merged in (100% tests passed out of 1) with `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, `ANYPS5_NO_SHADER_CACHE=1`, `ANYPS5_REQUIRE_VULKAN=1` and `VK_LOADER_DEBUG=warn,error`, `ctest -V`, on the NVIDIA GeForce RTX 2080, driver 617.14, Windows 11 (10.0.26200), Vulkan SDK 1.4.363.0: the `main` log carries the loader's `adding layers "VK_LAYER_KHRONOS_validation"` line 62 times, this branch's log 0 times, and neither reports `was not found but was requested by env var VK_INSTANCE_LAYERS`; `VUID-` ids on `main`: 0, on this branch: 0, new on this branch: 0. `agc_driver_graphics` decodes state on the CPU and opens no Vulkan instance, so the layer has nothing to check in this branch's focused test; the `main` side covers the GPU tests of the stack. Linux was not run locally. ### 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 (current `main` bf80054e7c merged in; #9431 is merged; searched open boykopovar/AnyPS5 PRs for `CB_COLOR_VIEW` and color array slices on 2026-10-22; #7668 offsets the CMASK of a PS5 color target slice and does not touch the GCN view) - [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 (#9431 is merged) - [x] Fixes: none - [x] Unblocks: CUSA04865 #7941 - [x] GPUs tested: NVIDIA GeForce RTX 2080, driver 617.14, Windows 11 (10.0.26200) - [x] AI-assisted: yes
fogydes commented 2026-10-22 08:54:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by fogydes on 2026-10-22T08:54:11Z.


Verified against the branch. The view decode is right for PS4: slice = view & 0x7ff and the one-slice rule via Require(((view >> 13) & 0x7ff) == slice, ...) — reading slice_max and refusing any view whose start and max differ, plus the exclusive bits staying inside the gate. The slice offset folds into surfaceAddress before anything downstream (base<<8 + slice * layout.Bytes()), with the preceding Require tying layout.Bytes() to pitch * height * elementBytes so only the five slice-uniform accepted tile modes take that multiplication, and GCN 3D/thick modes throw rather than mis-offset. MSAA (samples == 1 strictly) and fast clear (CMASK bit) are both refused up front. The render-target cache keys on the final address, so two slices of one base are distinct images to the cache — no stale-description reuse. Test covers slice 0, slice 2 and the two-slice rejection through the existing graphics test, and the debt row is updated.

Two smalls:

  1. GCN view bits [31:24] (and the [12:11] gap between the two fields) are now silently ignored. shadPS4's ColorView has no fields there, but the PS4's own behavior for those bits is unknown — per the repo rule that's either a Require-they're-zero or a sentence in the debt entry rather than silence.
  2. The merge-base diff also carries the shared-stack commits (GCN depth decode, legacy vertex routing, RdnaDecoder integration); reviewers of this PR alone should scope to the DecodeGcnColorBuffer addition and note that the surrounding hunks come from the declared dependencies.
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6336787773 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9675#issuecomment-6336787773). Originally posted by [fogydes](https://github.com/fogydes) on 2026-10-22T08:54:11Z. --- Verified against the branch. The view decode is right for PS4: `slice = view & 0x7ff` and the one-slice rule via `Require(((view >> 13) & 0x7ff) == slice, ...)` — reading `slice_max` and refusing any view whose start and max differ, plus the exclusive bits staying inside the gate. The slice offset folds into `surfaceAddress` before anything downstream (`base<<8 + slice * layout.Bytes()`), with the preceding Require tying `layout.Bytes()` to `pitch * height * elementBytes` so only the five slice-uniform accepted tile modes take that multiplication, and GCN 3D/thick modes throw rather than mis-offset. MSAA (`samples == 1` strictly) and fast clear (CMASK bit) are both refused up front. The render-target cache keys on the final address, so two slices of one base are distinct images to the cache — no stale-description reuse. Test covers slice 0, slice 2 and the two-slice rejection through the existing graphics test, and the debt row is updated. Two smalls: 1. GCN view bits [31:24] (and the [12:11] gap between the two fields) are now silently ignored. shadPS4's ColorView has no fields there, but the PS4's own behavior for those bits is unknown — per the repo rule that's either a Require-they're-zero or a sentence in the debt entry rather than silence. 2. The merge-base diff also carries the shared-stack commits (GCN depth decode, legacy vertex routing, `RdnaDecoder` integration); reviewers of this PR alone should scope to the `DecodeGcnColorBuffer` addition and note that the surrounding hunks come from the declared dependencies.
MarcZX10 commented 2026-10-22 08:56:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T08:56:35Z.

Review: DISMISSED


The isolated feature commit adds a clear state-decoding test for slice 0, slice 2, and a multi-slice rejection, and the address calculation is consistent with the selected slice size. Current-main conventions and git diff --check pass. The PR is currently CONFLICTING with main; its declared dependency #9431 is also conflicting, so the final merge result has not been validated against current main.

Because this changes the AGC driver, CONTRIBUTING requires the same focused tests on main and the change with VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ANYPS5_NO_SHADER_CACHE=1, and ANYPS5_REQUIRE_VULKAN=1, using ctest -V on the same machine/GPU, plus confirmation that the requested validation layer loaded, no new VUID- errors were introduced, and the GPU details on the checklist. The report describes agc_driver_graphics and title play on Windows/NVIDIA, but does not provide that required paired validation-layer comparison. Please attach both logs or summaries and update the GPU checklist, then rebase/coordinate with #9431 and rerun checks on the current merge commit. The existing hosted checks shown here are conventions/intake/labels only; no product build is reported.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5611646944 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9675#pullrequestreview-5611646944). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T08:56:35Z. **Review:** DISMISSED --- The isolated feature commit adds a clear state-decoding test for slice 0, slice 2, and a multi-slice rejection, and the address calculation is consistent with the selected slice size. Current-main conventions and `git diff --check` pass. The PR is currently `CONFLICTING` with `main`; its declared dependency #9431 is also conflicting, so the final merge result has not been validated against current main. Because this changes the AGC driver, CONTRIBUTING requires the same focused tests on `main` and the change with `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, `ANYPS5_NO_SHADER_CACHE=1`, and `ANYPS5_REQUIRE_VULKAN=1`, using `ctest -V` on the same machine/GPU, plus confirmation that the requested validation layer loaded, no new `VUID-` errors were introduced, and the GPU details on the checklist. The report describes `agc_driver_graphics` and title play on Windows/NVIDIA, but does not provide that required paired validation-layer comparison. Please attach both logs or summaries and update the GPU checklist, then rebase/coordinate with #9431 and rerun checks on the current merge commit. The existing hosted checks shown here are conventions/intake/labels only; no product build is reported.
ntamas94 commented 2026-10-22 10:13:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ntamas94 on 2026-10-22T10:13:55Z.


Thanks. The conflict is #9431's (Graphics/src/State.cpp); I will rebase once Get-fix has rebased #9431 and rerun the checks. Paired validation-layer run, now in the description: main (100% tests passed, main build 7e2ba73e4) and this branch (100% tests passed) with VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ANYPS5_NO_SHADER_CACHE=1, ANYPS5_REQUIRE_VULKAN=1 and VK_LOADER_DEBUG=warn,error, ctest -V, on the NVIDIA GeForce RTX 2080, driver 617.14, Windows 11 (10.0.26200), Vulkan SDK 1.4.363.0: the main log carries the loader's adding layers "VK_LAYER_KHRONOS_validation" line 78 times, this branch's log 0 times (see below), and neither reports was not found but was requested by env var VK_INSTANCE_LAYERS; VUID- ids on main: 0, on this branch: 0, new on this branch: 0. agc_driver_graphics decodes state on the CPU and opens no Vulkan instance, so the layer has nothing to check in this branch's focused test; the main side covers the GPU tests of the stack.

On fogydes's first point: the slice rule is now its own debt entry, "PS4 color array slices", which also says that CB_COLOR_VIEW bits [12:11] and [31:24] are ignored because shadPS4 defines no fields there and the console's behaviour is not measured. It sits away from the "PS4 render targets" line that #9672 extends, so the two merge in either order.

AI-assisted: yes (Claude Code)

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6338283028 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9675#issuecomment-6338283028). Originally posted by [ntamas94](https://github.com/ntamas94) on 2026-10-22T10:13:55Z. --- Thanks. The conflict is #9431's (`Graphics/src/State.cpp`); I will rebase once Get-fix has rebased #9431 and rerun the checks. Paired validation-layer run, now in the description: `main` (100% tests passed, main build 7e2ba73e4) and this branch (100% tests passed) with `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, `ANYPS5_NO_SHADER_CACHE=1`, `ANYPS5_REQUIRE_VULKAN=1` and `VK_LOADER_DEBUG=warn,error`, `ctest -V`, on the NVIDIA GeForce RTX 2080, driver 617.14, Windows 11 (10.0.26200), Vulkan SDK 1.4.363.0: the `main` log carries the loader's `adding layers "VK_LAYER_KHRONOS_validation"` line 78 times, this branch's log 0 times (see below), and neither reports `was not found but was requested by env var VK_INSTANCE_LAYERS`; `VUID-` ids on `main`: 0, on this branch: 0, new on this branch: 0. `agc_driver_graphics` decodes state on the CPU and opens no Vulkan instance, so the layer has nothing to check in this branch's focused test; the `main` side covers the GPU tests of the stack. On fogydes's first point: the slice rule is now its own debt entry, "PS4 color array slices", which also says that `CB_COLOR_VIEW` bits [12:11] and [31:24] are ignored because shadPS4 defines no fields there and the console's behaviour is not measured. It sits away from the "PS4 render targets" line that #9672 extends, so the two merge in either order. AI-assisted: yes (Claude Code) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
ntamas94 commented 2026-10-22 13:21:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ntamas94 on 2026-10-22T13:21:58Z.


Rebased onto #9431's new head (26d651d3e, on main 7e2ba73e4); the commit applied without conflicts, with the "PS4 color array slices" debt entry as posted. agc_driver_graphics passes. Paired validation-layer run, now in the description: main (100% tests passed, main build 7e2ba73e4) and this branch (100% tests passed) with VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ANYPS5_NO_SHADER_CACHE=1, ANYPS5_REQUIRE_VULKAN=1 and VK_LOADER_DEBUG=warn,error, ctest -V, on the NVIDIA GeForce RTX 2080, driver 617.14, Windows 11 (10.0.26200), Vulkan SDK 1.4.363.0: the main log carries the loader's adding layers "VK_LAYER_KHRONOS_validation" line 78 times, this branch's log 0 times (see below) and neither reports was not found but was requested by env var VK_INSTANCE_LAYERS; VUID- ids on main: 0, on this branch: 0, new on this branch: 0. agc_driver_graphics decodes state on the CPU and opens no Vulkan instance, so the layer has nothing to check in this branch's focused test; the main side covers the GPU tests of the stack.

AI-assisted: yes (Claude Code)

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6341816017 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9675#issuecomment-6341816017). Originally posted by [ntamas94](https://github.com/ntamas94) on 2026-10-22T13:21:58Z. --- Rebased onto #9431's new head (`26d651d3e`, on `main` `7e2ba73e4`); the commit applied without conflicts, with the "PS4 color array slices" debt entry as posted. `agc_driver_graphics` passes. Paired validation-layer run, now in the description: `main` (100% tests passed, main build 7e2ba73e4) and this branch (100% tests passed) with `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, `ANYPS5_NO_SHADER_CACHE=1`, `ANYPS5_REQUIRE_VULKAN=1` and `VK_LOADER_DEBUG=warn,error`, `ctest -V`, on the NVIDIA GeForce RTX 2080, driver 617.14, Windows 11 (10.0.26200), Vulkan SDK 1.4.363.0: the `main` log carries the loader's `adding layers "VK_LAYER_KHRONOS_validation"` line 78 times, this branch's log 0 times (see below) and neither reports `was not found but was requested by env var VK_INSTANCE_LAYERS`; `VUID-` ids on `main`: 0, on this branch: 0, new on this branch: 0. `agc_driver_graphics` decodes state on the CPU and opens no Vulkan instance, so the layer has nothing to check in this branch's focused test; the `main` side covers the GPU tests of the stack. AI-assisted: yes (Claude Code) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
XairRrR commented 2026-10-29 04:53:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-10-29T04:53:33Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

The slice-offset change does what it says for the tested 1D-tiled case, but the head conflicts with main, the PR head does not compile libSceAgcDriver, and for the two 2D-tiled modes the slice layout leaves out the per-slice bank rotation that AddrLib applies.

What I ran

  • PR head: f6f04e92a879c92f08c898a6b58623b0c4cf2a9d
  • main: 52c09d567d2fa453494dd720fcf53a98149468e4
  • #9431 head used for the constructed tree: eefa50841267cd0bd5352af17248139445fb0613
  • Arch Linux 7.2.11-zen, GCC 16.2.1, Intel Core i9-14900KF, NVIDIA GeForce RTX 4070 Ti SUPER (driver 615.78.08), Release, Ninja, BUILD_TESTING=ON, in a clean worktree.
git fetch origin main pull/9675/head:refs/review/9675
git checkout --detach origin/main
git merge --no-ff --no-edit refs/review/9675          # conflicts, aborted
git checkout --detach refs/review/9675
git diff --check origin/main...refs/review/9675
python3 tools/check_conventions.py --base origin/main
cmake --build build -j10 --target agc_driver_graphics_tests
cmake --build build -j10 --target libs agc_driver_graphics_tests   # fails on the PR head

# constructed tree: main + #9431's current head + this PR's own commit
git checkout --detach origin/main
git merge --no-ff --no-edit <#9431 head eefa508412>
git cherry-pick --no-commit f6f04e92a8                # include-line conflict in tests/Graphics.cpp, kept both lines
cmake --build build -j10 --target libs agc_driver_graphics_tests
VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1 \
  VK_LOADER_DEBUG=error,warn,layer ctest --test-dir build -R '^agc_driver_graphics$' -V --output-on-failure

# negative control: State.cpp from main + #9431, rebuild, rerun
# same focused run on plain main for the paired comparison

Results

Check Result
Merge into main Conflicts in Graphics/include/GuestTextureResource.hpp, Graphics/include/State.hpp, Graphics/src/DepthSurface.cpp, Graphics/src/State.cpp, tests/Graphics.cpp
This PR's commit applied to #9431's current head (eefa508412) Conflicts in tests/Graphics.cpp (include line), trivial
git diff --check Clean
check_conventions.py --base origin/main All conventions checks passed
Build agc_driver_graphics_tests on the PR head OK
Build libs on the PR head Fails: PipelineJournal.cpp static_asserts
Build libs + agc_driver_graphics_tests on the constructed tree OK
agc_driver_graphics on the constructed tree, validation env Passed, 5.09 s
agc_driver_graphics on main, validation env Passed, 4.26 s
VUID- lines (constructed tree / main) 0 / 0
was not found but was requested by env var VK_INSTANCE_LAYERS 0 / 0
VK_LAYER_KHRONOS_validation loader lines 0 / 0: this test creates no Vulkan instance, as the description says
PR head libs build failure
core/libs/prx/libSceAgcDriver/Graphics/src/PipelineJournal.cpp:38:29: error: static assertion failed: State changed: update CanonicalPipelineState and the recipe codec
   38 | static_assert(sizeof(State) == 784, "State changed: update CanonicalPipelineState and the recipe codec");
  • the comparison reduces to '(792 == 784)'
core/libs/prx/libSceAgcDriver/Graphics/src/PipelineJournal.cpp:39:36: error: static assertion failed: ShaderStages changed: update the recipe codec
  • the comparison reduces to '(116 == 112)'

When only the test target is built against the older prx, the test cannot run either:

agc_driver_graphics_tests: symbol lookup error: .../libSceAgcDriver.prx: undefined symbol: GuestAllocationsAcquireMapped_nid_no_patch
Include conflict against #9431's current head
<<<<<<< #9431 eefa508412
#include <limits>
=======
#include "RdnaDecoder/RdnaInstructionDecoder.hpp"
>>>>>>> f6f04e92a8

Negative control

On the constructed tree I restored only Graphics/src/State.cpp to its main + #9431 version, rebuilt libs and agc_driver_graphics_tests, and reran the test. It fails as expected:

1/1 Test #948: agc_driver_graphics ..............***Failed    0.27 sec
AGC graphics: GCN color array slices are not implemented

I then put the PR's State.cpp back.

Findings

Blocking

  1. Conflicts with main, including one of its own. This confirms MarcZX10's point with current data. The merge into main conflicts in five files. Four of them come from the base stack. tests/Graphics.cpp comes from this PR's own commit, and it still conflicts when the commit is applied to #9431's current head eefa508412: the new #include "RdnaDecoder/RdnaInstructionDecoder.hpp" sits where #9431 now adds #include <limits>. An earlier comment said this branch adds no conflict of its own, but that no longer holds. Fix: rebase onto #9431's current head and keep both includes.

  2. The PR head does not compile libSceAgcDriver. The sizeof(State) and sizeof(ShaderStages) guards in PipelineJournal.cpp:38-39 fail (792 vs 784, 116 vs 112). #9431 fixed this in its newer head (eefa508412, "update the pipeline journal layout guards for ShaderStages::legacyVertex"), but this branch is still based on the older 26d651d3e0. The same rebase fixes it. Please rerun the focused test on the rebased head.

Non-blocking

  1. 2D-tiled slices leave out the per-slice bank rotation. State.cpp:1785 moves the base by slice * layout.Bytes() and then lays the slice out like slice 0, for all five accepted tile modes, including GcnDisplay2D (index 10) and GcnThin2D (index 14) at State.cpp:1778-1779. AddrLib uses the same slice offset (sliceBytes * slice), but for ADDR_TM_2D_TILED_THIN1 it also XORs the bank with ((numBanks / 2) - 1) * slice (egbaddrlib.cpp ComputeBankFromCoord, lines 3001-3050). The stack's GCN tiler takes the tile-split rotation from that same function (TextureTiling.cpp:549-554) but not the slice rotation. Inside AnyPS5 the layout is self-consistent, because the texture path also places layer s at s * tiledSize without rotation. On the console, though, slice s >= 1 of a 2D-tiled target has its banks permuted. Data that reaches that memory any other way (pre-tiled assets, CPU or compute access by address) would not match. The new test only covers tile mode 5 (GcnThin1D, tests/Graphics.cpp:3092), which has no rotation. Suggested fix, either of:

    • throw for slice != 0 on the 2D modes until the rotation is modelled; or
    • add a sentence to the "PS4 color array slices" debt entry (libSceAgcDriver.md:93) saying that slices of 2D-tiled targets are laid out without AddrLib's per-slice bank rotation.

    Covering a 2D mode with slice != 0 in the test would also help.

  2. On the paired validation run: I agree with the description that agc_driver_graphics opens no Vulkan instance. Both my runs show 0 loader lines for the layer, so this comparison carries no validation-layer evidence for this change. Since the change is CPU-side decoding only, I do not consider that blocking.

Not verified

  • The PR head merged with main: it conflicts, so I tested this PR's commit on main + #9431's current head instead, resolving the include conflict myself.
  • Windows; any GPU test that renders into a GCN color slice (none exists); Gang Beasts or any other title.
  • How the render-target cache handles overlap when a whole-array texture at the base address aliases a slice target at base + s * sliceBytes.

To get this to a good state

  1. Rebase onto #9431's current head. Keep both #include <limits> and #include "RdnaDecoder/RdnaInstructionDecoder.hpp" in tests/Graphics.cpp.
  2. Confirm that libs builds and that agc_driver_graphics passes on the rebased head.
  3. Either throw for slice != 0 on GcnDisplay2D/GcnThin2D, or document the missing per-slice bank rotation in the debt entry.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5693021919 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9675#pullrequestreview-5693021919). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-10-29T04:53:33Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested The slice-offset change does what it says for the tested 1D-tiled case, but the head conflicts with `main`, the PR head does not compile `libSceAgcDriver`, and for the two 2D-tiled modes the slice layout leaves out the per-slice bank rotation that AddrLib applies. ## What I ran - PR head: `f6f04e92a879c92f08c898a6b58623b0c4cf2a9d` - `main`: `52c09d567d2fa453494dd720fcf53a98149468e4` - #9431 head used for the constructed tree: `eefa50841267cd0bd5352af17248139445fb0613` - Arch Linux 7.2.11-zen, GCC 16.2.1, Intel Core i9-14900KF, NVIDIA GeForce RTX 4070 Ti SUPER (driver 615.78.08), Release, Ninja, `BUILD_TESTING=ON`, in a clean worktree. ```sh git fetch origin main pull/9675/head:refs/review/9675 git checkout --detach origin/main git merge --no-ff --no-edit refs/review/9675 # conflicts, aborted git checkout --detach refs/review/9675 git diff --check origin/main...refs/review/9675 python3 tools/check_conventions.py --base origin/main cmake --build build -j10 --target agc_driver_graphics_tests cmake --build build -j10 --target libs agc_driver_graphics_tests # fails on the PR head # constructed tree: main + #9431's current head + this PR's own commit git checkout --detach origin/main git merge --no-ff --no-edit <#9431 head eefa508412> git cherry-pick --no-commit f6f04e92a8 # include-line conflict in tests/Graphics.cpp, kept both lines cmake --build build -j10 --target libs agc_driver_graphics_tests VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1 \ VK_LOADER_DEBUG=error,warn,layer ctest --test-dir build -R '^agc_driver_graphics$' -V --output-on-failure # negative control: State.cpp from main + #9431, rebuild, rerun # same focused run on plain main for the paired comparison ``` ## Results | Check | Result | |---|---| | Merge into `main` | **Conflicts** in `Graphics/include/GuestTextureResource.hpp`, `Graphics/include/State.hpp`, `Graphics/src/DepthSurface.cpp`, `Graphics/src/State.cpp`, `tests/Graphics.cpp` | | This PR's commit applied to #9431's current head (`eefa508412`) | Conflicts in `tests/Graphics.cpp` (include line), trivial | | `git diff --check` | Clean | | `check_conventions.py --base origin/main` | All conventions checks passed | | Build `agc_driver_graphics_tests` on the PR head | OK | | Build `libs` on the PR head | **Fails**: `PipelineJournal.cpp` static_asserts | | Build `libs` + `agc_driver_graphics_tests` on the constructed tree | OK | | `agc_driver_graphics` on the constructed tree, validation env | Passed, 5.09 s | | `agc_driver_graphics` on `main`, validation env | Passed, 4.26 s | | `VUID-` lines (constructed tree / `main`) | 0 / 0 | | `was not found but was requested by env var VK_INSTANCE_LAYERS` | 0 / 0 | | `VK_LAYER_KHRONOS_validation` loader lines | 0 / 0: this test creates no Vulkan instance, as the description says | <details><summary>PR head <code>libs</code> build failure</summary> ``` core/libs/prx/libSceAgcDriver/Graphics/src/PipelineJournal.cpp:38:29: error: static assertion failed: State changed: update CanonicalPipelineState and the recipe codec 38 | static_assert(sizeof(State) == 784, "State changed: update CanonicalPipelineState and the recipe codec"); • the comparison reduces to '(792 == 784)' core/libs/prx/libSceAgcDriver/Graphics/src/PipelineJournal.cpp:39:36: error: static assertion failed: ShaderStages changed: update the recipe codec • the comparison reduces to '(116 == 112)' ``` When only the test target is built against the older prx, the test cannot run either: ``` agc_driver_graphics_tests: symbol lookup error: .../libSceAgcDriver.prx: undefined symbol: GuestAllocationsAcquireMapped_nid_no_patch ``` </details> <details><summary>Include conflict against #9431's current head</summary> ``` <<<<<<< #9431 eefa508412 #include <limits> ======= #include "RdnaDecoder/RdnaInstructionDecoder.hpp" >>>>>>> f6f04e92a8 ``` </details> ## Negative control On the constructed tree I restored only `Graphics/src/State.cpp` to its main + #9431 version, rebuilt `libs` and `agc_driver_graphics_tests`, and reran the test. It fails as expected: ``` 1/1 Test #948: agc_driver_graphics ..............***Failed 0.27 sec AGC graphics: GCN color array slices are not implemented ``` I then put the PR's `State.cpp` back. ## Findings ### Blocking 1. **Conflicts with `main`, including one of its own.** This confirms MarcZX10's point with current data. The merge into `main` conflicts in five files. Four of them come from the base stack. `tests/Graphics.cpp` comes from this PR's own commit, and it still conflicts when the commit is applied to #9431's current head `eefa508412`: the new `#include "RdnaDecoder/RdnaInstructionDecoder.hpp"` sits where #9431 now adds `#include <limits>`. An earlier comment said this branch adds no conflict of its own, but that no longer holds. Fix: rebase onto #9431's current head and keep both includes. 2. **The PR head does not compile `libSceAgcDriver`.** The `sizeof(State)` and `sizeof(ShaderStages)` guards in [`PipelineJournal.cpp:38-39`](https://github.com/boykopovar/AnyPS5/blob/f6f04e92a879c92f08c898a6b58623b0c4cf2a9d/core/libs/prx/libSceAgcDriver/Graphics/src/PipelineJournal.cpp#L38-L39) fail (792 vs 784, 116 vs 112). #9431 fixed this in its newer head (`eefa508412`, "update the pipeline journal layout guards for ShaderStages::legacyVertex"), but this branch is still based on the older `26d651d3e0`. The same rebase fixes it. Please rerun the focused test on the rebased head. ### Non-blocking 1. **2D-tiled slices leave out the per-slice bank rotation.** [`State.cpp:1785`](https://github.com/boykopovar/AnyPS5/blob/f6f04e92a879c92f08c898a6b58623b0c4cf2a9d/core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp#L1785) moves the base by `slice * layout.Bytes()` and then lays the slice out like slice 0, for all five accepted tile modes, including `GcnDisplay2D` (index 10) and `GcnThin2D` (index 14) at [`State.cpp:1778-1779`](https://github.com/boykopovar/AnyPS5/blob/f6f04e92a879c92f08c898a6b58623b0c4cf2a9d/core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp#L1778-L1779). AddrLib uses the same slice offset (`sliceBytes * slice`), but for `ADDR_TM_2D_TILED_THIN1` it also XORs the bank with `((numBanks / 2) - 1) * slice` ([egbaddrlib.cpp `ComputeBankFromCoord`, lines 3001-3050](https://gitlab.freedesktop.org/mesa/mesa/-/blob/mesa-24.0.0/src/amd/addrlib/src/r800/egbaddrlib.cpp#L3001-3050)). The stack's GCN tiler takes the tile-split rotation from that same function ([`TextureTiling.cpp:549-554`](https://github.com/boykopovar/AnyPS5/blob/f6f04e92a879c92f08c898a6b58623b0c4cf2a9d/core/libs/prx/libSceAgcDriver/Graphics/src/TextureTiling.cpp#L549-L554)) but not the slice rotation. Inside AnyPS5 the layout is self-consistent, because the texture path also places layer `s` at `s * tiledSize` without rotation. On the console, though, slice `s >= 1` of a 2D-tiled target has its banks permuted. Data that reaches that memory any other way (pre-tiled assets, CPU or compute access by address) would not match. The new test only covers tile mode 5 (`GcnThin1D`, [`tests/Graphics.cpp:3092`](https://github.com/boykopovar/AnyPS5/blob/f6f04e92a879c92f08c898a6b58623b0c4cf2a9d/core/libs/prx/libSceAgcDriver/tests/Graphics.cpp#L3092)), which has no rotation. Suggested fix, either of: - throw for `slice != 0` on the 2D modes until the rotation is modelled; or - add a sentence to the "PS4 color array slices" debt entry ([`libSceAgcDriver.md:93`](https://github.com/boykopovar/AnyPS5/blob/f6f04e92a879c92f08c898a6b58623b0c4cf2a9d/docs/dev/debt/libSceAgcDriver.md#L93-L93)) saying that slices of 2D-tiled targets are laid out without AddrLib's per-slice bank rotation. Covering a 2D mode with `slice != 0` in the test would also help. 2. On the paired validation run: I agree with the description that `agc_driver_graphics` opens no Vulkan instance. Both my runs show 0 loader lines for the layer, so this comparison carries no validation-layer evidence for this change. Since the change is CPU-side decoding only, I do not consider that blocking. ## Not verified - The PR head merged with `main`: it conflicts, so I tested this PR's commit on main + #9431's current head instead, resolving the include conflict myself. - Windows; any GPU test that renders into a GCN color slice (none exists); Gang Beasts or any other title. - How the render-target cache handles overlap when a whole-array texture at the base address aliases a slice target at `base + s * sliceBytes`. ## To get this to a good state 1. Rebase onto #9431's current head. Keep both `#include <limits>` and `#include "RdnaDecoder/RdnaInstructionDecoder.hpp"` in `tests/Graphics.cpp`. 2. Confirm that `libs` builds and that `agc_driver_graphics` passes on the rebased head. 3. Either throw for `slice != 0` on `GcnDisplay2D`/`GcnThin2D`, or document the missing per-slice bank rotation in the debt entry.
XairRrR commented 2026-10-29 10:17:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-10-29T10:17:17Z.

Review: APPROVED


Re-checked — approved

Since my last review, the branch has current main merged in, the debt entry now records the missing 2D-tiled bank rotation, and the test no longer pins a several-slice view as throwing. The PR now merges cleanly, libs builds, the focused test passes, and the negative control fails as it should.

What changed since my last review

  • 897e753b4b and b2a01f21fb merge main (aaccd0ba39, then f7e84c4cf1) into the branch. #9431 merged on 2026-10-29. The branch's three-dot diff against main is now this PR's three files only: Graphics/src/State.cpp, tests/Graphics.cpp and docs/dev/debt/libSceAgcDriver.md.
  • f19fd8627f removes the several-slices expectFailure line from gcnColorSliceTests, as oneandonlydean asked. It also adds a sentence to the "PS4 color array slices" debt entry about 2D-tiled slices.
  • The author answered each point of my previous review in a comment on 2026-10-29. The description now gives f7e84c4cf1 as the main it was tested against.

What I ran

  • PR head: b2a01f21fb731e86329764715ab7fb097609d383
  • main: f99d7fece316e31878f0195f8bbc2ad2fbe635e4
  • Merge commit tested: b6798281244ffe8589e325626f191c93209cedd2
  • Arch Linux 7.2.11-zen, GCC 16.2.1, Intel Core i9-14900KF, NVIDIA GeForce RTX 4070 Ti SUPER (driver 615.78.08), Release, Ninja, BUILD_TESTING=ON, in a clean worktree.
git fetch origin main pull/9675/head:refs/review/9675
git checkout --detach origin/main
git merge --no-ff --no-edit refs/review/9675                 # clean
git diff --check origin/main...refs/review/9675
python3 tools/check_conventions.py --base origin/main
cmake --build build -j10 --target libs agc_driver_graphics_tests
VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1 \
  VK_LOADER_DEBUG=error,warn,layer ctest --test-dir build -R '^agc_driver_graphics$' -V --output-on-failure

# negative control
git checkout origin/main -- core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
cmake --build build -j10 --target libs agc_driver_graphics_tests
ctest --test-dir build -R '^agc_driver_graphics$' --output-on-failure
git checkout HEAD -- core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp

# paired run on main, then back to the merge commit and rebuild
git checkout --detach origin/main
cmake --build build -j10 --target libs agc_driver_graphics_tests
VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1 \
  VK_LOADER_DEBUG=error,warn,layer ctest --test-dir build -R '^agc_driver_graphics$' -V --output-on-failure
Check Result
Merge into main Clean
git diff --check Clean
check_conventions.py --base origin/main All conventions checks passed
Build libs + agc_driver_graphics_tests on the merge commit OK
agc_driver_graphics, validation env, merge commit Passed, 5.00 s
agc_driver_graphics, validation env, main Passed, 5.02 s
VUID- lines (merge / main) 0 / 0
was not found but was requested by env var VK_INSTANCE_LAYERS 0 / 0
VK_LAYER_KHRONOS_validation loader lines 0 / 0: this test opens no Vulkan instance
Negative control (State.cpp from main) Fails, see below
Negative control output
1/1 Test #950: agc_driver_graphics ..............***Failed    0.28 sec
AGC graphics: GCN color array slices are not implemented

Previous findings

  • Blocking 1, conflicts with main: Resolved. The merge into main f99d7fece3 is clean, and the three-dot diff contains only this PR's three files. The include line in tests/Graphics.cpp keeps both <limits> and RdnaDecoder/RdnaInstructionDecoder.hpp; the second is needed for ShaderRecompiler::SetGcnGuestShaders.
  • Blocking 2, libSceAgcDriver did not compile (PipelineJournal.cpp guards): Resolved. libs builds on the merge commit.
  • Non-blocking 1, no per-slice bank rotation for 2D-tiled slices: Resolved through the debt-entry option. libSceAgcDriver.md:120 now says that GcnDisplay2D and GcnThin2D slices are laid out like slice 0, without AddrLib's rotation, and says what that affects. I agree with the author's reasons for not throwing on 2D modes and for not adding a test that would pin the unrotated offset.
  • Non-blocking 2, the paired validation run carries no layer evidence: No longer applies. The author agrees, and my rerun shows the same picture: 0 loader lines and 0 VUID- on both sides. The change decodes registers on the CPU only.

New findings

Blocking

None.

Non-blocking

None. The new commit only removes the expectFailure line. The slice 0 and slice 2 cases at tests/Graphics.cpp:3361-3365 still check the address computed at State.cpp:2124. A view of several slices still throws at State.cpp:2107, and the debt entry says so.

Not verified

  • Windows, and the author's three Windows runs and paired validation run (author-reported).
  • Any GPU test that renders into a GCN color slice, since none exists. Gang Beasts and other titles were not run.
  • 2D-tiled slices with slice != 0, which no test covers. This gap is documented in the debt entry.
  • Whether the render-target cache handles a whole-array texture at the base address that overlaps a slice target at base + s * sliceBytes.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5696096195 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9675#pullrequestreview-5696096195). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-10-29T10:17:17Z. **Review:** APPROVED --- # Re-checked — approved Since my last review, the branch has current `main` merged in, the debt entry now records the missing 2D-tiled bank rotation, and the test no longer pins a several-slice view as throwing. The PR now merges cleanly, `libs` builds, the focused test passes, and the negative control fails as it should. ## What changed since my last review - `897e753b4b` and `b2a01f21fb` merge `main` (`aaccd0ba39`, then `f7e84c4cf1`) into the branch. #9431 merged on 2026-10-29. The branch's three-dot diff against `main` is now this PR's three files only: `Graphics/src/State.cpp`, `tests/Graphics.cpp` and `docs/dev/debt/libSceAgcDriver.md`. - `f19fd8627f` removes the several-slices `expectFailure` line from `gcnColorSliceTests`, as oneandonlydean asked. It also adds a sentence to the "PS4 color array slices" debt entry about 2D-tiled slices. - The author answered each point of my previous review in a comment on 2026-10-29. The description now gives `f7e84c4cf1` as the `main` it was tested against. ## What I ran - PR head: `b2a01f21fb731e86329764715ab7fb097609d383` - `main`: `f99d7fece316e31878f0195f8bbc2ad2fbe635e4` - Merge commit tested: `b6798281244ffe8589e325626f191c93209cedd2` - Arch Linux 7.2.11-zen, GCC 16.2.1, Intel Core i9-14900KF, NVIDIA GeForce RTX 4070 Ti SUPER (driver 615.78.08), Release, Ninja, `BUILD_TESTING=ON`, in a clean worktree. ```sh git fetch origin main pull/9675/head:refs/review/9675 git checkout --detach origin/main git merge --no-ff --no-edit refs/review/9675 # clean git diff --check origin/main...refs/review/9675 python3 tools/check_conventions.py --base origin/main cmake --build build -j10 --target libs agc_driver_graphics_tests VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1 \ VK_LOADER_DEBUG=error,warn,layer ctest --test-dir build -R '^agc_driver_graphics$' -V --output-on-failure # negative control git checkout origin/main -- core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp cmake --build build -j10 --target libs agc_driver_graphics_tests ctest --test-dir build -R '^agc_driver_graphics$' --output-on-failure git checkout HEAD -- core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp # paired run on main, then back to the merge commit and rebuild git checkout --detach origin/main cmake --build build -j10 --target libs agc_driver_graphics_tests VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1 \ VK_LOADER_DEBUG=error,warn,layer ctest --test-dir build -R '^agc_driver_graphics$' -V --output-on-failure ``` | Check | Result | |---|---| | Merge into `main` | Clean | | `git diff --check` | Clean | | `check_conventions.py --base origin/main` | All conventions checks passed | | Build `libs` + `agc_driver_graphics_tests` on the merge commit | OK | | `agc_driver_graphics`, validation env, merge commit | Passed, 5.00 s | | `agc_driver_graphics`, validation env, `main` | Passed, 5.02 s | | `VUID-` lines (merge / `main`) | 0 / 0 | | `was not found but was requested by env var VK_INSTANCE_LAYERS` | 0 / 0 | | `VK_LAYER_KHRONOS_validation` loader lines | 0 / 0: this test opens no Vulkan instance | | Negative control (`State.cpp` from `main`) | Fails, see below | <details><summary>Negative control output</summary> ``` 1/1 Test #950: agc_driver_graphics ..............***Failed 0.28 sec AGC graphics: GCN color array slices are not implemented ``` </details> ## Previous findings - **Blocking 1, conflicts with `main`:** Resolved. The merge into `main` `f99d7fece3` is clean, and the three-dot diff contains only this PR's three files. The include line in `tests/Graphics.cpp` keeps both `<limits>` and `RdnaDecoder/RdnaInstructionDecoder.hpp`; the second is needed for `ShaderRecompiler::SetGcnGuestShaders`. - **Blocking 2, `libSceAgcDriver` did not compile (`PipelineJournal.cpp` guards):** Resolved. `libs` builds on the merge commit. - **Non-blocking 1, no per-slice bank rotation for 2D-tiled slices:** Resolved through the debt-entry option. [`libSceAgcDriver.md:120`](https://github.com/boykopovar/AnyPS5/blob/b2a01f21fb731e86329764715ab7fb097609d383/docs/dev/debt/libSceAgcDriver.md#L120-L120) now says that `GcnDisplay2D` and `GcnThin2D` slices are laid out like slice 0, without AddrLib's rotation, and says what that affects. I agree with the author's reasons for not throwing on 2D modes and for not adding a test that would pin the unrotated offset. - **Non-blocking 2, the paired validation run carries no layer evidence:** No longer applies. The author agrees, and my rerun shows the same picture: 0 loader lines and 0 `VUID-` on both sides. The change decodes registers on the CPU only. ## New findings ### Blocking None. ### Non-blocking None. The new commit only removes the `expectFailure` line. The slice 0 and slice 2 cases at [`tests/Graphics.cpp:3361-3365`](https://github.com/boykopovar/AnyPS5/blob/b2a01f21fb731e86329764715ab7fb097609d383/core/libs/prx/libSceAgcDriver/tests/Graphics.cpp#L3361-L3365) still check the address computed at [`State.cpp:2124`](https://github.com/boykopovar/AnyPS5/blob/b2a01f21fb731e86329764715ab7fb097609d383/core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp#L2124-L2124). A view of several slices still throws at [`State.cpp:2107`](https://github.com/boykopovar/AnyPS5/blob/b2a01f21fb731e86329764715ab7fb097609d383/core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp#L2107-L2107), and the debt entry says so. ## Not verified - Windows, and the author's three Windows runs and paired validation run (author-reported). - Any GPU test that renders into a GCN color slice, since none exists. Gang Beasts and other titles were not run. - 2D-tiled slices with `slice != 0`, which no test covers. This gap is documented in the debt entry. - Whether the render-target cache handles a whole-array texture at the base address that overlaps a slice target at `base + s * sliceBytes`.
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!9675
No description provided.