fix(agc): import a native multisample D32S8 target without HTILE whose planes each hold one value #14005

Merged
hugodearaujo merged 4 commits from upstream-pr/14005 into main 2026-11-03 08:08:21 +00:00
hugodearaujo commented 2026-10-31 15:28:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by hugodearaujo on 2026-10-31T15:28:18Z.


What

A native multisample depth target is imported for sampling only when its HTILE proves the initial clear. A D32S8 target with a separate stencil plane and no HTILE at all is refused at creation, and the title stops at the first sample of its depth. Before #9533/#9717 the message was the first one below; on current main it is the second:

compute shader 0x10b4c8ad00: AGC graphics: native multisample stencil or depth format import is not implemented
AGC graphics: native multisample stencil import requires HTILE stencil metadata

Without HTILE the DB reads and writes both planes uncompressed, so their guest bytes are the initial contents. When every 32-bit word of the sample-aware depth plane (MultisampledDepthBytes_nid_no_patch(extent, 4, samples)) is the same float in [0, 1] and every byte of the stencil plane (MultisampledDepthBytes_nid_no_patch(extent, 1, samples)) is the same value, every sample holds those values whatever the Z_X sample order. This PR imports such a target:

  • prepareDepthSampling sends a D32S8 target with a separate stencil plane and no HTILE to prepareUniformPlaneSampling. It keeps the Z_X / single slice / XOR / alignment checks of the HTILE path, syncs and flushes both plane ranges, takes their write generations, reads both planes (64 KiB at a time) and checks again that nothing wrote them meanwhile. The two plane ranges then play the part the depth and HTILE ranges play for an HTILE target: guards, the guest-write check at each sample, retirement.
  • The host image is created cleared to the planes' values instead of DB_DEPTH_CLEAR/DB_STENCIL_CLEAR.
  • CheckResource: for a target without HTILE the sampled descriptor must name no metadata (dccAddress 0); its pipe-aligned and ITERATE_256 bits are not compared, since they only describe metadata.
  • The stencil plane of such a target can be sampled too, as an 8-bit uint at its own address, and the sample shadow carries the stencil aspect once it is read. Since merging main a4eca2a056, both come from main's stencil model (#9717): CheckResource's stencil identity, the stencil sample-count check in Sampled, and sampleShadowStencil. This path uses them unchanged.
  • Like main's HTILE path, the import is refused (attachment rendering kept) when a multisampled colour target covers either plane.

Still refused, each with its own message: a depth plane with more than one word or a float outside [0, 1] (native multisample depth plane without HTILE does not hold one depth value in [0, 1]), a stencil plane with more than one byte value, overlapping planes, HTILE stencil, and guest writes racing the import. D16/D32 without HTILE keep their refusal, and D32S8 with HTILE takes main's path (#9533). Publication of a written surface is still not implemented.

A new debt entry, next to the one for native multisampled depth sampling, says that the single-value rule is inferred from the layout, not measured on the console.

Why: Assassin's Creed Mirage (PPSA13960 01.007.000)

On main + #13963 (which contains #13248), in the first real-time scene after New Game (Basim in the dark), the title binds a 4x D32S8 1920x1080 target with a separate stencil plane and no HTILE, and a compute shader samples its depth. A diagnostic build (local only: main + #13963 + logging, and a hack that let this target through) printed, when the 1920x1080 target was created and on its first draw:

[diag-nohtile] import 0x1246aa0000: depth 8355840 words, first=0x00000000 same=8355840 one=0 zero=8355840; stencil 8847360 bytes first=0x00 same=8847360 zero=8847360
[diag-nohtile] draw#1 build 0x1246aa0000 1920x1080 x4: dtest=1 dwrite=1 cmp=7 bounds=0 stest=1 front(cmp=7 pass=2 fail=2 zfail=2 wm=0xff ref=0x0) vp=(0,1080 1920x-1080 z 0.000..1.000) sc=(0,0 1920x1080) topo=3 colors=2 clear=1.000/0

and, from an earlier run of the same scene, the refusal's target fields:

[diag-depth] refuse 'native multisample stencil or depth format import is not implemented': address=0x1240fc0000 stencil=0x1242fa0000 htile=0x0 1920x1080 samples=4 vkfmt=130 swizzle=24 slices=0..0 xor=0x0 htileStencil=0 htileDepthOnly=1 pipeAligned=0 vrs=0 clear=1.000000

