feat(agc): draw PS4 multisampled color targets as host-resident targets #9892

Merged
savvaniss merged 10 commits from upstream-pr/9892 into main 2026-11-04 03:59:02 +00:00
savvaniss commented 2026-10-22 20:49:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by savvaniss on 2026-10-22T20:49:28Z.


What

Get-fix/AnyPS5#6, moved upstream. #9431 has merged, so the diff against main is now only this pull request's own files. oneandonlydean merged main into the branch and fixed it on 29 Oct (head 5c8fb7de19), and removed the two refusal assertions (EQAA and single-sample fast clear) from tests/GcnColorTarget.cpp that their review asked to drop.

On #9431 a PS4 color target with more than one sample threw "multisampled GCN color targets are not implemented". Boggle (CUSA03312) renders its 3D scenes into a 4x target, then resolves it with a CB resolve, after an FMASK decompress.

  • DecodeGcnColorBuffer now decodes 2x, 4x and 8x targets (CB_COLOR_ATTRIB NUM_SAMPLES) when NUM_FRAGMENTS matches. These go to the host-resident multisampled targets that the AGC path already draws, fast-clears and resolves.
  • With FAST_CLEAR or COMPRESSION set in CB_COLOR_INFO, the target's CMASK is taken from CB_COLOR_CMASK, with CMASK_SLICE (tile max + 1) times 128 bytes, so a CMASK fast clear reaches the host target as on the AGC path.
  • EQAA (fewer fragments than samples), more than 8 samples and a single-sample fast clear still throw.
  • A GCN target's extent comes from its pitch and slice, so tile padding enlarges it: a 1920x1080 target is 1920x1088. A CB metadata pass whose viewport and scissor cover only the visible rows refused it as "over part of a color target". The covered extent now counts when the target's tile mode pads it to the target's size. A pass over fewer rows than that is still refused.

The debt file gains an entry for PS4 multisampled color targets.

main's drawCovers now holds the CB metadata pass's viewport and scissor test. The padded-extent rule above is an optional GCN target argument of that helper.

Tested

Windows 11 Pro 26300, WinLibs GCC 15.2.0, Release, AMD Radeon RX 9070 XT (driver 32.0.31041.1004), ANYPS5_GPU=AMD.

Merge of main 828ac0b2ae, 31 Oct. Head 9110e4e17a. The only conflict was in docs/dev/debt/libSceAgcDriver.md: both sides kept. agc_gcn_color_target, agc_driver_graphics and agc_driver_gcn_detile pass, 3 of 3 on the RX 9070 XT, no VUID- line. Not rerun: the other tests, Linux, games.

Merge of main cae3edaf11, 1 Nov. Head 83a0d8ea00. The only conflict was libSceAgcDriver/CMakeLists.txt: main moved the AGC test registrations into tests/cmake, and tools/agc_test_split.py resolve moved agc_gcn_color_target_tests to its own fragment. agc_gcn_color_target, agc_driver_graphics and agc_driver_gcn_detile pass, 3 of 3 on the RX 9070 XT under the validation layer, no VUID- line. Not rerun: the other tests, Linux, games.

Merge of main 1e658521a0, 3 Nov. Head 3c0ee17922 (on fde9ff2d9a). The only conflict was in docs/dev/debt/libSceAgcDriver.md: the merge keeps this branch's PS4 multisampled color target entry and main's render-target entry with its new PS4 depth-target sentence. FormatVersion stays main's 52 (this branch does not change it) and no size guard changes. On the RX 9070 XT (Windows, Release) with ANYPS5_GPU=AMD ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation: agc_gcn_color_target, agc_driver, agc_driver_graphics and agc_shader_memory pass, 4 of 4, every Selected GPU line names the RX 9070 XT and there is no VUID- line. tools/check_conventions.py --base origin/main passes. Not rerun: the rest of the suite, Linux, and the game.

