feat(agc): sample the stencil plane of a native multisampled D32S8 target #9717

Merged
EagleBearerYS merged 52 commits from upstream-pr/9717 into main 2026-11-02 07:58:15 +00:00
EagleBearerYS commented 2026-10-22 09:44:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-22T09:44:56Z.


What

This is stacked on #9533 (53886418d9).

PPSA03208 reads the stencil plane of a native multisampled D32S8 target per sample, through a plain R8_UINT 2D MSAA descriptor, right after reading its depth the same way. On #9533 that read is the next stop, at the first dispatch of a compute program, in CheckResource: native multisample depth sampled identity or format mismatch (oneandonlydean's run).

  • The descriptor: 1546eb00 c0500000 021bc1df e1810924 00000000 00700010 00000000 00000000. Its base is the separate stencil plane, at format 5 (R8_UINT), 2 samples, 2D MSAA, tile mode 4 and no metadata.
  • The target: 1920x2160, D32S8, with a depth-only HTILE.

The change:

  • What CheckResource accepts: a T# at the target's stencilAddress, when all of these hold:

    • format 5 (R8_UINT);
    • the surface's extent and sample count;
    • 2D MSAA, the target's tile mode (kZ64KBX), and one slice and level;
    • the target's pipe/bank XOR;
    • no metadata;
    • a target with a separate stencil plane (a depth-only HTILE with no HTILE stencil).

    Other stencil descriptors refuse with the existing texts.

  • The view: Sampled makes a VK_IMAGE_ASPECT_STENCIL_BIT view of the host D32S8 image, with the T#'s component mapping. Where the device samples through the sample shadow, the view is of the shadow. The device's sampledImageStencilSampleCounts has to cover the sample count.

  • The binding: an R8_UINT T# binds as an unsigned-integer sampled image, and a stencil-aspect view returns the stencil as an unsigned integer in R, so the view matches the shader's binding.

  • The shadow: once a stencil read has used the sample shadow, each refresh copies depth and stencil in one vkCmdCopyImage.

  • Unproven planes: a stencil plane #9533 leaves unproven, because an aliasing colour target drew over it, still refuses with #9533's text.

  • Debt: a new entry, "Native multisample stencil plane sampling", lists the accepted descriptor, the shadow copy and the refusals. It also says console equivalence isn't measured.