Both planes are all zero (depth 0.0, stencil 0), not DB_DEPTH_CLEAR (1.0). The title's 960x540 4x D32S8 targets on the title screen hold several values (first=0x01010101 same=1778688 of 2211840 words) and stay refused as before. Letting those through too (the hack, first version) stopped the title at 75 s on the title screen with sample-preserving guest publication of native multisample depth is not implemented, so a rule that took any plane would be a regression there.

Same route in both builds (title, Menu Narration skipped, cursor to New Game, Assassin, Full Synchronization Off), one 1300 s run each, main 73f4f7e06e + #13963 37417cec46 as the base:

Build New Game at Stops at Message
base (829550bfac) 232 s 442 s compute shader 0x10b4c8ad00: AGC graphics: native multisample stencil or depth format import is not implemented
base + this change (488a7fc53c) 237 s 438 s compute shader 0x10b4c89700: AGC graphics: sample-preserving guest publication of native multisample depth is not implemented

With the change the target is imported and the title moves to the next refusal in the same frame: an access over the planes after the host has drawn into them. That is the publication direction (host to guest), which this PR does not implement. #13021 publishes written D32S8 surfaces but is stacked on #9533 and #6300; #9950 publishes written D32 surfaces only (target.format == VK_FORMAT_D32_SFLOAT), so a D32S8 surface keeps a refusal there. #9950 also takes sampling.initial[1] as the HTILE range; for a target imported here that entry is the stencil plane, so a later extension of #9950 to D32S8 would have to tell the two apart.

Tested

On the merge with main a4eca2a056 (d2399ff2cd), same machine, with VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1 (VK_LOADER_DEBUG=layer shows the layer inserted): the 14 agc_driver_native_depth_*, agc_driver_native_multisample_depth and agc_driver_cached_image_multisample_guard tests pass on main and on the merge, and agc_driver_native_depth_uniform_planes passes on the merge (15/15), with no VUID- line. With the dispatch to prepareUniformPlaneSampling removed, --uniform-planes fails with native multisample stencil import requires HTILE stencil metadata. With main's stencil clear value, it fails with a uniform stencil plane without HTILE was not imported into every sample: sample 0 holds 0, the plane 195. Without the no-HTILE branch in CheckResource, it fails with native multisample depth sampled metadata or XOR mismatch. The results below are from the heads before that merge.