Base. This branch is now 545e2b5b3f, built in two merges:

  1. main 07da04f947 merged into #9431's head 26d651d3e0, as merge/9431-main (4e8243ac48). That merge is offered to Get-fix as Get-fix/AnyPS5#22.
  2. merge/9431-main merged into this branch, with no file conflicts.
  • agc_gcn_color_target (new) covers these cases:

    • it decodes 2x, 4x and 8x targets with and without CMASK;
    • it refuses EQAA, a single-sample fast clear and a fast clear without a CMASK address;
    • it runs an FMASK decompress over a 4x 64x64 target: covering all 64 rows, or the 60 that its 8-row tiles pad to 64, is accepted, and covering fewer is refused.

    With State.cpp as on merge/9431-main, on 545e2b5b3f, it fails with "multisampled GCN color targets are not implemented".

  • Validation layer: run with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1 and VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ctest -V, on main 07da04f947 and on this branch. The tests:

    • agc_gcn_color_target, agc_driver, agc_driver_pm4, agc_driver_graphics, agc_driver_register_key, agc_driver_gcn_detile and agc_driver_pattern_buffer_fill
    • agc_driver_flip and the 16 video_out_flip_* modes
    • agc_gcn_decode, texture_format_lookup, agc_driver_resource_cache_replaced_texture and agc_depth_copy_kept_bytes
    • the 23 agc_driver_depth_* tests

    Results:

    • main: 48 of 49 pass (agc_gcn_color_target and agc_driver_gcn_detile are not on main).
    • This branch: 50 of 51 pass.
    • The one failure is the same on both: agc_driver_depth_plane_partial_store, "repeated lookups of the first layer of an unchanged array proved no refresh", on every run on this machine.
    • Neither log has a VUID- line or was not found but was requested by env var VK_INSTANCE_LAYERS. Every Selected GPU line names the RX 9070 XT.
  • Boggle (CUSA03312), on ps4/limbo-gpu at 93eeee0141 (#6977's head then) with Get-fix/AnyPS5#1, #2 and #5, #8223, #8224 and local stand-ins for sceGnmDrawInitDefaultHardwareState200 and sceGnmUpdate*Shader: its title, menus and a round render through the 4x target, the FMASK decompress and the resolve, at 16 to 60 fps. Not rerun on this base: the title also needs #9432.

  • tools/check_conventions.py --base origin/main passes.

  • tools/pr_overlap.py --branch feat/ps4-gcn-msaa-targets, against main 88f99678bf. This PR's own lines conflict only in docs/dev/debt/libSceAgcDriver.md, on neighbouring entries, with three pull requests:

    The other rows come from #9431. #6977, #9432, #9672 to #9676, #9842 and #10435 share its new files and exports. #6612, #6905, #7085, #7978, #9508, #9899, #9915, #10064, #10348, #10556, #10764 and #11098 conflict in files #9431 changes, and conflict the same way with merge/9431-main alone.

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 (#9431 merged on 29 Oct, and this branch has it from main)
  • Fixes: none
  • Unblocks: CUSA03312 #7198
  • GPUs tested: AMD Radeon RX 9070 XT, driver 32.0.31041.1004, Windows 11 Pro 26300
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4973927393 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9892). Originally posted by [savvaniss](https://github.com/savvaniss) on 2026-10-22T20:49:28Z. --- ### What Get-fix/AnyPS5#6, moved upstream. #9431 has merged, so the diff against `main` is now only this pull request's own files. oneandonlydean merged `main` into the branch and fixed it on 29 Oct (head `5c8fb7de19`), and removed the two refusal assertions (EQAA and single-sample fast clear) from `tests/GcnColorTarget.cpp` that their review asked to drop. On #9431 a PS4 color target with more than one sample threw "multisampled GCN color targets are not implemented". Boggle (CUSA03312) renders its 3D scenes into a 4x target, then resolves it with a CB resolve, after an FMASK decompress. - `DecodeGcnColorBuffer` now decodes 2x, 4x and 8x targets (CB_COLOR_ATTRIB NUM_SAMPLES) when NUM_FRAGMENTS matches. These go to the host-resident multisampled targets that the AGC path already draws, fast-clears and resolves. - With FAST_CLEAR or COMPRESSION set in CB_COLOR_INFO, the target's CMASK is taken from CB_COLOR_CMASK, with CMASK_SLICE (tile max + 1) times 128 bytes, so a CMASK fast clear reaches the host target as on the AGC path. - EQAA (fewer fragments than samples), more than 8 samples and a single-sample fast clear still throw. - A GCN target's extent comes from its pitch and slice, so tile padding enlarges it: a 1920x1080 target is 1920x1088. A CB metadata pass whose viewport and scissor cover only the visible rows refused it as "over part of a color target". The covered extent now counts when the target's tile mode pads it to the target's size. A pass over fewer rows than that is still refused. The debt file gains an entry for PS4 multisampled color targets. `main`'s `drawCovers` now holds the CB metadata pass's viewport and scissor test. The padded-extent rule above is an optional GCN target argument of that helper. ### Tested Windows 11 Pro 26300, WinLibs GCC 15.2.0, Release, AMD Radeon RX 9070 XT (driver 32.0.31041.1004), `ANYPS5_GPU=AMD`. **Merge of `main` `828ac0b2ae`, 31 Oct.** Head `9110e4e17a`. The only conflict was in `docs/dev/debt/libSceAgcDriver.md`: both sides kept. `agc_gcn_color_target`, `agc_driver_graphics` and `agc_driver_gcn_detile` pass, 3 of 3 on the RX 9070 XT, no `VUID-` line. Not rerun: the other tests, Linux, games. **Merge of `main` `cae3edaf11`, 1 Nov.** Head `83a0d8ea00`. The only conflict was `libSceAgcDriver/CMakeLists.txt`: `main` moved the AGC test registrations into `tests/cmake`, and `tools/agc_test_split.py resolve` moved `agc_gcn_color_target_tests` to its own fragment. `agc_gcn_color_target`, `agc_driver_graphics` and `agc_driver_gcn_detile` pass, 3 of 3 on the RX 9070 XT under the validation layer, no `VUID-` line. Not rerun: the other tests, Linux, games. **Merge of `main` `1e658521a0`, 3 Nov.** Head `3c0ee17922` (on `fde9ff2d9a`). The only conflict was in `docs/dev/debt/libSceAgcDriver.md`: the merge keeps this branch's PS4 multisampled color target entry and `main`'s render-target entry with its new PS4 depth-target sentence. `FormatVersion` stays `main`'s 52 (this branch does not change it) and no size guard changes. On the RX 9070 XT (Windows, Release) with `ANYPS5_GPU=AMD ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`: `agc_gcn_color_target`, `agc_driver`, `agc_driver_graphics` and `agc_shader_memory` pass, 4 of 4, every `Selected GPU` line names the RX 9070 XT and there is no `VUID-` line. `tools/check_conventions.py --base origin/main` passes. Not rerun: the rest of the suite, Linux, and the game. **Base.** This branch is now `545e2b5b3f`, built in two merges: 1. `main` `07da04f947` merged into #9431's head `26d651d3e0`, as `merge/9431-main` (`4e8243ac48`). That merge is offered to Get-fix as Get-fix/AnyPS5#22. 2. `merge/9431-main` merged into this branch, with no file conflicts. - `agc_gcn_color_target` (new) covers these cases: - it decodes 2x, 4x and 8x targets with and without CMASK; - it refuses EQAA, a single-sample fast clear and a fast clear without a CMASK address; - it runs an FMASK decompress over a 4x 64x64 target: covering all 64 rows, or the 60 that its 8-row tiles pad to 64, is accepted, and covering fewer is refused. With `State.cpp` as on `merge/9431-main`, on `545e2b5b3f`, it fails with "multisampled GCN color targets are not implemented". - Validation layer: run with `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1` and `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, `ctest -V`, on `main` `07da04f947` and on this branch. The tests: - `agc_gcn_color_target`, `agc_driver`, `agc_driver_pm4`, `agc_driver_graphics`, `agc_driver_register_key`, `agc_driver_gcn_detile` and `agc_driver_pattern_buffer_fill` - `agc_driver_flip` and the 16 `video_out_flip_*` modes - `agc_gcn_decode`, `texture_format_lookup`, `agc_driver_resource_cache_replaced_texture` and `agc_depth_copy_kept_bytes` - the 23 `agc_driver_depth_*` tests Results: - `main`: 48 of 49 pass (`agc_gcn_color_target` and `agc_driver_gcn_detile` are not on `main`). - This branch: 50 of 51 pass. - The one failure is the same on both: `agc_driver_depth_plane_partial_store`, "repeated lookups of the first layer of an unchanged array proved no refresh", on every run on this machine. - Neither log has a `VUID-` line or `was not found but was requested by env var VK_INSTANCE_LAYERS`. Every `Selected GPU` line names the RX 9070 XT. - Boggle (CUSA03312), on `ps4/limbo-gpu` at `93eeee0141` (#6977's head then) with Get-fix/AnyPS5#1, #2 and #5, #8223, #8224 and local stand-ins for `sceGnmDrawInitDefaultHardwareState200` and `sceGnmUpdate*Shader`: its title, menus and a round render through the 4x target, the FMASK decompress and the resolve, at 16 to 60 fps. Not rerun on this base: the title also needs #9432. - `tools/check_conventions.py --base origin/main` passes. - `tools/pr_overlap.py --branch feat/ps4-gcn-msaa-targets`, against `main` `88f99678bf`. This PR's own lines conflict only in `docs/dev/debt/libSceAgcDriver.md`, on neighbouring entries, with three pull requests: - #9891, the surfaces pull request of this stack; - #9672 and #9674. The other rows come from #9431. #6977, #9432, #9672 to #9676, #9842 and #10435 share its new files and exports. #6612, #6905, #7085, #7978, #9508, #9899, #9915, #10064, #10348, #10556, #10764 and #11098 conflict in files #9431 changes, and conflict the same way with `merge/9431-main` alone. ### 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 (#9431 merged on 29 Oct, and this branch has it from `main`) - [x] Fixes: none - [x] Unblocks: CUSA03312 #7198 - [x] GPUs tested: AMD Radeon RX 9070 XT, driver 32.0.31041.1004, Windows 11 Pro 26300 - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
XairRrR commented 2026-10-29 03:37:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-10-29T03:37:11Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

This PR's own change (the GCN multisample decode, the CMASK fields and the padded-extent rule) builds and passes its tests when I apply it to main + #9431's current head. The head 545e2b5b3f itself conflicts with main and does not compile on Linux, because it carries an older #9431.

What I ran

  • Head: 545e2b5b3f83fed05a1a34fb21b1fdfda0c0707a
  • main: b433c40f2f46aa2e59e19806010a839ac8572d64
  • #9431 head used for the reconstruction: eefa50841267cd0bd5352af17248139445fb0613
  • Host: Arch Linux 7.2.11-zen, GCC 16.2.1, Release, Ninja, Intel Core i9-14900KF, NVIDIA GeForce RTX 4070 Ti SUPER (driver 615.78.08)
# 1. merge onto main
git checkout --detach origin/main
git merge --no-ff --no-edit 545e2b5b3f          # conflicts, aborted
git diff --check origin/main...545e2b5b3f
python3 tools/check_conventions.py --base origin/main

# 2. head alone
git checkout --detach 545e2b5b3f
cmake --build build -j10 --target agc_gcn_color_target_tests   # fails

# 3. this PR's own commit on main + #9431's current head
git checkout --detach origin/main
git merge --no-ff --no-edit eefa508412          # clean
git diff 4e8243ac48 545e2b5b3f | git apply --3way   # clean
cmake --build build -j10 --target agc_gcn_color_target_tests agc_driver_register_key_tests \
  agc_driver_recorder_tests agc_driver_pm4_tests agc_driver_graphics_tests agc_driver_gcn_detile_tests \
  agc_driver_multisample_fill_host_only_tests agc_driver_multisample_readback_tests agc_driver_pattern_buffer_fill_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 -j4 -V \
  -R '^(agc_gcn_color_target|agc_driver_graphics|agc_driver_pm4|agc_driver_register_key|agc_tiled_resolve|agc_driver_gcn_detile|agc_driver_multisample_fill_host_only|agc_driver_multisample_readback|agc_driver_pattern_buffer_fill)$'

# 4. the same 8 tests (all but agc_gcn_color_target) on main + #9431 without this PR's commit, same flags

Results

Check Result
Merge onto main b433c40f2f Conflicts in Graphics/include/State.hpp (2 hunks) and Graphics/src/State.cpp (2 hunks)
git diff --check clean
tools/check_conventions.py --base origin/main All conventions checks passed.
Build of the head 545e2b5b3f (Linux, GCC 16) fails: PipelineJournal.cpp:41-42 static asserts
Own commit on main + #9431 eefa508412: build OK
agc_gcn_color_target Passed (0.00 s)
Validation layer, PR (9 tests) 9/9 pass, 0 VUID- lines, no was not found but was requested by env var VK_INSTANCE_LAYERS
Validation layer, base without the PR (8 tests) 8/8 pass, 0 VUID- lines, no was not found but was requested
Layer actually loaded yes: loader log shows VK_LAYER_KHRONOS_validation inserted; every Selected GPU line names the RTX 4070 Ti SUPER
Merge conflicts with main
CONFLIT (contenu) : Conflit de fusion dans core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp
CONFLIT (contenu) : Conflit de fusion dans core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp
  • State.hpp: ShaderStages (main adds hullWaveSize and tessellationGeometry, the branch adds legacyVertex) and DrawKeyRegisters (array size 50 on main, 52 on the branch).
  • State.cpp: decodeDepthPlane's extent (GCN DB_DEPTH_SIZE branch) and DecodeShaderStages (main's tessellation-geometry path against the branch's GCN legacy-vertex block).

All four hunks are #9431 code. #9431's current head resolves them: it merges cleanly with this main.

Build of the head alone
FAILED: core/libs/prx/libSceAgcDriver/CMakeFiles/libSceAgcDriver.dir/Graphics/src/PipelineJournal.cpp.o
PipelineJournal.cpp:41:29: error: static assertion failed: State changed: update CanonicalPipelineState and the recipe codec
  • the comparison reduces to '(848 == 840)'
PipelineJournal.cpp:42:36: error: static assertion failed: ShaderStages changed: update the recipe codec
  • the comparison reduces to '(116 == 112)'
Validation-layer run on the PR
1/9 Test  #717: agc_gcn_color_target ....................   Passed    0.00 sec
2/9 Test  #948: agc_driver_pm4 ..........................   Passed    0.14 sec
3/9 Test  #828: agc_tiled_resolve .......................   Passed    0.28 sec
4/9 Test  #715: agc_driver_register_key .................   Passed    0.84 sec
5/9 Test #1275: agc_driver_multisample_fill_host_only ...   Passed    0.60 sec
6/9 Test #1126: agc_driver_gcn_detile ...................   Passed    0.95 sec
7/9 Test #1276: agc_driver_multisample_readback .........   Passed    0.47 sec
8/9 Test #1303: agc_driver_pattern_buffer_fill ..........   Passed    0.78 sec
9/9 Test  #949: agc_driver_graphics .....................   Passed    4.97 sec
100% tests passed out of 9

Negative control

On the reconstructed tree I restored only Graphics/src/State.cpp to the version on main + #9431, rebuilt agc_gcn_color_target_tests and ran it. It fails, as the description says:

1/1 Test #717: agc_gcn_color_target .............***Failed    0.00 sec
AGC graphics: multisampled GCN color targets are not implemented

I then restored the PR's State.cpp.

Findings

Blocking

  1. Conflicts with main. See the table above. The conflicting hunks are #9431 code that this branch carries from the older merge 4e8243ac48. #9431 has since moved on (eefa508412, rebased onto a newer main), and that head merges cleanly. Fix: rebuild this branch on #9431's current head, or rebase the single commit db05653037 onto it. This PR's own diff (CMakeLists.txt, State.cpp, GcnColorTarget.cpp, the debt entry) applies to main + eefa508412 without conflicts. The checklist line "Based on current main" does not hold for the current head.
  2. The head does not compile on Linux x86-64 with libstdc++. This confirms babyhuey's report, now on the head alone and not only on a merge with a newer main. The guards at PipelineJournal.cpp#L41-L42 expect sizeof(State) == 840 and sizeof(ShaderStages) == 112, but #9431's ShaderStages::legacyVertex (State.hpp#L35) makes them 848 and 116. The guards sit under #if defined(__linux__) && defined(__x86_64__) && defined(__GLIBCXX__), which is why the Windows/MinGW runs in the description and in ycbuzi's comment did not hit them. #9431 fixed this in eefa508412 ("update the pipeline journal layout guards for ShaderStages::legacyVertex"), so moving to that head (finding 1) fixes this too.

Non-blocking

  1. A resolve accepted by the padded-extent rule writes rows the pass does not cover. At State.cpp#L2200-L2202, drawCovers swaps the target's padded extent for the covered extent, so the pass is accepted. The host resolve still uses the whole padded extent: MultisampleTarget.cpp#L1275 sets renderArea = {{0, 0}, source.extent}. For a 1920x1088 target resolved with a 1080-row viewport, the host writes destination rows 1080 to 1087, which the console leaves alone. Those rows are usually tile padding, but a texture with the padded height, or a copy of the whole surface, would see different bytes. Fix: either limit the resolve's render area to the covered extent, or state in the debt entry that the padding rows outside the viewport are resolved (and that an FMASK decompress also expands them).
  2. Requested test change still open. oneandonlydean asked for the two assertions that a valid EQAA target and a single-sample fast clear throw to be removed. They are still in the head: GcnColorTarget.cpp#L100-L101. The head has not changed since that comment.
  3. Debt entry order. CONTRIBUTING.md asks that an entry state the gap first and describe the implemented behaviour only as far as the gap needs. The new entry opens with the implemented behaviour and puts "None of it is checked on a console" last. Suggest leading with the gaps (not checked on a console; FMASK contents not modeled; EQAA, more than 8 samples and single-sample fast clear throw; the padded-extent acceptance) and shortening the description of the implemented behaviour.

I checked the decode against what the AGC multisample path consumes and found nothing wrong. The GCN path fills only cmaskAddress, cmaskBytes and cmaskFastClear. With dccAddress == 0, MultisampledCmask only acts on whole-range uniform fills (NoteFill, SeedCode), so the pipe-interleaved GCN CMASK layout does not matter, and a single slice's (CMASK_SLICE.TILE_MAX + 1) * 128 bytes is covered by the guest's aligned clear. MultisampledColorBytes returns 0 for GCN tile modes, so a memory fill over the color surface is refused, not absorbed. That is a throw, not silent behaviour.

Not verified

  • Behaviour in Boggle (CUSA03312) or any other title; I launched no title.
  • The test on the head itself, which does not build here; all test results above are from main + #9431 eefa508412 + this PR's own diff.
  • The tests on plain main without #9431: agc_gcn_color_target, agc_driver_gcn_detile and agc_driver_pattern_buffer_fill do not exist there. The baseline is main + #9431.
  • The video_out_flip_* tests and the agc_driver_depth_* tests from the description; I ran only the tests closest to this PR's own change.
  • AMD or Intel GPUs; NVIDIA only.

To get this to a good state

  1. Rebuild the branch on #9431's current head (eefa508412 or later) so it merges cleanly with main and builds on Linux (blocking findings 1 and 2).
  2. Settle oneandonlydean's request about GcnColorTarget.cpp lines 100 and 101.
  3. Optionally, limit the resolve's render area to the covered extent or document the extra rows, and reorder the debt entry.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5692552730 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9892#pullrequestreview-5692552730). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-10-29T03:37:11Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested This PR's own change (the GCN multisample decode, the CMASK fields and the padded-extent rule) builds and passes its tests when I apply it to `main` + #9431's current head. The head `545e2b5b3f` itself conflicts with `main` and does not compile on Linux, because it carries an older #9431. ## What I ran - Head: `545e2b5b3f83fed05a1a34fb21b1fdfda0c0707a` - `main`: `b433c40f2f46aa2e59e19806010a839ac8572d64` - #9431 head used for the reconstruction: `eefa50841267cd0bd5352af17248139445fb0613` - Host: Arch Linux 7.2.11-zen, GCC 16.2.1, Release, Ninja, Intel Core i9-14900KF, NVIDIA GeForce RTX 4070 Ti SUPER (driver 615.78.08) ```sh # 1. merge onto main git checkout --detach origin/main git merge --no-ff --no-edit 545e2b5b3f # conflicts, aborted git diff --check origin/main...545e2b5b3f python3 tools/check_conventions.py --base origin/main # 2. head alone git checkout --detach 545e2b5b3f cmake --build build -j10 --target agc_gcn_color_target_tests # fails # 3. this PR's own commit on main + #9431's current head git checkout --detach origin/main git merge --no-ff --no-edit eefa508412 # clean git diff 4e8243ac48 545e2b5b3f | git apply --3way # clean cmake --build build -j10 --target agc_gcn_color_target_tests agc_driver_register_key_tests \ agc_driver_recorder_tests agc_driver_pm4_tests agc_driver_graphics_tests agc_driver_gcn_detile_tests \ agc_driver_multisample_fill_host_only_tests agc_driver_multisample_readback_tests agc_driver_pattern_buffer_fill_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 -j4 -V \ -R '^(agc_gcn_color_target|agc_driver_graphics|agc_driver_pm4|agc_driver_register_key|agc_tiled_resolve|agc_driver_gcn_detile|agc_driver_multisample_fill_host_only|agc_driver_multisample_readback|agc_driver_pattern_buffer_fill)$' # 4. the same 8 tests (all but agc_gcn_color_target) on main + #9431 without this PR's commit, same flags ``` ## Results | Check | Result | |---|---| | Merge onto `main` `b433c40f2f` | **Conflicts** in `Graphics/include/State.hpp` (2 hunks) and `Graphics/src/State.cpp` (2 hunks) | | `git diff --check` | clean | | `tools/check_conventions.py --base origin/main` | `All conventions checks passed.` | | Build of the head `545e2b5b3f` (Linux, GCC 16) | **fails**: `PipelineJournal.cpp:41-42` static asserts | | Own commit on `main` + #9431 `eefa508412`: build | OK | | `agc_gcn_color_target` | Passed (0.00 s) | | Validation layer, PR (9 tests) | 9/9 pass, 0 `VUID-` lines, no `was not found but was requested by env var VK_INSTANCE_LAYERS` | | Validation layer, base without the PR (8 tests) | 8/8 pass, 0 `VUID-` lines, no `was not found but was requested` | | Layer actually loaded | yes: loader log shows `VK_LAYER_KHRONOS_validation` inserted; every `Selected GPU` line names the RTX 4070 Ti SUPER | <details><summary>Merge conflicts with main</summary> ```text CONFLIT (contenu) : Conflit de fusion dans core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp CONFLIT (contenu) : Conflit de fusion dans core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp ``` - `State.hpp`: `ShaderStages` (`main` adds `hullWaveSize` and `tessellationGeometry`, the branch adds `legacyVertex`) and `DrawKeyRegisters` (array size 50 on `main`, 52 on the branch). - `State.cpp`: `decodeDepthPlane`'s extent (GCN `DB_DEPTH_SIZE` branch) and `DecodeShaderStages` (`main`'s tessellation-geometry path against the branch's GCN legacy-vertex block). All four hunks are #9431 code. #9431's current head resolves them: it merges cleanly with this `main`. </details> <details><summary>Build of the head alone</summary> ```text FAILED: core/libs/prx/libSceAgcDriver/CMakeFiles/libSceAgcDriver.dir/Graphics/src/PipelineJournal.cpp.o PipelineJournal.cpp:41:29: error: static assertion failed: State changed: update CanonicalPipelineState and the recipe codec • the comparison reduces to '(848 == 840)' PipelineJournal.cpp:42:36: error: static assertion failed: ShaderStages changed: update the recipe codec • the comparison reduces to '(116 == 112)' ``` </details> <details><summary>Validation-layer run on the PR</summary> ```text 1/9 Test #717: agc_gcn_color_target .................... Passed 0.00 sec 2/9 Test #948: agc_driver_pm4 .......................... Passed 0.14 sec 3/9 Test #828: agc_tiled_resolve ....................... Passed 0.28 sec 4/9 Test #715: agc_driver_register_key ................. Passed 0.84 sec 5/9 Test #1275: agc_driver_multisample_fill_host_only ... Passed 0.60 sec 6/9 Test #1126: agc_driver_gcn_detile ................... Passed 0.95 sec 7/9 Test #1276: agc_driver_multisample_readback ......... Passed 0.47 sec 8/9 Test #1303: agc_driver_pattern_buffer_fill .......... Passed 0.78 sec 9/9 Test #949: agc_driver_graphics ..................... Passed 4.97 sec 100% tests passed out of 9 ``` </details> ## Negative control On the reconstructed tree I restored only `Graphics/src/State.cpp` to the version on `main` + #9431, rebuilt `agc_gcn_color_target_tests` and ran it. It fails, as the description says: ```text 1/1 Test #717: agc_gcn_color_target .............***Failed 0.00 sec AGC graphics: multisampled GCN color targets are not implemented ``` I then restored the PR's `State.cpp`. ## Findings ### Blocking 1. **Conflicts with `main`.** See the table above. The conflicting hunks are #9431 code that this branch carries from the older merge `4e8243ac48`. #9431 has since moved on (`eefa508412`, rebased onto a newer `main`), and that head merges cleanly. Fix: rebuild this branch on #9431's current head, or rebase the single commit `db05653037` onto it. This PR's own diff (`CMakeLists.txt`, `State.cpp`, `GcnColorTarget.cpp`, the debt entry) applies to `main` + `eefa508412` without conflicts. The checklist line "Based on current `main`" does not hold for the current head. 2. **The head does not compile on Linux x86-64 with libstdc++.** This confirms babyhuey's report, now on the head alone and not only on a merge with a newer `main`. The guards at [`PipelineJournal.cpp#L41-L42`](https://github.com/boykopovar/AnyPS5/blob/545e2b5b3f83fed05a1a34fb21b1fdfda0c0707a/core/libs/prx/libSceAgcDriver/Graphics/src/PipelineJournal.cpp#L41-L42) expect `sizeof(State) == 840` and `sizeof(ShaderStages) == 112`, but #9431's `ShaderStages::legacyVertex` ([`State.hpp#L35`](https://github.com/boykopovar/AnyPS5/blob/545e2b5b3f83fed05a1a34fb21b1fdfda0c0707a/core/libs/prx/libSceAgcDriver/Graphics/include/State.hpp#L35)) makes them 848 and 116. The guards sit under `#if defined(__linux__) && defined(__x86_64__) && defined(__GLIBCXX__)`, which is why the Windows/MinGW runs in the description and in ycbuzi's comment did not hit them. #9431 fixed this in `eefa508412` ("update the pipeline journal layout guards for ShaderStages::legacyVertex"), so moving to that head (finding 1) fixes this too. ### Non-blocking 1. **A resolve accepted by the padded-extent rule writes rows the pass does not cover.** At [`State.cpp#L2200-L2202`](https://github.com/boykopovar/AnyPS5/blob/545e2b5b3f83fed05a1a34fb21b1fdfda0c0707a/core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp#L2200-L2202), `drawCovers` swaps the target's padded extent for the covered extent, so the pass is accepted. The host resolve still uses the whole padded extent: [`MultisampleTarget.cpp#L1275`](https://github.com/boykopovar/AnyPS5/blob/545e2b5b3f83fed05a1a34fb21b1fdfda0c0707a/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L1275) sets `renderArea = {{0, 0}, source.extent}`. For a 1920x1088 target resolved with a 1080-row viewport, the host writes destination rows 1080 to 1087, which the console leaves alone. Those rows are usually tile padding, but a texture with the padded height, or a copy of the whole surface, would see different bytes. Fix: either limit the resolve's render area to the covered extent, or state in the [debt entry](https://github.com/boykopovar/AnyPS5/blob/545e2b5b3f83fed05a1a34fb21b1fdfda0c0707a/docs/dev/debt/libSceAgcDriver.md#L72-L72) that the padding rows outside the viewport are resolved (and that an FMASK decompress also expands them). 2. **Requested test change still open.** oneandonlydean asked for the two assertions that a valid EQAA target and a single-sample fast clear throw to be removed. They are still in the head: [`GcnColorTarget.cpp#L100-L101`](https://github.com/boykopovar/AnyPS5/blob/545e2b5b3f83fed05a1a34fb21b1fdfda0c0707a/core/libs/prx/libSceAgcDriver/tests/GcnColorTarget.cpp#L100-L101). The head has not changed since that comment. 3. **Debt entry order.** [CONTRIBUTING.md](https://github.com/boykopovar/AnyPS5/blob/b433c40f2f46aa2e59e19806010a839ac8572d64/CONTRIBUTING.md#L76-L76) asks that an entry state the gap first and describe the implemented behaviour only as far as the gap needs. The [new entry](https://github.com/boykopovar/AnyPS5/blob/545e2b5b3f83fed05a1a34fb21b1fdfda0c0707a/docs/dev/debt/libSceAgcDriver.md#L72-L72) opens with the implemented behaviour and puts "None of it is checked on a console" last. Suggest leading with the gaps (not checked on a console; FMASK contents not modeled; EQAA, more than 8 samples and single-sample fast clear throw; the padded-extent acceptance) and shortening the description of the implemented behaviour. I checked the decode against what the AGC multisample path consumes and found nothing wrong. The GCN path fills only `cmaskAddress`, `cmaskBytes` and `cmaskFastClear`. With `dccAddress == 0`, `MultisampledCmask` only acts on whole-range uniform fills (`NoteFill`, `SeedCode`), so the pipe-interleaved GCN CMASK layout does not matter, and a single slice's `(CMASK_SLICE.TILE_MAX + 1) * 128` bytes is covered by the guest's aligned clear. `MultisampledColorBytes` returns 0 for GCN tile modes, so a memory fill over the color surface is refused, not absorbed. That is a throw, not silent behaviour. ## Not verified - Behaviour in Boggle (CUSA03312) or any other title; I launched no title. - The test on the head itself, which does not build here; all test results above are from `main` + #9431 `eefa508412` + this PR's own diff. - The tests on plain `main` without #9431: `agc_gcn_color_target`, `agc_driver_gcn_detile` and `agc_driver_pattern_buffer_fill` do not exist there. The baseline is `main` + #9431. - The `video_out_flip_*` tests and the `agc_driver_depth_*` tests from the description; I ran only the tests closest to this PR's own change. - AMD or Intel GPUs; NVIDIA only. ## To get this to a good state 1. Rebuild the branch on #9431's current head (`eefa508412` or later) so it merges cleanly with `main` and builds on Linux (blocking findings 1 and 2). 2. Settle oneandonlydean's request about `GcnColorTarget.cpp` lines 100 and 101. 3. Optionally, limit the resolve's render area to the covered extent or document the extra rows, and reorder the debt entry.
XairRrR commented 2026-10-29 12:32:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-10-29T12:32:23Z.

Review: CHANGES_REQUESTED


Re-checked — changes still requested

The new head 6a7d99f3be merges current main (which now contains #9431) and drops the two refusal assertions. It merges cleanly, but it does not compile: the merge declares three GuestTextureResource fields twice. With that duplicate removed locally, the PR's own change builds, its tests pass under the validation layer, and the negative control fails as expected.

What changed since my last review

  • afc92cbb87: main 5454cd2e45 merged into the branch. #9431 has since been merged into main, so the PR diff against main is now only this PR's own five files.
  • 6a7d99f3be: removes the EQAA and single-sample fast-clear refusal assertions from tests/GcnColorTarget.cpp, as oneandonlydean asked.
  • The description and checklist have not changed. The PR's production code (State.cpp, CMakeLists.txt, the debt entry) is the same as in db05653037.

What I ran

  • Head: 6a7d99f3be4a1c21904fa774de11450564ac4032
  • main: 5454cd2e455994d992aca39335ce60507eeda1eb
  • Host: Arch Linux 7.2.11-zen, GCC 16.2.1, Release, Ninja, Intel Core i9-14900KF, NVIDIA GeForce RTX 4070 Ti SUPER (driver 615.78.08)
git checkout --detach origin/main
git merge --no-ff --no-edit 6a7d99f3be           # clean
git diff --check origin/main...6a7d99f3be
python3 tools/check_conventions.py --base origin/main
cmake --build build -j10 --target agc_gcn_color_target_tests   # fails

# local fix only, not committed: delete the duplicate lines 108-110 of GuestTextureResource.hpp
cmake --build build -j10 --target agc_gcn_color_target_tests agc_driver_register_key_tests \
  agc_driver_pm4_tests agc_driver_graphics_tests agc_driver_gcn_detile_tests \
  agc_driver_multisample_fill_host_only_tests agc_driver_multisample_readback_tests agc_driver_pattern_buffer_fill_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 -j4 -V --output-on-failure \
  -R '^(agc_gcn_color_target|agc_driver_graphics|agc_driver_pm4|agc_driver_register_key|agc_tiled_resolve|agc_driver_gcn_detile|agc_driver_multisample_fill_host_only|agc_driver_multisample_readback|agc_driver_pattern_buffer_fill)$'

# negative control: State.cpp from origin/main, rebuild, run agc_gcn_color_target, restore

# baseline: plain origin/main, the same 8 tests other than agc_gcn_color_target, same flags
Check Result
Merge onto main 5454cd2e45 clean
git diff --check clean
tools/check_conventions.py --base origin/main All conventions checks passed.
Build of the merged head fails: GuestTextureResource.hpp:112-114 redeclare gcnPitch, gcnPow2Pad, gcnLinearGeneral
Build with the duplicate removed OK
Validation layer, PR + local fix (9 tests) 9/9 pass, 0 VUID- lines, no was not found but was requested by env var VK_INSTANCE_LAYERS
Validation layer, main (8 tests) 8/8 pass, 0 VUID- lines, no was not found but was requested
GPU used every Selected GPU line names the RTX 4070 Ti SUPER, in both runs
Build of the merged head
GuestTextureResource.hpp:112:30: error: redeclaration of 'uint32_t AgcDriver::Graphics::GuestTextureResource::gcnPitch'
GuestTextureResource.hpp:108:19: note: previous declaration of 'uint32_t AgcDriver::Graphics::GuestTextureResource::gcnPitch'
GuestTextureResource.hpp:113:23: error: redeclaration of 'bool AgcDriver::Graphics::GuestTextureResource::gcnPow2Pad'
GuestTextureResource.hpp:114:29: error: redeclaration of 'bool AgcDriver::Graphics::GuestTextureResource::gcnLinearGeneral'

The compiler printed these in French; I translated them.

Validation-layer run, PR + local fix
1/9 Test  #956: agc_driver_pm4 ..........................   Passed    0.14 sec
2/9 Test #1311: agc_driver_pattern_buffer_fill ..........   Passed    0.82 sec
3/9 Test  #724: agc_gcn_color_target ....................   Passed    0.00 sec
4/9 Test  #722: agc_driver_register_key .................   Passed    0.84 sec
5/9 Test #1134: agc_driver_gcn_detile ...................   Passed    0.99 sec
6/9 Test  #835: agc_tiled_resolve .......................   Passed    0.20 sec
7/9 Test #1284: agc_driver_multisample_readback .........   Passed    0.46 sec
8/9 Test #1283: agc_driver_multisample_fill_host_only ...   Passed    0.67 sec
9/9 Test  #957: agc_driver_graphics .....................   Passed    4.99 sec
100% tests passed out of 9

Negative control: with only Graphics/src/State.cpp restored from main, agc_gcn_color_target fails:

1/1 Test #724: agc_gcn_color_target .............***Failed    0.00 sec
AGC graphics: multisampled GCN color targets are not implemented

Previous findings

  • Blocking 1, conflicts with main: Resolved. #9431 is merged and the head merges cleanly with main 5454cd2e45.
  • Blocking 2, PipelineJournal.cpp layout guards: Resolved. The PR no longer touches State.hpp. With the duplicate fields removed, libSceAgcDriver builds on Linux with GCC 16, PipelineJournal.cpp included.
  • Non-blocking 1, a resolve accepted by the padded-extent rule writes rows outside the pass: Still open. The drawCovers rule (State.cpp#L2353-L2356) and the full-extent render area (MultisampleTarget.cpp#L1381) are unchanged, and the debt entry does not mention it.
  • Non-blocking 2, oneandonlydean's request to remove two assertions: Resolved in 6a7d99f3be. The 2x/4x/8x cases, the missing-CMASK-address check and the partial-coverage cases remain, and the production refusals with their debt entry are unchanged.
  • Non-blocking 3, order of the debt entry: Still open. The entry is unchanged.

New findings

Blocking

  1. The head does not compile: the merge duplicates three fields. GuestTextureResource.hpp#L108-L114 declares gcnPitch, gcnPow2Pad and gcnLinearGeneral once before fmaskCmaskAddress (the branch's old #9431 copy) and once after it (main's copy, as merged from #9431). Git merged both insertions without a conflict because they sit on different sides of fmaskCmaskAddress. Every translation unit that includes the header fails, so libSceAgcDriver and everything that links it fails too. Fix: delete lines 108-110. The file then matches main exactly, which is correct, because this PR has no change of its own in that header. That is the only change I made to get the results above.

Non-blocking

  1. The description describes the old head. The Tested section says the branch "is now 545e2b5b3f", built in two merges. Its test counts are from that head. The checklist still lists "Depends on: #9431", which is merged now. After the fix, suggest setting Depends on to none and restating the base and test results for the new head.

Not verified

  • Behaviour in Boggle (CUSA03312) or any other title; I launched no title.
  • The head exactly as pushed: every test result above comes from the merged tree with the duplicate fields deleted locally.
  • The video_out_flip_* and agc_driver_depth_* tests from the description; I ran only the tests closest to this PR's change.
  • AMD or Intel GPUs, and Windows; I tested on NVIDIA under Linux only.

To get this to a good state

  1. Delete the duplicate gcnPitch, gcnPow2Pad and gcnLinearGeneral declarations at GuestTextureResource.hpp:108-110, so that the header matches main.
  2. Update the description: the base, the test results for the new head, and Depends on: none.
  3. Optionally, limit the resolve's render area to the covered extent or document the extra rows, and put the gaps first in the debt entry.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5697729807 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9892#pullrequestreview-5697729807). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-10-29T12:32:23Z. **Review:** CHANGES_REQUESTED --- # Re-checked — changes still requested The new head `6a7d99f3be` merges current `main` (which now contains #9431) and drops the two refusal assertions. It merges cleanly, but it does not compile: the merge declares three `GuestTextureResource` fields twice. With that duplicate removed locally, the PR's own change builds, its tests pass under the validation layer, and the negative control fails as expected. ## What changed since my last review - `afc92cbb87`: `main` `5454cd2e45` merged into the branch. #9431 has since been merged into `main`, so the PR diff against `main` is now only this PR's own five files. - `6a7d99f3be`: removes the EQAA and single-sample fast-clear refusal assertions from `tests/GcnColorTarget.cpp`, as oneandonlydean asked. - The description and checklist have not changed. The PR's production code (`State.cpp`, `CMakeLists.txt`, the debt entry) is the same as in `db05653037`. ## What I ran - Head: `6a7d99f3be4a1c21904fa774de11450564ac4032` - `main`: `5454cd2e455994d992aca39335ce60507eeda1eb` - Host: Arch Linux 7.2.11-zen, GCC 16.2.1, Release, Ninja, Intel Core i9-14900KF, NVIDIA GeForce RTX 4070 Ti SUPER (driver 615.78.08) ```sh git checkout --detach origin/main git merge --no-ff --no-edit 6a7d99f3be # clean git diff --check origin/main...6a7d99f3be python3 tools/check_conventions.py --base origin/main cmake --build build -j10 --target agc_gcn_color_target_tests # fails # local fix only, not committed: delete the duplicate lines 108-110 of GuestTextureResource.hpp cmake --build build -j10 --target agc_gcn_color_target_tests agc_driver_register_key_tests \ agc_driver_pm4_tests agc_driver_graphics_tests agc_driver_gcn_detile_tests \ agc_driver_multisample_fill_host_only_tests agc_driver_multisample_readback_tests agc_driver_pattern_buffer_fill_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 -j4 -V --output-on-failure \ -R '^(agc_gcn_color_target|agc_driver_graphics|agc_driver_pm4|agc_driver_register_key|agc_tiled_resolve|agc_driver_gcn_detile|agc_driver_multisample_fill_host_only|agc_driver_multisample_readback|agc_driver_pattern_buffer_fill)$' # negative control: State.cpp from origin/main, rebuild, run agc_gcn_color_target, restore # baseline: plain origin/main, the same 8 tests other than agc_gcn_color_target, same flags ``` | Check | Result | |---|---| | Merge onto `main` `5454cd2e45` | clean | | `git diff --check` | clean | | `tools/check_conventions.py --base origin/main` | `All conventions checks passed.` | | Build of the merged head | **fails**: `GuestTextureResource.hpp:112-114` redeclare `gcnPitch`, `gcnPow2Pad`, `gcnLinearGeneral` | | Build with the duplicate removed | OK | | Validation layer, PR + local fix (9 tests) | 9/9 pass, 0 `VUID-` lines, no `was not found but was requested by env var VK_INSTANCE_LAYERS` | | Validation layer, `main` (8 tests) | 8/8 pass, 0 `VUID-` lines, no `was not found but was requested` | | GPU used | every `Selected GPU` line names the RTX 4070 Ti SUPER, in both runs | <details><summary>Build of the merged head</summary> ```text GuestTextureResource.hpp:112:30: error: redeclaration of 'uint32_t AgcDriver::Graphics::GuestTextureResource::gcnPitch' GuestTextureResource.hpp:108:19: note: previous declaration of 'uint32_t AgcDriver::Graphics::GuestTextureResource::gcnPitch' GuestTextureResource.hpp:113:23: error: redeclaration of 'bool AgcDriver::Graphics::GuestTextureResource::gcnPow2Pad' GuestTextureResource.hpp:114:29: error: redeclaration of 'bool AgcDriver::Graphics::GuestTextureResource::gcnLinearGeneral' ``` The compiler printed these in French; I translated them. </details> <details><summary>Validation-layer run, PR + local fix</summary> ```text 1/9 Test #956: agc_driver_pm4 .......................... Passed 0.14 sec 2/9 Test #1311: agc_driver_pattern_buffer_fill .......... Passed 0.82 sec 3/9 Test #724: agc_gcn_color_target .................... Passed 0.00 sec 4/9 Test #722: agc_driver_register_key ................. Passed 0.84 sec 5/9 Test #1134: agc_driver_gcn_detile ................... Passed 0.99 sec 6/9 Test #835: agc_tiled_resolve ....................... Passed 0.20 sec 7/9 Test #1284: agc_driver_multisample_readback ......... Passed 0.46 sec 8/9 Test #1283: agc_driver_multisample_fill_host_only ... Passed 0.67 sec 9/9 Test #957: agc_driver_graphics ..................... Passed 4.99 sec 100% tests passed out of 9 ``` </details> Negative control: with only `Graphics/src/State.cpp` restored from `main`, `agc_gcn_color_target` fails: ```text 1/1 Test #724: agc_gcn_color_target .............***Failed 0.00 sec AGC graphics: multisampled GCN color targets are not implemented ``` ## Previous findings - Blocking 1, conflicts with `main`: **Resolved.** #9431 is merged and the head merges cleanly with `main` `5454cd2e45`. - Blocking 2, `PipelineJournal.cpp` layout guards: **Resolved.** The PR no longer touches `State.hpp`. With the duplicate fields removed, `libSceAgcDriver` builds on Linux with GCC 16, `PipelineJournal.cpp` included. - Non-blocking 1, a resolve accepted by the padded-extent rule writes rows outside the pass: **Still open.** The `drawCovers` rule ([`State.cpp#L2353-L2356`](https://github.com/boykopovar/AnyPS5/blob/6a7d99f3be4a1c21904fa774de11450564ac4032/core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp#L2353-L2356)) and the full-extent render area ([`MultisampleTarget.cpp#L1381`](https://github.com/boykopovar/AnyPS5/blob/6a7d99f3be4a1c21904fa774de11450564ac4032/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L1381)) are unchanged, and the debt entry does not mention it. - Non-blocking 2, oneandonlydean's request to remove two assertions: **Resolved** in `6a7d99f3be`. The 2x/4x/8x cases, the missing-CMASK-address check and the partial-coverage cases remain, and the production refusals with their debt entry are unchanged. - Non-blocking 3, order of the debt entry: **Still open.** [The entry](https://github.com/boykopovar/AnyPS5/blob/6a7d99f3be4a1c21904fa774de11450564ac4032/docs/dev/debt/libSceAgcDriver.md#L82-L82) is unchanged. ## New findings ### Blocking 1. **The head does not compile: the merge duplicates three fields.** [`GuestTextureResource.hpp#L108-L114`](https://github.com/boykopovar/AnyPS5/blob/6a7d99f3be4a1c21904fa774de11450564ac4032/core/libs/prx/libSceAgcDriver/Graphics/include/GuestTextureResource.hpp#L108-L114) declares `gcnPitch`, `gcnPow2Pad` and `gcnLinearGeneral` once before `fmaskCmaskAddress` (the branch's old #9431 copy) and once after it (`main`'s copy, as merged from #9431). Git merged both insertions without a conflict because they sit on different sides of `fmaskCmaskAddress`. Every translation unit that includes the header fails, so `libSceAgcDriver` and everything that links it fails too. Fix: delete lines 108-110. The file then matches `main` exactly, which is correct, because this PR has no change of its own in that header. That is the only change I made to get the results above. ### Non-blocking 1. **The description describes the old head.** The Tested section says the branch "is now `545e2b5b3f`", built in two merges. Its test counts are from that head. The checklist still lists "Depends on: #9431", which is merged now. After the fix, suggest setting Depends on to none and restating the base and test results for the new head. ## Not verified - Behaviour in Boggle (CUSA03312) or any other title; I launched no title. - The head exactly as pushed: every test result above comes from the merged tree with the duplicate fields deleted locally. - The `video_out_flip_*` and `agc_driver_depth_*` tests from the description; I ran only the tests closest to this PR's change. - AMD or Intel GPUs, and Windows; I tested on NVIDIA under Linux only. ## To get this to a good state 1. Delete the duplicate `gcnPitch`, `gcnPow2Pad` and `gcnLinearGeneral` declarations at `GuestTextureResource.hpp:108-110`, so that the header matches `main`. 2. Update the description: the base, the test results for the new head, and Depends on: none. 3. Optionally, limit the resolve's render area to the covered extent or document the extra rows, and put the gaps first in the debt entry.
XairRrR commented 2026-11-03 05:42:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-03T05:42:16Z.

Review: APPROVED


Re-checked — approved

5c8fb7de19 removes the duplicate GuestTextureResource fields that blocked the previous head, and fde9ff2d9a merges current main. The merged tree builds, agc_gcn_color_target passes and fails with main's production files, and both failures that look new also fail with main's production files.

What changed since my last review

  • 5c8fb7de19 deletes the second copies of gcnPitch, gcnPow2Pad and gcnLinearGeneral.
  • 9110e4e17a, 83a0d8ea00 and fde9ff2d9a merge main. The AGC test registration now lives in tests/cmake/agc_gcn_color_target_tests.cmake, following main's split. The PR's own State.cpp change, test and debt entry are unchanged.
  • The description now says Depends on: none and lists each main merge with its test results.
  • In the discussion, oneandonlydean, BunnyFl (Windows, RX 9070 XT) and TechLevelZero's NVIDIA CI ran the PR's test at this head. These results are author- and contributor-reported.

What I ran

  • Head fde9ff2d9a1a81604be4962c7f717fb10d06e3c6, main 5cb015caaaaf83f8ee431414ee6a457b5b307d49, merged tree d7c08d33052c2d537b6490e4fa0f540615dbdc50.
  • Machine: Debian 13 VM, GCC 14.2.0, Release, lavapipe (Mesa 26.1.6, LLVM 19). There is no hardware GPU.
git diff --check 5cb015caaa...fde9ff2d9a
python3 tools/check_conventions.py --base 5cb015caaa
ctest --test-dir build --output-on-failure -R '^(agc_gcn_color_target|agc_driver_image_sample_lod_clamp_shader_lane|unwrap_self_UnwrapTest_test_new_output_inherits_the_destination_directory_group)$'
# negative control: State.cpp and GuestTextureResource.hpp from main
ninja -C build agc_gcn_color_target_tests agc_driver_image_sample_lod_clamp_tests
ctest ... (same three tests)
# restore the merged files, then rebuild
ctest --test-dir build -j8 --output-on-failure -R '^(agc_gcn_color_target|agc_driver_graphics|agc_tiled_resolve|agc_driver_gcn_detile)$'
git status --porcelain   # empty
Check Result
Merge onto main clean
git diff --check clean
check_conventions.py All conventions checks passed.
Build (script) OK
Selected tests (script) 2115 of 2235 passed and 112 skipped as expected. 6 failures are known on main; I traced the 2 that look new to main (see below).
Validation layer (script, 759 tests) 0 tests with a new VUID-; the layer loaded in 758
agc_gcn_color_target, agc_driver_graphics, agc_tiled_resolve, agc_driver_gcn_detile 4/4 pass
Diff against main only this PR's 5 files, +183/−5

The 2 failures that look new are not the PR's. The script's baseline (096c45570f) is older than main 5cb015caaa. With the PR's production files restored from main and the targets rebuilt, both still fail in the same way:

  • agc_driver_image_sample_lod_clamp_shader_lane reports thread 0 component 1 is 0.000000, expected 0.062500.
  • unwrap_self_UnwrapTest_test_new_output_inherits_the_destination_directory_group reports OSError: [Errno 22] from os.chown, which is the sandbox's group handling.
Run with main's production files
OSError: [Errno 22] Invalid argument: ...
2/3 Test #1772: agc_driver_image_sample_lod_clamp_shader_lane ...***Failed    3.15 sec
AGC graphics: image_sample_lz ... thread 0 component 1 is 0.000000, expected 0.062500
3/3 Test #2035: agc_gcn_color_target ............................***Failed    0.01 sec
AGC graphics: multisampled GCN color targets are not implemented

Negative control

I restored Graphics/src/State.cpp and Graphics/include/GuestTextureResource.hpp from main and rebuilt. agc_gcn_color_target then fails with AGC graphics: multisampled GCN color targets are not implemented. With the merged files restored and rebuilt, it passes, and git status --porcelain is empty.

Previous findings

  • New blocking 1, duplicate fields: Resolved. At the head, GuestTextureResource.hpp#L108-L112 declares each field once, and the merged tree builds.
  • New non-blocking 1, stale description: Mostly resolved. Depends on is now none and each merge is listed. The Base paragraph still says "This branch is now 545e2b5b3f", and its numbers are for older heads. The latest results the description itself gives are for 83a0d8ea00.
  • Non-blocking, a resolve accepted by the padded-extent rule renders the full extent: Still open, and optional as before. The rule in State.cpp#L2376-L2379 is unchanged. The resolve's renderArea is still source.extent (MultisampleTarget.cpp#L1468). oneandonlydean says this was left on purpose.
  • Non-blocking, order of the debt entry: Still open, and optional. The entry still describes the implemented behaviour before the gaps.

New findings

Blocking

None.

Non-blocking

  1. fmaskCmaskAddress moves in GuestTextureResource.hpp for no reason. This confirms BunnyFl's note. The PR's only change to the header (L112) moves the field below linearPitch. I found no positional initialization, sizeof, offsetof or memcmp of the struct; every use assigns by name (GuestTextureResource.cpp:309, MultisampleTarget.cpp:85, :103), so the move is harmless. Restoring main's order would remove the file from the diff and avoid future merge conflicts there.

Not verified

  • Any title, including Boggle (CUSA03312). I launched no title.
  • Hardware GPUs. Lavapipe only here; the AMD and NVIDIA results in the discussion are contributor-reported.
  • Windows.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5747703688 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9892#pullrequestreview-5747703688). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-11-03T05:42:16Z. **Review:** APPROVED --- # Re-checked — approved `5c8fb7de19` removes the duplicate `GuestTextureResource` fields that blocked the previous head, and `fde9ff2d9a` merges current `main`. The merged tree builds, `agc_gcn_color_target` passes and fails with `main`'s production files, and both failures that look new also fail with `main`'s production files. ## What changed since my last review - `5c8fb7de19` deletes the second copies of `gcnPitch`, `gcnPow2Pad` and `gcnLinearGeneral`. - `9110e4e17a`, `83a0d8ea00` and `fde9ff2d9a` merge `main`. The AGC test registration now lives in `tests/cmake/agc_gcn_color_target_tests.cmake`, following `main`'s split. The PR's own `State.cpp` change, test and debt entry are unchanged. - The description now says `Depends on: none` and lists each `main` merge with its test results. - In the discussion, oneandonlydean, BunnyFl (Windows, RX 9070 XT) and TechLevelZero's NVIDIA CI ran the PR's test at this head. These results are author- and contributor-reported. ## What I ran - Head `fde9ff2d9a1a81604be4962c7f717fb10d06e3c6`, `main` `5cb015caaaaf83f8ee431414ee6a457b5b307d49`, merged tree `d7c08d33052c2d537b6490e4fa0f540615dbdc50`. - Machine: Debian 13 VM, GCC 14.2.0, Release, lavapipe (Mesa 26.1.6, LLVM 19). There is no hardware GPU. ```sh git diff --check 5cb015caaa...fde9ff2d9a python3 tools/check_conventions.py --base 5cb015caaa ctest --test-dir build --output-on-failure -R '^(agc_gcn_color_target|agc_driver_image_sample_lod_clamp_shader_lane|unwrap_self_UnwrapTest_test_new_output_inherits_the_destination_directory_group)$' # negative control: State.cpp and GuestTextureResource.hpp from main ninja -C build agc_gcn_color_target_tests agc_driver_image_sample_lod_clamp_tests ctest ... (same three tests) # restore the merged files, then rebuild ctest --test-dir build -j8 --output-on-failure -R '^(agc_gcn_color_target|agc_driver_graphics|agc_tiled_resolve|agc_driver_gcn_detile)$' git status --porcelain # empty ``` | Check | Result | |---|---| | Merge onto `main` | clean | | `git diff --check` | clean | | `check_conventions.py` | `All conventions checks passed.` | | Build (script) | OK | | Selected tests (script) | 2115 of 2235 passed and 112 skipped as expected. 6 failures are known on `main`; I traced the 2 that look new to `main` (see below). | | Validation layer (script, 759 tests) | 0 tests with a new `VUID-`; the layer loaded in 758 | | `agc_gcn_color_target`, `agc_driver_graphics`, `agc_tiled_resolve`, `agc_driver_gcn_detile` | 4/4 pass | | Diff against `main` | only this PR's 5 files, +183/−5 | The 2 failures that look new are not the PR's. The script's baseline (`096c45570f`) is older than `main` `5cb015caaa`. With the PR's production files restored from `main` and the targets rebuilt, both still fail in the same way: - `agc_driver_image_sample_lod_clamp_shader_lane` reports `thread 0 component 1 is 0.000000, expected 0.062500`. - `unwrap_self_UnwrapTest_test_new_output_inherits_the_destination_directory_group` reports `OSError: [Errno 22]` from `os.chown`, which is the sandbox's group handling. <details><summary>Run with main's production files</summary> ```text OSError: [Errno 22] Invalid argument: ... 2/3 Test #1772: agc_driver_image_sample_lod_clamp_shader_lane ...***Failed 3.15 sec AGC graphics: image_sample_lz ... thread 0 component 1 is 0.000000, expected 0.062500 3/3 Test #2035: agc_gcn_color_target ............................***Failed 0.01 sec AGC graphics: multisampled GCN color targets are not implemented ``` </details> ## Negative control I restored `Graphics/src/State.cpp` and `Graphics/include/GuestTextureResource.hpp` from `main` and rebuilt. `agc_gcn_color_target` then fails with `AGC graphics: multisampled GCN color targets are not implemented`. With the merged files restored and rebuilt, it passes, and `git status --porcelain` is empty. ## Previous findings - **New blocking 1, duplicate fields: Resolved.** At the head, [`GuestTextureResource.hpp#L108-L112`](https://github.com/boykopovar/AnyPS5/blob/fde9ff2d9a1a81604be4962c7f717fb10d06e3c6/core/libs/prx/libSceAgcDriver/Graphics/include/GuestTextureResource.hpp#L108-L112) declares each field once, and the merged tree builds. - **New non-blocking 1, stale description: Mostly resolved.** `Depends on` is now none and each merge is listed. The **Base** paragraph still says "This branch is now `545e2b5b3f`", and its numbers are for older heads. The latest results the description itself gives are for `83a0d8ea00`. - **Non-blocking, a resolve accepted by the padded-extent rule renders the full extent: Still open, and optional as before.** The rule in [`State.cpp#L2376-L2379`](https://github.com/boykopovar/AnyPS5/blob/fde9ff2d9a1a81604be4962c7f717fb10d06e3c6/core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp#L2376-L2379) is unchanged. The resolve's `renderArea` is still `source.extent` ([`MultisampleTarget.cpp#L1468`](https://github.com/boykopovar/AnyPS5/blob/fde9ff2d9a1a81604be4962c7f717fb10d06e3c6/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L1468)). oneandonlydean says this was left on purpose. - **Non-blocking, order of the debt entry: Still open, and optional.** [The entry](https://github.com/boykopovar/AnyPS5/blob/fde9ff2d9a1a81604be4962c7f717fb10d06e3c6/docs/dev/debt/libSceAgcDriver.md#L113-L113) still describes the implemented behaviour before the gaps. ## New findings ### Blocking None. ### Non-blocking 1. **`fmaskCmaskAddress` moves in `GuestTextureResource.hpp` for no reason.** This confirms BunnyFl's note. The PR's only change to the header ([L112](https://github.com/boykopovar/AnyPS5/blob/fde9ff2d9a1a81604be4962c7f717fb10d06e3c6/core/libs/prx/libSceAgcDriver/Graphics/include/GuestTextureResource.hpp#L112-L112)) moves the field below `linearPitch`. I found no positional initialization, `sizeof`, `offsetof` or `memcmp` of the struct; every use assigns by name (`GuestTextureResource.cpp:309`, `MultisampleTarget.cpp:85`, `:103`), so the move is harmless. Restoring `main`'s order would remove the file from the diff and avoid future merge conflicts there. ## Not verified - Any title, including Boggle (CUSA03312). I launched no title. - Hardware GPUs. Lavapipe only here; the AMD and NVIDIA results in the discussion are contributor-reported. - Windows. <!-- anyps5-bots job=2886 head=fde9ff2d9a1a81604be4962c7f717fb10d06e3c6 -->
XairRrR commented 2026-11-03 19:42:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-03T19:42:35Z.

Review: APPROVED


Re-checked — approved

The only new commit is 3c0ee17922, a merge of main 1e658521a0. The PR's own three commits are byte-identical in range-diff, and the diff against main is still the same five files (+183/−5). The merged tree builds, agc_gcn_color_target passes and fails again with main's production files, and the one test flagged with new VUID- lines reports the same lines with main's production files.

What changed since my last review

  • 3c0ee17922 merges main 1e658521a0 into fde9ff2d9a. The conflict in docs/dev/debt/libSceAgcDriver.md is resolved by keeping both sides: the PS4 multisampled color target entry (now L119) sits directly above main's render-target entry (L120), and main's new PS4 depth-target sentence is kept.
  • range-diff shows db05653037, 6a7d99f3be and 5c8fb7de19 unchanged.
  • The description adds a "Merge of main 1e658521a0" paragraph with RX 9070 XT results for this head. These results are author-reported.

What I ran

  • Head 3c0ee179221d343ec624148fe66a3b7c3f90f436, main 086c0686c8adff3ee648fdbe34e0b0b647e1d511, merged tree 1c4c5e95106cae318149af2b382b3cd106062d4b.
  • Machine: Debian 13 VM, GCC 14.2.0, Release, lavapipe (Mesa 26.1.6, LLVM 19). No hardware GPU.
git diff --check 086c0686c8...3c0ee17922
python3 tools/check_conventions.py --base 086c0686c8
git diff --stat 086c0686c8 1c4c5e9510
env VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1 \
  ctest --test-dir build -V -R '^(agc_driver_image_gather_volume|agc_gcn_color_target)$'
# negative control: State.cpp and GuestTextureResource.hpp from main
ninja -C build -j32 -l32 agc_gcn_color_target_tests agc_driver_image_gather_volume_tests
env VK_INSTANCE_LAYERS=... ctest --test-dir build -V -R '^(agc_driver_image_gather_volume|agc_gcn_color_target)$'
# restore the merged files, rebuild
ctest --test-dir build -j8 --test-load 32 --output-on-failure -R '^(agc_gcn_color_target|agc_driver_graphics|agc_driver_gcn_detile)$'
git status --porcelain   # empty
Check Result
Merge onto main clean
git diff --check clean
check_conventions.py All conventions checks passed.
Build and libs (script) OK
Selected tests (script) 2117 of 2239 passed, 115 skipped as expected. 0 new failures and 0 timeouts. The 7 failures also fail on main.
Validation layer (script, 783 tests) The layer loaded in 782 tests and was missing in none. One test, agc_driver_image_gather_volume, was flagged as "not run on main". It comes from main (see below).
agc_gcn_color_target, agc_driver_graphics, agc_driver_gcn_detile 3/3 pass

The agc_driver_image_gather_volume VUIDs (VUID-VkSamplerCreateInfo-addressModeU-01079 and the addressModeU/V/W-parameter ones) are not the PR's. I restored main's State.cpp and GuestTextureResource.hpp and rebuilt. The test then reports the same four validation errors with the same message IDs, and it still passes. The script's baseline did not run this test. The PR changes only the GCN color-target decode and the metadata-pass coverage check, so it does not reach sampler creation.

With main's production files
1236: Validation Error: [ VUID-VkSamplerCreateInfo-addressModeU-01079 ] | MessageID = 0x1aa95c2b
1236: Validation Error: [ VUID-VkSamplerCreateInfo-addressModeU-parameter ] | MessageID = 0x3fcec07
1236: Validation Error: [ VUID-VkSamplerCreateInfo-addressModeV-parameter ] | MessageID = 0xf8361085
1236: Validation Error: [ VUID-VkSamplerCreateInfo-addressModeW-parameter ] | MessageID = 0xd3b90dae
1/2 Test #1236: agc_driver_image_gather_volume ...   Passed   10.64 sec
2/2 Test #2104: agc_gcn_color_target .............***Failed    0.01 sec
2104: AGC graphics: multisampled GCN color targets are not implemented

Negative control

With Graphics/src/State.cpp and Graphics/include/GuestTextureResource.hpp restored from main and rebuilt, agc_gcn_color_target fails with AGC graphics: multisampled GCN color targets are not implemented. With the merged files restored and rebuilt, it passes, and git status --porcelain is empty.

Previous findings

  • Duplicate fields (blocking in an earlier review): Resolved. These were already resolved at the last review and are unchanged here.
  • Stale description: Still open, non-blocking. The new paragraph covers this head. The Base paragraph still says "This branch is now 545e2b5b3f", though, and the long validation list below it is for older heads.
  • A resolve accepted by the padded-extent rule renders the full extent: Still open, optional. State.cpp#L2388 is unchanged.
  • Order of the debt entry: Still open, optional. The entry still describes the implemented behaviour before the gaps.
  • fmaskCmaskAddress moved in GuestTextureResource.hpp: Still open, non-blocking. The field is still below linearPitch (L112-L113). The move is harmless, but restoring main's order would drop the file from the diff.

New findings

Blocking

None.

Non-blocking

None.

Not verified

  • Any title, including Boggle (CUSA03312). I launched no title.
  • Hardware GPUs and Windows. I ran on lavapipe only; the RX 9070 XT results in the description are author-reported.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5758468016 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9892#pullrequestreview-5758468016). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-11-03T19:42:35Z. **Review:** APPROVED --- # Re-checked — approved The only new commit is `3c0ee17922`, a merge of `main` `1e658521a0`. The PR's own three commits are byte-identical in range-diff, and the diff against `main` is still the same five files (+183/−5). The merged tree builds, `agc_gcn_color_target` passes and fails again with `main`'s production files, and the one test flagged with new `VUID-` lines reports the same lines with `main`'s production files. ## What changed since my last review - `3c0ee17922` merges `main` `1e658521a0` into `fde9ff2d9a`. The conflict in `docs/dev/debt/libSceAgcDriver.md` is resolved by keeping both sides: the PS4 multisampled color target entry (now L119) sits directly above `main`'s render-target entry (L120), and `main`'s new PS4 depth-target sentence is kept. - `range-diff` shows `db05653037`, `6a7d99f3be` and `5c8fb7de19` unchanged. - The description adds a "Merge of `main` `1e658521a0`" paragraph with RX 9070 XT results for this head. These results are author-reported. ## What I ran - Head `3c0ee179221d343ec624148fe66a3b7c3f90f436`, `main` `086c0686c8adff3ee648fdbe34e0b0b647e1d511`, merged tree `1c4c5e95106cae318149af2b382b3cd106062d4b`. - Machine: Debian 13 VM, GCC 14.2.0, Release, lavapipe (Mesa 26.1.6, LLVM 19). No hardware GPU. ```sh git diff --check 086c0686c8...3c0ee17922 python3 tools/check_conventions.py --base 086c0686c8 git diff --stat 086c0686c8 1c4c5e9510 env VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1 \ ctest --test-dir build -V -R '^(agc_driver_image_gather_volume|agc_gcn_color_target)$' # negative control: State.cpp and GuestTextureResource.hpp from main ninja -C build -j32 -l32 agc_gcn_color_target_tests agc_driver_image_gather_volume_tests env VK_INSTANCE_LAYERS=... ctest --test-dir build -V -R '^(agc_driver_image_gather_volume|agc_gcn_color_target)$' # restore the merged files, rebuild ctest --test-dir build -j8 --test-load 32 --output-on-failure -R '^(agc_gcn_color_target|agc_driver_graphics|agc_driver_gcn_detile)$' git status --porcelain # empty ``` | Check | Result | |---|---| | Merge onto `main` | clean | | `git diff --check` | clean | | `check_conventions.py` | `All conventions checks passed.` | | Build and `libs` (script) | OK | | Selected tests (script) | 2117 of 2239 passed, 115 skipped as expected. 0 new failures and 0 timeouts. The 7 failures also fail on `main`. | | Validation layer (script, 783 tests) | The layer loaded in 782 tests and was missing in none. One test, `agc_driver_image_gather_volume`, was flagged as "not run on main". It comes from `main` (see below). | | `agc_gcn_color_target`, `agc_driver_graphics`, `agc_driver_gcn_detile` | 3/3 pass | The `agc_driver_image_gather_volume` VUIDs (`VUID-VkSamplerCreateInfo-addressModeU-01079` and the `addressModeU/V/W-parameter` ones) are not the PR's. I restored `main`'s `State.cpp` and `GuestTextureResource.hpp` and rebuilt. The test then reports the same four validation errors with the same message IDs, and it still passes. The script's baseline did not run this test. The PR changes only the GCN color-target decode and the metadata-pass coverage check, so it does not reach sampler creation. <details><summary>With main's production files</summary> ```text 1236: Validation Error: [ VUID-VkSamplerCreateInfo-addressModeU-01079 ] | MessageID = 0x1aa95c2b 1236: Validation Error: [ VUID-VkSamplerCreateInfo-addressModeU-parameter ] | MessageID = 0x3fcec07 1236: Validation Error: [ VUID-VkSamplerCreateInfo-addressModeV-parameter ] | MessageID = 0xf8361085 1236: Validation Error: [ VUID-VkSamplerCreateInfo-addressModeW-parameter ] | MessageID = 0xd3b90dae 1/2 Test #1236: agc_driver_image_gather_volume ... Passed 10.64 sec 2/2 Test #2104: agc_gcn_color_target .............***Failed 0.01 sec 2104: AGC graphics: multisampled GCN color targets are not implemented ``` </details> ## Negative control With `Graphics/src/State.cpp` and `Graphics/include/GuestTextureResource.hpp` restored from `main` and rebuilt, `agc_gcn_color_target` fails with `AGC graphics: multisampled GCN color targets are not implemented`. With the merged files restored and rebuilt, it passes, and `git status --porcelain` is empty. ## Previous findings - **Duplicate fields (blocking in an earlier review): Resolved.** These were already resolved at the last review and are unchanged here. - **Stale description: Still open, non-blocking.** The new paragraph covers this head. The **Base** paragraph still says "This branch is now `545e2b5b3f`", though, and the long validation list below it is for older heads. - **A resolve accepted by the padded-extent rule renders the full extent: Still open, optional.** [`State.cpp#L2388`](https://github.com/boykopovar/AnyPS5/blob/3c0ee179221d343ec624148fe66a3b7c3f90f436/core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp#L2388-L2388) is unchanged. - **Order of the debt entry: Still open, optional.** [The entry](https://github.com/boykopovar/AnyPS5/blob/3c0ee179221d343ec624148fe66a3b7c3f90f436/docs/dev/debt/libSceAgcDriver.md#L119-L119) still describes the implemented behaviour before the gaps. - **`fmaskCmaskAddress` moved in `GuestTextureResource.hpp`: Still open, non-blocking.** The field is still below `linearPitch` ([L112-L113](https://github.com/boykopovar/AnyPS5/blob/3c0ee179221d343ec624148fe66a3b7c3f90f436/core/libs/prx/libSceAgcDriver/Graphics/include/GuestTextureResource.hpp#L112-L113)). The move is harmless, but restoring `main`'s order would drop the file from the diff. ## New findings ### Blocking None. ### Non-blocking None. ## Not verified - Any title, including Boggle (CUSA03312). I launched no title. - Hardware GPUs and Windows. I ran on lavapipe only; the RX 9070 XT results in the description are author-reported. <!-- anyps5-bots job=3554 head=3c0ee179221d343ec624148fe66a3b7c3f90f436 -->
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!9892
No description provided.