Overlap: checked with git merge-tree against every open PR touching these files, on main 7e2ba73e4c.

  • The stack: this PR's base is #9533, so #9533's overlaps apply (#8223, #9186, #8998, #8847, #9700 and #9508; see #9533). This PR's own commit adds nothing to them.
  • #8999 (milescoviello) has landed. Its change to Sampled's signature and CheckResource calls composes with this PR's hunks: this PR takes it in through #9533's merge of main (74594d4a81) without a conflict, and Sampled carries both sides' parameters.
  • #9672 (ntamas94) and #9431 (Get-fix) add lines in DepthSurfaceTexture and the surface class, away from this PR's functions. Neither merges with main yet.
  • #9533's head, which includes #7233 and #7371: merging 1d16d5029d (920e43691f) needed only #9533's debt entry, where both sides' edits are kept, and 9afaa90c1f (dea8f8ddbd) merged cleanly, and a45dff8d51 (ec384dd23f), #9533's merge of main with #6727, again needed only #9533's debt entry, where both sides' edits are kept. Merging 1582cf6cc0 (e5a24cd3c5), #9533's queued-fill skip, needed only that entry once more, and both sides' words are kept.
  • #9742 (the depth-plane alias, also stacked on #9533): adjacent additions in CMakeLists.txt, NativeMultisampleDepth.cpp and the debt file. Keeping both sides resolves them, as on the combined test branch below. Merge order: #9742 first, then this PR, as both PRs' Depends on lines say.
  • #13021 (JAB-dev, which publishes a written native multisample D32S8 surface to its guest planes):
    • Conflicts: git merge-tree of this head and #13021's 24869a37ea conflicts in five files: DepthSurface.cpp (refreshSampleShadow's second parameter), MultisampleTarget.cpp, CMakeLists.txt, NativeMultisampleDepth.cpp and the debt file. #13021 and #9533's head already conflict in two of them.
    • Order, agreed with JAB-dev (comment): #9533, this PR, then #13021. After the first two merge, #13021 rebases onto main and takes this PR's refreshSampleShadow form (the stencilRead signature, without its second stencil copy), as XatiX's resolution there describes.
  • #6044 (TaymKal) converts this file's test registrations to add_library_test and moves test files. The order is proposed in its thread (comment): this PR first; if #6044 lands first, agc_driver_native_depth_stencil_view is registered with add_library_test(graphics ...) at this PR's next merge of main.
  • #8115 and #8121 (milescoviello) handle the title's next two stops: one-sample colour targets beside a multisampled rasterizer, and a PS_ITER_SAMPLE program into a one-sample target. Each merges cleanly with this head and with #9533 (git merge-tree against 2620f8d62e and c974601a60), so no order is needed between them.
  • CMakeLists.txt and the AGC debt file are shared with many PRs, by neighbouring lines only.

Tested

  • RTX 3070 Laptop GPU (NVIDIA 617.42, Windows 11, VK_LOADER_DRIVERS_SELECT='*nv*'; clocks weren't held, so these are pass/fail only):

    • #9533's eight native depth tests and the new agc_driver_native_depth_stencil_view pass five times each.
    • The stencil view passes at 2, 4 and 8 samples.
  • Linux, Mesa llvmpipe (which runs the 4-sample case):

    • The test: a D32S8 target with XOR 0x8c00 and a depth-only HTILE.
      • Stencil is written per pixel and per sample with REPLACE, and depth per sample.
      • One compute dispatch then reads the D32 T# and the R8_UINT 2D MSAA T# at the stencil address, and checks every sample's depth bits, stencil value and component mapping.
      • It does this after the clear and after two raster rounds.
      • Format, sample, width, tile-mode, XOR and metadata variants each refuse with their text, and the guest plane stays untouched.
    • Red: with DepthSurface.cpp at #9533's head, the test fails with native multisample depth sampled identity or format mismatch.
    • GitHub's Linux runner (run): the test fails on #9533's head, where it doesn't exist yet. With this change, the nine native depth tests pass three times each. GitHub's Windows runner builds it, and its Vulkan tests skip there.
    • CI's Linux job mirrored: the only failures are the build machine's three IPv6 tests and three timing tests under --parallel 4: agc_driver_pipelined_fill, agc_driver_sgpr_pattern_fill_keys and agc_driver_pipelined_indirect_draw. The same tests fail on #9533's head and pass when run alone.
  • Validation layer, #9533 (514643ab16) against this PR (CONTRIBUTING's AGC rule), on one GitHub Linux runner (run).

    • Setup: both runs used VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ANYPS5_NO_SHADER_CACHE=1, ANYPS5_REQUIRE_VULKAN=1 and ctest -V, with VK_LOADER_DEBUG=layer to show the layer loading. The device was llvmpipe (LLVM 20.1.2) on Mesa 25.2.8, Ubuntu 24.04.5, Khronos validation layers 1.3.275.
    • The tests: the nine native depth tests. #9533's tree ran its eight once, and this PR's tree ran all nine three times.
    • The layer: the loader inserted VK_LAYER_KHRONOS_validation 16 times on #9533's tree and 54 with this PR. Neither log has was not found but was requested by env var VK_INSTANCE_LAYERS.
    • The messages: both logs report only VUID-VkDeviceCreateInfo-pNext-pNext, for a device-creation structure newer than that layer version. This PR adds no VUID- message.
  • Apple M2 Max with MoltenVK, by @jotitadev (review): macOS 27.2, x86_64 under Rosetta 2, Release. They used MoltenVK 1.4.2 (Vulkan SDK 1.4.363.0) and MoltenVK main + SPIRV-Cross #2704, on #8658's macOS port (1688e5abb8), since main doesn't build on macOS; this head's diff applied with no conflicts.

    • With this PR, the nine native depth tests and agc_driver_native_multisample_depth pass 3 of 3 on both drivers. agc_driver_native_depth_stencil_view runs 2 and 4 samples; this device doesn't offer 8.
    • With #9533's head and this PR's tests, agc_driver_native_depth_stencil_view fails on both drivers with native multisample depth sampled identity or format mismatch.
    • The full ^agc suite with this PR (861 tests): the same failures as on the base on both drivers, except agc_driver_uint8x4_color_target once on main + #2704, which they say is intermittent on that machine without this PR too.
  • Ghost of Tsushima Director's Cut (PPSA02225), by @milescoviello, a pair that differs only by this PR's commit: Linux, RTX 4070 Ti, NVIDIA 615.71.09, release libraries.

    • Without it, on #9742's head 219e925509, on #9533's 514643ab16 (comment): the warm run stops at 14 s, in compute shader 0x20001ef700, on native multisample depth sampled identity or format mismatch. The cold run ended in a SIGSEGV at 16 s with no message before it, which didn't come back on the branch below.
    • With it, on the test branch test/ghost-9742-9717 (3ec696f7fe: 219e925509 and this PR's 767374011f; comment), warm at 16 GB and cold at 20 GB: warm reaches 246 s and cold 254 s, with no native multisample depth or stencil refusal. Both stop at a color target's sample count differs from the rasterizer's, which milescoviello's #8115 handles.
    • What it shows: this PR prints no line of its own, so the path is inferred from the refusal. That text is CheckResource's identity check, and the only clause this PR changes there accepts a T# at the target's stencil plane with format 5 (R8_UINT). So the shader that stopped there without this PR reads the D32S8 target's stencil plane that way, and gets past with it.
    • Supporting: @xXPBSXx's Windows run of #9742 without this PR stops on the same refusal in the same shader (comment).
  • 920e43691f, #9533's head 1d16d5029d merged in (only #9533's debt entry needed resolving, and both sides' edits are kept there; outside it, this PR's own changes are the same by git diff -U0 patch-id), on GitHub's runners (run):

    • Linux: the 13 native depth, DCC clear and pipelined DMA tests and this PR's agc_driver_native_depth_stencil_view pass 10 of 10, none skipped. The run was in validation mode, whose base arm builds #9533's own tree and runs only the 13 tests it has, so the red for agc_driver_native_depth_stencil_view is the one in the Red line above.
    • Validation, #9533's head against this PR, in the same run: the loader inserted VK_LAYER_KHRONOS_validation 21 times on #9533's tree and 230 with this PR, and neither log has was not found. Both logs report only VUID-VkDeviceCreateInfo-pNext-pNext, so this PR adds no VUID- message.
    • Windows: the runner builds them, and 13 Vulkan tests skip there.
    • Suites: libc and libkernel pass on both runners. The libc and libkernel suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • Validation, main b7d1d47a5f against 920e43691f (run), the same 14 tests once on one GitHub Linux runner. main's tree ran the 7 of them it has. The loader inserted VK_LAYER_KHRONOS_validation 11 times on main and 23 with this head, and neither log has was not found. Both logs report only VUID-VkDeviceCreateInfo-pNext-pNext, so the stack adds no VUID- message against main.

  • Ghost of Tsushima Director's Cut (PPSA02225), by @milescoviello, with #9742, #8115 and #8121 (comment): the test branch test/ghost-9742-9717 (3ec696f7fe) with milescoviello's #8115 and #8121 merged on top, both clean; Linux, RTX 4070 Ti, NVIDIA 615.71.09, release libraries, 20 GiB cap, warm and cold.

    • With #8115 alone, the sample-count stop is gone, and warm (146 s) and cold (267 s) stop at a one-sample color target under a multisampled rasterizer without MSAA_ENABLE is unsupported with PS_ITER_SAMPLE, a sample index or coverage input, or a sample-mask export, which #8121 handles.
    • With #8115 and #8121, warm and cold both reach the 600 s limit with no refusal and no crash. In milescoviello's words, the game shows its brightness calibration screen, with the mask rendered correctly, and then its intro. The only native depth line is this stack's alias line, printed once and accepted.
    • The limits they report on that host: about 1.3 FPS on the brightness screen, with queue 0 the bottleneck; and two later warm runs killed at the 20 GiB cap, at 266 s and 478 s.
    • With #8213 and #8608 also merged, two of milescoviello's runs reach a 3D sampled view about 9 minutes into the opening (4781 MiB, of which 157 of its 900 slices lie inside a 2438 MiB guest allocation) and end at the 20 GiB cap, at 572 s and 563 s (comment). That view isn't a native depth view, so it's outside this stack's changes.
  • Ghost of Tsushima Director's Cut (PPSA02225), by @xXPBSXx (comment): Windows 10 Pro, WinLibs GCC 15.2.0, Release, NVIDIA GeForce RTX 4080 SUPER, runs of up to 600 s with no input, all libraries rebuilt for each tree (pass/stop only).

    • On main 1e20650e84, both runs stop in compute shader 0x20001ef700 on native multisample stencil or depth format import is not implemented.
    • With this PR merged locally on 1e20650e84, which brings #9533 along (so these runs don't separate the two), neither run has that refusal. The same shader stops on the next check, native multisample depth or HTILE aliases a multisampled colour target whose samples are only on the host: the depth-plane alias #9742 addresses. These runs didn't include #9742.
  • dea8f8ddbd, #9533's head 9afaa90c1f merged in (main 11f976b27c; clean, and this PR's own changes are the same by git diff -U0 patch-id), on GitHub's runners (run):

    • Linux: the 13 native depth, DCC clear and pipelined DMA tests and agc_driver_native_depth_stencil_view pass 10 of 10, none skipped.
    • Validation, main against this head, in the same run: main's tree ran the 7 of these tests it has. The loader inserted VK_LAYER_KHRONOS_validation 11 times on main and 230 with this head, and neither log has was not found. Both logs report only VUID-VkDeviceCreateInfo-pNext-pNext, so this PR adds no VUID- message.
    • Windows: the runner builds them, and the Vulkan tests skip there.
    • Suites: libc and libkernel pass on both runners. The libc and libkernel suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • ec384dd23f, #9533's head a45dff8d51 merged in (main d6e7ab42df, which brings #6727; this PR's own changes are the same by git diff -U0), on GitHub's runners (run):

    • Linux: the 13 native depth, DCC clear and pipelined DMA tests and agc_driver_native_depth_stencil_view pass 10 of 10, none skipped. #9533's agc_driver_native_depth_stencil fixture now notes a host write before its refusal checks, as #6727's own fixtures do, because #6727 retires an unwritten native multisample depth surface on a guest read instead of refusing it (#6727). That line is in #9533's merge.
    • Validation, main against this head, in the same run: main's tree ran the 7 of these tests it has. The loader inserted VK_LAYER_KHRONOS_validation 11 times on main and 230 with this head, and neither log has was not found. Both logs report only VUID-VkDeviceCreateInfo-pNext-pNext, so this PR adds no VUID- message.
    • Windows: the runner builds them, and the Vulkan tests skip there, so its lines are the suites only.
    • Suites: libc and libkernel pass on both runners. The libc and libkernel suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • check_conventions.py: no errors and no comment lines added. One existing warning, debt-length, on the native multisampled depth entry.

  • NVIDIA GeForce RTX 3070 Laptop GPU at 082ef25d86, the #9533, #9742 and #9717 stack before the #6727 merge (driver 617.42, Windows 11, WinLibs GCC 15.2.0, Release, ANYPS5_REQUIRE_VULKAN=1; GPU clocks weren't held, pass/fail only): agc_driver_native_depth_stencil_view passes 5 of 5 (3 cases checked per run, none unavailable). #9533's own native depth tests pass there too, except agc_driver_native_depth_driver_queued_fill: on Windows that queued fill refuses, as on main, and #9533 now skips the case there with the reason (1582cf6cc0; see #9533).

  • e5a24cd3c5, #9533's head 1582cf6cc0 merged in (#9533's queued-fill skip; this PR's own changes outside #9533's debt entry are the same by git diff -U0, and that entry keeps every word of both sides), on GitHub's runners (run):

    • Linux: the 13 native depth, DCC clear and pipelined DMA tests and agc_driver_native_depth_stencil_view pass 10 of 10, none skipped.
    • Validation, main against this head, in the same run: main's tree ran the 7 of these tests it has. The loader inserted VK_LAYER_KHRONOS_validation 11 times on main and 230 with this head, and neither log has was not found. Both logs report only VUID-VkDeviceCreateInfo-pNext-pNext, so this PR adds no VUID- message.
    • Windows: the runner builds them, and the Vulkan tests skip there, so its lines are the suites only.
    • Suites: libc and libkernel pass on both runners. The libc and libkernel suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • ff06dc329a, #9533's head 53886418d9 merged in (#9533's test-only fix for jotitadev's macOS abort at exit; a clean merge, and this PR's own diff is unchanged by patch-id), on GitHub's runners (run):

    • Linux: agc_driver_native_depth_stencil_view fails with #9533's code. With this PR it and the other native depth and native multisample depth tests pass 10 of 10, with agc_driver_native_depth_bda_clear skipping on llvmpipe, as on main.
    • Windows: the runner builds the 12 tests and skips them, since it has no Vulkan device.
    • Suites: libc and libkernel pass on both runners (116 and 198 on Linux, 143 and 208 on Windows). They ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • Not yet tested on PPSA03208. oneandonlydean has offered to run it.

  • 24fe4ea82b, a merge of #9533's de4cee5626, which merges main 0db47b263d. No conflicts. On GitHub's runners (run), of the agc_driver_native_depth* and agc_driver_native_multisample_depth* tests (12 tests), 11 pass 10 runs in a row on Linux and 1 skips: agc_driver_native_depth_bda_clear, main's test, because the device doesn't keep guest write watching for its native clear imports. On Windows all 12 build and skip, as the runner has no Vulkan device. The libc and libkernel suites pass on both, run with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners. An earlier run linked here didn't run this set, so it's replaced.

  • 74594d4a81, a merge of #9533's 55b0a5f4ad, which merges main 3fcb5e4d76 and with it #8999. No conflicts. On GitHub's runners (run), the native, depth and multisample tests (^agc_driver_native_, ^agc_driver_depth_, ^agc_driver_msaa_) pass 10 runs in a row on Linux: 43 run, 39 pass, 4 skip (agc_driver_native_fmask, agc_driver_msaa_dcc_clear_2 and _8, and agc_driver_native_depth_bda_clear), 0 fail. On Windows 43 run, 3 pass 10 runs in a row and 40 skip without a Vulkan device, 0 fail. The libc and libkernel suites pass on both (142 and 204 tests on Linux, 169 and 217 on Windows), run with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.

  • 74594d4a81 on GitHub's runners, red/green against #9533's head 55b0a5f4ad (run), ^agc_driver_native_: on Linux, with #9533's implementation of the changed files, agc_driver_native_depth_stencil_view fails with native multisample depth sampled identity or format mismatch (1 of 14). With this PR, 14 run, 12 pass, 2 skip (agc_driver_native_depth_bda_clear and agc_driver_native_fmask, which skip on both trees), 0 fail, 10 runs in a row. On Windows all 14 build and skip, as the runner has no Vulkan device. The libc and libkernel suites pass on both (142 and 204 tests on Linux, 169 and 217 on Windows), run with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.

  • Validation layer, main 3fcb5e4d76 against 74594d4a81 (CONTRIBUTING's AGC rule; run), on GitHub's Linux runner (llvmpipe, LLVM 20.1.2), with VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ANYPS5_NO_SHADER_CACHE=1, ANYPS5_REQUIRE_VULKAN=1 and ctest -V, ^agc_driver_native_ once: main's tree ran the 7 of these tests it has (5 pass, 2 skip) and this head all 14 (12 pass, 2 skip). The layer was inserted 12 times on main and 24 with this PR, neither log has was not found but was requested, and both report only VUID-VkDeviceCreateInfo-pNext-pNext, so this PR adds no VUID- message.

  • AMD GPUs on RADV, per tablefrogpillow's report (comment): on a test branch with this PR and #9742 (e2eb3ff566), Mesa 25.2.8, the Khronos validation layer on, agc_driver_depth_surface_from_storage, agc_driver_depth_surface_last_writer and agc_driver_native_multisample_depth pass on an RX Vega 56 (VEGA10, GCN5), an RX 7900 GRE (NAVI31, RDNA3) and a Ryzen 7 7800X3D's integrated GPU (RAPHAEL, RDNA2): 3 run, 3 pass, 0 skip, 0 fail on each, with agc_driver_native_multisample_depth checking all 24 of its cases.

  • f63435d33a, a merge of #9533's head 078e6a68d8 (run). It takes #9533's two merges of main since this PR last took it: #10375's CheckDepthAttachmentAlias and #9186's host-only flag for guard(). No conflict here. The agc_driver_native_, agc_driver_depth_, agc_driver_msaa_ and agc_driver_sample tests pass 10 runs in a row. Linux: 56 run, 50 pass, 6 skip (agc_driver_msaa_dcc_clear_2, agc_driver_msaa_dcc_clear_8, agc_driver_native_depth_bda_clear, agc_driver_native_fmask, agc_driver_sample_order_grid_reference, agc_driver_sample_order_recipe_depth_locations), 0 fail. Windows: 56 run, 5 pass, 51 skip (no Vulkan device), 0 fail. The before arm, main with this PR's tests, doesn't build. Suites: libc and libkernel pass on Linux (144 and 207) and on Windows (171 and 223). The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.

  • Assassin's Creed Shadows (PPSA20397), by akkadbakkad89, RTX 3070, Windows 11, driver 617.42, ran this PR on its stack (#9533, which carries #6300), per their report (comment): the title gets past #9533's format refusal at about +848 s and into pixel shading it hadn't reached before. Its next stop, a stencil-reference-export pixel shader (detail on #4276), is outside this PR, and the report doesn't single out this PR's stencil reads.

    • Validation (comment): on the same run, with VK_LAYER_KHRONOS_validation (SDK 1.4.363.0), ANYPS5_REQUIRE_VULKAN=1 and ANYPS5_NO_SHADER_CACHE=1, akkadbakkad89 reports no VUID- delta.
  • e9c5d95d33, a merge of #9533's f39599c354, which merges main 19af7f44e4 (run). No conflict here: #9533's merge carries #10368's CheckStorageAliasRetirement beside the ClearFault and ClearSource enums, and this PR's changed lines are the same. The agc_driver_native_, agc_driver_depth_, agc_driver_msaa_ and agc_driver_sample tests, with the other tests built from the files the merge changes, pass 10 runs in a row. Linux: 303 run, 287 pass, 16 skip, 0 fail. Windows: 322 run, 184 pass, 138 skip (no Vulkan device), 0 fail. With VK_LAYER_KHRONOS_validation loaded on both arms on Linux, the only VUID is VUID-VkDeviceCreateInfo-pNext-pNext, on both. Suites: libc and libkernel pass on Linux (145 and 210) and on Windows (172 and 231). The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.

  • 9846498dc7, a merge of #9533's a7697941f3, which merges main ccfb96757f (run). No conflict here, and this PR's changed lines over #9533 are the same. The native depth, stencil-view, depth-surface and uint8x4 colour target tests ran 10 times with no failure. Linux: 10 run, 7 pass, 3 skip (agc_driver_native_depth_bda_clear, agc_driver_native_fmask, agc_driver_sample_order_grid_reference, as in earlier runs), 0 fail. Windows: 10 run, 0 pass, 10 skip (no Vulkan device), 0 fail. Suites: libc and libkernel pass on Linux (166 and 264). On Windows libc passes (194), and libkernel passes 283 of 286: exec_arguments, guest_timed_join_import_libkernel_sys and guest_timed_join_import_libkernel_web fail at their setup in the verify's Windows build (FileNotFoundError starting the title, or copying the libraries they load), and pass in main's own Windows job at 1829def9bf (job). The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.

  • 41e4c2e241, a merge of #9533's 5343d0a8da (run). It's #9533's fix for a whole HTILE or stencil-plane fill whose stores landed before its note (Co-authored-by: Tharun Balaji K, from sktharunbalaji13-cmd's finding on Ghost of Tsushima Director's Cut; see #9533).

    • The merge is clean, and this PR's own changed lines are the same. The merge itself changes only DepthSurface.cpp and NativeMultisampleDepth.cpp.
    • The native depth tests ran 10 times with no failure. Linux: 12 run, 11 pass, 1 skip (agc_driver_native_depth_bda_clear, which skips on lavapipe), 0 fail. On Windows all 12 skip, because the runner has no Vulkan device, so they ran on Linux only.
    • The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners. On Linux, libc and libkernel ran 166 and 264 tests with 0 failed. On Windows libc ran 194 with 0 failed, and libkernel failed one of 286:
      229/286 Test #233: guest_raise_in_host_code ............................Exit code 0xc0000409***Exception:   0.11 sec
      
      The test had logged a chain of nested guest signal frames ([exception] guest context signal=0x1e, each further down the stack) before the process stopped. guest_raise_in_host_code is a libkernel signal test that the merge doesn't touch.
    • Rerun (run): guest_raise_in_host_code ran 20 times in a row on Windows with no failure: 1 run, 1 pass, 0 skip, 0 fail. In the same run, libc and libkernel ran 194 and 286 tests with 0 failed. The test is registered on Windows only.
  • defd410761, a merge of #9533's 6eb141ce5f, which merges main 102b7a5cf0 and with it Jamie's #12566 (×10 run, ×20 run). It merged cleanly, and this PR's own diff is unchanged. The native depth and multisample tests (^agc_driver_native_) and agc_frame_capture ran 10 times with no failure. Linux: 15 run, 13 pass, 2 skip, 0 fail. Windows: 15 run, 1 pass, 14 skip, 0 fail; the 14 skip because the runner has no Vulkan device. guest_raise_in_host_code, which is registered on Windows only, ran 20 times there with no failure. The libc and libkernel suites run 193 and 294 tests on Linux and 223 and 317 on Windows, with 0 failed. The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.

  • Validation comparison at defd410761 (CONTRIBUTING's AGC rule): main 102b7a5cf0, this head's base. Since then main has changed only libSceAgcDriver/CMakeLists.txt and the debt file among this PR's paths. On GitHub's Linux runner (llvmpipe (LLVM 20.1.2), Mesa 25.2.8, Ubuntu 24.04.5), with VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ANYPS5_NO_SHADER_CACHE=1, ANYPS5_REQUIRE_VULKAN=1 and ctest -V:

    • The native tests (run): every test matching ^agc_driver_native_. This head: 14 run, 12 pass, 2 skip (as in this PR's earlier runs on that runner), 0 fail. main's arm ran the ones it has, and they pass.
    • The layer: the loader inserted VK_LAYER_KHRONOS_validation 15 times on main and 27 with this head, and neither log has was not found. Both logs report only VUID-VkDeviceCreateInfo-pNext-pNext, and the change adds none.
    • agc_driver_sample_multisample_target, the drawn 4x target's sample-0 guest reads included: passes on both arms with no new VUIDs (run). ×10 on this head (run): Linux 10 of 10; Windows skips, since the runner has no Vulkan device.
    • On Windows the tests build and skip, since the runner has no Vulkan device. The libc and libkernel suites run 193 and 294 tests on Linux and 223 and 317 on Windows, with 0 failed. The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • Ghost of Tsushima Director's Cut (PPSA02225), by @milescoviello, with this PR's DepthSurface.cpp change (comment): main 98ddd9c179 + #12840 425cd9d8b0 + #9742 1c904e29a2 (#9533's 6eb141ce5f inside), merged cleanly; Linux, RTX 4070 Ti (NVIDIA 615.71.09), release libraries, 21 GiB cap, booting from a settings save, plus defd410761's DepthSurface.cpp change (his local 6be6c22f23, with this PR's test-registration and debt-entry conflicts against #9742 taken from the combination's side). Without it, the run stops 33 s in on native multisample depth sampled identity or format mismatch in compute shader 0x20001ef700 (comment). With it, that stop is gone, and the run stops 21 s in on the same shader at vkAllocateMemory sampled depth shadow: Vulkan result -2, out of device memory with device-local heap 0 at 10,625 of 10,654 MiB, on a base before #13064. That allocation isn't in this PR's path.

  • 8fe640ecdb, a merge of #9533's dcf420ec7f, which brings #9533's merge of main 2b1ae87c69 and savvaniss's #8223 (run). Clean; this PR's own diff changes only in #9533's guardedColorBytes position.

    • ×10: the multisample target, frame capture, ^agc_driver_native_, ^agc_driver_msaa_ and ^agc_driver_depth_ tests.
      • Linux: 57 run, 49 pass, 8 skip, 0 fail.
      • Windows: 57 run, 4 pass, 53 skip (no Vulkan device), 0 fail.
      • The libc and libkernel suites run 199 and 307 tests on Linux and 226 and 329 on Windows, with 0 failed. The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
    • On a cloud Linux machine (lavapipe): ctest -R '^(agc|shader)' 1,162 passed, 0 failed.
  • a90d0b73bb, a merge of #9533's 071ca5b609, which merges main 6a691f69ee and with it Celegans12's #8105 (run, validation run). #9533's resolution, with its two test-file adaptations, is kept as is. This branch carries #9533 but not #9742, so it takes #9533's merge directly.

    • The one conflict: CMakeLists.txt, where agc_driver_native_depth_buffer_clear joins this PR's set_tests_properties lists, which also carry agc_driver_native_depth_stencil_view. Those two lines are the only change to this PR's own lines over #9533.
    • ×10: agc_driver_native_multisample_depth, agc_driver_sample_multisample_target and every ^agc_driver_native_depth or ^agc_driver_depth_plane test, agc_driver_native_depth_stencil_view and agc_driver_native_depth_buffer_clear included.
      • Linux: 25 run, 24 pass, 1 skip, 0 fail.
      • Windows: 25 run, 0 pass, 25 skip (no Vulkan device), 0 fail.
      • The libc and libkernel suites run 199 and 308 tests on Linux and 226 and 330 on Windows, with 0 failed. The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
    • Validation (VERIFY_VALIDATION=1 on GitHub's Linux runner), main 6a691f69ee against this head, the same tests: main's arm ran the ones it has, and both pass. The loader inserted VK_LAYER_KHRONOS_validation 28 times on main and 40 with this head, and neither log has was not found. Both report the same three IDs, VUID-VkDeviceCreateInfo-pNext-pNext, VUID-vkCmdCopyImage-srcImage-01548 and VUID-vkCmdCopyImage-srcImage-01551, so the merge adds none.
    • On a cloud Linux machine (lavapipe): this PR's 12 tests from agc_driver_native_multisample_depth_tests pass 120 of 120 runs; ctest -R '^(agc|shader)' 1,091 passed, 75 skipped, 0 failed.
  • Divinity: Original Sin II Definitive Edition (PPSA06866, 01.007.000), by @XatiX, at this head (comment, bring-up #13726).

    • The tree: main 73f4f7e06e + this PR + #13021 + #13734 + XatiX's local commits on test/dos2-retest.
    • The machine: RTX 5080, NVIDIA 617.42, Windows 11, host imports on, default settings.
    • The read: the stencil plane of a 1920x2160 2x D32S8 target with a depth-only HTILE, through an R8_UINT 2D MSAA descriptor with no metadata, in a draw with DB_RENDER_CONTROL 0x88.
    • Without this PR, the title stops at about 45 s on native multisample depth sampled identity or format mismatch.
    • With it, that stop is gone. One scripted run of about 570 s and one manual session reached in-game play, with no error in the log. This PR needed no change.
    • What the run also needs: the draw comes from a stencil copy pass that isn't in this PR or any open PR: XatiX's e1b9e7ee9e, which extends DecodeDepthCopyPass to bit 3 of DB_RENDER_CONTROL with a driver pixel program.
    • What it doesn't show: the stencil values weren't read back. So the run shows that the read runs and the scenes look right, not that the values are correct. This PR's tests weren't run there.
  • a63bd1432f, a merge of #9533's merge of main 0836dfdf4f (run, on 6f9dd9f266, which has the same tree). #12862 moved libSceAgcDriver's test registrations into tests/cmake/; the conflict in CMakeLists.txt is resolved with tools/agc_test_split.py resolve, which moves this PR's registration into tests/cmake/agc_driver_native_multisample_depth_tests.cmake (+3 −2 against #9533's merge). Nothing else conflicted. Apart from the move, this PR's diff is unchanged. With -DBUILD_TESTING=ON, ctest -N gives 3082 tests: main's 3075 plus this PR's and #9533's 7 tests, each listed once. The 25 tests of this PR's verify set pass 10 runs in a row. Linux: 25 run, 24 pass, 1 skip, 0 fail. Windows: 25 run, 0 pass, 25 skip (no Vulkan device), 0 fail. Suites: libc and libkernel pass on Linux (199 and 308) and on Windows (226 and 330). The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.

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: #9533 (#6044 was closed, and #8115 and #8121 merged; see Overlap); #9742 (merge order only: both add cases to tests/execution/NativeMultisampleDepth.cpp and lines to the AGC CMakeLists.txt and the debt file; this PR goes after it and keeps both when it merges main); #10882 (orezraey) goes after this PR (merge order only, on #10882); #13021 (JAB-dev) goes after this PR (merge order only, agreed on #13021)
  • Fixes: none
  • Unblocks: PPSA02225 #4461: gets Ghost of Tsushima Director's Cut past native multisample depth sampled identity or format mismatch, with #9742 (see Tested). With #9742, #8115 and #8121 as well, Ghost of Tsushima Director's Cut reaches its brightness calibration screen and intro, with no refusal or crash through the 600 s limit, warm and cold (milescoviello's run above). Later runs on that host ended at the 20 GiB memory cap (see Tested).
  • GPUs tested: NVIDIA GeForce RTX 3070 Laptop GPU (617.42, Windows 11); Mesa llvmpipe (LLVM 20.1.2), Ubuntu 24.04, on GitHub's Linux runner and a cloud Linux machine; Apple M2 Max (MoltenVK 1.4.2 and main + SPIRV-Cross #2704), in jotitadev's run; NVIDIA GeForce RTX 4070 Ti (615.71.09), Linux, in milescoviello's run; AMD RX Vega 56, RX 7900 GRE and Ryzen 7 7800X3D's integrated GPU on RADV (Mesa 25.2.8), by tablefrogpillow; NVIDIA GeForce RTX 5080 (617.42), Windows 11, in XatiX's Divinity: Original Sin II run
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4965362125 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9717). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-22T09:44:56Z. --- ### What This is stacked on #9533 (53886418d9). PPSA03208 reads the stencil plane of a native multisampled D32S8 target per sample, through a plain `R8_UINT` 2D MSAA descriptor, right after reading its depth the same way. On #9533 that read is the next stop, at the first dispatch of a compute program, in `CheckResource`: `native multisample depth sampled identity or format mismatch` ([oneandonlydean's run](https://github.com/boykopovar/AnyPS5/pull/9533#issuecomment-6331552179)). - **The descriptor:** `1546eb00 c0500000 021bc1df e1810924 00000000 00700010 00000000 00000000`. Its base is the separate stencil plane, at format 5 (`R8_UINT`), 2 samples, 2D MSAA, tile mode 4 and no metadata. - **The target:** 1920x2160, D32S8, with a depth-only HTILE. **The change:** - **What `CheckResource` accepts:** a T# at the target's `stencilAddress`, when all of these hold: - format 5 (`R8_UINT`); - the surface's extent and sample count; - 2D MSAA, the target's tile mode (`kZ64KBX`), and one slice and level; - the target's pipe/bank XOR; - no metadata; - a target with a separate stencil plane (a depth-only HTILE with no HTILE stencil). Other stencil descriptors refuse with the existing texts. - **The view:** `Sampled` makes a `VK_IMAGE_ASPECT_STENCIL_BIT` view of the host D32S8 image, with the T#'s component mapping. Where the device samples through the sample shadow, the view is of the shadow. The device's `sampledImageStencilSampleCounts` has to cover the sample count. - **The binding:** an `R8_UINT` T# binds as an unsigned-integer sampled image, and a stencil-aspect view returns the stencil as an unsigned integer in R, so the view matches the shader's binding. - **The shadow:** once a stencil read has used the sample shadow, each refresh copies depth and stencil in one `vkCmdCopyImage`. - **Unproven planes:** a stencil plane #9533 leaves unproven, because an aliasing colour target drew over it, still refuses with #9533's text. - **Debt:** a new entry, "Native multisample stencil plane sampling", lists the accepted descriptor, the shadow copy and the refusals. It also says console equivalence isn't measured. **Overlap:** checked with `git merge-tree` against every open PR touching these files, on `main` 7e2ba73e4c. - **The stack:** this PR's base is #9533, so #9533's overlaps apply (#8223, #9186, #8998, #8847, #9700 and #9508; see #9533). This PR's own commit adds nothing to them. - **#8999 (milescoviello)** has landed. Its change to `Sampled`'s signature and `CheckResource` calls composes with this PR's hunks: this PR takes it in through #9533's merge of `main` (74594d4a81) without a conflict, and `Sampled` carries both sides' parameters. - **#9672 (ntamas94) and #9431 (Get-fix)** add lines in `DepthSurfaceTexture` and the surface class, away from this PR's functions. Neither merges with `main` yet. - **#9533's head**, which includes #7233 and #7371: merging 1d16d5029d (920e43691f) needed only #9533's debt entry, where both sides' edits are kept, and 9afaa90c1f (dea8f8ddbd) merged cleanly, and a45dff8d51 (ec384dd23f), #9533's merge of `main` with #6727, again needed only #9533's debt entry, where both sides' edits are kept. Merging 1582cf6cc0 (e5a24cd3c5), #9533's queued-fill skip, needed only that entry once more, and both sides' words are kept. - **#9742** (the depth-plane alias, also stacked on #9533): adjacent additions in `CMakeLists.txt`, `NativeMultisampleDepth.cpp` and the debt file. Keeping both sides resolves them, as on the combined test branch below. Merge order: #9742 first, then this PR, as both PRs' Depends on lines say. - **#13021** (JAB-dev, which publishes a written native multisample D32S8 surface to its guest planes): - **Conflicts:** `git merge-tree` of this head and #13021's `24869a37ea` conflicts in five files: `DepthSurface.cpp` (`refreshSampleShadow`'s second parameter), `MultisampleTarget.cpp`, `CMakeLists.txt`, `NativeMultisampleDepth.cpp` and the debt file. #13021 and #9533's head already conflict in two of them. - **Order, agreed with JAB-dev** ([comment](https://github.com/boykopovar/AnyPS5/pull/13021#issuecomment-6546040990)): #9533, this PR, then #13021. After the first two merge, #13021 rebases onto `main` and takes this PR's `refreshSampleShadow` form (the `stencilRead` signature, without its second stencil copy), as XatiX's resolution there describes. - **#6044** (TaymKal) converts this file's test registrations to `add_library_test` and moves test files. The order is proposed in its thread ([comment](https://github.com/boykopovar/AnyPS5/pull/6044#issuecomment-6345718933)): this PR first; if #6044 lands first, `agc_driver_native_depth_stencil_view` is registered with `add_library_test(graphics ...)` at this PR's next merge of `main`. - **#8115 and #8121** (milescoviello) handle the title's next two stops: one-sample colour targets beside a multisampled rasterizer, and a `PS_ITER_SAMPLE` program into a one-sample target. Each merges cleanly with this head and with #9533 (`git merge-tree` against 2620f8d62e and c974601a60), so no order is needed between them. - **`CMakeLists.txt` and the AGC debt file** are shared with many PRs, by neighbouring lines only. ### Tested - **RTX 3070 Laptop GPU** (NVIDIA 617.42, Windows 11, `VK_LOADER_DRIVERS_SELECT='*nv*'`; clocks weren't held, so these are pass/fail only): - #9533's eight native depth tests and the new `agc_driver_native_depth_stencil_view` pass five times each. - The stencil view passes at 2, 4 and 8 samples. - **Linux, Mesa llvmpipe** (which runs the 4-sample case): - **The test:** a D32S8 target with XOR 0x8c00 and a depth-only HTILE. - Stencil is written per pixel and per sample with REPLACE, and depth per sample. - One compute dispatch then reads the D32 T# and the `R8_UINT` 2D MSAA T# at the stencil address, and checks every sample's depth bits, stencil value and component mapping. - It does this after the clear and after two raster rounds. - Format, sample, width, tile-mode, XOR and metadata variants each refuse with their text, and the guest plane stays untouched. - **Red:** with `DepthSurface.cpp` at #9533's head, the test fails with `native multisample depth sampled identity or format mismatch`. - **GitHub's Linux runner** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39745709123)): the test fails on #9533's head, where it doesn't exist yet. With this change, the nine native depth tests pass three times each. GitHub's Windows runner builds it, and its Vulkan tests skip there. - **CI's Linux job mirrored:** the only failures are the build machine's three IPv6 tests and three timing tests under `--parallel 4`: `agc_driver_pipelined_fill`, `agc_driver_sgpr_pattern_fill_keys` and `agc_driver_pipelined_indirect_draw`. The same tests fail on #9533's head and pass when run alone. - **Validation layer, #9533 (514643ab16) against this PR** (CONTRIBUTING's AGC rule), on one GitHub Linux runner ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39751427035)). - **Setup:** both runs used `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, `ANYPS5_NO_SHADER_CACHE=1`, `ANYPS5_REQUIRE_VULKAN=1` and `ctest -V`, with `VK_LOADER_DEBUG=layer` to show the layer loading. The device was llvmpipe (LLVM 20.1.2) on Mesa 25.2.8, Ubuntu 24.04.5, Khronos validation layers 1.3.275. - **The tests:** the nine native depth tests. #9533's tree ran its eight once, and this PR's tree ran all nine three times. - **The layer:** the loader inserted `VK_LAYER_KHRONOS_validation` 16 times on #9533's tree and 54 with this PR. Neither log has `was not found but was requested by env var VK_INSTANCE_LAYERS`. - **The messages:** both logs report only `VUID-VkDeviceCreateInfo-pNext-pNext`, for a device-creation structure newer than that layer version. This PR adds no `VUID-` message. - **Apple M2 Max with MoltenVK, by @jotitadev** ([review](https://github.com/boykopovar/AnyPS5/pull/9717#pullrequestreview-5613928136)): macOS 27.2, x86_64 under Rosetta 2, Release. They used MoltenVK 1.4.2 (Vulkan SDK 1.4.363.0) and MoltenVK main + SPIRV-Cross #2704, on #8658's macOS port (1688e5abb8), since `main` doesn't build on macOS; this head's diff applied with no conflicts. - With this PR, the nine native depth tests and `agc_driver_native_multisample_depth` pass 3 of 3 on both drivers. `agc_driver_native_depth_stencil_view` runs 2 and 4 samples; this device doesn't offer 8. - With #9533's head and this PR's tests, `agc_driver_native_depth_stencil_view` fails on both drivers with `native multisample depth sampled identity or format mismatch`. - The full `^agc` suite with this PR (861 tests): the same failures as on the base on both drivers, except `agc_driver_uint8x4_color_target` once on main + #2704, which they say is intermittent on that machine without this PR too. - **Ghost of Tsushima Director's Cut (PPSA02225), by @milescoviello, a pair that differs only by this PR's commit:** Linux, RTX 4070 Ti, NVIDIA 615.71.09, release libraries. - **Without it**, on #9742's head 219e925509, on #9533's 514643ab16 ([comment](https://github.com/boykopovar/AnyPS5/pull/9742#issuecomment-6343190451)): the warm run stops at 14 s, in compute shader 0x20001ef700, on `native multisample depth sampled identity or format mismatch`. The cold run ended in a SIGSEGV at 16 s with no message before it, which didn't come back on the branch below. - **With it**, on the test branch `test/ghost-9742-9717` (3ec696f7fe: 219e925509 and this PR's 767374011f; [comment](https://github.com/boykopovar/AnyPS5/pull/9742#issuecomment-6344352615)), warm at 16 GB and cold at 20 GB: warm reaches 246 s and cold 254 s, with no native multisample depth or stencil refusal. Both stop at `a color target's sample count differs from the rasterizer's`, which milescoviello's #8115 handles. - **What it shows:** this PR prints no line of its own, so the path is inferred from the refusal. That text is `CheckResource`'s identity check, and the only clause this PR changes there accepts a T# at the target's stencil plane with format 5 (`R8_UINT`). So the shader that stopped there without this PR reads the D32S8 target's stencil plane that way, and gets past with it. - **Supporting:** @xXPBSXx's Windows run of #9742 without this PR stops on the same refusal in the same shader ([comment](https://github.com/boykopovar/AnyPS5/pull/9742#issuecomment-6361768346)). - **920e43691f, #9533's head 1d16d5029d merged in** (only #9533's debt entry needed resolving, and both sides' edits are kept there; outside it, this PR's own changes are the same by `git diff -U0` patch-id), on GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39805913336)): - **Linux:** the 13 native depth, DCC clear and pipelined DMA tests and this PR's `agc_driver_native_depth_stencil_view` pass 10 of 10, none skipped. The run was in validation mode, whose base arm builds #9533's own tree and runs only the 13 tests it has, so the red for `agc_driver_native_depth_stencil_view` is the one in the **Red** line above. - **Validation, #9533's head against this PR**, in the same run: the loader inserted `VK_LAYER_KHRONOS_validation` 21 times on #9533's tree and 230 with this PR, and neither log has `was not found`. Both logs report only `VUID-VkDeviceCreateInfo-pNext-pNext`, so this PR adds no `VUID-` message. - **Windows:** the runner builds them, and 13 Vulkan tests skip there. - **Suites:** libc and libkernel pass on both runners. The libc and libkernel suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **Validation, `main` b7d1d47a5f against 920e43691f** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39806017512)), the same 14 tests once on one GitHub Linux runner. `main`'s tree ran the 7 of them it has. The loader inserted `VK_LAYER_KHRONOS_validation` 11 times on `main` and 23 with this head, and neither log has `was not found`. Both logs report only `VUID-VkDeviceCreateInfo-pNext-pNext`, so the stack adds no `VUID-` message against `main`. - **Ghost of Tsushima Director's Cut (PPSA02225), by @milescoviello, with #9742, #8115 and #8121** ([comment](https://github.com/boykopovar/AnyPS5/pull/9742#issuecomment-6346148575)): the test branch `test/ghost-9742-9717` (3ec696f7fe) with milescoviello's #8115 and #8121 merged on top, both clean; Linux, RTX 4070 Ti, NVIDIA 615.71.09, release libraries, 20 GiB cap, warm and cold. - With #8115 alone, the sample-count stop is gone, and warm (146 s) and cold (267 s) stop at `a one-sample color target under a multisampled rasterizer without MSAA_ENABLE is unsupported with PS_ITER_SAMPLE, a sample index or coverage input, or a sample-mask export`, which #8121 handles. - With #8115 and #8121, warm and cold both reach the 600 s limit with no refusal and no crash. In milescoviello's words, the game shows its brightness calibration screen, with the mask rendered correctly, and then its intro. The only native depth line is this stack's alias line, printed once and accepted. - The limits they report on that host: about 1.3 FPS on the brightness screen, with queue 0 the bottleneck; and two later warm runs killed at the 20 GiB cap, at 266 s and 478 s. - With #8213 and #8608 also merged, two of milescoviello's runs reach a 3D sampled view about 9 minutes into the opening (4781 MiB, of which 157 of its 900 slices lie inside a 2438 MiB guest allocation) and end at the 20 GiB cap, at 572 s and 563 s ([comment](https://github.com/boykopovar/AnyPS5/pull/9318#issuecomment-6353408402)). That view isn't a native depth view, so it's outside this stack's changes. - **Ghost of Tsushima Director's Cut (PPSA02225), by @xXPBSXx** ([comment](https://github.com/boykopovar/AnyPS5/pull/9717#issuecomment-6381912149)): Windows 10 Pro, WinLibs GCC 15.2.0, Release, NVIDIA GeForce RTX 4080 SUPER, runs of up to 600 s with no input, all libraries rebuilt for each tree (pass/stop only). - On `main` 1e20650e84, both runs stop in compute shader `0x20001ef700` on `native multisample stencil or depth format import is not implemented`. - With this PR merged locally on 1e20650e84, which brings #9533 along (so these runs don't separate the two), neither run has that refusal. The same shader stops on the next check, `native multisample depth or HTILE aliases a multisampled colour target whose samples are only on the host`: the depth-plane alias #9742 addresses. These runs didn't include #9742. - **dea8f8ddbd, #9533's head 9afaa90c1f merged in** (`main` 11f976b27c; clean, and this PR's own changes are the same by `git diff -U0` patch-id), on GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39821175739)): - **Linux:** the 13 native depth, DCC clear and pipelined DMA tests and `agc_driver_native_depth_stencil_view` pass 10 of 10, none skipped. - **Validation, `main` against this head**, in the same run: `main`'s tree ran the 7 of these tests it has. The loader inserted `VK_LAYER_KHRONOS_validation` 11 times on `main` and 230 with this head, and neither log has `was not found`. Both logs report only `VUID-VkDeviceCreateInfo-pNext-pNext`, so this PR adds no `VUID-` message. - **Windows:** the runner builds them, and the Vulkan tests skip there. - **Suites:** libc and libkernel pass on both runners. The libc and libkernel suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **ec384dd23f, #9533's head a45dff8d51 merged in** (`main` d6e7ab42df, which brings #6727; this PR's own changes are the same by `git diff -U0`), on GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39845555791)): - **Linux:** the 13 native depth, DCC clear and pipelined DMA tests and `agc_driver_native_depth_stencil_view` pass 10 of 10, none skipped. #9533's `agc_driver_native_depth_stencil` fixture now notes a host write before its refusal checks, as #6727's own fixtures do, because #6727 retires an unwritten native multisample depth surface on a guest read instead of refusing it ([#6727](https://github.com/boykopovar/AnyPS5/pull/6727)). That line is in #9533's merge. - **Validation, `main` against this head**, in the same run: `main`'s tree ran the 7 of these tests it has. The loader inserted `VK_LAYER_KHRONOS_validation` 11 times on `main` and 230 with this head, and neither log has `was not found`. Both logs report only `VUID-VkDeviceCreateInfo-pNext-pNext`, so this PR adds no `VUID-` message. - **Windows:** the runner builds them, and the Vulkan tests skip there, so its lines are the suites only. - **Suites:** libc and libkernel pass on both runners. The libc and libkernel suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **`check_conventions.py`:** no errors and no comment lines added. One existing warning, `debt-length`, on the native multisampled depth entry. - **NVIDIA GeForce RTX 3070 Laptop GPU** at 082ef25d86, the #9533, #9742 and #9717 stack before the #6727 merge (driver 617.42, Windows 11, WinLibs GCC 15.2.0, Release, `ANYPS5_REQUIRE_VULKAN=1`; GPU clocks weren't held, pass/fail only): `agc_driver_native_depth_stencil_view` passes 5 of 5 (3 cases checked per run, none unavailable). #9533's own native depth tests pass there too, except `agc_driver_native_depth_driver_queued_fill`: on Windows that queued fill refuses, as on `main`, and #9533 now skips the case there with the reason (1582cf6cc0; see #9533). - **e5a24cd3c5, #9533's head 1582cf6cc0 merged in** (#9533's queued-fill skip; this PR's own changes outside #9533's debt entry are the same by `git diff -U0`, and that entry keeps every word of both sides), on GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39855289312)): - **Linux:** the 13 native depth, DCC clear and pipelined DMA tests and `agc_driver_native_depth_stencil_view` pass 10 of 10, none skipped. - **Validation, `main` against this head**, in the same run: `main`'s tree ran the 7 of these tests it has. The loader inserted `VK_LAYER_KHRONOS_validation` 11 times on `main` and 230 with this head, and neither log has `was not found`. Both logs report only `VUID-VkDeviceCreateInfo-pNext-pNext`, so this PR adds no `VUID-` message. - **Windows:** the runner builds them, and the Vulkan tests skip there, so its lines are the suites only. - **Suites:** libc and libkernel pass on both runners. The libc and libkernel suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **ff06dc329a, #9533's head 53886418d9 merged in** (#9533's test-only fix for jotitadev's macOS abort at exit; a clean merge, and this PR's own diff is unchanged by patch-id), on GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39898204973)): - **Linux:** `agc_driver_native_depth_stencil_view` fails with #9533's code. With this PR it and the other native depth and native multisample depth tests pass 10 of 10, with `agc_driver_native_depth_bda_clear` skipping on llvmpipe, as on `main`. - **Windows:** the runner builds the 12 tests and skips them, since it has no Vulkan device. - **Suites:** libc and libkernel pass on both runners (116 and 198 on Linux, 143 and 208 on Windows). They ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **Not yet tested on PPSA03208.** oneandonlydean has offered to run it. - **24fe4ea82b, a merge of #9533's de4cee5626, which merges `main` 0db47b263d.** No conflicts. On GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39931140471)), of the `agc_driver_native_depth*` and `agc_driver_native_multisample_depth*` tests (12 tests), 11 pass 10 runs in a row on Linux and 1 skips: `agc_driver_native_depth_bda_clear`, `main`'s test, because the device doesn't keep guest write watching for its native clear imports. On Windows all 12 build and skip, as the runner has no Vulkan device. The libc and libkernel suites pass on both, run with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. An earlier run linked here didn't run this set, so it's replaced. - **74594d4a81, a merge of #9533's 55b0a5f4ad, which merges `main` 3fcb5e4d76 and with it #8999.** No conflicts. On GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40110168525)), the native, depth and multisample tests (`^agc_driver_native_`, `^agc_driver_depth_`, `^agc_driver_msaa_`) pass 10 runs in a row on Linux: 43 run, 39 pass, 4 skip (`agc_driver_native_fmask`, `agc_driver_msaa_dcc_clear_2` and `_8`, and `agc_driver_native_depth_bda_clear`), 0 fail. On Windows 43 run, 3 pass 10 runs in a row and 40 skip without a Vulkan device, 0 fail. The libc and libkernel suites pass on both (142 and 204 tests on Linux, 169 and 217 on Windows), run with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **74594d4a81 on GitHub's runners, red/green against #9533's head 55b0a5f4ad** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40138168549)), `^agc_driver_native_`: on Linux, with #9533's implementation of the changed files, `agc_driver_native_depth_stencil_view` fails with `native multisample depth sampled identity or format mismatch` (1 of 14). With this PR, 14 run, 12 pass, 2 skip (`agc_driver_native_depth_bda_clear` and `agc_driver_native_fmask`, which skip on both trees), 0 fail, 10 runs in a row. On Windows all 14 build and skip, as the runner has no Vulkan device. The libc and libkernel suites pass on both (142 and 204 tests on Linux, 169 and 217 on Windows), run with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **Validation layer, `main` 3fcb5e4d76 against 74594d4a81** (CONTRIBUTING's AGC rule; [run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40138213899)), on GitHub's Linux runner (llvmpipe, LLVM 20.1.2), with `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, `ANYPS5_NO_SHADER_CACHE=1`, `ANYPS5_REQUIRE_VULKAN=1` and `ctest -V`, `^agc_driver_native_` once: `main`'s tree ran the 7 of these tests it has (5 pass, 2 skip) and this head all 14 (12 pass, 2 skip). The layer was inserted 12 times on `main` and 24 with this PR, neither log has `was not found but was requested`, and both report only `VUID-VkDeviceCreateInfo-pNext-pNext`, so this PR adds no `VUID-` message. - **AMD GPUs on RADV**, per tablefrogpillow's report ([comment](https://github.com/boykopovar/AnyPS5/issues/7608#issuecomment-6396580457)): on a test branch with this PR and #9742 (e2eb3ff566), Mesa 25.2.8, the Khronos validation layer on, `agc_driver_depth_surface_from_storage`, `agc_driver_depth_surface_last_writer` and `agc_driver_native_multisample_depth` pass on an RX Vega 56 (VEGA10, GCN5), an RX 7900 GRE (NAVI31, RDNA3) and a Ryzen 7 7800X3D's integrated GPU (RAPHAEL, RDNA2): 3 run, 3 pass, 0 skip, 0 fail on each, with `agc_driver_native_multisample_depth` checking all 24 of its cases. - **f63435d33a, a merge of #9533's head 078e6a68d8** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40198621393)). It takes #9533's two merges of `main` since this PR last took it: #10375's `CheckDepthAttachmentAlias` and #9186's host-only flag for `guard()`. No conflict here. The `agc_driver_native_`, `agc_driver_depth_`, `agc_driver_msaa_` and `agc_driver_sample` tests pass 10 runs in a row. Linux: 56 run, 50 pass, 6 skip (`agc_driver_msaa_dcc_clear_2`, `agc_driver_msaa_dcc_clear_8`, `agc_driver_native_depth_bda_clear`, `agc_driver_native_fmask`, `agc_driver_sample_order_grid_reference`, `agc_driver_sample_order_recipe_depth_locations`), 0 fail. Windows: 56 run, 5 pass, 51 skip (no Vulkan device), 0 fail. The before arm, `main` with this PR's tests, doesn't build. Suites: libc and libkernel pass on Linux (144 and 207) and on Windows (171 and 223). The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **Assassin's Creed Shadows (PPSA20397)**, by akkadbakkad89, RTX 3070, Windows 11, driver 617.42, ran this PR on its stack (#9533, which carries #6300), per their report ([comment](https://github.com/boykopovar/AnyPS5/pull/9533#issuecomment-6401068340)): the title gets past #9533's format refusal at about +848 s and into pixel shading it hadn't reached before. Its next stop, a stencil-reference-export pixel shader (detail on #4276), is outside this PR, and the report doesn't single out this PR's stencil reads. - **Validation** ([comment](https://github.com/boykopovar/AnyPS5/pull/9717#issuecomment-6403490908)): on the same run, with `VK_LAYER_KHRONOS_validation` (SDK 1.4.363.0), `ANYPS5_REQUIRE_VULKAN=1` and `ANYPS5_NO_SHADER_CACHE=1`, akkadbakkad89 reports no `VUID-` delta. - **e9c5d95d33, a merge of #9533's f39599c354, which merges `main` 19af7f44e4** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40292640359)). No conflict here: #9533's merge carries #10368's `CheckStorageAliasRetirement` beside the `ClearFault` and `ClearSource` enums, and this PR's changed lines are the same. The `agc_driver_native_`, `agc_driver_depth_`, `agc_driver_msaa_` and `agc_driver_sample` tests, with the other tests built from the files the merge changes, pass 10 runs in a row. Linux: 303 run, 287 pass, 16 skip, 0 fail. Windows: 322 run, 184 pass, 138 skip (no Vulkan device), 0 fail. With `VK_LAYER_KHRONOS_validation` loaded on both arms on Linux, the only VUID is `VUID-VkDeviceCreateInfo-pNext-pNext`, on both. Suites: libc and libkernel pass on Linux (145 and 210) and on Windows (172 and 231). The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **9846498dc7, a merge of #9533's a7697941f3, which merges `main` ccfb96757f** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40638353106)). No conflict here, and this PR's changed lines over #9533 are the same. The native depth, stencil-view, depth-surface and `uint8x4` colour target tests ran 10 times with no failure. Linux: 10 run, 7 pass, 3 skip (`agc_driver_native_depth_bda_clear`, `agc_driver_native_fmask`, `agc_driver_sample_order_grid_reference`, as in earlier runs), 0 fail. Windows: 10 run, 0 pass, 10 skip (no Vulkan device), 0 fail. Suites: libc and libkernel pass on Linux (166 and 264). On Windows libc passes (194), and libkernel passes 283 of 286: `exec_arguments`, `guest_timed_join_import_libkernel_sys` and `guest_timed_join_import_libkernel_web` fail at their setup in the verify's Windows build (`FileNotFoundError` starting the title, or copying the libraries they load), and pass in `main`'s own Windows job at 1829def9bf ([job](https://github.com/boykopovar/AnyPS5/actions/runs/40627345977/job/122615375186)). The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **41e4c2e241, a merge of #9533's 5343d0a8da** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40897783026)). It's #9533's fix for a whole HTILE or stencil-plane fill whose stores landed before its note (`Co-authored-by: Tharun Balaji K`, from sktharunbalaji13-cmd's [finding](https://github.com/boykopovar/AnyPS5/issues/5166#issuecomment-6495502628) on Ghost of Tsushima Director's Cut; see #9533). - The merge is clean, and this PR's own changed lines are the same. The merge itself changes only `DepthSurface.cpp` and `NativeMultisampleDepth.cpp`. - The native depth tests ran 10 times with no failure. Linux: 12 run, 11 pass, 1 skip (`agc_driver_native_depth_bda_clear`, which skips on lavapipe), 0 fail. On Windows all 12 skip, because the runner has no Vulkan device, so they ran on Linux only. - The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. On Linux, libc and libkernel ran 166 and 264 tests with 0 failed. On Windows libc ran 194 with 0 failed, and libkernel failed one of 286: ``` 229/286 Test #233: guest_raise_in_host_code ............................Exit code 0xc0000409***Exception: 0.11 sec ``` The test had logged a chain of nested guest signal frames (`[exception] guest context signal=0x1e`, each further down the stack) before the process stopped. `guest_raise_in_host_code` is a libkernel signal test that the merge doesn't touch. - **Rerun** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40910527307)): `guest_raise_in_host_code` ran 20 times in a row on Windows with no failure: 1 run, 1 pass, 0 skip, 0 fail. In the same run, libc and libkernel ran 194 and 286 tests with 0 failed. The test is registered on Windows only. - **defd410761, a merge of #9533's 6eb141ce5f**, which merges `main` 102b7a5cf0 and with it Jamie's #12566 (×10 [run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40953390686), ×20 [run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40953607687)). It merged cleanly, and this PR's own diff is unchanged. The native depth and multisample tests (`^agc_driver_native_`) and `agc_frame_capture` ran 10 times with no failure. Linux: 15 run, 13 pass, 2 skip, 0 fail. Windows: 15 run, 1 pass, 14 skip, 0 fail; the 14 skip because the runner has no Vulkan device. `guest_raise_in_host_code`, which is registered on Windows only, ran 20 times there with no failure. The libc and libkernel suites run 193 and 294 tests on Linux and 223 and 317 on Windows, with 0 failed. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **Validation comparison at defd410761** (CONTRIBUTING's AGC rule): `main` 102b7a5cf0, this head's base. Since then `main` has changed only `libSceAgcDriver/CMakeLists.txt` and the debt file among this PR's paths. On GitHub's Linux runner (llvmpipe (LLVM 20.1.2), Mesa 25.2.8, Ubuntu 24.04.5), with `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, `ANYPS5_NO_SHADER_CACHE=1`, `ANYPS5_REQUIRE_VULKAN=1` and `ctest -V`: - **The native tests** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40966592616)): every test matching `^agc_driver_native_`. This head: 14 run, 12 pass, 2 skip (as in this PR's earlier runs on that runner), 0 fail. `main`'s arm ran the ones it has, and they pass. - **The layer:** the loader inserted `VK_LAYER_KHRONOS_validation` 15 times on `main` and 27 with this head, and neither log has `was not found`. Both logs report only `VUID-VkDeviceCreateInfo-pNext-pNext`, and the change adds none. - **`agc_driver_sample_multisample_target`**, the drawn 4x target's sample-0 guest reads included: passes on both arms with no new VUIDs ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40970449978)). ×10 on this head ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40970227338)): Linux 10 of 10; Windows skips, since the runner has no Vulkan device. - On Windows the tests build and skip, since the runner has no Vulkan device. The libc and libkernel suites run 193 and 294 tests on Linux and 223 and 317 on Windows, with 0 failed. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **Ghost of Tsushima Director's Cut (PPSA02225), by @milescoviello, with this PR's `DepthSurface.cpp` change** ([comment](https://github.com/boykopovar/AnyPS5/issues/5166#issuecomment-6527249459)): `main` 98ddd9c179 + #12840 425cd9d8b0 + #9742 1c904e29a2 (#9533's 6eb141ce5f inside), merged cleanly; Linux, RTX 4070 Ti (NVIDIA 615.71.09), release libraries, 21 GiB cap, booting from a settings save, plus defd410761's `DepthSurface.cpp` change (his local 6be6c22f23, with this PR's test-registration and debt-entry conflicts against #9742 taken from the combination's side). Without it, the run stops 33 s in on `native multisample depth sampled identity or format mismatch` in compute shader 0x20001ef700 ([comment](https://github.com/boykopovar/AnyPS5/issues/5166#issuecomment-6526573860)). With it, that stop is gone, and the run stops 21 s in on the same shader at `vkAllocateMemory sampled depth shadow: Vulkan result -2`, out of device memory with device-local heap 0 at 10,625 of 10,654 MiB, on a base before #13064. That allocation isn't in this PR's path. - **8fe640ecdb, a merge of #9533's dcf420ec7f**, which brings #9533's merge of `main` 2b1ae87c69 and savvaniss's #8223 ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41139462849)). Clean; this PR's own diff changes only in #9533's `guardedColorBytes` position. - **×10:** the multisample target, frame capture, `^agc_driver_native_`, `^agc_driver_msaa_` and `^agc_driver_depth_` tests. - Linux: 57 run, 49 pass, 8 skip, 0 fail. - Windows: 57 run, 4 pass, 53 skip (no Vulkan device), 0 fail. - The libc and libkernel suites run 199 and 307 tests on Linux and 226 and 329 on Windows, with 0 failed. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **On a cloud Linux machine (lavapipe):** `ctest -R '^(agc|shader)'` 1,162 passed, 0 failed. - **a90d0b73bb, a merge of #9533's 071ca5b609**, which merges `main` 6a691f69ee and with it Celegans12's #8105 ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41184251507), validation [run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41184258526)). #9533's resolution, with its two test-file adaptations, is kept as is. This branch carries #9533 but not #9742, so it takes #9533's merge directly. - **The one conflict:** `CMakeLists.txt`, where `agc_driver_native_depth_buffer_clear` joins this PR's `set_tests_properties` lists, which also carry `agc_driver_native_depth_stencil_view`. Those two lines are the only change to this PR's own lines over #9533. - **×10:** `agc_driver_native_multisample_depth`, `agc_driver_sample_multisample_target` and every `^agc_driver_native_depth` or `^agc_driver_depth_plane` test, `agc_driver_native_depth_stencil_view` and `agc_driver_native_depth_buffer_clear` included. - Linux: 25 run, 24 pass, 1 skip, 0 fail. - Windows: 25 run, 0 pass, 25 skip (no Vulkan device), 0 fail. - The libc and libkernel suites run 199 and 308 tests on Linux and 226 and 330 on Windows, with 0 failed. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **Validation** (`VERIFY_VALIDATION=1` on GitHub's Linux runner), `main` 6a691f69ee against this head, the same tests: `main`'s arm ran the ones it has, and both pass. The loader inserted `VK_LAYER_KHRONOS_validation` 28 times on `main` and 40 with this head, and neither log has `was not found`. Both report the same three IDs, `VUID-VkDeviceCreateInfo-pNext-pNext`, `VUID-vkCmdCopyImage-srcImage-01548` and `VUID-vkCmdCopyImage-srcImage-01551`, so the merge adds none. - **On a cloud Linux machine (lavapipe):** this PR's 12 tests from `agc_driver_native_multisample_depth_tests` pass 120 of 120 runs; `ctest -R '^(agc|shader)'` 1,091 passed, 75 skipped, 0 failed. - **Divinity: Original Sin II Definitive Edition (PPSA06866, 01.007.000), by @XatiX, at this head** ([comment](https://github.com/boykopovar/AnyPS5/pull/9717#issuecomment-6545640763), [bring-up #13726](https://github.com/boykopovar/AnyPS5/discussions/13726)). - **The tree:** `main` 73f4f7e06e + this PR + #13021 + #13734 + XatiX's local commits on [`test/dos2-retest`](https://github.com/XatiX/AnyPS5/tree/test/dos2-retest). - **The machine:** RTX 5080, NVIDIA 617.42, Windows 11, host imports on, default settings. - **The read:** the stencil plane of a 1920x2160 2x D32S8 target with a depth-only HTILE, through an `R8_UINT` 2D MSAA descriptor with no metadata, in a draw with `DB_RENDER_CONTROL` 0x88. - **Without this PR,** the title stops at about 45 s on `native multisample depth sampled identity or format mismatch`. - **With it,** that stop is gone. One scripted run of about 570 s and one manual session reached in-game play, with no error in the log. This PR needed no change. - **What the run also needs:** the draw comes from a stencil copy pass that isn't in this PR or any open PR: XatiX's [`e1b9e7ee9e`](https://github.com/XatiX/AnyPS5/commit/e1b9e7ee9e), which extends `DecodeDepthCopyPass` to bit 3 of `DB_RENDER_CONTROL` with a driver pixel program. - **What it doesn't show:** the stencil values weren't read back. So the run shows that the read runs and the scenes look right, not that the values are correct. This PR's tests weren't run there. - **a63bd1432f, a merge of #9533's merge of `main` 0836dfdf4f** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41239645778), on 6f9dd9f266, which has the same tree). #12862 moved `libSceAgcDriver`'s test registrations into `tests/cmake/`; the conflict in `CMakeLists.txt` is resolved with `tools/agc_test_split.py resolve`, which moves this PR's registration into `tests/cmake/agc_driver_native_multisample_depth_tests.cmake` (+3 −2 against #9533's merge). Nothing else conflicted. Apart from the move, this PR's diff is unchanged. With `-DBUILD_TESTING=ON`, `ctest -N` gives 3082 tests: `main`'s 3075 plus this PR's and #9533's 7 tests, each listed once. The 25 tests of this PR's verify set pass 10 runs in a row. Linux: 25 run, 24 pass, 1 skip, 0 fail. Windows: 25 run, 0 pass, 25 skip (no Vulkan device), 0 fail. Suites: libc and libkernel pass on Linux (199 and 308) and on Windows (226 and 330). The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. ### 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: #9533 (#6044 was closed, and #8115 and #8121 merged; see Overlap); #9742 (merge order only: both add cases to `tests/execution/NativeMultisampleDepth.cpp` and lines to the AGC `CMakeLists.txt` and the debt file; this PR goes after it and keeps both when it merges `main`); #10882 (orezraey) goes after this PR (merge order only, on #10882); #13021 (JAB-dev) goes after this PR (merge order only, agreed on #13021) - [x] Fixes: none - [x] Unblocks: PPSA02225 #4461: gets Ghost of Tsushima Director's Cut past `native multisample depth sampled identity or format mismatch`, with #9742 (see Tested). With #9742, #8115 and #8121 as well, Ghost of Tsushima Director's Cut reaches its brightness calibration screen and intro, with no refusal or crash through the 600 s limit, warm and cold (milescoviello's run above). Later runs on that host ended at the 20 GiB memory cap (see Tested). - [x] GPUs tested: NVIDIA GeForce RTX 3070 Laptop GPU (617.42, Windows 11); Mesa llvmpipe (LLVM 20.1.2), Ubuntu 24.04, on GitHub's Linux runner and a cloud Linux machine; Apple M2 Max (MoltenVK 1.4.2 and main + SPIRV-Cross #2704), in jotitadev's run; NVIDIA GeForce RTX 4070 Ti (615.71.09), Linux, in milescoviello's run; AMD RX Vega 56, RX 7900 GRE and Ryzen 7 7800X3D's integrated GPU on RADV (Mesa 25.2.8), by tablefrogpillow; NVIDIA GeForce RTX 5080 (617.42), Windows 11, in XatiX's Divinity: Original Sin II run - [x] AI-assisted: yes
EagleBearerYS commented 2026-10-22 09:47:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-22T09:47:55Z.


@oneandonlydean this draft is the stencil-plane follow-up from your PPSA03208 run on #9533 (comment), stacked on #9533's 514643ab16. It takes your third read: CheckResource now accepts an R8_UINT 2D MSAA T# with no metadata at the target's separate stencil plane, at the surface's extent, sample count, tile mode and XOR, and Sampled binds it through a stencil-aspect view of the native image, or of its sample shadow, which then copies stencil too. If you can run it on PPSA03208 as you offered, the log would show whether that compute program gets past CheckResource, and the next stop if there is one. A plane that #9533 leaves unproven, because a colour target drew over it, still refuses with #9533's text.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6337800139 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9717#issuecomment-6337800139). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-22T09:47:55Z. --- @oneandonlydean this draft is the stencil-plane follow-up from your PPSA03208 run on #9533 ([comment](https://github.com/boykopovar/AnyPS5/pull/9533#issuecomment-6331552179)), stacked on #9533's 514643ab16. It takes your third read: `CheckResource` now accepts an `R8_UINT` 2D MSAA T# with no metadata at the target's separate stencil plane, at the surface's extent, sample count, tile mode and XOR, and `Sampled` binds it through a stencil-aspect view of the native image, or of its sample shadow, which then copies stencil too. If you can run it on PPSA03208 as you offered, the log would show whether that compute program gets past `CheckResource`, and the next stop if there is one. A plane that #9533 leaves unproven, because a colour target drew over it, still refuses with #9533's text.
MarcZX10 commented 2026-10-22 12:03:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T12:03:07Z.


The stencil-view diff is scoped to the R8_UINT descriptor path at the declared stencil plane, with a corresponding multi-sample test and an explicit refusal for color-drawn/unproven aliases. The reported RTX 3070 and llvmpipe red/green and validation-layer runs are useful; I have not independently rerun them. Before marking this ready, please rebase/update the 123-commit-behind stack to current main and rerun the focused native-depth suite plus the same main-vs-change validation-layer comparison on that merged base. The checklist currently says “Unblocks ... once a run confirms it” and the body says the title has not yet been tested; please update #4461 with the result and only describe PPSA03208 as unblocked if the title run confirms the next stop. Existing dependency #9533 and the overlap with #8999 should remain coordinated as the stack is updated.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6340259394 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9717#issuecomment-6340259394). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T12:03:07Z. --- The stencil-view diff is scoped to the R8_UINT descriptor path at the declared stencil plane, with a corresponding multi-sample test and an explicit refusal for color-drawn/unproven aliases. The reported RTX 3070 and llvmpipe red/green and validation-layer runs are useful; I have not independently rerun them. Before marking this ready, please rebase/update the 123-commit-behind stack to current main and rerun the focused native-depth suite plus the same main-vs-change validation-layer comparison on that merged base. The checklist currently says “Unblocks ... once a run confirms it” and the body says the title has not yet been tested; please update #4461 with the result and only describe PPSA03208 as unblocked if the title run confirms the next stop. Existing dependency #9533 and the overlap with #8999 should remain coordinated as the stack is updated.
jotitadev commented 2026-10-22 12:12:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-22T12:12:34Z.

Review: COMMENTED


Apple GPU / MoltenVK run, as a third device next to the RTX 3070 Laptop and llvmpipe. The stencil-aspect view of the multisampled D32S8 image works on MoltenVK at 2 and 4 samples, and the new test fails without the DepthSurface.cpp change.

Machine: Apple M2 Max, macOS 27.2, x86_64 under Rosetta 2. Release, BUILD_TESTING=ON.
Drivers: MoltenVK 1.4.2 (Vulkan SDK 1.4.363.0), and MoltenVK main + SPIRV-Cross #2704.
Base/method: PR #8658 feat/macos-port @ 1688e5abb8 (current main plus the macOS port), not main, which does not build on macOS. This head's diff from its merge base a6dcea9279 (so #9533 included, without docs/) applies to it with no conflicts. Full rebuild before each run.

  • With the PR: the nine native depth tests and agc_driver_native_multisample_depth pass 3 of 3 on both drivers. agc_driver_native_depth_stencil_view prints cases checked=2 unavailable=1: 2 and 4 samples run, 8 is not offered by this device.
  • #9533's head with this PR's tests (your red): agc_driver_native_depth_stencil_view fails on both drivers with native multisample depth sampled identity or format mismatch. The other nine pass.
  • #9533 alone: its eight native depth tests pass 2 of 2 on both drivers.
  • Full ^agc suite with the PR: -j1 --timeout 30, 861 tests, no timeouts. Same failures as the base on both drivers (18 with MoltenVK 1.4.2, 17 with main + #2704), except agc_driver_uint8x4_color_target once on main + #2704. That test is intermittent on this machine without the PR too, and it passed on 1.4.2.

GPUs tested: Apple M2 Max (MoltenVK 1.4.2; MoltenVK main + SPIRV-Cross #2704)

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

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5613928136 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9717#pullrequestreview-5613928136). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-22T12:12:34Z. **Review:** COMMENTED --- Apple GPU / MoltenVK run, as a third device next to the RTX 3070 Laptop and llvmpipe. The stencil-aspect view of the multisampled D32S8 image works on MoltenVK at 2 and 4 samples, and the new test fails without the `DepthSurface.cpp` change. **Machine:** Apple M2 Max, macOS 27.2, x86_64 under Rosetta 2. Release, `BUILD_TESTING=ON`. **Drivers:** MoltenVK 1.4.2 (Vulkan SDK 1.4.363.0), and MoltenVK main + SPIRV-Cross #2704. **Base/method:** PR #8658 `feat/macos-port` @ `1688e5abb8` (current `main` plus the macOS port), not `main`, which does not build on macOS. This head's diff from its merge base `a6dcea9279` (so #9533 included, without `docs/`) applies to it with no conflicts. Full rebuild before each run. - **With the PR:** the nine native depth tests and `agc_driver_native_multisample_depth` pass 3 of 3 on both drivers. `agc_driver_native_depth_stencil_view` prints `cases checked=2 unavailable=1`: 2 and 4 samples run, 8 is not offered by this device. - **#9533's head with this PR's tests** (your red): `agc_driver_native_depth_stencil_view` fails on both drivers with `native multisample depth sampled identity or format mismatch`. The other nine pass. - **#9533 alone:** its eight native depth tests pass 2 of 2 on both drivers. - **Full `^agc` suite with the PR:** `-j1 --timeout 30`, 861 tests, no timeouts. Same failures as the base on both drivers (18 with MoltenVK 1.4.2, 17 with main + #2704), except `agc_driver_uint8x4_color_target` once on main + #2704. That test is intermittent on this machine without the PR too, and it passed on 1.4.2. GPUs tested: Apple M2 Max (MoltenVK 1.4.2; MoltenVK main + SPIRV-Cross #2704) Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
MarcZX10 commented 2026-10-22 15:30:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T15:30:45Z.

Review: CHANGES_REQUESTED


The stencil-view change has a detailed descriptor-boundary test and substantial author-reported NVIDIA and lavapipe coverage, including validation-layer comparisons. I did not run the Vulkan suite locally; the hosted product build jobs are skipped on this head.

Please refresh the stack before merge. This PR is based on #9533 at 514643ab16, but #9533 has since advanced to 1d16d5029d45ba362618fd6c95b21f1ae8e2305d and now contains 180 commits beyond that base, including later current-main merges and native-depth follow-up changes. Rebase the stencil change onto the latest #9533 head and rerun the focused native-depth tests/validation on that resulting stack; the existing tests are against the older prerequisite head. The current PR is also DIRTY against main.

Please also coordinate the new CTest registration with #6044 and declare the agreed order in Depends on. This commit adds agc_driver_native_depth_stencil_view with plain add_test in the same AGC CMake file where #6044 converts registrations to add_library_test(graphics ...). If #6044 lands first, use that helper; if this PR lands first, coordinate with its author so the test gets the label conversion when they rebase. The current overlap note calls this neighboring-line-only, but the registration policy affects this newly added test.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5616731275 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9717#pullrequestreview-5616731275). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T15:30:45Z. **Review:** CHANGES_REQUESTED --- The stencil-view change has a detailed descriptor-boundary test and substantial author-reported NVIDIA and lavapipe coverage, including validation-layer comparisons. I did not run the Vulkan suite locally; the hosted product build jobs are skipped on this head. Please refresh the stack before merge. This PR is based on #9533 at `514643ab16`, but #9533 has since advanced to `1d16d5029d45ba362618fd6c95b21f1ae8e2305d` and now contains 180 commits beyond that base, including later current-main merges and native-depth follow-up changes. Rebase the stencil change onto the latest #9533 head and rerun the focused native-depth tests/validation on that resulting stack; the existing tests are against the older prerequisite head. The current PR is also `DIRTY` against main. Please also coordinate the new CTest registration with #6044 and declare the agreed order in `Depends on`. This commit adds `agc_driver_native_depth_stencil_view` with plain `add_test` in the same AGC CMake file where #6044 converts registrations to `add_library_test(graphics ...)`. If #6044 lands first, use that helper; if this PR lands first, coordinate with its author so the test gets the label conversion when they rebase. The current overlap note calls this neighboring-line-only, but the registration policy affects this newly added test.
MarcZX10 commented 2026-10-29 22:45:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T22:45:40Z.

Review: CHANGES_REQUESTED


Re-checked — new head, changes requested

The stack refresh and #6044 registration concern are resolved, but a sampled-read failure in the inherited native-multisample path is not shown passing on this head.

What I ran

Reviewed exact head defd4107611653abe91988a8a6aa9cf1eca33a16, PR base 102b7a5cf0ed98dd94d9da76862eb1ee7865a932, and current main fdd1753204a4732e1011539cc9d3bb69f70b27a6. The merge preview against current main is clean. On Linux, without building, I ran:

git diff --check upstream/main...refs/review/pr-9717
python3 tools/check_conventions.py --base upstream/main --head refs/review/pr-9717
git merge-tree --write-tree upstream/main refs/review/pr-9717

I inspected the current guard and its sampled-read test, the latest PR test summary, and the NVIDIA failure report on the root PR. I did not build or run GPU tests locally.

Results

Check Result
Diff whitespace check Passed.
Repository conventions Exit 0; one existing 4,022-character debt-length warning in docs/dev/debt/libSceAgcDriver.md.
Current-main merge preview Clean; tree 4854297d7b21974d7dc83162b6b1283334d86697.
Hosted CI Windows, conventions, and report passed; Linux product and specialized jobs were skipped.
NVIDIA control on root PR Report for root head 13aba93 says agc_driver_sample_multisample_target failed on that change and passed on its bb04a4f main control. This is not a run of the current child head.
Raw output from local checks
diff_check_exit:0
docs/dev/debt/libSceAgcDriver.md:39: warning: [debt-length] Technical debt entry over 1000 characters: state the gap first (what differs from the console, what is unverified, what throws) and keep only the behaviour it needs: 4022 characters
1 findings, 0 errors; GitHub shows at most 10 error annotations, the job summary lists all
conventions_exit:0
4854297d7b21974d7dc83162b6b1283334d86697

Negative control

Assertion Change under test Result
Sample-0 guest read from a drawn 4× target Inherited multisample guest-access guard Author's root-PR report: passes on main with the PR's tests, fails on the root change. The current child head has not been shown running this case.

Findings

Blocking

  • The inherited sampled-read failure remains unverified on the current stack. The current child still has the guard that rejects guest accesses to a host-only multisampled color range, and its existing CheckFirstSampleReads case reads the drawn target's guest range. The root PR's controlled NVIDIA run reports that exact test failing on the change and passing on main. The current head defd410 merges the updated #9533 stack, but its listed repeated native-depth tests do not report this sampled-read case. Please resolve the root-path regression or show the test passing on the exact current integrated head before this stack is approved. I am not asking for a standalone rebase while #9533 remains open.

Non-blocking

  • The earlier #6044 registration-order concern is resolved: #6044 is closed, and the current description records the updated stack order.

Sources

Not verified

I did not compile or run the GPU tests locally. The NVIDIA result is author/CI-provided and covers root head 13aba93, not this child head. Current product Linux and specialized CI jobs are skipped.

To get this to a good state

After the parent stack resolves the sampled-read regression, rerun agc_driver_sample_multisample_target on current main and the exact integrated child head with the validation layer, and report whether there are new VUID- messages. I will recheck that exact head and rerun the non-building checks above.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5705951776 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9717#pullrequestreview-5705951776). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T22:45:40Z. **Review:** CHANGES_REQUESTED --- # Re-checked — new head, changes requested The stack refresh and #6044 registration concern are resolved, but a sampled-read failure in the inherited native-multisample path is not shown passing on this head. ## What I ran Reviewed exact head `defd4107611653abe91988a8a6aa9cf1eca33a16`, PR base `102b7a5cf0ed98dd94d9da76862eb1ee7865a932`, and current `main` `fdd1753204a4732e1011539cc9d3bb69f70b27a6`. The merge preview against current `main` is clean. On Linux, without building, I ran: ```sh git diff --check upstream/main...refs/review/pr-9717 python3 tools/check_conventions.py --base upstream/main --head refs/review/pr-9717 git merge-tree --write-tree upstream/main refs/review/pr-9717 ``` I inspected the current guard and its sampled-read test, the latest PR test summary, and the NVIDIA failure report on the root PR. I did not build or run GPU tests locally. ## Results | Check | Result | |---|---| | Diff whitespace check | Passed. | | Repository conventions | Exit 0; one existing 4,022-character debt-length warning in `docs/dev/debt/libSceAgcDriver.md`. | | Current-main merge preview | Clean; tree `4854297d7b21974d7dc83162b6b1283334d86697`. | | Hosted CI | Windows, conventions, and report passed; Linux product and specialized jobs were skipped. | | NVIDIA control on root PR | Report for root head `13aba93` says `agc_driver_sample_multisample_target` failed on that change and passed on its `bb04a4f` main control. This is not a run of the current child head. | <details> <summary>Raw output from local checks</summary> ```text diff_check_exit:0 docs/dev/debt/libSceAgcDriver.md:39: warning: [debt-length] Technical debt entry over 1000 characters: state the gap first (what differs from the console, what is unverified, what throws) and keep only the behaviour it needs: 4022 characters 1 findings, 0 errors; GitHub shows at most 10 error annotations, the job summary lists all conventions_exit:0 4854297d7b21974d7dc83162b6b1283334d86697 ``` </details> ## Negative control | Assertion | Change under test | Result | |---|---|---| | Sample-0 guest read from a drawn 4× target | Inherited multisample guest-access guard | Author's root-PR report: passes on main with the PR's tests, fails on the root change. The current child head has not been shown running this case. | ## Findings ### Blocking - **The inherited sampled-read failure remains unverified on the current stack.** The current child still has the guard that rejects guest accesses to a host-only multisampled color range, and its existing `CheckFirstSampleReads` case reads the drawn target's guest range. The root PR's controlled NVIDIA run reports that exact test failing on the change and passing on main. The current head `defd410` merges the updated #9533 stack, but its listed repeated native-depth tests do not report this sampled-read case. Please resolve the root-path regression or show the test passing on the exact current integrated head before this stack is approved. I am not asking for a standalone rebase while #9533 remains open. ### Non-blocking - The earlier #6044 registration-order concern is resolved: #6044 is closed, and the current description records the updated stack order. ## Sources - [Guest-access guard at the current child head](https://github.com/boykopovar/AnyPS5/blob/defd4107611653abe91988a8a6aa9cf1eca33a16/core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cpp#L1528-L1530) - [Sampled-read assertion at the current child head](https://github.com/boykopovar/AnyPS5/blob/defd4107611653abe91988a8a6aa9cf1eca33a16/core/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cpp#L1020-L1024) - [Root PR NVIDIA report for head `13aba93`](https://github.com/boykopovar/AnyPS5/pull/6973#issuecomment-6509557232) ## Not verified I did not compile or run the GPU tests locally. The NVIDIA result is author/CI-provided and covers root head `13aba93`, not this child head. Current product Linux and specialized CI jobs are skipped. ## To get this to a good state After the parent stack resolves the sampled-read regression, rerun `agc_driver_sample_multisample_target` on current main and the exact integrated child head with the validation layer, and report whether there are new `VUID-` messages. I will recheck that exact head and rerun the non-building checks above.
MarcZX10 commented 2026-10-30 00:31:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-30T00:31:48Z.

Review: APPROVED


Re-checked — evidence updated, looks good

The author supplied successful sampled-read and validation-layer results for the exact stacked head that resolve the blocker in my previous review.

What I ran

Reviewed exact PR head defd4107611653abe91988a8a6aa9cf1eca33a16 against current main at 673fa865f418876429bd871fdda2ab15ac1a0831; the merge preview was clean (tree d125aaff9184326802de3be9f74006c095aa4e19). Environment: Linux 6.1.0-54-amd64, x86-64, Python 3.11.2; no compiler was used.

git merge-tree --write-tree 673fa865f418876429bd871fdda2ab15ac1a0831 refs/review/pr-9717-current
git diff --check 673fa865f418876429bd871fdda2ab15ac1a0831...refs/review/pr-9717-current
python3 tools/check_conventions.py --base 673fa865f418876429bd871fdda2ab15ac1a0831 --head refs/review/pr-9717-current

Results

Check Result
Current-base merge preview Passed; clean merge
git diff --check Passed (exit 0; no output)
Conventions Exit 0; one debt-length warning on the existing long AGC debt entry
Hosted PR checks Eligibility, conventions, labels, report, and Windows passed; Linux product and specialized jobs were skipped
Sampled-read check Author's exact-head run reports agc_driver_sample_multisample_target passed 10/10 on Linux; the Windows runner skipped for lack of a Vulkan device
Validation-layer comparison Author's exact-head run reports the test passed on both base and PR arms, the layer loaded on both, and no additional VUID- was emitted

I verified the linked run commits are direct children of this PR head and that they add only the verification harness files. The 10-run check and validation-layer comparison completed successfully; these are author-provided CI results, not tests I ran locally.

Unedited local check output
d125aaff9184326802de3be9f74006c095aa4e19
docs/dev/debt/libSceAgcDriver.md:39: warning: [debt-length] Technical debt entry over 1000 characters: state the gap first (what differs from the console, what is unverified, what throws) and keep only the behaviour it needs: 4022 characters
1 findings, 0 errors; GitHub shows at most 10 error annotations, the job summary lists all

Sources

Not verified

I did not build or run GPU tests locally, and no PS5-console behavior was tested. The comparison used base 102b7a5cf0ed98dd94d9da76862eb1ee7865a932; current main is 673fa865f418876429bd871fdda2ab15ac1a0831. The intervening touched-path changes are limited to AGC test registration/gating and the debt document; the current-base merge preview is clean. Runtime and validation results above are author-provided CI evidence.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5706711021 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9717#pullrequestreview-5706711021). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-30T00:31:48Z. **Review:** APPROVED --- # Re-checked — evidence updated, looks good The author supplied successful sampled-read and validation-layer results for the exact stacked head that resolve the blocker in my previous review. ## What I ran Reviewed exact PR head `defd4107611653abe91988a8a6aa9cf1eca33a16` against current `main` at `673fa865f418876429bd871fdda2ab15ac1a0831`; the merge preview was clean (tree `d125aaff9184326802de3be9f74006c095aa4e19`). Environment: Linux 6.1.0-54-amd64, x86-64, Python 3.11.2; no compiler was used. ```sh git merge-tree --write-tree 673fa865f418876429bd871fdda2ab15ac1a0831 refs/review/pr-9717-current git diff --check 673fa865f418876429bd871fdda2ab15ac1a0831...refs/review/pr-9717-current python3 tools/check_conventions.py --base 673fa865f418876429bd871fdda2ab15ac1a0831 --head refs/review/pr-9717-current ``` ## Results | Check | Result | | --- | --- | | Current-base merge preview | Passed; clean merge | | `git diff --check` | Passed (exit 0; no output) | | Conventions | Exit 0; one `debt-length` warning on the existing long AGC debt entry | | Hosted PR checks | Eligibility, conventions, labels, report, and Windows passed; Linux product and specialized jobs were skipped | | Sampled-read check | Author's exact-head run reports `agc_driver_sample_multisample_target` passed 10/10 on Linux; the Windows runner skipped for lack of a Vulkan device | | Validation-layer comparison | Author's exact-head run reports the test passed on both base and PR arms, the layer loaded on both, and no additional `VUID-` was emitted | I verified the linked run commits are direct children of this PR head and that they add only the verification harness files. The [10-run check](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40970227338) and [validation-layer comparison](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40970449978) completed successfully; these are author-provided CI results, not tests I ran locally. <details> <summary>Unedited local check output</summary> ```text d125aaff9184326802de3be9f74006c095aa4e19 docs/dev/debt/libSceAgcDriver.md:39: warning: [debt-length] Technical debt entry over 1000 characters: state the gap first (what differs from the console, what is unverified, what throws) and keep only the behaviour it needs: 4022 characters 1 findings, 0 errors; GitHub shows at most 10 error annotations, the job summary lists all ``` </details> ## Sources - [PR-head sampled-read test and guard](https://github.com/boykopovar/AnyPS5/blob/defd4107611653abe91988a8a6aa9cf1eca33a16/core/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cpp) - [Pinned Linux verification configuration](https://github.com/EagleBearerYS/AnyPS5/blob/7bd1d098e9385427fa831a7c071b18d5ecb6eaae/.github/verify/config.sh) ## Not verified I did not build or run GPU tests locally, and no PS5-console behavior was tested. The comparison used base `102b7a5cf0ed98dd94d9da76862eb1ee7865a932`; current `main` is `673fa865f418876429bd871fdda2ab15ac1a0831`. The intervening touched-path changes are limited to AGC test registration/gating and the debt document; the current-base merge preview is clean. Runtime and validation results above are author-provided CI evidence.
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!9717
No description provided.