Linux 7.2.11, RADV (Mesa 26.2.6), AMD Radeon RX 9070 XT, Release, BUILD_TESTING=ON, on main 73f4f7e06e.

  • New agc_driver_native_depth_uniform_planes (agc_driver_native_multisample_depth_tests --uniform-planes), 2, 4 and 8 samples, 129x67 D32S8 with a separate stencil plane and no HTILE:
    • refused (attachment rendering kept): one depth byte differs, depth 2.0, one stencil byte differs, HTILE stencil, a stencil plane that overlaps the depth plane;
    • imported: planes of 0.0 / 0xc3 and of 0.25 / 0x5a. A compute fetch of every sample returns the plane's depth, and a compute fetch of every sample of an R8_UINT view at stencilAddress returns the plane's stencil byte;
    • a CPU write into the stencil plane after the import refuses the next sample with guest writes.
  • Negative controls: the same test with main's DepthSurface.cpp fails with the title's message: refusal did not match does not hold one depth value: AGC graphics: native multisample stencil or depth format import is not implemented. With this->sampling.initialStencil.value_or(target.clearStencil) replaced by target.clearStencil (the host stencil starts at DB_STENCIL_CLEAR, 0), it fails with a uniform stencil plane without HTILE was not imported into every sample: sample 0 holds 0, the plane 195, and so it does when refreshSampleShadow copies only the depth aspect. With c9987271e3's DepthSurface.cpp the stencil read fails with native multisample depth sampled identity or format mismatch.
  • agc_driver_native_multisample_depth, agc_driver_native_depth_retirement, _clears, _clear_refusals, _buffer_clear and 52 agc_driver_(depth|native|sample_multisample|multisample) entries pass. On f7841c78d5 the 53 entries that regex selects pass under the validation layer, with no VUID- line.
  • Validation layer, c9987271e3 against f7841c78d5, same machine and settings as below plus VK_LOADER_DEBUG=layer, on the six tests: 6/6 on each, the loader inserted the layer 17 times on each, no VUID- line and no was not found but was requested on either.
  • Validation layer, same machine, ctest -V -R "native_(multisample_depth|depth)" with VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ANYPS5_NO_SHADER_CACHE=1, ANYPS5_REQUIRE_VULKAN=1: main 5/5, this change 6/6 (the five plus the new test). No VUID- line and no was not found but was requested in either log. Before the createSampleShadow change the new test raised 12 VUID-VkImageMemoryBarrier-image-03320.
  • tools/check_conventions.py passes.

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
  • No notes, investigation .md files or images added to the repository
  • New third-party code is a submodule built from source (none)
  • Generic behaviour, not specific to one title
  • Depends on: none (#9533 and #9717, which handle D32S8 with HTILE and stencil-plane sampling, are merged; this branch sits on them)
  • Fixes: none
  • Unblocks: PPSA13960 (first real-time scene after New Game)
  • GPUs tested: AMD Radeon RX 9070 XT (RADV, Mesa 26.2.6), Linux
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5098925746 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14005). Originally posted by [hugodearaujo](https://github.com/hugodearaujo) on 2026-10-31T15:28:18Z. --- ### What A native multisample depth target is imported for sampling only when its HTILE proves the initial clear. A D32S8 target with a separate stencil plane and no HTILE at all is refused at creation, and the title stops at the first sample of its depth. Before #9533/#9717 the message was the first one below; on current `main` it is the second: ``` compute shader 0x10b4c8ad00: AGC graphics: native multisample stencil or depth format import is not implemented AGC graphics: native multisample stencil import requires HTILE stencil metadata ``` Without HTILE the DB reads and writes both planes uncompressed, so their guest bytes are the initial contents. When every 32-bit word of the sample-aware depth plane (`MultisampledDepthBytes_nid_no_patch(extent, 4, samples)`) is the same float in [0, 1] and every byte of the stencil plane (`MultisampledDepthBytes_nid_no_patch(extent, 1, samples)`) is the same value, every sample holds those values whatever the Z_X sample order. This PR imports such a target: - `prepareDepthSampling` sends a D32S8 target with a separate stencil plane and no HTILE to `prepareUniformPlaneSampling`. It keeps the Z_X / single slice / XOR / alignment checks of the HTILE path, syncs and flushes both plane ranges, takes their write generations, reads both planes (64 KiB at a time) and checks again that nothing wrote them meanwhile. The two plane ranges then play the part the depth and HTILE ranges play for an HTILE target: guards, the guest-write check at each sample, retirement. - The host image is created cleared to the planes' values instead of `DB_DEPTH_CLEAR`/`DB_STENCIL_CLEAR`. - `CheckResource`: for a target without HTILE the sampled descriptor must name no metadata (`dccAddress` 0); its pipe-aligned and ITERATE_256 bits are not compared, since they only describe metadata. - The stencil plane of such a target can be sampled too, as an 8-bit uint at its own address, and the sample shadow carries the stencil aspect once it is read. Since merging `main` `a4eca2a056`, both come from `main`'s stencil model (#9717): `CheckResource`'s stencil identity, the stencil sample-count check in `Sampled`, and `sampleShadowStencil`. This path uses them unchanged. - Like `main`'s HTILE path, the import is refused (attachment rendering kept) when a multisampled colour target covers either plane. Still refused, each with its own message: a depth plane with more than one word or a float outside [0, 1] (`native multisample depth plane without HTILE does not hold one depth value in [0, 1]`), a stencil plane with more than one byte value, overlapping planes, HTILE stencil, and guest writes racing the import. D16/D32 without HTILE keep their refusal, and D32S8 with HTILE takes `main`'s path (#9533). Publication of a written surface is still not implemented. A new debt entry, next to the one for native multisampled depth sampling, says that the single-value rule is inferred from the layout, not measured on the console. ### Why: Assassin's Creed Mirage (PPSA13960 01.007.000) On `main` + #13963 (which contains #13248), in the first real-time scene after New Game (Basim in the dark), the title binds a 4x D32S8 1920x1080 target with a separate stencil plane and no HTILE, and a compute shader samples its depth. A diagnostic build (local only: `main` + #13963 + logging, and a hack that let this target through) printed, when the 1920x1080 target was created and on its first draw: ``` [diag-nohtile] import 0x1246aa0000: depth 8355840 words, first=0x00000000 same=8355840 one=0 zero=8355840; stencil 8847360 bytes first=0x00 same=8847360 zero=8847360 [diag-nohtile] draw#1 build 0x1246aa0000 1920x1080 x4: dtest=1 dwrite=1 cmp=7 bounds=0 stest=1 front(cmp=7 pass=2 fail=2 zfail=2 wm=0xff ref=0x0) vp=(0,1080 1920x-1080 z 0.000..1.000) sc=(0,0 1920x1080) topo=3 colors=2 clear=1.000/0 ``` and, from an earlier run of the same scene, the refusal's target fields: ``` [diag-depth] refuse 'native multisample stencil or depth format import is not implemented': address=0x1240fc0000 stencil=0x1242fa0000 htile=0x0 1920x1080 samples=4 vkfmt=130 swizzle=24 slices=0..0 xor=0x0 htileStencil=0 htileDepthOnly=1 pipeAligned=0 vrs=0 clear=1.000000 ``` Both planes are all zero (depth 0.0, stencil 0), not `DB_DEPTH_CLEAR` (1.0). The title's 960x540 4x D32S8 targets on the title screen hold several values (`first=0x01010101 same=1778688` of 2211840 words) and stay refused as before. Letting those through too (the hack, first version) stopped the title at 75 s on the title screen with `sample-preserving guest publication of native multisample depth is not implemented`, so a rule that took any plane would be a regression there. Same route in both builds (title, Menu Narration skipped, cursor to New Game, Assassin, Full Synchronization Off), one 1300 s run each, `main` 73f4f7e06e + #13963 37417cec46 as the base: | Build | New Game at | Stops at | Message | |---|---|---|---| | base (829550bfac) | 232 s | 442 s | `compute shader 0x10b4c8ad00: AGC graphics: native multisample stencil or depth format import is not implemented` | | base + this change (488a7fc53c) | 237 s | 438 s | `compute shader 0x10b4c89700: AGC graphics: sample-preserving guest publication of native multisample depth is not implemented` | With the change the target is imported and the title moves to the next refusal in the same frame: an access over the planes after the host has drawn into them. That is the publication direction (host to guest), which this PR does not implement. #13021 publishes written D32S8 surfaces but is stacked on #9533 and #6300; #9950 publishes written D32 surfaces only (`target.format == VK_FORMAT_D32_SFLOAT`), so a D32S8 surface keeps a refusal there. #9950 also takes `sampling.initial[1]` as the HTILE range; for a target imported here that entry is the stencil plane, so a later extension of #9950 to D32S8 would have to tell the two apart. ### Tested On the merge with `main` `a4eca2a056` (`d2399ff2cd`), same machine, with `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ANYPS5_NO_SHADER_CACHE=1 ANYPS5_REQUIRE_VULKAN=1` (`VK_LOADER_DEBUG=layer` shows the layer inserted): the 14 `agc_driver_native_depth_*`, `agc_driver_native_multisample_depth` and `agc_driver_cached_image_multisample_guard` tests pass on `main` and on the merge, and `agc_driver_native_depth_uniform_planes` passes on the merge (15/15), with no `VUID-` line. With the dispatch to `prepareUniformPlaneSampling` removed, `--uniform-planes` fails with `native multisample stencil import requires HTILE stencil metadata`. With `main`'s stencil clear value, it fails with `a uniform stencil plane without HTILE was not imported into every sample: sample 0 holds 0, the plane 195`. Without the no-HTILE branch in `CheckResource`, it fails with `native multisample depth sampled metadata or XOR mismatch`. The results below are from the heads before that merge. Linux 7.2.11, RADV (Mesa 26.2.6), AMD Radeon RX 9070 XT, Release, `BUILD_TESTING=ON`, on `main` 73f4f7e06e. - New `agc_driver_native_depth_uniform_planes` (`agc_driver_native_multisample_depth_tests --uniform-planes`), 2, 4 and 8 samples, 129x67 D32S8 with a separate stencil plane and no HTILE: - refused (attachment rendering kept): one depth byte differs, depth 2.0, one stencil byte differs, HTILE stencil, a stencil plane that overlaps the depth plane; - imported: planes of 0.0 / 0xc3 and of 0.25 / 0x5a. A compute fetch of every sample returns the plane's depth, and a compute fetch of every sample of an `R8_UINT` view at `stencilAddress` returns the plane's stencil byte; - a CPU write into the stencil plane after the import refuses the next sample with `guest writes`. - Negative controls: the same test with `main`'s `DepthSurface.cpp` fails with the title's message: `refusal did not match does not hold one depth value: AGC graphics: native multisample stencil or depth format import is not implemented`. With `this->sampling.initialStencil.value_or(target.clearStencil)` replaced by `target.clearStencil` (the host stencil starts at `DB_STENCIL_CLEAR`, 0), it fails with `a uniform stencil plane without HTILE was not imported into every sample: sample 0 holds 0, the plane 195`, and so it does when `refreshSampleShadow` copies only the depth aspect. With `c9987271e3`'s `DepthSurface.cpp` the stencil read fails with `native multisample depth sampled identity or format mismatch`. - `agc_driver_native_multisample_depth`, `agc_driver_native_depth_retirement`, `_clears`, `_clear_refusals`, `_buffer_clear` and 52 `agc_driver_(depth|native|sample_multisample|multisample)` entries pass. On `f7841c78d5` the 53 entries that regex selects pass under the validation layer, with no `VUID-` line. - Validation layer, `c9987271e3` against `f7841c78d5`, same machine and settings as below plus `VK_LOADER_DEBUG=layer`, on the six tests: 6/6 on each, the loader inserted the layer 17 times on each, no `VUID-` line and no `was not found but was requested` on either. - Validation layer, same machine, `ctest -V -R "native_(multisample_depth|depth)"` with `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, `ANYPS5_NO_SHADER_CACHE=1`, `ANYPS5_REQUIRE_VULKAN=1`: `main` 5/5, this change 6/6 (the five plus the new test). No `VUID-` line and no `was not found but was requested` in either log. Before the `createSampleShadow` change the new test raised 12 `VUID-VkImageMemoryBarrier-image-03320`. - `tools/check_conventions.py` passes. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt - [x] Unimplemented paths throw - [x] No notes, investigation `.md` files or images added to the repository - [x] New third-party code is a submodule built from source (none) - [x] Generic behaviour, not specific to one title - [x] Depends on: none (#9533 and #9717, which handle D32S8 with HTILE and stencil-plane sampling, are merged; this branch sits on them) - [x] Fixes: none - [x] Unblocks: PPSA13960 (first real-time scene after New Game) - [x] GPUs tested: AMD Radeon RX 9070 XT (RADV, Mesa 26.2.6), Linux - [x] AI-assisted: yes
MarcZX10 commented 2026-10-31 16:34:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-31T16:34:41Z.

Review: APPROVED


Reviewed — looks good

I reviewed head f7841c78d58b7ec1e6c498157b6e4238bb882fc5; the uniform-plane depth/stencil import, stencil sampling path, and focused regression coverage are consistent with the documented limits.

What I ran

The PR head was f7841c78d58b7ec1e6c498157b6e4238bb882fc5 and the base was 474030e58424fefdb65e5df9f3820810fbb4553c. The merge preview against that base was clean. Environment: Linux 6.1 x86_64, Python 3.11.2, Git 2.39.5; I did not configure, build, or compile AnyPS5.

python3 tools/pr_precheck.py --pr 14005 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-14005-precheck
git diff --check 474030e58424fefdb65e5df9f3820810fbb4553c...f7841c78d58b7ec1e6c498157b6e4238bb882fc5
python3 tools/pr_abi_audit.py --base 474030e58424fefdb65e5df9f3820810fbb4553c --head f7841c78d58b7ec1e6c498157b6e4238bb882fc5 --json
python3 tools/pr_test_quality.py --root /tmp/anyps5-14005-exact --json core/libs/prx/libSceAgcDriver/CMakeLists.txt core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp core/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cpp docs/dev/debt/libSceAgcDriver.md
python3 tools/pr_stack_check.py 14005 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-14005-stack-final

The precheck and audit scripts are local review-workspace helpers, not files from this PR. The PR source used for the test-quality inspection was extracted from the exact head SHA.

Results

Check Result
Diff check Passed.
Conventions and PR template Passed.
Export ABI audit Not applicable: no export declarations, definitions, or aliases changed.
Test registration heuristic It emitted a possible-unregistered warning; inspection confirmed this test source is picked up by the tests/execution/*.cpp CMake glob, and the new --uniform-planes CTest entry is present. The warning is a heuristic false positive.
Base merge preview Clean against 474030e58424fefdb65e5df9f3820810fbb4553c.
Author-reported GPU validation The PR description reports RADV / RX 9070 XT validation runs: focused depth tests passed 5/5 on main at 73f4f7e06e4f210a8c6570e335fd654dc0a86134 and 6/6 on this PR head, with no new VUID- messages or missing validation-layer message. It also reports negative controls that fail when the stencil clear or shadow-copy changes are removed. I did not independently run these GPU tests. The current PR base is 474030e58424fefdb65e5df9f3820810fbb4553c; its merge preview is clean, but the author-reported baseline was not rerun at that newer base SHA.
Hosted CI Windows workflow completed successfully with 2,524 selected tests passing. The native multisample depth tests were skipped: the workflow built ExecutionTestNotBuilt.cpp for that test target, and the full libs and CTest-selection steps were skipped. Linux and specialized jobs were skipped.
Local check output
All conventions checks passed.

{
  "status": "not_applicable",
  "symbols": [],
  "findings": [],
  "limitations": [
    "No changed APS5_VABI declaration/definition or APS5_EXPORT alias was recognized in the PR diff."
  ]
}
{
  "findings": [
    {
      "path": "core/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cpp",
      "line": 1,
      "kind": "possible-unregistered-cpp-test",
      "message": "Changed C++ test source path was not found literally in CMake files; inspect registration, generated source lists, and workflow coverage."
    }
  ],
  "negative_control_candidates": [],
  "limits": [
    "Heuristics can miss weak assertions and can flag valid tests; inspect every finding.",
    "A test that passes against base is not by itself proof that the PR test is inadequate.",
    "Negative controls are only candidates until the test actually runs against base and fails by assertion rather than import/setup error."
  ]
}

The test-quality output above is the heuristic's unedited JSON; the CMake source glob and test declaration were checked manually at this head. git diff --check produced no output and exited successfully. The precheck's overall status was affected by its isolated archive lacking the local ABI and test-quality helper scripts; I reran those checks against the exact-head source as shown above.

Sources

Not verified

  • I did not independently reproduce the author-reported RADV/GPU runs or negative controls.
  • The Windows job did not execute the native multisample depth tests: agc_driver_native_depth_uniform_planes and the existing agc_driver_native_multisample_depth were skipped, and the product libs build/full CTest steps were skipped. Linux and specialized CI jobs were skipped.
  • The same focused GPU comparison was not rerun against the current base SHA 474030e58424fefdb65e5df9f3820810fbb4553c; the PR reports its baseline at 73f4f7e06e4f210a8c6570e335fd654dc0a86134.
  • Console behavior and equivalence of the inferred uniform-plane layout remain unmeasured, as the PR's debt note states.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5723784262 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14005#pullrequestreview-5723784262). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-31T16:34:41Z. **Review:** APPROVED --- # Reviewed — looks good I reviewed head `f7841c78d58b7ec1e6c498157b6e4238bb882fc5`; the uniform-plane depth/stencil import, stencil sampling path, and focused regression coverage are consistent with the documented limits. ## What I ran The PR head was `f7841c78d58b7ec1e6c498157b6e4238bb882fc5` and the base was `474030e58424fefdb65e5df9f3820810fbb4553c`. The merge preview against that base was clean. Environment: Linux 6.1 x86_64, Python 3.11.2, Git 2.39.5; I did not configure, build, or compile AnyPS5. ```sh python3 tools/pr_precheck.py --pr 14005 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-14005-precheck git diff --check 474030e58424fefdb65e5df9f3820810fbb4553c...f7841c78d58b7ec1e6c498157b6e4238bb882fc5 python3 tools/pr_abi_audit.py --base 474030e58424fefdb65e5df9f3820810fbb4553c --head f7841c78d58b7ec1e6c498157b6e4238bb882fc5 --json python3 tools/pr_test_quality.py --root /tmp/anyps5-14005-exact --json core/libs/prx/libSceAgcDriver/CMakeLists.txt core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp core/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cpp docs/dev/debt/libSceAgcDriver.md python3 tools/pr_stack_check.py 14005 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-14005-stack-final ``` The precheck and audit scripts are local review-workspace helpers, not files from this PR. The PR source used for the test-quality inspection was extracted from the exact head SHA. ## Results | Check | Result | |---|---| | Diff check | Passed. | | Conventions and PR template | Passed. | | Export ABI audit | Not applicable: no export declarations, definitions, or aliases changed. | | Test registration heuristic | It emitted a possible-unregistered warning; inspection confirmed this test source is picked up by the `tests/execution/*.cpp` CMake glob, and the new `--uniform-planes` CTest entry is present. The warning is a heuristic false positive. | | Base merge preview | Clean against `474030e58424fefdb65e5df9f3820810fbb4553c`. | | Author-reported GPU validation | The PR description reports RADV / RX 9070 XT validation runs: focused depth tests passed 5/5 on `main` at `73f4f7e06e4f210a8c6570e335fd654dc0a86134` and 6/6 on this PR head, with no new `VUID-` messages or missing validation-layer message. It also reports negative controls that fail when the stencil clear or shadow-copy changes are removed. I did not independently run these GPU tests. The current PR base is `474030e58424fefdb65e5df9f3820810fbb4553c`; its merge preview is clean, but the author-reported baseline was not rerun at that newer base SHA. | | Hosted CI | Windows workflow completed successfully with 2,524 selected tests passing. The native multisample depth tests were skipped: the workflow built `ExecutionTestNotBuilt.cpp` for that test target, and the full `libs` and CTest-selection steps were skipped. Linux and specialized jobs were skipped. | <details><summary>Local check output</summary> ```text All conventions checks passed. { "status": "not_applicable", "symbols": [], "findings": [], "limitations": [ "No changed APS5_VABI declaration/definition or APS5_EXPORT alias was recognized in the PR diff." ] } { "findings": [ { "path": "core/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cpp", "line": 1, "kind": "possible-unregistered-cpp-test", "message": "Changed C++ test source path was not found literally in CMake files; inspect registration, generated source lists, and workflow coverage." } ], "negative_control_candidates": [], "limits": [ "Heuristics can miss weak assertions and can flag valid tests; inspect every finding.", "A test that passes against base is not by itself proof that the PR test is inadequate.", "Negative controls are only candidates until the test actually runs against base and fails by assertion rather than import/setup error." ] } ``` The test-quality output above is the heuristic's unedited JSON; the CMake source glob and test declaration were checked manually at this head. `git diff --check` produced no output and exited successfully. The precheck's overall status was affected by its isolated archive lacking the local ABI and test-quality helper scripts; I reran those checks against the exact-head source as shown above. </details> ## Sources - The import validates watched, non-overlapping planes and stable write generations before accepting uniform depth/stencil values: [DepthSurface.cpp at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/f7841c78d58b7ec1e6c498157b6e4238bb882fc5/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp#L118-L166). - The multisample descriptor accepts the stencil plane at its own address, and the sample shadow copies the depth and stencil aspects: [DepthSurface.cpp at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/f7841c78d58b7ec1e6c498157b6e4238bb882fc5/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp#L446-L453), [sample-shadow copy](https://github.com/boykopovar/AnyPS5/blob/f7841c78d58b7ec1e6c498157b6e4238bb882fc5/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp#L1191-L1197). - The regression fetches depth and stencil for every sample, checks refused plane shapes, and is registered as a CTest case: [NativeMultisampleDepth.cpp at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/f7841c78d58b7ec1e6c498157b6e4238bb882fc5/core/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cpp#L1548-L1634), [CMake registration](https://github.com/boykopovar/AnyPS5/blob/f7841c78d58b7ec1e6c498157b6e4238bb882fc5/core/libs/prx/libSceAgcDriver/CMakeLists.txt#L3145-L3150). - The repository requires same-machine, same-GPU validation-layer tests for AGC changes: [CONTRIBUTING.md at the reviewed base](https://github.com/boykopovar/AnyPS5/blob/474030e58424fefdb65e5df9f3820810fbb4553c/CONTRIBUTING.md#L72). ## Not verified - I did not independently reproduce the author-reported RADV/GPU runs or negative controls. - The Windows job did not execute the native multisample depth tests: `agc_driver_native_depth_uniform_planes` and the existing `agc_driver_native_multisample_depth` were skipped, and the product `libs` build/full CTest steps were skipped. Linux and specialized CI jobs were skipped. - The same focused GPU comparison was not rerun against the current base SHA `474030e58424fefdb65e5df9f3820810fbb4553c`; the PR reports its baseline at `73f4f7e06e4f210a8c6570e335fd654dc0a86134`. - Console behavior and equivalence of the inferred uniform-plane layout remain unmeasured, as the PR's debt note states.
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!14005
No description provided.