fix(agc): import native multisample D32S8 targets with a separate stencil plane and a depth-only HTILE #9533

Merged
EagleBearerYS merged 36 commits from upstream-pr/9533 into main 2026-11-02 07:58:17 +00:00
EagleBearerYS commented 2026-10-22 00:33:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-22T00:33:09Z.


What

Stacked on #6300 (Gashrod1), which imports cleared native multisample D32S8 targets whose stencil lives in HTILE, and takes whole HTILE fills as clears. This branch carries #6300's two commits unchanged, merges main into them, and adds fourteen commits for a shape #6300 doesn't cover: a D32S8 target whose stencil is a separate plane and whose HTILE is depth-only.

Titles with this shape, all stopping on main at the native depth import:

  • The Grinch: Christmas Adventures (PPSA07656) stops about 2 s in, before its first present, with native multisample stencil or depth format import is not implemented (BunnyFl's report).
    • The target is two-sample D32S8 at 2560x1440, with a separate stencil plane of 0x780000 bytes and a pipe-aligned, depth-only HTILE.
    • It samples the depth through a descriptor with no metadata.
  • Ghost of Tsushima Director's Cut (PPSA02225) stops on the same format refusal, and on #6300 at native multisample stencil import requires HTILE stencil metadata (milescoviello on #6300: 1, 2).
    • The target is two-sample D32S8 at 1920x2160, with a depth-only HTILE that is neither pipe-aligned nor ITERATE_256.
    • Two whole-range fills of 0 come before the sample: the HTILE (0x50000 bytes) and the stencil plane (0x870000).
    • On 5daa8cb7a9 it got past both refusals and stopped at a CPU read of the stencil plane, whose memory a 2-sample colour target also covers (milescoviello and xXPBSXx, below). 2d4c1da61d and 14e56205cf handle that read.
    • On 514643ab16 that read is gone, and it stops at the depth plane, which another host-only colour target covers (next stops).
  • Spirit of the Island (PPSA13934) aborts at its first gameplay frame after New Game on the same format refusal (JJenkx on #6300).
  • Assassin's Creed Shadows (PPSA20397) aborted at about +848 s, in compute shader 0x40054ea100, on the same format refusal: a D32S8 multisample target with a separate stencil plane (akkadbakkad89's run).
    • The target is eight-sample D32S8 at 512x512, with a separate stencil plane and a depth-only HTILE that isn't pipe-aligned.
    • Thanks to JJenkx for printing the target's fields.

The changes:

  • 8eba29aeef, merge of main into #6300's head c11074be82. Three conflicts, each resolved by keeping both sides:
    • prepareDepthSampling: #6300's stencil checks, with main's HTILE line (752cca10f dropped the ITERATE_256 requirement).
    • NoteHtileDepthClear and NoteDepthMetadataFill: #6300's proofs, written with main's DepthSamplingState::Refuse (the first refusal wins), ahead of main's ForgetClear and plane-fill paths.
    • CheckDepthTarget takes both #6300's ClearSource and main's iterate256.
    • #6300's stencil test now submits the raster and looks the view up again before its fetch, since main samples a native target through a shadow refreshed at view lookup.
  • 7d6e968d6b, the separate stencil plane.
    • A D32S8 target with a separate plane and a depth-only HTILE is imported when the depth's HTILE proves its clear, and every byte of the plane equals DB_STENCIL_CLEAR. The plane is read once, between taking the ranges' generations and the final check, so a racing write still refuses.
    • The host image is created cleared to both values.
    • A whole depth-only HTILE fill now clears only the depth.
    • A plane that isn't all clear refuses: "native multisample stencil plane does not hold its clear value".
  • 5be005ea13, sampling without HTILE. The sampled descriptor may now name no metadata at all (dccAddress 0, not pipe-aligned), as well as the target's HTILE, when address, format, XOR and ITERATE_256 match. Any other metadata still refuses.
    • The host image holds decompressed depth. On hardware, a read without metadata returns that only after the guest has expanded the plane in place, so 439557b223 accepts such a descriptor only after an observed expand.
  • 770a499ba9, a depth-only HTILE that isn't pipe-aligned is imported when every word over HtileMetadataBytes(extent) is the same word and proves the clear.
    • Pipe alignment only moves words between tiles, so one repeated word proves the same in any order.
    • One whose words differ refuses: "native multisample depth HTILE that is not pipe-aligned holds more than one word".
    • An HTILE that holds stencil keeps the alignment refusal.
  • 90d652a1ed, a whole fill of the separate stencil plane with one byte value becomes a stencil clear. It's proven at the next sample the way #6300 proves a whole HTILE fill: no CPU write since, complete tracked stores (or the fill is the plane's newest queued GPU write), and every plane byte equal to the fill byte once it has landed.
    • Partial fills, multi-byte patterns, unwatched memory and a second fill before the first is proven each refuse with their own text.
  • 0e17d12ff4 and 5daa8cb7a9, the order of Ghost's fills.
    • A DMA_DATA fill is noted before its GPU write is recorded, so the first sample saw the queued fill as a foreign write. The sample now takes the note's pattern from the one write recorded over the range since the note, when that write is a word fill of the whole range with that pattern.
    • A compute memory-value fill is noted twice, before and after the fill, and the second note refused as overlapping. A second note of a pending fill now counts as the same fill under the same conditions.
    • A later queued write, a different word, or a partial queued fill still refuses.
  • 2d4c1da61d, a stencil plane under a host-only colour target. Ghost of Tsushima Director's Cut renders a 2-sample R8 colour target over the stencil plane's memory, so reading the plane hit that target's guard.
    • MultisampleTarget gains a query that doesn't throw: the active colour target whose guarded range overlaps a range, with its format, samples, footprint and newest content. A fill the target absorbed, a CMASK fast clear, or a clear with no draw since is a known value; a draw, a storage write or refused metadata is not.
    • prepareDepthSampling asks it for the depth, HTILE and plane ranges before reading guest memory. An R8 UNORM or UINT target with the depth's sample count over exactly the plane, holding a known value, gives the plane's stencil.
    • CheckCurrent runs the same query: a plane fill over an aliased plane is proven from the colour target's value, not by reading the plane.
  • 439557b223, sampling without metadata only after an in-place expand. A draw over the target with DB_RENDER_CONTROL's depth compress-disable bit (bit 6), and the stencil one (bit 5) when the target has a stencil plane, marks the surface expanded, as radeonsi's in-place decompress sets them. A clear draw, an HTILE clear or fill, and a plane fill clear the mark.
    • CheckResource takes a descriptor without metadata only while the surface is marked. Otherwise it refuses with "native multisample depth sampled metadata or XOR mismatch" and prints the last DB_RENDER_CONTROL seen, at most eight times.
    • The draw precheck hands the register to NoteDepthRenderControl before an expand draw, which has no depth test and no colour writes, is dropped as drawing nothing.
  • 14e56205cf, a plane under a colour target that drew, or holds something unknown. It was refused at import, so sampling the depth failed too. The plane is now imported unproven: the host stencil isn't taken from it, depth sampling and depth-only draws go on, and a draw with a stencil test or a sample of the plane refuses with the alias text and a line naming the colour target's state.
    • A later whole-plane fill proves the plane from the fill byte without reading guest memory, if a colour target still over the plane absorbed that fill as the same R8 byte at the same sample count.
    • 8ba6321221's debt line names what taking a drawn plane would need: a GPU copy of the colour target's R8 samples into the depth image's stencil aspect.
  • 514643ab16, the sample shadow's barrier. A D32S8 depth's sample shadow went from UNDEFINED to GENERAL with only the depth aspect, which breaks VUID-VkImageMemoryBarrier-image-03320 without separateDepthStencilLayouts. The transition now names the stencil aspect too when the host format has one. JJenkx found the same on an RX 6650 XT.
  • 6bc1899d50 and dd7ad4638a, a queued DMA_DATA fill's metadata note (both Co-authored-by: JJenkx). enqueueDmaPacket's large-fill branch queued storeBufferFill(..., false, false), whose last argument is noteMetadata, so a fill over 64 KiB never noted HTILE or colour metadata, and the next sample took this PR's fill transition for an external GPU write. dd7ad4638a notes it, as the synchronous and small queued paths do. 6bc1899d50 adds a test seam, friend struct DriverTestAccess; (as VulkanDeviceTestAccess does), so the test runs native multisample depth through the driver's own device, following JJenkx's approach. On main a metadata fill over a live native multisample target's HTILE refuses anyway, so the gap shows only with this PR's fill transition.
  • 1e07a659ed, merge of main 8b3a6ba88d: clean. The PR's changed lines are the same as before the merge (git diff -U0 patch-id); only their context moved.
  • 8b2b3080bb, merge of main 3ca07d086d, which brings #7233 (MarcZX10): possible writes, an HTILE clear's note, arm and complete steps, and the drain in Driver::WaitIdle. Each conflict keeps both sides:
    • CheckCurrent: main's "native multisample depth clear has not been recorded" check comes first, then this PR's checks, unchanged.
    • NoteHtileDepthClear: this PR's refusals for a stencil surface and an unproven target come first, then main's overlap check and pending flag, which now also set this PR's clear aspects. main's ArmHtileDepthClear takes the clear's generation, in place of this PR's immediate one.
    • The test file takes main's ClearFault cases and DriverTestAccess::GetDevice beside this PR's ClearSource and UseDevice, with one CheckDepthTarget signature.
    • Two test adaptations are in the merge itself, since without them it fails its own tests:
      • The expand-gate case arms its HTILE mask clear, as main's model needs. Without it: "native multisample depth clear has not been recorded".
      • --driver-queued-fill waits only for the driver queue, through DriverTestAccess::WaitQueue. main's 71decdc752 makes Driver::WaitIdle also wait for the device, so the case no longer sampled while its fill was queued. Without it: "CPU writes raced native multisample depth clear".
    • So the PR's changed lines differ from before this merge (the git diff -U0 patch-id changes), by these resolutions and adaptations.
  • a6b6274a4d, a metadata fill over a pending HTILE clear dispatch. Under main's model a dispatch clear is pending from its note until it's armed. A whole-HTILE fill noted in between took the clear as its own, and the arm kept the fill's pattern, so the dispatch clear was proven as a fill. Such a fill now refuses: "native multisample depth metadata fill over a pending HTILE clear dispatch is not implemented". It's the refusal from the composition with #7371 (5e8a1cdb83), which Amoenus asked to keep with this PR's fill support (comment).
  • 229d718325, merge of main 8b3e39832a, which brings #8847 (JJenkx's sRGB twin). One conflict, in MultisampleTargetView: each overload keeps this PR's drawn mark and returns main's View(target.format). The PR's changed lines are otherwise the same, less one that main now makes too (auto& acquired in place of const auto&).
  • 1d16d5029d, merge of main b7d1d47a5f, which brings #7371 (Amoenus's queued HTILE clear handoff). In DepthSurface.cpp, #7371's clearCompletionQueued field and its reset sit beside this PR's clear fields, both kept. The PR's changed lines are the same as before this merge (git diff -U0 patch-id), and the merged DepthSurface.cpp is byte for byte the composition posted in #7371's thread (5e8a1cdb83).
  • a45dff8d51, merge of main d6e7ab42df, which brings #6727 (simonbronk). In Draw.cpp each DepthSurfaceView call keeps this PR's stencilTest and gains #6727's NoteDepthSurfaceWrite, and in the debt entry #6727's sentence follows this PR's. #6727 retires an unwritten native multisample depth surface on a guest read instead of refusing it (#6727), and its own fixtures note a host write with NoteDepthSurfaceWrite before they expect a refusal. CheckStencilTarget now does the same before it reads the stencil plane, so --stencil still checks that a written D32S8 target refuses. Apart from that line, the PR's changed lines are the same as before the merge, with the stencilTest arguments now inside #6727's blocks.
  • 1582cf6cc0 (test): a queued DMA_DATA fill of more than 64 KiB is stored through a host import, and Windows compares its direct host imports instead of keeping them write-watched, so the fill's HTILE is unwatched after the store and the fill refuses. On Windows, agc_driver_native_depth_driver_queued_fill now skips with that reason when PrepareImportWatch reports compared imports. Linux still forces watched imports, so the case keeps running there. The debt entry records that such a fill is refused wherever host imports are compared.
  • 5343d0a8da, a whole 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). A whole HTILE or stencil-plane fill was proven by its write note while the write was still pending, or by stores stamped after the generation the note collects. A CPU fill (GuestMemory::Write, when the HTILE has no host import) and a GPU fill whose batch left the open batch before the note have neither proof once they retire, so the next sample stopped at native multisample depth clear has no complete tracked HTILE store.
    • When a new fill is noted, the surface now records whether every byte was stored since it last saw the metadata (StoredAllSince(metadata, metadata.generation)), and CheckCurrent accepts that as a third proof. The stencil plane gets the same.
    • Still refused: pending writes other than the queued fill, a CPU write after the note, words the surface had already seen, and words driver-stored before the surface was created.
  • The native multisampled depth sampling debt entry lists the new cases and refusals.

Overlap:

  • JJenkx described a private prototype of the depth-only HTILE and separate stencil import on #6300 (comment). This PR covers that case, plus sampling the depth through a descriptor without HTILE.
  • #8319 (Aryansh1520) records the non-pipe-aligned HTILE gap in the debt file, for Sonic Superstars (PPSA06888). This PR closes its depth-only case when every word proves the same clear. HTILEs with stencil keep the refusal. The two merge cleanly.
  • #7233 (MarcZX10, possible writes and complete coverage) and #7371 (Amoenus, queued HTILE clears) have landed, and this PR is merged with both (8b2b3080bb and 1d16d5029d). #6808 (KingDarkHN) changes prepareDepthSampling and NoteHtileDepthClear as well, and conflicts with main itself. None of them imports a separate stencil plane.
  • Merge order, agreed in #7371's thread (comment, again): #7233 → #7371 → this PR. Both have landed. The merged DepthSurface.cpp keeps #7371's pending, armed and completed order and its range-limited SyncThrough outside surfacesMutex, with this PR's clear-aspect and plane checks after #7371's pending-clear refusal.
  • #8223 (savvaniss) retires a multisampled colour target once a depth or colour bind reuses its memory, which covers PPSA03208's colour target over this shape's stencil plane. It conflicts with this head in DepthSurfaceView and in MultisampleTarget.cpp's guard. This PR goes after it and rebases onto it, agreed in #8223's thread (comment), keeping its claims and retires. At that rebase, a retired colour target over a native stencil plane keeps its known fill value, or else leaves the plane unproven, so a stale guest plane is never taken as the clear value.
  • #6973 → #6987 → #6989 → #6995 → #7002 (Amoenus, native colour contents and their publication) change a multisampled colour target's initial contents in MultisampleTarget.cpp, where this PR records the target's clear for Alias(). Composed, cleared takes the initial value only when it's a clear (the known clear, DCC or CMASK), so a plane under a target that starts from the guest's contents stays unproven. This PR goes after #6973 and rebases over it, agreed in its thread (comment), keeping ensureGeneralLayout() beside the cleared and drawn assignments in Recreate.
  • #6727 (simonbronk) has landed, and this PR is merged with it (a45dff8d51). Its NoteDepthSurfaceWrite follows the two DepthSurfaceView calls in Draw.cpp that this PR gives the draw's stencilTest, both debt edits are kept, and this PR's stencil fixture notes a host write as #6727's fixtures do.
  • #9700 (frankea) changes the guarded colour byte count to the fragment count. Composed, that goes into this PR's guardedColorBytes, which the guard and the alias query share. This PR goes after it (order note in its thread).
  • #8999 (milescoviello) has landed, and this PR is merged with it (55b0a5f4ad). It splits the native depth branch in DepthSurface.cpp on depthCopySourceActive. This PR's RequireStencilProven goes only in its else branch, after CheckCurrent(): a DB depth copy never reads the stencil plane, since DecodeDepthCopyPass refuses STENCIL_COPY (milescoviello), as agreed in its thread (comment).
  • #6946 (Raghav314) has landed. It met this PR only at the include lines in DrawPrecheck.cpp, and both stay (de4cee5626).
  • #6044 (TaymKal) converts the AGC CMake 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, this PR's new native depth registrations move to add_library_test(graphics ...) at its next merge of main.
  • #9950 (ebarr24) publishes a written native multisample D32 surface to its guest planes. Both PRs edit DepthSurface.cpp's includes (it adds MultisampleTextureLayout.hpp where this PR adds Pipeline.hpp) and the native multisampled depth debt entry, so they conflict in text only. They compose: both includes stay, and the two sentences merge. This PR goes after it (note).

Tested

On Linux with lavapipe (llvmpipe, LLVM 20.1.2), which samples D32S8 only at four samples, each case below runs at four samples and the two- and eight-sample cases report unavailable. The RTX 3070 run covers two and eight samples.

  • New ctest agc_driver_native_depth_separate_stencil (--separate-stencil). Each red below reverts that change's driver hunk and keeps the test:

    case red
    import with a separate plane "native multisample stencil import requires HTILE stencil metadata"
    one stencil byte not clear the refusal "did not match native multisample stencil plane does not hold its clear value"
    a depth-only fill keeps the stencil (only the clearAspects line reverted) "a sampled fetch lost a depth sample or a stencil test outcome"
    sample through a descriptor without HTILE "native multisample depth sampled metadata or XOR mismatch"
    a non-pipe-aligned depth-only HTILE "native multisample depth initial import requires pipe-aligned HTILE without VRS"
    a whole stencil plane fill "guest writes over native multisample depth are not implemented"
    a partial plane fill the refusal "did not match native multisample stencil plane partial fill transition is not implemented"
    Ghost's fills queued after their note "external GPU writes over native multisample depth are not implemented"
    a fill noted, queued and noted again "overlapping native multisample depth clear transitions are not implemented"
    • Every case passes 20/20 on its commit.
    • Ghost's sequence (creation, a whole HTILE fill of 0, a whole plane fill of 0, then a sample) passes in four orders: stored, queued after the note, queued before it, and noted twice.
    • The guards hold: a later queued stencil write, a different HTILE word, a partial HTILE fill, a plane fill noted twice with no write between, and a target refused at creation that keeps its creation reason after both fills.
  • After every commit: ctest -R 'native_multisample|native_depth|depth|htile|stencil' 40/40, with 2 skipped as on main (agc_driver_native_depth_bda_clear and agc_driver_sample_order_recipe_depth_locations).

  • Linux, as CI runs it, at 5daa8cb7a9 (Ubuntu 24.04, GCC 13.3, unprivileged user):

    • 1,824 tests: 1,738 passed, 83 skipped, 3 failed. guest_socket_stream_options, guest_socket_address_length and guest_tcp fail the same way on main there, because that machine has no usable sockets.
    • check_test_registration.py: none new. check_skips.py: guest_sce_net, for the same reason.
  • GitHub's runners at 5daa8cb7a9 (run): on Linux, agc_driver_native_depth_separate_stencil and agc_driver_native_depth_stencil pass ×3. On Windows the build succeeds and both skip, since that runner has no Vulkan device. The libc and libkernel suites pass on both.

  • check_conventions.py at 514643ab16: no errors and no comment lines added. One warning, debt-length, on the native multisampled depth entry: 3,192 characters, against 1,403 on main.

  • New ctests for 2d4c1da61d and 439557b223:

    • agc_driver_native_depth_aliased_stencil (2d4c1da61d): a 4-sample R8 target over the plane with an absorbed fill imports, and the next stencil test passes the fill value and no other. A second absorbed fill is proven and taken, and a colour draw after it refuses. A target drawn after its fill, and an R8G8 target over the plane, refuse with the new reason. The guest plane keeps its 0xa5 bytes throughout. With the product change reverted the cleared case throws the guard text (1 of 1); with it the mode passes 5 of 5.
    • agc_driver_native_depth_expand_gate (439557b223), for D32 and for D32S8 with a separate plane: a bare sample before any expand is refused, and on D32S8 also after only the depth bit. After the expand draw it gets the cleared and then the drawn depth. An HTILE fill, a clear draw and a plane fill (an HTILE mask clear on D32) each refuse it again until the next expand. With the gate reverted the first bare sample is accepted (1 of 1); with it the mode passes 5 of 5. The separate-stencil test now draws an expand before its bare sample.
  • NVIDIA GeForce RTX 3070 Laptop GPU at 514643ab16 (driver 617.42, the only device enumerated, Windows 11, WinLibs GCC 15.2.0, Release, ANYPS5_REQUIRE_VULKAN=1; GPU clocks weren't held, pass/fail only): the eight native depth tests, agc_driver_native_multisample_depth and agc_driver_native_depth_{retirement,clears,clear_refusals,stencil,separate_stencil,aliased_stencil,expand_gate}, pass 5 runs in a row, with their 2-, 4- and 8-sample cases.

  • Validation layer, main against this PR (CONTRIBUTING's AGC rule), on one GitHub Linux runner (run). 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.

    • Tests: agc_driver_native_multisample_depth, agc_driver_native_depth_{retirement,clears,clear_refusals} and agc_driver_msaa_dcc_clear_4 on both trees, plus this PR's agc_driver_native_depth_{stencil,separate_stencil,aliased_stencil,expand_gate}, which main doesn't have. main's tree (a6dcea9279) ran its five once and this head's nine three times.
    • The loader inserted VK_LAYER_KHRONOS_validation 9 times on main and 51 with this PR, and neither log has was not found but was requested by env var VK_INSTANCE_LAYERS.
    • Both logs report the same single message, VUID-VkDeviceCreateInfo-pNext-pNext, for a device-creation structure newer than that layer version. This PR adds no VUID- message.
    • The same run builds the nine on Windows, where they skip without Vulkan. The suites' two failures are timing tests this change doesn't reach: precise_wait (libc, Linux) and guest_raise_in_system_call (libkernel, Windows), which other PRs' runs on those runners have hit too.
  • Validation layer, the previous head against this one, on one GitHub Linux runner (run), with the same settings and device. The previous head's 6 native depth tests log VUID-VkImageMemoryBarrier-image-03320 39 times, in agc_driver_native_depth_stencil: vkCmdPipelineBarrier() on a VK_FORMAT_D32_SFLOAT_S8_UINT image with only VK_IMAGE_ASPECT_DEPTH_BIT, the sample shadow's barrier. This head's 8 don't log it, and add no VUID- message.

  • Title runs, on 5daa8cb7a9:

    • The Grinch: Christmas Adventures (PPSA07656), BunnyFl, Windows 11, AMD Radeon RX 9070 XT (driver 32.0.32015.7029), merged into main d6eafa54d0, the title relinked with the same build (1, 2). On main it aborts about 2 s in, before its first frame. With this PR it doesn't stop:
      • 240 s with no driver failure and no AGC refusal; frame dumps show the logos, the publisher video, the autosave notice, loading and the storybook intro;
      • with scripted input it reaches the first level and plays there: walking, collecting presents and moving between rooms, 365 s, no AGC refusal.
    • Ghost of Tsushima Director's Cut (PPSA02225): milescoviello (Linux, RTX 4070 Ti, NVIDIA 615.71.09, three runs; comment) and xXPBSXx (Windows, AMD Radeon RX 6400, all of main's libs rebuilt for both, 600 s each; comment). On main it stops at native multisample stencil or depth format import is not implemented. With this PR no native multisample refusal appears, and the run stops later at the CPU read of the stencil plane that a 2-sample colour target covers. 514643ab16 doesn't make that read.
    • PPSA03208, oneandonlydean, on main plus other open PRs it needs (comment): both of its stops clear, the format refusal and the HTILE stencil requirement, and its two whole fills are taken as clears. The next stop is a per-sample R8_UINT read of the stencil plane, refused by CheckResource, which #9717, stacked on this PR, covers.
  • Title run, on 514643ab16: Ghost of Tsushima Director's Cut (PPSA02225), milescoviello, Linux, RTX 4070 Ti, NVIDIA 615.71.09, warm and cold, with a pad script cycling through the menu buttons (comment).

    • The CPU read of the stencil plane is gone.
    • Both runs stop on the depth plane of the same target, warm at 17 s and cold at 52 s: native multisample depth 0x1544ed0000+0x1fe0000 aliases multisampled colour target 0x1544ed0000+0x1fe0000 (vk format 100, 2 samples), newest clear 0x00000000 ..., then native multisample depth or HTILE aliases a multisampled colour target whose samples are only on the host.
  • Ghost of Tsushima Director's Cut (PPSA02225) with the stacked #9742 and #9717, and milescoviello's #8115 and #8121, on the test branch test/ghost-9742-9717 (3ec696f7fe, on 514643ab16) with those two merged on top (comment): milescoviello, Linux, RTX 4070 Ti, NVIDIA 615.71.09, 20 GiB cap. Warm and cold both reach the 600 s limit with no refusal and no crash. In their words, the game shows its brightness calibration screen, with the mask rendered correctly, and then its intro. The only native depth line left is #9742's alias line, printed once and accepted.

  • Focused tests on other GPUs, on 5daa8cb7a9:

    • xXPBSXx, Windows, AMD Radeon RX 6400 (comment): agc_driver_native_multisample_depth passes 3 of 3, and fails 3 of 3 with DepthSurface.cpp from the merge-base.
    • JJenkx, Linux, AMD Radeon RX 6650 XT (RADV NAVI23), Khronos validation at instance and device creation, merged into main d6eafa54d0 (comment): the 7 focused tests pass, 5 of them on main too. This PR's stencil tests logged VUID-VkImageMemoryBarrier-image-03320, which 514643ab16 removes. Their production-DMA diagnostic found a queued DMA fill over native multisample depth that the next sample refuses. dd7ad4638a takes their fix, with them as co-author: on main a metadata fill over a live native multisample target's HTILE refuses anyway, so the gap shows only with this PR's fill transition.
      • On 5daa8cb7a9 with their own two fixes, their 12 D32S8 cases (2, 4 and 8 samples, clear 0 and 1, compressed and uncompressed HTILE, stencil checked) pass with validation on and log no VUID- (comment).
  • 6bc1899d50 and dd7ad4638a, the queued DMA fill, on GitHub's runners (run), against 6bc1899d50, so that only dd7ad4638a's driver hunk is reverted:

    • agc_driver_native_depth_driver_queued_fill fails 3 of 3 without it, with "AGC graphics: external GPU writes over native multisample depth are not implemented", and passes 10 of 10 with it, for clears 0 and 1. With #9533's native depth tests, agc_driver_native_depth_driver_path and agc_driver_pipelined_dma, 11 tests pass 10 of 10 on Linux. On Windows they build and pass, with the Vulkan tests skipping.
    • On a cloud Linux machine, 6bc1899d50 builds on its own and its agc_driver_native_depth_driver_path passes, and the two new tests pass until-fail:20.
    • The case does one 128 KiB fill, then samples. On lavapipe it samples once, while the fill is still queued, since llvmpipe's CPU stores look like guest writes there.
    • Validation, 514643ab16 against dd7ad4638a (run), every test named: the layer loads in both runs, with no "was not found" line. Both log only VUID-VkDeviceCreateInfo-pNext-pNext, and the two commits add no VUID- message.
  • Earlier merges of main, on GitHub's runners. In each, the tests named ran 10 times with no failure on Linux. On Windows they build and the Vulkan tests skip, since the runner has no Vulkan device. The libc and libkernel suites passed on both, except where noted, and from 1d16d5029d on they ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners. Where it says validation, the Khronos layer ran against main in the same run, and the merge added no VUID- message.

    • 1e07a659ed (main 8b3a6ba88d, run), 1d16d5029d (b7d1d47a5f, run) and 9afaa90c1f (11f976b27c, clean, run): the 13 native depth, DCC clear and pipelined DMA tests; validation.
    • 229d718325 (8b3e39832a, run): the same 13; validation. In that run's libc suite, precise_wait failed on the Linux runner with this head, under its strict median bounds; main's arm passed it.
    • a45dff8d51 (d6e7ab42df, run): the same 13; validation. Without its fixture line, agc_driver_native_depth_stencil failed on the merge with an empty refusal (run).
    • de4cee5626 (0db47b263d, run): DrawPrecheck.cpp's include block, both kept. The 11 agc_driver_native_depth* and agc_driver_native_multisample_depth* tests; agc_driver_native_depth_bda_clear skips on Linux.
    • f7569e7ce1 (66e6772ca2, #10375's CheckDepthAttachmentAlias, run) and 078e6a68d8 (1ee8f4bec1, #9186's host-only flag on guard(), run), both kept: the agc_driver_native_, agc_driver_depth_ and agc_driver_msaa_ tests (and agc_driver_sample in the second). Linux 42 and 55 run, 0 fail.
    • f39599c354 (19af7f44e4, #10368's CheckStorageAliasRetirement, both kept, run): those sets plus the tests built from the merged files. Linux 302 run, 286 pass, 16 skip; Windows 321 run, 184 pass, 137 skip; 0 fail; validation.
    • 6eb141ce5f (102b7a5cf0, #12566's HostOnlySampleRanges, both kept, run): ^agc_driver_native_ and agc_frame_capture. Linux 14 run, 12 pass, 2 skip, 0 fail.
  • 8b2b3080bb and a6b6274a4d, on a cloud Linux machine (CI's configure flags, lavapipe on Mesa 25.2.8, unprivileged user): both build, and the 14 native depth, DCC clear and pipelined DMA tests pass; on a6b6274a4d they pass --repeat until-fail:10.

    • Each adaptation's red above was taken on 8b2b3080bb with only that adaptation reverted.
    • a6b6274a4d's red: with its DepthSurface.cpp hunk reverted and the test kept, agc_driver_native_depth_clear_refusals accepts the fill ("multisample target refusal did not match metadata fill over a pending HTILE clear dispatch").
    • The full ^agc set, once each: 880 of 881 on a6b6274a4d and 875 of 875 on main 3ca07d086d, with 60 skipped on both. The six extra tests are this PR's. The one failure, agc_driver_sgpr_pattern_fill_keys ("the dispatch completed 17 times without a pending write over the keys"), passed 20 of 20 alone and 881 of 881 in a second sweep, failed the same way on main in a third sweep, and isn't in a file this merge touches.
  • 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): 11 of the 12 native depth tests pass 5 of 5 at 2, 4 and 8 samples. agc_driver_native_depth_driver_queued_fill failed 4 of 4 with "AGC graphics: native multisample depth metadata fill over unwatched memory is not implemented". On Windows the queued fill still refuses, as on main; 1582cf6cc0 makes the test skip there with that reason. A run of 1582cf6cc0 on that GPU is pending.

  • 1582cf6cc0 (run): on GitHub's Linux runner, the 13 native depth, DCC clear and pipelined DMA tests pass 10 of 10, none skipped, agc_driver_native_depth_driver_queued_fill among them with watched imports. In the same run, validation against main: main's arm runs the 7 of the 13 tests it has, the layer loads in both runs (11 and 210 times) with no "was not found" line, and both log only VUID-VkDeviceCreateInfo-pNext-pNext, so this head adds no VUID- message. On GitHub's Windows runner the change builds and the 12 Vulkan tests skip, so its lines are the suites only. The libc and libkernel suites 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. tools/check_skips.py accepts the new skip line on the Windows job, where any agc* skip is expected; on Linux the case can't skip, since it forces watched imports. check_conventions.py: no errors and no comment lines added; the one warning is debt-length on the native multisampled depth entry, now 3,990 characters.

  • 53886418d9, after @jotitadev's macOS run of 1582cf6cc0 (review): on an Apple M2 Max with MoltenVK 1.4.2, on #8658's macOS port, the eight native depth tests and agc_driver_native_multisample_depth pass. agc_driver_native_depth_driver_path and agc_driver_native_depth_driver_queued_fill pass every case and then abort at exit with recursive_mutex lock failed: Invalid argument. The test handed its device to the driver and never took it back, so the driver singleton released it at exit, after statics its teardown locks had been destroyed.

    • 53886418d9 (test only) gives the driver's device back before each of the two tests returns.
    • On GitHub's runners (run), ^agc_driver_native_depth and agc_driver_native_multisample_depth: on Linux 10 tests pass 10 of 10, and agc_driver_native_depth_bda_clear skips as on main. On Windows the 11 build and skip, since that runner has no Vulkan device. The libc and libkernel suites pass on both runners. They ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
    • These runners show no red: glibc and Windows tolerate locking the destroyed mutex, and the abort is macOS's. Not yet rerun on macOS.
  • The Grinch: Christmas Adventures (PPSA07656) 01.000.003, on f39599c354, BunnyFl, Windows 11 Pro 26200, AMD Radeon RX 9070 XT (driver 32.0.32015.7029), merged into main f95acfc948 with no conflicts, the title relinked with each build (comment):

    • on main, three runs stop 6-10 s after start, before the first present, with AGC graphics: native multisample stencil or depth format import is not implemented;
    • with this PR, three runs of 300 s with Cross pressed every 3 s don't stop, and no log has an is not implemented line. Most 10 s windows have 750-1199 presents, the lowest 49. The last frames of all three runs are gameplay in the first level.
  • Not tested: Spirit of the Island (PPSA13934), and PPSA03208 on 514643ab16 and later.

Next stops to expect:

  • An HTILE mask clear of a separate-stencil target still refuses, under #6300's rule.
  • If Ghost of Tsushima creates its target before the two fills, while the memory still holds older contents, creation refuses with its own reason, and the fills can't help. The run would then print that reason.
  • A plane under a colour target that drew is imported unproven, so its first stencil test or stencil sample refuses until a whole-plane fill proves it.
  • Ghost of Tsushima's depth plane: a host-only 2-sample R32_SFLOAT colour target cleared to 0 covers exactly the depth range, so the depth import refuses with the alias text (milescoviello's run above). #9742, stacked on this PR, covers it. As JJenkx's source review notes, the colour clear alone doesn't show that the depth agrees with it: that needs the target's clearDepth and its HTILE.
  • A per-sample R8_UINT read of the stencil plane refuses (PPSA03208); #9717, stacked on this PR, covers it.
  • With APS5_PIPELINE_DMA set, a large queued DMA fill over the depth's metadata isn't noted, so the next sample refused it as an external write (JJenkx). Fixed in this PR by dd7ad4638a (Co-authored-by: JJenkx) where host imports stay write-watched, as on Linux in our runs. The queued fill is stored through a host import, and where host imports are compared rather than watched, as Windows' direct imports always are, the fill still refuses, as on main: on an NVIDIA GeForce RTX 3070 Laptop GPU, agc_driver_native_depth_driver_queued_fill failed 4 of 4 with "native multisample depth metadata fill over unwatched memory is not implemented". 1582cf6cc0 makes that case skip on Windows with the reason, and a run of it on the RTX 3070 is pending. Back-to-back HTILE fills of one pattern still refuse as overlapping clear transitions, queued or not.
  • 55b0a5f4ad, a merge of main 3fcb5e4d76, which brings #8999's DB depth copy draws. The one conflict was the native depth branch in DepthSurface.cpp, which #8999 splits on depthCopySourceActive: this PR's RequireStencilProven goes in the else branch after CheckCurrent(), as planned (see Overlap). 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: 42 run, 38 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 42 run, 3 pass 10 runs in a row and 39 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.
    • An ^agc sweep (run): Linux 984 run, 919 pass, 64 skip, 1 fail: agc_driver_queued_index_read_order, with "the queued draw's commit stored the image's results over its index buffer". On main c9b2660d56 (run) and 137a8fab89 (run), and on this merge alone (run), the test fails at its setup check before that one: "the image write left no pending result to order against". So these runs can't show whether the later check fails on main too. Windows 1,008 run, 282 pass, 722 skip, 4 fail: agc_submit_progress, agc_submit_progress_no_timeline, agc_driver_pipelined_metadata_pass and agc_driver_pipelined_metadata_pass_draw_pipeline, which also fail on main c9b2660d56 (same run).
  • Hades II (PPSA36082), run by eliyarson on an RTX 3080 Ti (comment). On main 1a745ae38 the hub aborts shortly after it loads with [videoout] presentation failed: AGC graphics: native multisample depth metadata fill transition is not implemented (exit 134), which they bisected to #6557. In five interleaved hub runs each, on main and on this PR at 1582cf6cc, the abort followed a burst of file reads during the hub hold. Three main runs reached it and all three aborted; one PR run reached it, dipped to 23 FPS and kept going. The other runs never reached it, and the PR's logs have no refusal line.
    • Their caveats: it isn't a controlled 5-against-5 result, it's one machine, and there were no frame dumps, so whether the hub renders correctly isn't known.
    • This PR still refuses a fill over part of the HTILE, so it may address the abort only if Hades II's fill covers the whole HTILE.
  • Hades II (PPSA36082) v01.006.000, by @ycbuzi (comment): Windows 11, RTX 4070 SUPER (driver 616.92), the same clean build of the title run twice each way with the same scripted presses, only libSceAgcDriver.prx swapped.
    • main 5722c14bd5: both runs exit at about 120 s (0xC0000409) with [gpu] driver failure: AGC graphics: native multisample depth metadata fill transition is not implemented, right after the intro.
    • This PR, 6d0ff6cd85 merged onto 14b9cc5a8c: both runs are still going when closed at 6 and 7 minutes, and neither logs that line. The saved frames show the title screen, save select, the intro, the first playable area with its HUD, and the pause menu.
    • Their limits: the other libraries are main's 5722c14bd5 in all four runs, and the PR's library was built on a slightly newer main. There was no validation layer, and the frames were only looked at, so depth accuracy isn't checked. It's two runs each way in the first area, with no person playing.
  • Dave the Diver (PPSA19115), run by tablefrogpillow on an AMD Radeon RX Vega 56 (RADV, Mesa 25.2.8), Linux, with ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 (comment). Their earlier run stopped at the import, on native multisample stencil or depth format import is not implemented (comment). On #9717's branch (74594d4a81, which carries this PR's 55b0a5f4ad), that line appears 0 times, and the title stops later, on the colour-alias refusal #9742 addresses:
    [gpu] native multisample depth 0x2379d0000+0x10e0000 aliases multisampled colour target 0x2379d0000+0x10e0000 (vk format 100, 2 samples), newest clear 0x00000000 0x00000000 0x00000000 0x00000000
    [gpu] driver failure: AGC graphics: native multisample depth or HTILE aliases a multisampled colour target whose samples are only on the host
    
  • Assassin's Creed Shadows (PPSA20397), by akkadbakkad89, RTX 3070, Windows 11, driver 617.42, with this PR (which carries #6300) and #9717 merged onto their validation branch, per their report (comment): the native multisample stencil or depth format import is not implemented abort at about +848 s is gone from the log, and the title gets past that point into pixel shading it hadn't reached before. Its next stop, a stencil-reference-export pixel shader, is outside this PR (detail on #4276).
  • a7697941f3, a merge of main ccfb96757f (run), which brings dantdmdarealguy's #11307. Three conflicts, each keeping both sides:
    • MultisampleTarget.cpp: #11307 returns selectedView where this PR sets drawn before returning; the merge does both.
    • NativeMultisampleDepth.cpp: #11307 prints Native HTILE tracked dispatch completed after the completed-dispatch check, which this PR's fault cases moved into their own branch, so the line goes in that branch. In main(), #11307's Linux SharedBackingScope comes first and this PR's --driver-path and --driver-queued-fill options follow it, so those runs get it too.
    • Outside those lines, this PR's changed lines are the same.
    • The native depth tests, agc_driver_native_fmask and the sample-order depth tests ran 10 times with no failure. Linux: 14 run, 10 pass, 4 skip (agc_driver_native_depth_bda_clear, agc_driver_native_fmask, agc_driver_sample_order_grid_reference and agc_driver_sample_order_recipe_depth_locations, which skip on that runner as in earlier runs), 0 fail. Windows: 14 run, 0 pass, 14 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.
  • 5343d0a8da, a fill stored before its note (run, with #9533's previous head a7697941f3 as the before arm).
    • New cases in agc_driver_native_multisample_depth and its --separate-stencil mode:
      • a fill stored before its note, then a lookup;
      • a GPU fill submitted before its note;
      • a CPU write after the note, still refused;
      • words driver-stored before the surface was created, still refused.
    • A fill noted while pending, then retired before the first lookup, was already accepted and stays as the control.
    • On a7697941f3 the new cases fail with native multisample depth clear has no complete tracked HTILE store and native multisample stencil plane fill has no complete tracked store.
    • On GitHub's runners, the native depth tests ran 10 times. Linux: the before arm fails; with the fix, 11 run, 10 pass, 1 skip (agc_driver_native_depth_bda_clear, which skips on lavapipe), 0 fail. On Windows all 11 skip, because the runner has no Vulkan device, so they ran on Linux only. The libc and libkernel suites run 166 and 264 tests on Linux and 194 and 286 on Windows, with 0 failed. They ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
    • On a cloud machine (lavapipe, CI's flags; result): the ^agc tests, 1,092 run, 1,020 pass, 72 skip, 0 fail. The ten native depth tests: 100 of 100.
  • Validation comparison at 6eb141ce5f (CONTRIBUTING's AGC rule, for 5343d0a8da's change to when tracked HTILE and stencil-plane stores qualify a clear): 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: 13 run, 11 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 25 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 head inside #9742 (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. The native multisample stencil or depth format import is not implemented stop doesn't occur. The run stops 33 s in, at the next check in compute shader 0x20001ef700, native multisample depth sampled identity or format mismatch, which #9717 takes. With #9717 added (comment), the next stop is 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.
  • dcf420ec7f, a merge of main 2b1ae87c69, which brings savvaniss's #8223 (run).
    • The conflicts: DepthSurface.cpp and MultisampleTarget.cpp, where #8223 replaced guard()'s hostOnly flag with the shared TargetUse model (claimOverlapping, stampUse) and made DepthSurfaceView claim its planes' multisample target memory.
    • The resolution: DepthSurfaceView keeps this PR's stencilTested parameter with main's three ClaimMultisampleTargetMemory lines; guard() is main's. #8223 extracted the same guardedColorBytes helper this PR had, byte for byte, so the merge keeps one definition, at this PR's position, because Alias() calls it earlier in the file. This PR's other changes use only fields TargetUse kept.
    • This PR's own diff changes only in that helper's position: its added const auto bytes = guardedColorBytes(target); line is now main's.
    • The same resolution as JAB-dev's bb085f7a40, hunk for hunk.
    • ×10: the multisample target, frame capture, ^agc_driver_native_, ^agc_driver_msaa_ and ^agc_driver_depth_ tests.
      • Linux: 56 run, 48 pass, 8 skip, 0 fail.
      • Windows: 56 run, 4 pass, 52 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.
    • Validation (Khronos layer, ANYPS5_NO_SHADER_CACHE=1, GitHub's Linux runner), main 2b1ae87c69 against this head (run): the same three IDs in both arms, VUID-VkDeviceCreateInfo-pNext-pNext, VUID-vkCmdCopyImage-srcImage-01548 and VUID-vkCmdCopyImage-srcImage-01551. The merge adds none.
    • On a cloud Linux machine (lavapipe): ctest -R '^agc' 1,149 passed, 0 failed.
  • 071ca5b609, a merge of main 6a691f69ee, which brings Celegans12's #8105 (run, validation run).
    • The conflicts: CMakeLists.txt and tests/execution/NativeMultisampleDepth.cpp, where #8105 adds agc_driver_native_depth_buffer_clear, ClearFault::DriverBufferDispatch and two blocks around ArmHtileDepthClear. Both sides are kept. Beyond that, the merge commit names three lines:
      • agc_driver_native_depth_buffer_clear joins this PR's set_tests_properties lists (plain and WIN32), in place of main's line that re-lists clears and clear_refusals with the same properties.
      • Two test-file adaptations: main's two blocks sit inside this PR's ClearSource::HtileDispatch path, where this PR moved that code, and main's --buffer-clear case passes ClearSource::HtileDispatch to CheckDepthTarget.
    • This PR's own diff changes only by main's tokens on lines it already changes, and by main's two blocks at this PR's indent. #8105's DepthSurface.cpp changes merged on their own.
    • ×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_buffer_clear included.
      • Linux: 24 run, 23 pass, 1 skip, 0 fail.
      • Windows: 24 run, 0 pass, 24 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, main 6a691f69ee against this head, the same tests: the loader inserted the layer 28 and 38 times, with no was not found; both arms report the same three IDs as at dcf420ec7f, so the merge adds none.
    • On a cloud Linux machine (lavapipe): this PR's 11 tests pass 110 of 110 runs; ctest -R '^(agc|shader)' 1,090 passed, 75 skipped, 0 failed.
  • 6d0ff6cd85, a merge of main 0836dfdf4f (run, on 009631c3bc, 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 registrations into tests/cmake/agc_driver_native_multisample_depth_tests.cmake (+12 −2). Nothing else conflicted. Apart from the move, this PR's diff is unchanged. With -DBUILD_TESTING=ON, ctest -N gives 3081 tests: main's 3075 plus its 6 tests, each listed once. The 24 tests of this PR's verify set pass 10 runs in a row. Linux: 24 run, 23 pass, 1 skip, 0 fail. Windows: 24 run, 0 pass, 24 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.
  • NVIDIA, TechLevelZero's GPU runner (report): 6d0ff6cd85 merged onto main 0836dfdf4f, NVIDIA RTX 2000 Ada Generation, driver 595.99.02, Linux. Passed: 2,451 passed, 0 new failures (4 fail on main too), and no new validation IDs against main over 930 tests run on the GPU.

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: #6300, #8223, #6973, #9700, #9950 (merge order: #8223 and #6973 agreed in their threads; this PR goes after #9700 and #9950, order notes in their threads; #6044 was closed; see Overlap); #10882 (orezraey) goes after this PR (merge order only, on #10882)
  • Fixes: none
  • Unblocks: PPSA07656 #8606 (tested by BunnyFl: first level, walking, collecting presents, moving between rooms, 365 s, no AGC refusal), PPSA02225 #4461, PPSA19115 #5963 (with #9717 on top, gets Dave the Diver (PPSA19115) #7608 past the import refusal to the colour-alias stop #9742 addresses), PPSA36082 (tested by ycbuzi: past main's stop after the intro into the first playable area, 2 of 2 runs)
  • GPUs tested: Mesa lavapipe (llvmpipe, LLVM 20.1.2), Ubuntu 24.04, on a Linux build machine and GitHub's runner, with the validation comparisons (Mesa 25.2.8) on GitHub's runner; NVIDIA GeForce RTX 3070 Laptop GPU (driver 617.42), Windows 11; AMD Radeon RX 9070 XT (driver 32.0.32015.7029), Windows 11, in BunnyFl's runs; AMD Radeon RX 6400, Windows, in xXPBSXx's runs; NVIDIA GeForce RTX 4070 Ti (615.71.09), Linux, in milescoviello's runs; AMD Radeon RX 6650 XT (RADV), Linux, in JJenkx's run; AMD Radeon RX Vega 56 (RADV, Mesa 25.2.8), Linux, in tablefrogpillow's run; Apple M2 Max (MoltenVK 1.4.2), macOS, on #8658's macOS port, in jotitadev's run; NVIDIA GeForce RTX 3080 Ti, in eliyarson's Hades II (PPSA36082) runs
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4960244110 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9533). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-22T00:33:09Z. --- ### What Stacked on #6300 (Gashrod1), which imports cleared native multisample D32S8 targets whose stencil lives in HTILE, and takes whole HTILE fills as clears. This branch carries #6300's two commits unchanged, merges `main` into them, and adds fourteen commits for a shape #6300 doesn't cover: **a D32S8 target whose stencil is a separate plane and whose HTILE is depth-only.** **Titles with this shape, all stopping on `main` at the native depth import:** - **The Grinch: Christmas Adventures (PPSA07656)** stops about 2 s in, before its first present, with `native multisample stencil or depth format import is not implemented` ([BunnyFl's report](https://github.com/boykopovar/AnyPS5/discussions/8606)). - The target is two-sample D32S8 at 2560x1440, with a separate stencil plane of 0x780000 bytes and a pipe-aligned, depth-only HTILE. - It samples the depth through a descriptor with no metadata. - **Ghost of Tsushima Director's Cut (PPSA02225)** stops on the same format refusal, and on #6300 at `native multisample stencil import requires HTILE stencil metadata` (milescoviello on #6300: [1](https://github.com/boykopovar/AnyPS5/pull/6300#issuecomment-6266476777), [2](https://github.com/boykopovar/AnyPS5/pull/6300#issuecomment-6327252710)). - The target is two-sample D32S8 at 1920x2160, with a depth-only HTILE that is neither pipe-aligned nor ITERATE_256. - Two whole-range fills of 0 come before the sample: the HTILE (0x50000 bytes) and the stencil plane (0x870000). - On 5daa8cb7a9 it got past both refusals and stopped at a CPU read of the stencil plane, whose memory a 2-sample colour target also covers (milescoviello and xXPBSXx, below). 2d4c1da61d and 14e56205cf handle that read. - On 514643ab16 that read is gone, and it stops at the depth plane, which another host-only colour target covers (next stops). - **Spirit of the Island (PPSA13934)** aborts at its first gameplay frame after New Game on the same format refusal ([JJenkx on #6300](https://github.com/boykopovar/AnyPS5/pull/6300#issuecomment-6329181155)). - **Assassin's Creed Shadows (PPSA20397)** aborted at about +848 s, in compute shader 0x40054ea100, on the same format refusal: a D32S8 multisample target with a separate stencil plane ([akkadbakkad89's run](https://github.com/boykopovar/AnyPS5/pull/9533#issuecomment-6401068340)). - The target is eight-sample D32S8 at 512x512, with a separate stencil plane and a depth-only HTILE that isn't pipe-aligned. - Thanks to JJenkx for printing the target's fields. **The changes:** - **8eba29aeef, merge of `main`** into #6300's head c11074be82. Three conflicts, each resolved by keeping both sides: - `prepareDepthSampling`: #6300's stencil checks, with `main`'s HTILE line (752cca10f dropped the ITERATE_256 requirement). - `NoteHtileDepthClear` and `NoteDepthMetadataFill`: #6300's proofs, written with `main`'s `DepthSamplingState::Refuse` (the first refusal wins), ahead of `main`'s `ForgetClear` and plane-fill paths. - `CheckDepthTarget` takes both #6300's `ClearSource` and `main`'s `iterate256`. - #6300's stencil test now submits the raster and looks the view up again before its fetch, since `main` samples a native target through a shadow refreshed at view lookup. - **7d6e968d6b, the separate stencil plane.** - A D32S8 target with a separate plane and a depth-only HTILE is imported when the depth's HTILE proves its clear, and every byte of the plane equals `DB_STENCIL_CLEAR`. The plane is read once, between taking the ranges' generations and the final check, so a racing write still refuses. - The host image is created cleared to both values. - A whole depth-only HTILE fill now clears only the depth. - A plane that isn't all clear refuses: "native multisample stencil plane does not hold its clear value". - **5be005ea13, sampling without HTILE.** The sampled descriptor may now name no metadata at all (`dccAddress` 0, not pipe-aligned), as well as the target's HTILE, when address, format, XOR and ITERATE_256 match. Any other metadata still refuses. - The host image holds decompressed depth. On hardware, a read without metadata returns that only after the guest has expanded the plane in place, so 439557b223 accepts such a descriptor only after an observed expand. - **770a499ba9, a depth-only HTILE that isn't pipe-aligned** is imported when every word over `HtileMetadataBytes(extent)` is the same word and proves the clear. - Pipe alignment only moves words between tiles, so one repeated word proves the same in any order. - One whose words differ refuses: "native multisample depth HTILE that is not pipe-aligned holds more than one word". - An HTILE that holds stencil keeps the alignment refusal. - **90d652a1ed, a whole fill of the separate stencil plane** with one byte value becomes a stencil clear. It's proven at the next sample the way #6300 proves a whole HTILE fill: no CPU write since, complete tracked stores (or the fill is the plane's newest queued GPU write), and every plane byte equal to the fill byte once it has landed. - Partial fills, multi-byte patterns, unwatched memory and a second fill before the first is proven each refuse with their own text. - **0e17d12ff4 and 5daa8cb7a9, the order of Ghost's fills.** - A DMA_DATA fill is noted before its GPU write is recorded, so the first sample saw the queued fill as a foreign write. The sample now takes the note's pattern from the one write recorded over the range since the note, when that write is a word fill of the whole range with that pattern. - A compute memory-value fill is noted twice, before and after the fill, and the second note refused as overlapping. A second note of a pending fill now counts as the same fill under the same conditions. - A later queued write, a different word, or a partial queued fill still refuses. - **2d4c1da61d, a stencil plane under a host-only colour target.** Ghost of Tsushima Director's Cut renders a 2-sample R8 colour target over the stencil plane's memory, so reading the plane hit that target's guard. - `MultisampleTarget` gains a query that doesn't throw: the active colour target whose guarded range overlaps a range, with its format, samples, footprint and newest content. A fill the target absorbed, a CMASK fast clear, or a clear with no draw since is a known value; a draw, a storage write or refused metadata is not. - `prepareDepthSampling` asks it for the depth, HTILE and plane ranges before reading guest memory. An R8 UNORM or UINT target with the depth's sample count over exactly the plane, holding a known value, gives the plane's stencil. - `CheckCurrent` runs the same query: a plane fill over an aliased plane is proven from the colour target's value, not by reading the plane. - **439557b223, sampling without metadata only after an in-place expand.** A draw over the target with `DB_RENDER_CONTROL`'s depth compress-disable bit (bit 6), and the stencil one (bit 5) when the target has a stencil plane, marks the surface expanded, as radeonsi's in-place decompress sets them. A clear draw, an HTILE clear or fill, and a plane fill clear the mark. - `CheckResource` takes a descriptor without metadata only while the surface is marked. Otherwise it refuses with "native multisample depth sampled metadata or XOR mismatch" and prints the last `DB_RENDER_CONTROL` seen, at most eight times. - The draw precheck hands the register to `NoteDepthRenderControl` before an expand draw, which has no depth test and no colour writes, is dropped as drawing nothing. - **14e56205cf, a plane under a colour target that drew, or holds something unknown.** It was refused at import, so sampling the depth failed too. The plane is now imported unproven: the host stencil isn't taken from it, depth sampling and depth-only draws go on, and a draw with a stencil test or a sample of the plane refuses with the alias text and a line naming the colour target's state. - A later whole-plane fill proves the plane from the fill byte without reading guest memory, if a colour target still over the plane absorbed that fill as the same R8 byte at the same sample count. - 8ba6321221's debt line names what taking a drawn plane would need: a GPU copy of the colour target's R8 samples into the depth image's stencil aspect. - **514643ab16, the sample shadow's barrier.** A D32S8 depth's sample shadow went from UNDEFINED to GENERAL with only the depth aspect, which breaks `VUID-VkImageMemoryBarrier-image-03320` without `separateDepthStencilLayouts`. The transition now names the stencil aspect too when the host format has one. JJenkx found the same on an RX 6650 XT. - **[6bc1899d50](https://github.com/EagleBearerYS/AnyPS5/commit/6bc1899d50) and [dd7ad4638a](https://github.com/EagleBearerYS/AnyPS5/commit/dd7ad4638a), a queued DMA_DATA fill's metadata note** (both `Co-authored-by: JJenkx`). `enqueueDmaPacket`'s large-fill branch queued `storeBufferFill(..., false, false)`, whose last argument is `noteMetadata`, so a fill over 64 KiB never noted HTILE or colour metadata, and the next sample took this PR's fill transition for an external GPU write. dd7ad4638a notes it, as the synchronous and small queued paths do. 6bc1899d50 adds a test seam, `friend struct DriverTestAccess;` (as `VulkanDeviceTestAccess` does), so the test runs native multisample depth through the driver's own device, following JJenkx's approach. On `main` a metadata fill over a live native multisample target's HTILE refuses anyway, so the gap shows only with this PR's fill transition. - **1e07a659ed, merge of `main`** 8b3a6ba88d: clean. The PR's changed lines are the same as before the merge (`git diff -U0` patch-id); only their context moved. - **8b2b3080bb, merge of `main`** 3ca07d086d, which brings #7233 (MarcZX10): possible writes, an HTILE clear's note, arm and complete steps, and the drain in `Driver::WaitIdle`. Each conflict keeps both sides: - `CheckCurrent`: `main`'s "native multisample depth clear has not been recorded" check comes first, then this PR's checks, unchanged. - `NoteHtileDepthClear`: this PR's refusals for a stencil surface and an unproven target come first, then `main`'s overlap check and pending flag, which now also set this PR's clear aspects. `main`'s `ArmHtileDepthClear` takes the clear's generation, in place of this PR's immediate one. - The test file takes `main`'s `ClearFault` cases and `DriverTestAccess::GetDevice` beside this PR's `ClearSource` and `UseDevice`, with one `CheckDepthTarget` signature. - Two test adaptations are in the merge itself, since without them it fails its own tests: - The expand-gate case arms its HTILE mask clear, as `main`'s model needs. Without it: "native multisample depth clear has not been recorded". - `--driver-queued-fill` waits only for the driver queue, through `DriverTestAccess::WaitQueue`. `main`'s 71decdc752 makes `Driver::WaitIdle` also wait for the device, so the case no longer sampled while its fill was queued. Without it: "CPU writes raced native multisample depth clear". - So the PR's changed lines differ from before this merge (the `git diff -U0` patch-id changes), by these resolutions and adaptations. - **a6b6274a4d, a metadata fill over a pending HTILE clear dispatch.** Under `main`'s model a dispatch clear is pending from its note until it's armed. A whole-HTILE fill noted in between took the clear as its own, and the arm kept the fill's pattern, so the dispatch clear was proven as a fill. Such a fill now refuses: "native multisample depth metadata fill over a pending HTILE clear dispatch is not implemented". It's the refusal from the composition with #7371 (5e8a1cdb83), which Amoenus asked to keep with this PR's fill support ([comment](https://github.com/boykopovar/AnyPS5/pull/7371#issuecomment-6341520240)). - **229d718325, merge of `main`** 8b3e39832a, which brings #8847 (JJenkx's sRGB twin). One conflict, in `MultisampleTargetView`: each overload keeps this PR's `drawn` mark and returns `main`'s `View(target.format)`. The PR's changed lines are otherwise the same, less one that `main` now makes too (`auto& acquired` in place of `const auto&`). - **1d16d5029d, merge of `main`** b7d1d47a5f, which brings #7371 (Amoenus's queued HTILE clear handoff). In `DepthSurface.cpp`, #7371's `clearCompletionQueued` field and its reset sit beside this PR's clear fields, both kept. The PR's changed lines are the same as before this merge (`git diff -U0` patch-id), and the merged `DepthSurface.cpp` is byte for byte the composition posted in #7371's thread ([5e8a1cdb83](https://github.com/boykopovar/AnyPS5/pull/7371#issuecomment-6338323858)). - **a45dff8d51, merge of `main`** d6e7ab42df, which brings #6727 (simonbronk). In `Draw.cpp` each `DepthSurfaceView` call keeps this PR's `stencilTest` and gains #6727's `NoteDepthSurfaceWrite`, and in the debt entry #6727's sentence follows this PR's. #6727 retires an unwritten native multisample depth surface on a guest read instead of refusing it ([#6727](https://github.com/boykopovar/AnyPS5/pull/6727)), and its own fixtures note a host write with `NoteDepthSurfaceWrite` before they expect a refusal. `CheckStencilTarget` now does the same before it reads the stencil plane, so `--stencil` still checks that a written D32S8 target refuses. Apart from that line, the PR's changed lines are the same as before the merge, with the `stencilTest` arguments now inside #6727's blocks. - **1582cf6cc0** (test): a queued DMA_DATA fill of more than 64 KiB is stored through a host import, and Windows compares its direct host imports instead of keeping them write-watched, so the fill's HTILE is unwatched after the store and the fill refuses. On Windows, `agc_driver_native_depth_driver_queued_fill` now skips with that reason when `PrepareImportWatch` reports compared imports. Linux still forces watched imports, so the case keeps running there. The debt entry records that such a fill is refused wherever host imports are compared. - **5343d0a8da, a whole 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). A whole HTILE or stencil-plane fill was proven by its write note while the write was still pending, or by stores stamped after the generation the note collects. A CPU fill (`GuestMemory::Write`, when the HTILE has no host import) and a GPU fill whose batch left the open batch before the note have neither proof once they retire, so the next sample stopped at `native multisample depth clear has no complete tracked HTILE store`. - When a new fill is noted, the surface now records whether every byte was stored since it last saw the metadata (`StoredAllSince(metadata, metadata.generation)`), and `CheckCurrent` accepts that as a third proof. The stencil plane gets the same. - Still refused: pending writes other than the queued fill, a CPU write after the note, words the surface had already seen, and words driver-stored before the surface was created. - The native multisampled depth sampling debt entry lists the new cases and refusals. **Overlap:** - JJenkx described a private prototype of the depth-only HTILE and separate stencil import on #6300 ([comment](https://github.com/boykopovar/AnyPS5/pull/6300#issuecomment-6316224509)). This PR covers that case, plus sampling the depth through a descriptor without HTILE. - #8319 (Aryansh1520) records the non-pipe-aligned HTILE gap in the debt file, for Sonic Superstars (PPSA06888). This PR closes its depth-only case when every word proves the same clear. HTILEs with stencil keep the refusal. The two merge cleanly. - #7233 (MarcZX10, possible writes and complete coverage) and #7371 (Amoenus, queued HTILE clears) have landed, and this PR is merged with both (8b2b3080bb and 1d16d5029d). #6808 (KingDarkHN) changes `prepareDepthSampling` and `NoteHtileDepthClear` as well, and conflicts with `main` itself. None of them imports a separate stencil plane. - Merge order, agreed in #7371's thread ([comment](https://github.com/boykopovar/AnyPS5/pull/7371#issuecomment-6335742651), [again](https://github.com/boykopovar/AnyPS5/pull/7371#issuecomment-6341520240)): #7233 → #7371 → this PR. Both have landed. The merged `DepthSurface.cpp` keeps #7371's pending, armed and completed order and its range-limited `SyncThrough` outside `surfacesMutex`, with this PR's clear-aspect and plane checks after #7371's pending-clear refusal. - #8223 (savvaniss) retires a multisampled colour target once a depth or colour bind reuses its memory, which covers PPSA03208's colour target over this shape's stencil plane. It conflicts with this head in `DepthSurfaceView` and in `MultisampleTarget.cpp`'s `guard`. This PR goes after it and rebases onto it, agreed in #8223's thread ([comment](https://github.com/boykopovar/AnyPS5/pull/8223#issuecomment-6339054439)), keeping its claims and retires. At that rebase, a retired colour target over a native stencil plane keeps its known fill value, or else leaves the plane unproven, so a stale guest plane is never taken as the clear value. - #6973 → #6987 → #6989 → #6995 → #7002 (Amoenus, native colour contents and their publication) change a multisampled colour target's initial contents in `MultisampleTarget.cpp`, where this PR records the target's clear for `Alias()`. Composed, `cleared` takes the initial value only when it's a clear (the known clear, DCC or CMASK), so a plane under a target that starts from the guest's contents stays unproven. This PR goes after #6973 and rebases over it, agreed in its thread ([comment](https://github.com/boykopovar/AnyPS5/pull/6973#issuecomment-6341480444)), keeping `ensureGeneralLayout()` beside the `cleared` and `drawn` assignments in `Recreate`. - #6727 (simonbronk) has landed, and this PR is merged with it (a45dff8d51). Its `NoteDepthSurfaceWrite` follows the two `DepthSurfaceView` calls in `Draw.cpp` that this PR gives the draw's `stencilTest`, both debt edits are kept, and this PR's stencil fixture notes a host write as #6727's fixtures do. - #9700 (frankea) changes the guarded colour byte count to the fragment count. Composed, that goes into this PR's `guardedColorBytes`, which the guard and the alias query share. This PR goes after it (order note in its thread). - #8999 (milescoviello) has landed, and this PR is merged with it (55b0a5f4ad). It splits the native depth branch in `DepthSurface.cpp` on `depthCopySourceActive`. This PR's `RequireStencilProven` goes only in its `else` branch, after `CheckCurrent()`: a DB depth copy never reads the stencil plane, since `DecodeDepthCopyPass` refuses `STENCIL_COPY` (milescoviello), as agreed in its thread ([comment](https://github.com/boykopovar/AnyPS5/pull/8999#issuecomment-6341044261)). - #6946 (Raghav314) has landed. It met this PR only at the include lines in `DrawPrecheck.cpp`, and both stay (de4cee5626). - #6044 (TaymKal) converts the AGC CMake 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, this PR's new native depth registrations move to `add_library_test(graphics ...)` at its next merge of `main`. - #9950 (ebarr24) publishes a written native multisample D32 surface to its guest planes. Both PRs edit `DepthSurface.cpp`'s includes (it adds `MultisampleTextureLayout.hpp` where this PR adds `Pipeline.hpp`) and the native multisampled depth debt entry, so they conflict in text only. They compose: both includes stay, and the two sentences merge. This PR goes after it ([note](https://github.com/boykopovar/AnyPS5/pull/9950#issuecomment-6355772679)). ### Tested On Linux with lavapipe (llvmpipe, LLVM 20.1.2), which samples D32S8 only at four samples, each case below runs at four samples and the two- and eight-sample cases report unavailable. The RTX 3070 run covers two and eight samples. - **New ctest `agc_driver_native_depth_separate_stencil`** (`--separate-stencil`). Each red below reverts that change's driver hunk and keeps the test: | case | red | |---|---| | import with a separate plane | "native multisample stencil import requires HTILE stencil metadata" | | one stencil byte not clear | the refusal "did not match native multisample stencil plane does not hold its clear value" | | a depth-only fill keeps the stencil (only the `clearAspects` line reverted) | "a sampled fetch lost a depth sample or a stencil test outcome" | | sample through a descriptor without HTILE | "native multisample depth sampled metadata or XOR mismatch" | | a non-pipe-aligned depth-only HTILE | "native multisample depth initial import requires pipe-aligned HTILE without VRS" | | a whole stencil plane fill | "guest writes over native multisample depth are not implemented" | | a partial plane fill | the refusal "did not match native multisample stencil plane partial fill transition is not implemented" | | Ghost's fills queued after their note | "external GPU writes over native multisample depth are not implemented" | | a fill noted, queued and noted again | "overlapping native multisample depth clear transitions are not implemented" | - Every case passes 20/20 on its commit. - Ghost's sequence (creation, a whole HTILE fill of 0, a whole plane fill of 0, then a sample) passes in four orders: stored, queued after the note, queued before it, and noted twice. - The guards hold: a later queued stencil write, a different HTILE word, a partial HTILE fill, a plane fill noted twice with no write between, and a target refused at creation that keeps its creation reason after both fills. - After every commit: `ctest -R 'native_multisample|native_depth|depth|htile|stencil'` 40/40, with 2 skipped as on `main` (`agc_driver_native_depth_bda_clear` and `agc_driver_sample_order_recipe_depth_locations`). - **Linux, as CI runs it,** at 5daa8cb7a9 (Ubuntu 24.04, GCC 13.3, unprivileged user): - 1,824 tests: 1,738 passed, 83 skipped, 3 failed. `guest_socket_stream_options`, `guest_socket_address_length` and `guest_tcp` fail the same way on `main` there, because that machine has no usable sockets. - `check_test_registration.py`: none new. `check_skips.py`: `guest_sce_net`, for the same reason. - **GitHub's runners at 5daa8cb7a9** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39697854285)): on Linux, `agc_driver_native_depth_separate_stencil` and `agc_driver_native_depth_stencil` pass ×3. On Windows the build succeeds and both skip, since that runner has no Vulkan device. The libc and libkernel suites pass on both. - `check_conventions.py` at 514643ab16: no errors and no comment lines added. One warning, `debt-length`, on the native multisampled depth entry: 3,192 characters, against 1,403 on `main`. - **New ctests for 2d4c1da61d and 439557b223:** - `agc_driver_native_depth_aliased_stencil` (2d4c1da61d): a 4-sample R8 target over the plane with an absorbed fill imports, and the next stencil test passes the fill value and no other. A second absorbed fill is proven and taken, and a colour draw after it refuses. A target drawn after its fill, and an R8G8 target over the plane, refuse with the new reason. The guest plane keeps its 0xa5 bytes throughout. With the product change reverted the cleared case throws the guard text (1 of 1); with it the mode passes 5 of 5. - `agc_driver_native_depth_expand_gate` (439557b223), for D32 and for D32S8 with a separate plane: a bare sample before any expand is refused, and on D32S8 also after only the depth bit. After the expand draw it gets the cleared and then the drawn depth. An HTILE fill, a clear draw and a plane fill (an HTILE mask clear on D32) each refuse it again until the next expand. With the gate reverted the first bare sample is accepted (1 of 1); with it the mode passes 5 of 5. The separate-stencil test now draws an expand before its bare sample. - **NVIDIA GeForce RTX 3070 Laptop GPU** at 514643ab16 (driver 617.42, the only device enumerated, Windows 11, WinLibs GCC 15.2.0, Release, `ANYPS5_REQUIRE_VULKAN=1`; GPU clocks weren't held, pass/fail only): the eight native depth tests, `agc_driver_native_multisample_depth` and `agc_driver_native_depth_{retirement,clears,clear_refusals,stencil,separate_stencil,aliased_stencil,expand_gate}`, pass 5 runs in a row, with their 2-, 4- and 8-sample cases. - **Validation layer, `main` against this PR** (CONTRIBUTING's AGC rule), on one GitHub Linux runner ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39748126182)). 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. - Tests: `agc_driver_native_multisample_depth`, `agc_driver_native_depth_{retirement,clears,clear_refusals}` and `agc_driver_msaa_dcc_clear_4` on both trees, plus this PR's `agc_driver_native_depth_{stencil,separate_stencil,aliased_stencil,expand_gate}`, which `main` doesn't have. `main`'s tree (a6dcea9279) ran its five once and this head's nine three times. - The loader inserted `VK_LAYER_KHRONOS_validation` 9 times on `main` and 51 with this PR, and neither log has `was not found but was requested by env var VK_INSTANCE_LAYERS`. - Both logs report the same single message, `VUID-VkDeviceCreateInfo-pNext-pNext`, for a device-creation structure newer than that layer version. This PR adds no `VUID-` message. - The same run builds the nine on Windows, where they skip without Vulkan. The suites' two failures are timing tests this change doesn't reach: `precise_wait` (libc, Linux) and `guest_raise_in_system_call` (libkernel, Windows), which other PRs' runs on those runners have hit too. - **Validation layer, the previous head against this one**, on one GitHub Linux runner ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39730234481)), with the same settings and device. The previous head's 6 native depth tests log `VUID-VkImageMemoryBarrier-image-03320` 39 times, in `agc_driver_native_depth_stencil`: `vkCmdPipelineBarrier()` on a `VK_FORMAT_D32_SFLOAT_S8_UINT` image with only `VK_IMAGE_ASPECT_DEPTH_BIT`, the sample shadow's barrier. This head's 8 don't log it, and add no `VUID-` message. - **Title runs, on 5daa8cb7a9:** - **The Grinch: Christmas Adventures (PPSA07656)**, BunnyFl, Windows 11, AMD Radeon RX 9070 XT (driver 32.0.32015.7029), merged into `main` d6eafa54d0, the title relinked with the same build ([1](https://github.com/boykopovar/AnyPS5/pull/9533#issuecomment-6334873431), [2](https://github.com/boykopovar/AnyPS5/pull/9533#issuecomment-6336075843)). On `main` it aborts about 2 s in, before its first frame. With this PR it doesn't stop: - 240 s with no driver failure and no AGC refusal; frame dumps show the logos, the publisher video, the autosave notice, loading and the storybook intro; - with scripted input it reaches the first level and plays there: walking, collecting presents and moving between rooms, 365 s, no AGC refusal. - **Ghost of Tsushima Director's Cut (PPSA02225):** milescoviello (Linux, RTX 4070 Ti, NVIDIA 615.71.09, three runs; [comment](https://github.com/boykopovar/AnyPS5/pull/9533#issuecomment-6330754389)) and xXPBSXx (Windows, AMD Radeon RX 6400, all of `main`'s libs rebuilt for both, 600 s each; [comment](https://github.com/boykopovar/AnyPS5/pull/9533#issuecomment-6334530072)). On `main` it stops at `native multisample stencil or depth format import is not implemented`. With this PR no `native multisample` refusal appears, and the run stops later at the CPU read of the stencil plane that a 2-sample colour target covers. 514643ab16 doesn't make that read. - **PPSA03208**, oneandonlydean, on `main` plus other open PRs it needs ([comment](https://github.com/boykopovar/AnyPS5/pull/9533#issuecomment-6331552179)): both of its stops clear, the format refusal and the HTILE stencil requirement, and its two whole fills are taken as clears. The next stop is a per-sample `R8_UINT` read of the stencil plane, refused by `CheckResource`, which #9717, stacked on this PR, covers. - **Title run, on 514643ab16:** Ghost of Tsushima Director's Cut (PPSA02225), milescoviello, Linux, RTX 4070 Ti, NVIDIA 615.71.09, warm and cold, with a pad script cycling through the menu buttons ([comment](https://github.com/boykopovar/AnyPS5/pull/9533#issuecomment-6337725902)). - The CPU read of the stencil plane is gone. - Both runs stop on the depth plane of the same target, warm at 17 s and cold at 52 s: `native multisample depth 0x1544ed0000+0x1fe0000 aliases multisampled colour target 0x1544ed0000+0x1fe0000 (vk format 100, 2 samples), newest clear 0x00000000 ...`, then `native multisample depth or HTILE aliases a multisampled colour target whose samples are only on the host`. - **Ghost of Tsushima Director's Cut (PPSA02225) with the stacked #9742 and #9717, and milescoviello's #8115 and #8121**, on the test branch `test/ghost-9742-9717` (3ec696f7fe, on 514643ab16) with those two merged on top ([comment](https://github.com/boykopovar/AnyPS5/pull/9742#issuecomment-6346148575)): milescoviello, Linux, RTX 4070 Ti, NVIDIA 615.71.09, 20 GiB cap. Warm and cold both reach the 600 s limit with no refusal and no crash. In their words, the game shows its brightness calibration screen, with the mask rendered correctly, and then its intro. The only native depth line left is #9742's alias line, printed once and accepted. - **Focused tests on other GPUs, on 5daa8cb7a9:** - xXPBSXx, Windows, AMD Radeon RX 6400 ([comment](https://github.com/boykopovar/AnyPS5/pull/9533#issuecomment-6332505036)): `agc_driver_native_multisample_depth` passes 3 of 3, and fails 3 of 3 with `DepthSurface.cpp` from the merge-base. - JJenkx, Linux, AMD Radeon RX 6650 XT (RADV NAVI23), Khronos validation at instance and device creation, merged into `main` d6eafa54d0 ([comment](https://github.com/boykopovar/AnyPS5/pull/9533#issuecomment-6336152420)): the 7 focused tests pass, 5 of them on `main` too. This PR's stencil tests logged `VUID-VkImageMemoryBarrier-image-03320`, which 514643ab16 removes. Their production-DMA diagnostic found a queued DMA fill over native multisample depth that the next sample refuses. dd7ad4638a takes their fix, with them as co-author: on `main` a metadata fill over a live native multisample target's HTILE refuses anyway, so the gap shows only with this PR's fill transition. - On 5daa8cb7a9 with their own two fixes, their 12 D32S8 cases (2, 4 and 8 samples, clear 0 and 1, compressed and uncompressed HTILE, stencil checked) pass with validation on and log no `VUID-` ([comment](https://github.com/boykopovar/AnyPS5/pull/9533#issuecomment-6337312249)). - **6bc1899d50 and dd7ad4638a, the queued DMA fill**, on GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39769598929)), against 6bc1899d50, so that only dd7ad4638a's driver hunk is reverted: - `agc_driver_native_depth_driver_queued_fill` fails 3 of 3 without it, with "AGC graphics: external GPU writes over native multisample depth are not implemented", and passes 10 of 10 with it, for clears 0 and 1. With #9533's native depth tests, `agc_driver_native_depth_driver_path` and `agc_driver_pipelined_dma`, 11 tests pass 10 of 10 on Linux. On Windows they build and pass, with the Vulkan tests skipping. - On a cloud Linux machine, 6bc1899d50 builds on its own and its `agc_driver_native_depth_driver_path` passes, and the two new tests pass until-fail:20. - The case does one 128 KiB fill, then samples. On lavapipe it samples once, while the fill is still queued, since llvmpipe's CPU stores look like guest writes there. - Validation, 514643ab16 against dd7ad4638a ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39769702171)), every test named: the layer loads in both runs, with no "was not found" line. Both log only `VUID-VkDeviceCreateInfo-pNext-pNext`, and the two commits add no `VUID-` message. - **Earlier merges of `main`, on GitHub's runners.** In each, the tests named ran 10 times with no failure on Linux. On Windows they build and the Vulkan tests skip, since the runner has no Vulkan device. The libc and libkernel suites passed on both, except where noted, and from 1d16d5029d on they ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. Where it says validation, the Khronos layer ran against `main` in the same run, and the merge added no `VUID-` message. - **1e07a659ed** (`main` 8b3a6ba88d, [run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39773659774)), **1d16d5029d** (b7d1d47a5f, [run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39799208572)) and **9afaa90c1f** (11f976b27c, clean, [run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39821101880)): the 13 native depth, DCC clear and pipelined DMA tests; validation. - **229d718325** (8b3e39832a, [run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39789744998)): the same 13; validation. In that run's libc suite, `precise_wait` failed on the Linux runner with this head, under its strict median bounds; `main`'s arm passed it. - **a45dff8d51** (d6e7ab42df, [run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39845513281)): the same 13; validation. Without its fixture line, `agc_driver_native_depth_stencil` failed on the merge with an empty refusal ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39837231451)). - **de4cee5626** (0db47b263d, [run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39930886296)): `DrawPrecheck.cpp`'s include block, both kept. The 11 `agc_driver_native_depth*` and `agc_driver_native_multisample_depth*` tests; `agc_driver_native_depth_bda_clear` skips on Linux. - **f7569e7ce1** (66e6772ca2, #10375's `CheckDepthAttachmentAlias`, [run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40187469361)) and **078e6a68d8** (1ee8f4bec1, #9186's host-only flag on `guard()`, [run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40198553071)), both kept: the `agc_driver_native_`, `agc_driver_depth_` and `agc_driver_msaa_` tests (and `agc_driver_sample` in the second). Linux 42 and 55 run, 0 fail. - **f39599c354** (19af7f44e4, #10368's `CheckStorageAliasRetirement`, both kept, [run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40292511794)): those sets plus the tests built from the merged files. Linux 302 run, 286 pass, 16 skip; Windows 321 run, 184 pass, 137 skip; 0 fail; validation. - **6eb141ce5f** (102b7a5cf0, #12566's `HostOnlySampleRanges`, both kept, [run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40953003433)): `^agc_driver_native_` and `agc_frame_capture`. Linux 14 run, 12 pass, 2 skip, 0 fail. - **8b2b3080bb and a6b6274a4d, on a cloud Linux machine** (CI's configure flags, lavapipe on Mesa 25.2.8, unprivileged user): both build, and the 14 native depth, DCC clear and pipelined DMA tests pass; on a6b6274a4d they pass `--repeat until-fail:10`. - Each adaptation's red above was taken on 8b2b3080bb with only that adaptation reverted. - a6b6274a4d's red: with its `DepthSurface.cpp` hunk reverted and the test kept, `agc_driver_native_depth_clear_refusals` accepts the fill ("multisample target refusal did not match metadata fill over a pending HTILE clear dispatch"). - The full `^agc` set, once each: 880 of 881 on a6b6274a4d and 875 of 875 on `main` 3ca07d086d, with 60 skipped on both. The six extra tests are this PR's. The one failure, `agc_driver_sgpr_pattern_fill_keys` ("the dispatch completed 17 times without a pending write over the keys"), passed 20 of 20 alone and 881 of 881 in a second sweep, failed the same way on `main` in a third sweep, and isn't in a file this merge touches. - **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): 11 of the 12 native depth tests pass 5 of 5 at 2, 4 and 8 samples. `agc_driver_native_depth_driver_queued_fill` failed 4 of 4 with "AGC graphics: native multisample depth metadata fill over unwatched memory is not implemented". On Windows the queued fill still refuses, as on `main`; 1582cf6cc0 makes the test skip there with that reason. A run of 1582cf6cc0 on that GPU is pending. - **1582cf6cc0** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39850611311)): on GitHub's Linux runner, the 13 native depth, DCC clear and pipelined DMA tests pass 10 of 10, none skipped, `agc_driver_native_depth_driver_queued_fill` among them with watched imports. In the same run, validation against `main`: `main`'s arm runs the 7 of the 13 tests it has, the layer loads in both runs (11 and 210 times) with no "was not found" line, and both log only `VUID-VkDeviceCreateInfo-pNext-pNext`, so this head adds no `VUID-` message. On GitHub's Windows runner the change builds and the 12 Vulkan tests skip, so its lines are the suites only. The libc and libkernel suites 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. `tools/check_skips.py` accepts the new skip line on the Windows job, where any `agc*` skip is expected; on Linux the case can't skip, since it forces watched imports. `check_conventions.py`: no errors and no comment lines added; the one warning is `debt-length` on the native multisampled depth entry, now 3,990 characters. - **53886418d9, after @jotitadev's macOS run of 1582cf6cc0** ([review](https://github.com/boykopovar/AnyPS5/pull/9533#pullrequestreview-5623098779)): on an Apple M2 Max with MoltenVK 1.4.2, on #8658's macOS port, the eight native depth tests and `agc_driver_native_multisample_depth` pass. `agc_driver_native_depth_driver_path` and `agc_driver_native_depth_driver_queued_fill` pass every case and then abort at exit with `recursive_mutex lock failed: Invalid argument`. The test handed its device to the driver and never took it back, so the driver singleton released it at exit, after statics its teardown locks had been destroyed. - 53886418d9 (test only) gives the driver's device back before each of the two tests returns. - On GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39890463313)), `^agc_driver_native_depth` and `agc_driver_native_multisample_depth`: on Linux 10 tests pass 10 of 10, and `agc_driver_native_depth_bda_clear` skips as on `main`. On Windows the 11 build and skip, since that runner has no Vulkan device. The libc and libkernel suites pass on both runners. They ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - These runners show no red: glibc and Windows tolerate locking the destroyed mutex, and the abort is macOS's. Not yet rerun on macOS. - **The Grinch: Christmas Adventures (PPSA07656)** 01.000.003, on f39599c354, BunnyFl, Windows 11 Pro 26200, AMD Radeon RX 9070 XT (driver 32.0.32015.7029), merged into `main` f95acfc948 with no conflicts, the title relinked with each build ([comment](https://github.com/boykopovar/AnyPS5/pull/9533#issuecomment-6424866597)): - on `main`, three runs stop 6-10 s after start, before the first present, with `AGC graphics: native multisample stencil or depth format import is not implemented`; - with this PR, three runs of 300 s with Cross pressed every 3 s don't stop, and no log has an `is not implemented` line. Most 10 s windows have 750-1199 presents, the lowest 49. The last frames of all three runs are gameplay in the first level. - **Not tested:** Spirit of the Island (PPSA13934), and PPSA03208 on 514643ab16 and later. **Next stops to expect:** - An HTILE mask clear of a separate-stencil target still refuses, under #6300's rule. - If Ghost of Tsushima creates its target before the two fills, while the memory still holds older contents, creation refuses with its own reason, and the fills can't help. The run would then print that reason. - A plane under a colour target that drew is imported unproven, so its first stencil test or stencil sample refuses until a whole-plane fill proves it. - **Ghost of Tsushima's depth plane:** a host-only 2-sample `R32_SFLOAT` colour target cleared to 0 covers exactly the depth range, so the depth import refuses with the alias text (milescoviello's run above). #9742, stacked on this PR, covers it. As JJenkx's [source review](https://github.com/boykopovar/AnyPS5/pull/9533#issuecomment-6338020932) notes, the colour clear alone doesn't show that the depth agrees with it: that needs the target's `clearDepth` and its HTILE. - A per-sample `R8_UINT` read of the stencil plane refuses (PPSA03208); #9717, stacked on this PR, covers it. - With `APS5_PIPELINE_DMA` set, a large queued DMA fill over the depth's metadata isn't noted, so the next sample refused it as an external write (JJenkx). Fixed in this PR by dd7ad4638a (`Co-authored-by: JJenkx`) where host imports stay write-watched, as on Linux in our runs. The queued fill is stored through a host import, and where host imports are compared rather than watched, as Windows' direct imports always are, the fill still refuses, as on `main`: on an NVIDIA GeForce RTX 3070 Laptop GPU, `agc_driver_native_depth_driver_queued_fill` failed 4 of 4 with "native multisample depth metadata fill over unwatched memory is not implemented". 1582cf6cc0 makes that case skip on Windows with the reason, and a run of it on the RTX 3070 is pending. Back-to-back HTILE fills of one pattern still refuse as overlapping clear transitions, queued or not. - **55b0a5f4ad, a merge of `main` 3fcb5e4d76**, which brings #8999's DB depth copy draws. The one conflict was the native depth branch in `DepthSurface.cpp`, which #8999 splits on `depthCopySourceActive`: this PR's `RequireStencilProven` goes in the `else` branch after `CheckCurrent()`, as planned (see Overlap). On GitHub's runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40108807835)), the native, depth and multisample tests (`^agc_driver_native_`, `^agc_driver_depth_`, `^agc_driver_msaa_`) pass 10 runs in a row on Linux: 42 run, 38 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 42 run, 3 pass 10 runs in a row and 39 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. - An `^agc` sweep ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40108950772)): Linux 984 run, 919 pass, 64 skip, 1 fail: `agc_driver_queued_index_read_order`, with "the queued draw's commit stored the image's results over its index buffer". On `main` c9b2660d56 ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40109333265)) and 137a8fab89 ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40114358275)), and on this merge alone ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40114331504)), the test fails at its setup check before that one: "the image write left no pending result to order against". So these runs can't show whether the later check fails on `main` too. Windows 1,008 run, 282 pass, 722 skip, 4 fail: `agc_submit_progress`, `agc_submit_progress_no_timeline`, `agc_driver_pipelined_metadata_pass` and `agc_driver_pipelined_metadata_pass_draw_pipeline`, which also fail on `main` c9b2660d56 (same run). - **Hades II (PPSA36082)**, run by eliyarson on an RTX 3080 Ti ([comment](https://github.com/boykopovar/AnyPS5/pull/9533#issuecomment-6386807835)). On `main` 1a745ae38 the hub aborts shortly after it loads with `[videoout] presentation failed: AGC graphics: native multisample depth metadata fill transition is not implemented` (exit 134), which they bisected to #6557. In five interleaved hub runs each, on `main` and on this PR at 1582cf6cc, the abort followed a burst of file reads during the hub hold. Three `main` runs reached it and all three aborted; one PR run reached it, dipped to 23 FPS and kept going. The other runs never reached it, and the PR's logs have no refusal line. - Their caveats: it isn't a controlled 5-against-5 result, it's one machine, and there were no frame dumps, so whether the hub renders correctly isn't known. - This PR still refuses a fill over part of the HTILE, so it may address the abort only if Hades II's fill covers the whole HTILE. - **Hades II (PPSA36082) v01.006.000, by @ycbuzi** ([comment](https://github.com/boykopovar/AnyPS5/pull/9533#issuecomment-6551327260)): Windows 11, RTX 4070 SUPER (driver 616.92), the same clean build of the title run twice each way with the same scripted presses, only `libSceAgcDriver.prx` swapped. - **`main` 5722c14bd5:** both runs exit at about 120 s (0xC0000409) with `[gpu] driver failure: AGC graphics: native multisample depth metadata fill transition is not implemented`, right after the intro. - **This PR, 6d0ff6cd85 merged onto 14b9cc5a8c:** both runs are still going when closed at 6 and 7 minutes, and neither logs that line. The saved frames show the title screen, save select, the intro, the first playable area with its HUD, and the pause menu. - **Their limits:** the other libraries are `main`'s 5722c14bd5 in all four runs, and the PR's library was built on a slightly newer `main`. There was no validation layer, and the frames were only looked at, so depth accuracy isn't checked. It's two runs each way in the first area, with no person playing. - **Dave the Diver (PPSA19115)**, run by tablefrogpillow on an AMD Radeon RX Vega 56 (RADV, Mesa 25.2.8), Linux, with `ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1` ([comment](https://github.com/boykopovar/AnyPS5/issues/7608#issuecomment-6390065251)). Their earlier run stopped at the import, on `native multisample stencil or depth format import is not implemented` ([comment](https://github.com/boykopovar/AnyPS5/issues/7608#issuecomment-6386440838)). On #9717's branch (74594d4a81, which carries this PR's 55b0a5f4ad), that line appears 0 times, and the title stops later, on the colour-alias refusal #9742 addresses: ``` [gpu] native multisample depth 0x2379d0000+0x10e0000 aliases multisampled colour target 0x2379d0000+0x10e0000 (vk format 100, 2 samples), newest clear 0x00000000 0x00000000 0x00000000 0x00000000 [gpu] driver failure: AGC graphics: native multisample depth or HTILE aliases a multisampled colour target whose samples are only on the host ``` - **Assassin's Creed Shadows (PPSA20397)**, by akkadbakkad89, RTX 3070, Windows 11, driver 617.42, with this PR (which carries #6300) and #9717 merged onto their validation branch, per their report ([comment](https://github.com/boykopovar/AnyPS5/pull/9533#issuecomment-6401068340)): the `native multisample stencil or depth format import is not implemented` abort at about +848 s is gone from the log, and the title gets past that point into pixel shading it hadn't reached before. Its next stop, a stencil-reference-export pixel shader, is outside this PR (detail on #4276). - **a7697941f3, a merge of `main` ccfb96757f** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40638113626)), which brings dantdmdarealguy's #11307. Three conflicts, each keeping both sides: - `MultisampleTarget.cpp`: #11307 returns `selectedView` where this PR sets `drawn` before returning; the merge does both. - `NativeMultisampleDepth.cpp`: #11307 prints `Native HTILE tracked dispatch completed` after the completed-dispatch check, which this PR's fault cases moved into their own branch, so the line goes in that branch. In `main()`, #11307's Linux `SharedBackingScope` comes first and this PR's `--driver-path` and `--driver-queued-fill` options follow it, so those runs get it too. - Outside those lines, this PR's changed lines are the same. - The native depth tests, `agc_driver_native_fmask` and the sample-order depth tests ran 10 times with no failure. Linux: 14 run, 10 pass, 4 skip (`agc_driver_native_depth_bda_clear`, `agc_driver_native_fmask`, `agc_driver_sample_order_grid_reference` and `agc_driver_sample_order_recipe_depth_locations`, which skip on that runner as in earlier runs), 0 fail. Windows: 14 run, 0 pass, 14 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. - **5343d0a8da, a fill stored before its note** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40897351673), with #9533's previous head a7697941f3 as the before arm). - New cases in `agc_driver_native_multisample_depth` and its `--separate-stencil` mode: - a fill stored before its note, then a lookup; - a GPU fill submitted before its note; - a CPU write after the note, still refused; - words driver-stored before the surface was created, still refused. - A fill noted while pending, then retired before the first lookup, was already accepted and stays as the control. - On a7697941f3 the new cases fail with `native multisample depth clear has no complete tracked HTILE store` and `native multisample stencil plane fill has no complete tracked store`. - **On GitHub's runners**, the native depth tests ran 10 times. Linux: the before arm fails; with the fix, 11 run, 10 pass, 1 skip (`agc_driver_native_depth_bda_clear`, which skips on lavapipe), 0 fail. On Windows all 11 skip, because the runner has no Vulkan device, so they ran on Linux only. The libc and libkernel suites run 166 and 264 tests on Linux and 194 and 286 on Windows, with 0 failed. They ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **On a cloud machine** (lavapipe, CI's flags; [result](https://github.com/EagleBearerYS/AnyPS5/blob/cloud-results/results/cloud-5/BF-276.md)): the `^agc` tests, 1,092 run, 1,020 pass, 72 skip, 0 fail. The ten native depth tests: 100 of 100. - **Validation comparison at 6eb141ce5f** (CONTRIBUTING's AGC rule, for 5343d0a8da's change to when tracked HTILE and stencil-plane stores qualify a clear): `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/40966175820)): every test matching `^agc_driver_native_`. This head: 13 run, 11 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 25 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/40969575596)). ×10 on this head ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40969373583)): 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 head inside #9742** ([comment](https://github.com/boykopovar/AnyPS5/issues/5166#issuecomment-6526573860)): `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. The `native multisample stencil or depth format import is not implemented` stop doesn't occur. The run stops 33 s in, at the next check in compute shader 0x20001ef700, `native multisample depth sampled identity or format mismatch`, which #9717 takes. With #9717 added ([comment](https://github.com/boykopovar/AnyPS5/issues/5166#issuecomment-6527249459)), the next stop is `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. - **dcf420ec7f, a merge of `main` 2b1ae87c69**, which brings savvaniss's #8223 ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41139430585)). - **The conflicts:** `DepthSurface.cpp` and `MultisampleTarget.cpp`, where #8223 replaced `guard()`'s `hostOnly` flag with the shared `TargetUse` model (`claimOverlapping`, `stampUse`) and made `DepthSurfaceView` claim its planes' multisample target memory. - **The resolution:** `DepthSurfaceView` keeps this PR's `stencilTested` parameter with main's three `ClaimMultisampleTargetMemory` lines; `guard()` is main's. #8223 extracted the same `guardedColorBytes` helper this PR had, byte for byte, so the merge keeps one definition, at this PR's position, because `Alias()` calls it earlier in the file. This PR's other changes use only fields `TargetUse` kept. - **This PR's own diff** changes only in that helper's position: its added `const auto bytes = guardedColorBytes(target);` line is now `main`'s. - **The same resolution as JAB-dev's** [bb085f7a40](https://github.com/JAB-dev/AnyPS5/commit/bb085f7a40), hunk for hunk. - **×10:** the multisample target, frame capture, `^agc_driver_native_`, `^agc_driver_msaa_` and `^agc_driver_depth_` tests. - Linux: 56 run, 48 pass, 8 skip, 0 fail. - Windows: 56 run, 4 pass, 52 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. - **Validation** (Khronos layer, `ANYPS5_NO_SHADER_CACHE=1`, GitHub's Linux runner), `main` 2b1ae87c69 against this head ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41139498169)): the same three IDs in both arms, `VUID-VkDeviceCreateInfo-pNext-pNext`, `VUID-vkCmdCopyImage-srcImage-01548` and `VUID-vkCmdCopyImage-srcImage-01551`. The merge adds none. - **On a cloud Linux machine (lavapipe):** `ctest -R '^agc'` 1,149 passed, 0 failed. - **071ca5b609, a merge of `main` 6a691f69ee**, which brings Celegans12's #8105 ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41184222392), validation [run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41184229061)). - **The conflicts:** `CMakeLists.txt` and `tests/execution/NativeMultisampleDepth.cpp`, where #8105 adds `agc_driver_native_depth_buffer_clear`, `ClearFault::DriverBufferDispatch` and two blocks around `ArmHtileDepthClear`. Both sides are kept. Beyond that, the merge commit names three lines: - `agc_driver_native_depth_buffer_clear` joins this PR's `set_tests_properties` lists (plain and WIN32), in place of `main`'s line that re-lists `clears` and `clear_refusals` with the same properties. - Two test-file adaptations: `main`'s two blocks sit inside this PR's `ClearSource::HtileDispatch` path, where this PR moved that code, and `main`'s `--buffer-clear` case passes `ClearSource::HtileDispatch` to `CheckDepthTarget`. - **This PR's own diff** changes only by `main`'s tokens on lines it already changes, and by `main`'s two blocks at this PR's indent. #8105's `DepthSurface.cpp` changes merged on their own. - **×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_buffer_clear` included. - Linux: 24 run, 23 pass, 1 skip, 0 fail. - Windows: 24 run, 0 pass, 24 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**, `main` 6a691f69ee against this head, the same tests: the loader inserted the layer 28 and 38 times, with no `was not found`; both arms report the same three IDs as at dcf420ec7f, so the merge adds none. - **On a cloud Linux machine (lavapipe):** this PR's 11 tests pass 110 of 110 runs; `ctest -R '^(agc|shader)'` 1,090 passed, 75 skipped, 0 failed. - **6d0ff6cd85, a merge of `main` 0836dfdf4f** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41238630046), on 009631c3bc, 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 registrations into `tests/cmake/agc_driver_native_multisample_depth_tests.cmake` (+12 −2). Nothing else conflicted. Apart from the move, this PR's diff is unchanged. With `-DBUILD_TESTING=ON`, `ctest -N` gives 3081 tests: `main`'s 3075 plus its 6 tests, each listed once. The 24 tests of this PR's verify set pass 10 runs in a row. Linux: 24 run, 23 pass, 1 skip, 0 fail. Windows: 24 run, 0 pass, 24 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. - **NVIDIA, TechLevelZero's GPU runner** ([report](https://github.com/boykopovar/AnyPS5/pull/9533#issuecomment-6550129283)): 6d0ff6cd85 merged onto `main` 0836dfdf4f, NVIDIA RTX 2000 Ada Generation, driver 595.99.02, Linux. Passed: 2,451 passed, 0 new failures (4 fail on `main` too), and no new validation IDs against `main` over 930 tests run on the GPU. ### 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: #6300, #8223, #6973, #9700, #9950 (merge order: #8223 and #6973 agreed in their threads; this PR goes after #9700 and #9950, order notes in their threads; #6044 was closed; see Overlap); #10882 (orezraey) goes after this PR (merge order only, on #10882) - [x] Fixes: none - [x] Unblocks: PPSA07656 #8606 (tested by BunnyFl: first level, walking, collecting presents, moving between rooms, 365 s, no AGC refusal), PPSA02225 #4461, PPSA19115 #5963 (with #9717 on top, gets Dave the Diver (PPSA19115) #7608 past the import refusal to the colour-alias stop #9742 addresses), PPSA36082 (tested by ycbuzi: past `main`'s stop after the intro into the first playable area, 2 of 2 runs) - [x] GPUs tested: Mesa lavapipe (llvmpipe, LLVM 20.1.2), Ubuntu 24.04, on a Linux build machine and GitHub's runner, with the validation comparisons (Mesa 25.2.8) on GitHub's runner; NVIDIA GeForce RTX 3070 Laptop GPU (driver 617.42), Windows 11; AMD Radeon RX 9070 XT (driver 32.0.32015.7029), Windows 11, in BunnyFl's runs; AMD Radeon RX 6400, Windows, in xXPBSXx's runs; NVIDIA GeForce RTX 4070 Ti (615.71.09), Linux, in milescoviello's runs; AMD Radeon RX 6650 XT (RADV), Linux, in JJenkx's run; AMD Radeon RX Vega 56 (RADV, Mesa 25.2.8), Linux, in tablefrogpillow's run; Apple M2 Max (MoltenVK 1.4.2), macOS, on #8658's macOS port, in jotitadev's run; NVIDIA GeForce RTX 3080 Ti, in eliyarson's Hades II (PPSA36082) runs - [x] AI-assisted: yes
MarcZX10 commented 2026-10-22 00:37:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T00:37:15Z.

Review: CHANGES_REQUESTED


The implementation and regression report are detailed. The exact PR head is based on current main, required eligibility/conventions/intake/labels/report checks pass, and the reported lavapipe regressions include negative controls. The hosted Linux/Windows product and relinker jobs were skipped; I did not run local tests.

I’m requesting changes for these remaining correctness and contribution-rule items:

  1. Required AGC validation comparison is missing from the report. CONTRIBUTING.md requires the same focused tests on main and this change, on the same machine and GPU, using ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, and ctest -V. Please report both runs, confirm the validation layer was actually found, compare the logs for new VUID- errors, and give the GPU vendor/model/driver/OS. The current lavapipe report does not establish those required comparison details.

  2. The no-metadata sampling path accepts an unproven state. CheckResource accepts dccAddress == 0 for this target, while this PR says it cannot observe whether the guest performed the in-place expansion first and that an unexpanded sample will still receive the decompressed host image. The new fixture checks clear samples, not the title sequence that establishes this assumption. Please either provide evidence that the affected title expands before this descriptor is used and test that sequence, or keep refusing this descriptor until the guest expansion state is established. Otherwise the emulator can silently return different values from the guest memory the descriptor names.

  3. The Unblocks checklist is incomplete. The repository requires each title ID to be paired with its Game bring-up discussion. The Grinch has #8606, but the Ghost of Tsushima and Spirit of the Island entries currently link to PR comments rather than Game bring-up discussions. Please add those discussion links, or narrow the checklist to titles with a qualifying discussion and mark the others none.

  4. Please close the overlap coordination loop. The live overlap scan reports shared DepthSurface.cpp/test regions with open #7233 and #7371, also identified in this PR description. The repository asks authors to agree merge order for these overlaps and declare Depends on when one must land first. Please record the coordination/order and update the checklist if either PR is a prerequisite.

I have not found a reason to dispute the reported lavapipe regression results; the requests above concern the required validation evidence, the unverified no-metadata behavior, and the repository’s title/overlap checklist rules.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5607907869 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9533#pullrequestreview-5607907869). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T00:37:15Z. **Review:** CHANGES_REQUESTED --- The implementation and regression report are detailed. The exact PR head is based on current `main`, required eligibility/conventions/intake/labels/report checks pass, and the reported lavapipe regressions include negative controls. The hosted Linux/Windows product and relinker jobs were skipped; I did not run local tests. I’m requesting changes for these remaining correctness and contribution-rule items: 1. **Required AGC validation comparison is missing from the report.** `CONTRIBUTING.md` requires the same focused tests on `main` and this change, on the same machine and GPU, using `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1`, `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, and `ctest -V`. Please report both runs, confirm the validation layer was actually found, compare the logs for new `VUID-` errors, and give the GPU vendor/model/driver/OS. The current lavapipe report does not establish those required comparison details. 2. **The no-metadata sampling path accepts an unproven state.** `CheckResource` accepts `dccAddress == 0` for this target, while this PR says it cannot observe whether the guest performed the in-place expansion first and that an unexpanded sample will still receive the decompressed host image. The new fixture checks clear samples, not the title sequence that establishes this assumption. Please either provide evidence that the affected title expands before this descriptor is used and test that sequence, or keep refusing this descriptor until the guest expansion state is established. Otherwise the emulator can silently return different values from the guest memory the descriptor names. 3. **The `Unblocks` checklist is incomplete.** The repository requires each title ID to be paired with its Game bring-up discussion. The Grinch has #8606, but the Ghost of Tsushima and Spirit of the Island entries currently link to PR comments rather than Game bring-up discussions. Please add those discussion links, or narrow the checklist to titles with a qualifying discussion and mark the others `none`. 4. **Please close the overlap coordination loop.** The live overlap scan reports shared `DepthSurface.cpp`/test regions with open #7233 and #7371, also identified in this PR description. The repository asks authors to agree merge order for these overlaps and declare `Depends on` when one must land first. Please record the coordination/order and update the checklist if either PR is a prerequisite. I have not found a reason to dispute the reported lavapipe regression results; the requests above concern the required validation evidence, the unverified no-metadata behavior, and the repository’s title/overlap checklist rules.
milescoviello commented 2026-10-22 01:51:24 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-22T01:51:24Z.


@EagleBearerYS Ghost of Tsushima (PPSA02225) on this PR's head 5daa8cb7a9, as I offered on #6300. Release libs, Linux, RTX 4070 Ti, NVIDIA 615.71.09. The memory cap was 18 GB: the host didn't have room for 20, and it didn't matter, since the runs stop early.

  • Warm (shader cache from earlier runs): stops at 15 s.
  • Cold (no cache): stops at 55 s.
  • A third warm run, to keep a core: stops at 16 s.

All three end with the same message, and none prints a native multisample refusal, so the earlier stops on main and on #6300 are passed:

AGC graphics: a CPU read of 0x1546eb0000+0x870000 overlaps multisampled color target 0x1546eb0000+0x870000 (2 samples), whose samples are only on the host: guest access to it is not implemented

What I can tell from it:

  • 0x870000 is this target's separate stencil plane (MultisampledDepthBytes of 1920x2160 at 2 samples, the plane size you listed for Ghost).
  • The same range is in MultisampleTarget.cpp's guarded list as a 2-sample color target. So the game also renders into the stencil plane's memory as a color target, and those samples are only in the host image.
  • The guard (GuestMemory::SetReadGuard(&guardReads)) refuses any CPU read of that range. The read covers exactly the plane, which matches the new check in DepthSurface.cpp at line 158, GuestMemory::Read(target.stencilAddress, ...). That check compares every byte of the plane with DB_STENCIL_CLEAR.
  • I couldn't confirm the reader from the core. The exception is caught on the GPU thread and rethrown by the present loop, so the core only shows VideoOutDriver::presentLoop calling std::terminate. If you want the throw site itself, I can rerun with a __cxa_throw hook.

If that's the reader, then for Ghost the plane's current contents are in the host color image, not in guest memory. The clear proof would need to come from that target's last clear, or the import would need to take the plane from the color target's image.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6330754389 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9533#issuecomment-6330754389). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-22T01:51:24Z. --- @EagleBearerYS Ghost of Tsushima (PPSA02225) on this PR's head `5daa8cb7a9`, as I offered on #6300. Release libs, Linux, RTX 4070 Ti, NVIDIA 615.71.09. The memory cap was 18 GB: the host didn't have room for 20, and it didn't matter, since the runs stop early. - **Warm** (shader cache from earlier runs): stops at 15 s. - **Cold** (no cache): stops at 55 s. - **A third warm run**, to keep a core: stops at 16 s. All three end with the same message, and none prints a `native multisample` refusal, so the earlier stops on `main` and on #6300 are passed: ``` AGC graphics: a CPU read of 0x1546eb0000+0x870000 overlaps multisampled color target 0x1546eb0000+0x870000 (2 samples), whose samples are only on the host: guest access to it is not implemented ``` What I can tell from it: - 0x870000 is this target's separate stencil plane (`MultisampledDepthBytes` of 1920x2160 at 2 samples, the plane size you listed for Ghost). - The same range is in `MultisampleTarget.cpp`'s guarded list as a 2-sample **color** target. So the game also renders into the stencil plane's memory as a color target, and those samples are only in the host image. - The guard (`GuestMemory::SetReadGuard(&guardReads)`) refuses any CPU read of that range. The read covers exactly the plane, which matches the new check in `DepthSurface.cpp` at line 158, `GuestMemory::Read(target.stencilAddress, ...)`. That check compares every byte of the plane with `DB_STENCIL_CLEAR`. - I couldn't confirm the reader from the core. The exception is caught on the GPU thread and rethrown by the present loop, so the core only shows `VideoOutDriver::presentLoop` calling `std::terminate`. If you want the throw site itself, I can rerun with a `__cxa_throw` hook. If that's the reader, then for Ghost the plane's current contents are in the host color image, not in guest memory. The clear proof would need to come from that target's last clear, or the import would need to take the plane from the color target's image. AI-assisted: yes (Claude Code)
MarcZX10 commented 2026-10-22 01:52:49 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T01:52:49Z.

Review: CHANGES_REQUESTED


Thanks for rebasing to the current main and updating the report with three Ghost of Tsushima runs on the PR head. The earlier native multisample refusal is now passed, but the run reaches a new guest access refusal over the same 0x870000 stencil-plane range. The reported overlap with a host-only multisampled color target also raises a concrete issue with the new CPU read used to prove the plane clear.

I’m keeping the request for changes for these remaining items:

  1. The separate-plane clear proof must account for the overlapping color target. The report says the plane range is also guarded as a multisampled color target and its samples are host-only; the title run now stops on a CPU read of exactly that range. Please trace the read to its source and establish how the implementation can prove the stencil plane’s clear without reading guest memory that is guarded or stale relative to the host color image. Add a regression for the relevant alias/guard path and update the game result after the fix. Until then, the reported title run does not establish this path as working.
  2. The no-metadata descriptor still accepts an unproven expansion state. The report says it cannot observe whether the guest expanded the plane before sampling and would return the decompressed host image even if it did not. Please provide evidence and a regression covering the guest sequence, or retain the refusal until that state is established.
  3. Required AGC validation comparison is still missing. Please report the same focused tests on main and this head using ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, and VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation with ctest -V on the same machine and GPU; confirm the layer was found, compare for newly introduced VUID- messages, and name the GPU vendor/model/driver/OS. The existing lavapipe results do not include this required comparison.
  4. Complete Unblocks according to the repository checklist. The Ghost discussion is #4461. The Grinch is #8606. Spirit of the Island has no Game bring-up discussion yet, so please omit it from Unblocks for now (or add a qualifying discussion first).
  5. Record overlap coordination and required ordering. The description identifies shared hunks with #7233 and #7371. Please record the authors’ agreed integration order and list the required PR number(s) on Depends on if this branch needs them first.

The updated hosted eligibility, intake, conventions, labels and report checks pass; Linux/Windows product and relinker jobs are skipped, and I did not run local tests. I have not found grounds to dispute the reported lavapipe fixture results; the items above concern an observed guarded read on the title path, an explicitly unverified sampling assumption, required validation evidence, and the repository’s checklist/overlap rules.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5608366005 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9533#pullrequestreview-5608366005). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T01:52:49Z. **Review:** CHANGES_REQUESTED --- Thanks for rebasing to the current `main` and updating the report with three Ghost of Tsushima runs on the PR head. The earlier native multisample refusal is now passed, but the run reaches a new guest access refusal over the same `0x870000` stencil-plane range. The reported overlap with a host-only multisampled color target also raises a concrete issue with the new CPU read used to prove the plane clear. I’m keeping the request for changes for these remaining items: 1. **The separate-plane clear proof must account for the overlapping color target.** The report says the plane range is also guarded as a multisampled color target and its samples are host-only; the title run now stops on a CPU read of exactly that range. Please trace the read to its source and establish how the implementation can prove the stencil plane’s clear without reading guest memory that is guarded or stale relative to the host color image. Add a regression for the relevant alias/guard path and update the game result after the fix. Until then, the reported title run does not establish this path as working. 2. **The no-metadata descriptor still accepts an unproven expansion state.** The report says it cannot observe whether the guest expanded the plane before sampling and would return the decompressed host image even if it did not. Please provide evidence and a regression covering the guest sequence, or retain the refusal until that state is established. 3. **Required AGC validation comparison is still missing.** Please report the same focused tests on `main` and this head using `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1`, and `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation` with `ctest -V` on the same machine and GPU; confirm the layer was found, compare for newly introduced `VUID-` messages, and name the GPU vendor/model/driver/OS. The existing lavapipe results do not include this required comparison. 4. **Complete `Unblocks` according to the repository checklist.** The Ghost discussion is #4461. The Grinch is #8606. Spirit of the Island has no Game bring-up discussion yet, so please omit it from `Unblocks` for now (or add a qualifying discussion first). 5. **Record overlap coordination and required ordering.** The description identifies shared hunks with #7233 and #7371. Please record the authors’ agreed integration order and list the required PR number(s) on `Depends on` if this branch needs them first. The updated hosted eligibility, intake, conventions, labels and report checks pass; Linux/Windows product and relinker jobs are skipped, and I did not run local tests. I have not found grounds to dispute the reported lavapipe fixture results; the items above concern an observed guarded read on the title path, an explicitly unverified sampling assumption, required validation evidence, and the repository’s checklist/overlap rules.
MarcZX10 commented 2026-10-22 01:52:50 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T01:52:50Z.


Thanks for the new Ghost run and for documenting the exact next stop. The updated trace reaches a CPU read of the separate stencil plane, which the report also says overlaps a host-only multisampled color target. I have refreshed my review with a request to trace that read and prove the plane clear without relying on guarded or stale guest memory. I also noted that the no-metadata sampling assumption, required same-GPU Vulkan validation comparison, Spirit of the Island Unblocks entry, and #7233/#7371 ordering still need resolution. The existing lavapipe fixture results remain useful; I did not run them locally.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6330772174 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9533#issuecomment-6330772174). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T01:52:50Z. --- Thanks for the new Ghost run and for documenting the exact next stop. The updated trace reaches a CPU read of the separate stencil plane, which the report also says overlaps a host-only multisampled color target. I have refreshed my review with a request to trace that read and prove the plane clear without relying on guarded or stale guest memory. I also noted that the no-metadata sampling assumption, required same-GPU Vulkan validation comparison, Spirit of the Island Unblocks entry, and #7233/#7371 ordering still need resolution. The existing lavapipe fixture results remain useful; I did not run them locally.
EagleBearerYS commented 2026-10-22 02:09:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-22T02:09:48Z.


@milescoviello thanks for the three Ghost of Tsushima Director's Cut (PPSA02225) runs and for tracing the stop this far. The range in the guard is exactly the stencil plane, and the only CPU read of exactly that range is this PR's clear check in prepareDepthSampling (DepthSurface.cpp L158), so the __cxa_throw hook isn't needed. As you read it, the game uses the plane's memory as a 2-sample colour target as well; with 64 KiB tiles, an R8 target at 1920x2160 has the same footprint.

@MarcZX10, thanks. The next commits, by point:

  1. Before reading anything, the import asks whether a host-only multisampled colour target covers its ranges, without reading guarded memory. If an R8 target with the same samples and footprint covers the plane and its newest content is a known clear, the import takes that value as the stencil. Otherwise it refuses with a named reason and logs that target's format, samples and newest operation. A regression puts a colour target over the plane memory (cleared, drawn after its clear, and another format) and checks that no guarded read happens.
  2. A sample through a descriptor without metadata is accepted only after a draw with DB_RENDER_CONTROL's compress-disable bits, the guest's in-place expand, has marked the surface expanded. A clear or fill resets the mark. Without an observed expand it refuses as before, and a regression covers both. Whether The Grinch: Christmas Adventures (PPSA07656) passes that step then depends on its expanding first, which needs a run to show.
  3. The validation comparison runs the same focused tests on main and on the new head under ctest -V, with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1 and VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, on lavapipe on Ubuntu 24.04. It includes the loader's output showing the layer and a diff of the VUID- messages.

Points 4 and 5 are in the description now.

@milescoviello, once the new head is up, would you run Ghost of Tsushima on it? Its new log line says whether the game clears or draws that colour target, which decides whether the next step is a copy of its samples into the stencil.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6330987469 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9533#issuecomment-6330987469). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-22T02:09:48Z. --- @milescoviello thanks for the three Ghost of Tsushima Director's Cut (PPSA02225) runs and for tracing the stop this far. The range in the guard is exactly the stencil plane, and the only CPU read of exactly that range is this PR's clear check in `prepareDepthSampling` (`DepthSurface.cpp` L158), so the `__cxa_throw` hook isn't needed. As you read it, the game uses the plane's memory as a 2-sample colour target as well; with 64 KiB tiles, an R8 target at 1920x2160 has the same footprint. @MarcZX10, thanks. The next commits, by point: 1. Before reading anything, the import asks whether a host-only multisampled colour target covers its ranges, without reading guarded memory. If an R8 target with the same samples and footprint covers the plane and its newest content is a known clear, the import takes that value as the stencil. Otherwise it refuses with a named reason and logs that target's format, samples and newest operation. A regression puts a colour target over the plane memory (cleared, drawn after its clear, and another format) and checks that no guarded read happens. 2. A sample through a descriptor without metadata is accepted only after a draw with `DB_RENDER_CONTROL`'s compress-disable bits, the guest's in-place expand, has marked the surface expanded. A clear or fill resets the mark. Without an observed expand it refuses as before, and a regression covers both. Whether The Grinch: Christmas Adventures (PPSA07656) passes that step then depends on its expanding first, which needs a run to show. 3. The validation comparison runs the same focused tests on `main` and on the new head under `ctest -V`, with `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1` and `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, on lavapipe on Ubuntu 24.04. It includes the loader's output showing the layer and a diff of the `VUID-` messages. Points 4 and 5 are in the description now. @milescoviello, once the new head is up, would you run Ghost of Tsushima on it? Its new log line says whether the game clears or draws that colour target, which decides whether the next step is a copy of its samples into the stencil.
milescoviello commented 2026-10-22 02:24:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-22T02:24:40Z.


@EagleBearerYS yes, I'll run Ghost of Tsushima (PPSA02225) on the new head when it's up, warm and cold, and post the log lines about that color target.

The __cxa_throw hook run had already started when your comment came in, and it confirms the reader. Throw stack, frames resolved with addr2line against the run's libSceAgcDriver.prx:

AgcDriver::Graphics::RequireNoMultisampleColorTarget(unsigned long, unsigned long, char const*) [clone .cold]
(guest-memory read guard)
AgcDriver::Graphics::(anonymous namespace)::prepareDepthSampling(Context const&, DepthTarget const&)
... (three draw-path frames)
std::_Function_handler<void (), AgcDriver::DriverDetail::Driver::draw(...)::...>

It's the same stop at 18 s.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6331172109 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9533#issuecomment-6331172109). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-22T02:24:40Z. --- @EagleBearerYS yes, I'll run Ghost of Tsushima (PPSA02225) on the new head when it's up, warm and cold, and post the log lines about that color target. The `__cxa_throw` hook run had already started when your comment came in, and it confirms the reader. Throw stack, frames resolved with `addr2line` against the run's `libSceAgcDriver.prx`: ``` AgcDriver::Graphics::RequireNoMultisampleColorTarget(unsigned long, unsigned long, char const*) [clone .cold] (guest-memory read guard) AgcDriver::Graphics::(anonymous namespace)::prepareDepthSampling(Context const&, DepthTarget const&) ... (three draw-path frames) std::_Function_handler<void (), AgcDriver::DriverDetail::Driver::draw(...)::...> ``` It's the same stop at 18 s. AI-assisted: yes (Claude Code)
oneandonlydean commented 2026-10-22 02:55:39 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-22T02:55:39Z.


@EagleBearerYS I ran #9533 (5daa8cb7a9) on PPSA03208 (current main plus a few other open PRs this title needs to get here, a local colour-guard retire like #8223's, and diagnostic prints). It clears both stops it names for this title: the format refusal and the HTILE stencil requirement. The two whole fills (HTILE, then the separate stencil plane) are taken as clears with no refusal, and the non-pipe-aligned HTILE check passes. Thanks.

The next stop is at the first dispatch of a compute program, in CheckResource:

native multisample depth sampled identity or format mismatch

I printed the descriptor at that check. The program samples the surface three times:

read base format (vk) samples dim / tile metadata result
1, 2 depth plane 0x1544ed0000 22 (D32) 2 2D MSAA / 4 none (dcc=0) passes
3 stencil plane 0x1546eb0000 5 (R8_UINT) 2 2D MSAA / 4 none fails: base and format

T# of the failing read: 1546eb00 c0500000 021bc1df e1810924 00000000 00700010 00000000 00000000. The surface is 1920x2160, two samples, D32S8, HTILE depth-only, with the stencil plane registered at 0x1546eb0000.

Here is how it gets there, as far as I can see. DepthSurfaceTexture finds the surface for a reader whose base is either the depth plane or the separate stencil plane (with a one-byte format). For a multisampled reader, it then calls CheckCurrent and CheckResource, and CheckResource only accepts the depth plane in format 22. SampledAccepts already knows a stencil view (R8_UINT at stencilAddress), but the multisampled path never reaches it.

So the title reads the stencil of the native D32S8 target per sample, through a plain R8_UINT 2D MSAA descriptor with no metadata, right after reading the depth the same way. Would a stencil-aspect sampled view of the native image fit in this PR? Or would you rather keep it for a follow-up? If it helps, I can run a build of yours on the title and post the result.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6331552179 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9533#issuecomment-6331552179). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-22T02:55:39Z. --- @EagleBearerYS I ran #9533 (5daa8cb7a9) on PPSA03208 (current `main` plus a few other open PRs this title needs to get here, a local colour-guard retire like #8223's, and diagnostic prints). It clears both stops it names for this title: the format refusal and the HTILE stencil requirement. The two whole fills (HTILE, then the separate stencil plane) are taken as clears with no refusal, and the non-pipe-aligned HTILE check passes. Thanks. The next stop is at the first dispatch of a compute program, in `CheckResource`: ``` native multisample depth sampled identity or format mismatch ``` I printed the descriptor at that check. The program samples the surface three times: | read | base | format (vk) | samples | dim / tile | metadata | result | |---|---|---|---|---|---|---| | 1, 2 | depth plane 0x1544ed0000 | 22 (D32) | 2 | 2D MSAA / 4 | none (`dcc=0`) | passes | | 3 | **stencil plane 0x1546eb0000** | **5 (R8_UINT)** | 2 | 2D MSAA / 4 | none | **fails: base and format** | T# of the failing read: `1546eb00 c0500000 021bc1df e1810924 00000000 00700010 00000000 00000000`. The surface is 1920x2160, two samples, D32S8, HTILE depth-only, with the stencil plane registered at 0x1546eb0000. Here is how it gets there, as far as I can see. `DepthSurfaceTexture` finds the surface for a reader whose base is either the depth plane or the separate stencil plane (with a one-byte format). For a multisampled reader, it then calls `CheckCurrent` and `CheckResource`, and `CheckResource` only accepts the depth plane in format 22. `SampledAccepts` already knows a stencil view (`R8_UINT` at `stencilAddress`), but the multisampled path never reaches it. So the title reads the stencil of the native D32S8 target per sample, through a plain `R8_UINT` 2D MSAA descriptor with no metadata, right after reading the depth the same way. Would a stencil-aspect sampled view of the native image fit in this PR? Or would you rather keep it for a follow-up? If it helps, I can run a build of yours on the title and post the result.
EagleBearerYS commented 2026-10-22 03:03:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-22T03:03:17Z.


@oneandonlydean thanks for running it on PPSA03208 and for printing the descriptors, and good to see both of its stops clear. Your third read samples the stencil plane per sample through a plain R8_UINT 2D MSAA descriptor, which this PR doesn't handle. It'll come as a follow-up stacked on this PR. Sampling the stencil plane needs a stencil-aspect view of the native image, the R8_UINT T# accepted at the stencil address, and the sample shadow carrying stencil too, which is more than this PR's import change. We'd be glad to take you up on the offer to run it once it's up.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6331645359 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9533#issuecomment-6331645359). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-22T03:03:17Z. --- @oneandonlydean thanks for running it on PPSA03208 and for printing the descriptors, and good to see both of its stops clear. Your third read samples the stencil plane per sample through a plain `R8_UINT` 2D MSAA descriptor, which this PR doesn't handle. It'll come as a follow-up stacked on this PR. Sampling the stencil plane needs a stencil-aspect view of the native image, the `R8_UINT` T# accepted at the stencil address, and the sample shadow carrying stencil too, which is more than this PR's import change. We'd be glad to take you up on the offer to run it once it's up.
xXPBSXx commented 2026-10-22 04:12:32 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-22T04:12:32Z.


Data point (Windows, AMD RX 6400), PR head 5daa8cb7a9, merge-base a6dcea9279 (merges cleanly into upstream/main).

Target: agc_driver_native_multisample_depth (the PR's NativeMultisampleDepth.cpp).

  • With the PR (head): 3/3 pass.
  • Same test, DepthSurface.cpp reset to the merge-base (test file kept): 3/3 fail.
  • GPU: Selected GPU name=AMD Radeon RX 6400 vendor=0x1002 device=0x743f (from the test log).

Only this one execution test was run; no title run and no other GPU. Logs are available as file names only: data_9533_rx6400_green1-3.log, data_9533_rx6400_red1-3.log.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6332505036 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9533#issuecomment-6332505036). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-22T04:12:32Z. --- Data point (Windows, AMD RX 6400), PR head 5daa8cb7a9, merge-base a6dcea9279 (merges cleanly into upstream/main). Target: `agc_driver_native_multisample_depth` (the PR's `NativeMultisampleDepth.cpp`). - With the PR (head): 3/3 pass. - Same test, `DepthSurface.cpp` reset to the merge-base (test file kept): 3/3 fail. - GPU: `Selected GPU name=AMD Radeon RX 6400 vendor=0x1002 device=0x743f` (from the test log). Only this one execution test was run; no title run and no other GPU. Logs are available as file names only: data_9533_rx6400_green1-3.log, data_9533_rx6400_red1-3.log. AI-assisted (Claude Code).
oneandonlydean commented 2026-10-22 04:15:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-22T04:15:16Z.


@EagleBearerYS thanks, that matches what I saw: both stops clear with this PR, and the next one is the per-sample R8_UINT read of the stencil plane. A follow-up stacked on this one makes sense. Mention me when it's up and I'll run it on PPSA03208.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6332541453 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9533#issuecomment-6332541453). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-22T04:15:16Z. --- @EagleBearerYS thanks, that matches what I saw: both stops clear with this PR, and the next one is the per-sample R8_UINT read of the stencil plane. A follow-up stacked on this one makes sense. Mention me when it's up and I'll run it on PPSA03208.
xXPBSXx commented 2026-10-22 06:42:22 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-22T06:42:22Z.


Title data point (Windows, AMD Radeon RX 6400), PPSA02225, 600 s runs, one run each.

  • GPU, both runs: Selected GPU name=AMD Radeon RX 6400 vendor=0x1002 device=0x743f subgroup=64 (run_*.out line 24).
  • Without the PR (libs from main 17f5335562, all 360 libs rebuilt; run_072452): stops with compute shader 0x20001ef700: AGC graphics: native multisample stencil or depth format import is not implemented (.err line 252-258, then abort).
  • With the PR (the same main plus #9533 merged locally, all 360 libs rebuilt; run_080153): that message does not appear (0 matches in the 3544-line log). The run now stops later with AGC graphics: a CPU read of 0x1546eb0000+0x870000 overlaps multisampled color target 0x1546eb0000+0x870000 (2 samples), whose samples are only on the host: guest access to it is not implemented (.err line 233-237, then abort).

So on this title the PR moves the stop past the depth/stencil import; the next stop is a different refusal (CPU read of a multisampled color target). One run per state, so this says nothing about how often either stop occurs. No other title and no other GPU were run. Run folders on request (file names only: PPSA02225_rNT/run_072452, run_080153).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6334530072 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9533#issuecomment-6334530072). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-22T06:42:22Z. --- Title data point (Windows, AMD Radeon RX 6400), PPSA02225, 600 s runs, one run each. - GPU, both runs: `Selected GPU name=AMD Radeon RX 6400 vendor=0x1002 device=0x743f subgroup=64` (run_*.out line 24). - Without the PR (libs from main `17f5335562`, all 360 libs rebuilt; run_072452): stops with `compute shader 0x20001ef700: AGC graphics: native multisample stencil or depth format import is not implemented` (.err line 252-258, then abort). - With the PR (the same main plus #9533 merged locally, all 360 libs rebuilt; run_080153): that message does not appear (0 matches in the 3544-line log). The run now stops later with `AGC graphics: a CPU read of 0x1546eb0000+0x870000 overlaps multisampled color target 0x1546eb0000+0x870000 (2 samples), whose samples are only on the host: guest access to it is not implemented` (.err line 233-237, then abort). So on this title the PR moves the stop past the depth/stencil import; the next stop is a different refusal (CPU read of a multisampled color target). One run per state, so this says nothing about how often either stop occurs. No other title and no other GPU were run. Run folders on request (file names only: PPSA02225_rNT/run_072452, run_080153).
BunnyFl commented 2026-10-22 07:04:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by BunnyFl on 2026-10-22T07:04:28Z.


@EagleBearerYS The Grinch: Christmas Adventures (PPSA07656, 01.000.003) on this PR's head 5daa8cb7a9 merged into main d6eafa54d0. Windows 11, AMD Radeon RX 9070 XT (driver 32.0.32015.7029), release libs, title relinked with the same build, no input.

  • On main alone (earlier report in #8606) it aborts about 2 s in, before its first frame: native multisample stencil or depth format import is not implemented.
  • With this PR it doesn't stop. One 240 s run: no driver failure and no AGC refusal in the log. A second run with APS5_DUMP_FRAMES=60 APS5_DUMP_FRAMES_EVERY=120 (about 60 fps presented) shows the logos, the publisher video, the autosave notice, loading, and the 3D storybook intro with its pages drawn.

Without input it stays in the intro, so I can't say yet what the first gameplay scene does. Thanks for covering this shape.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6334873431 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9533#issuecomment-6334873431). Originally posted by [BunnyFl](https://github.com/BunnyFl) on 2026-10-22T07:04:28Z. --- @EagleBearerYS The Grinch: Christmas Adventures (PPSA07656, 01.000.003) on this PR's head `5daa8cb7a9` merged into `main` `d6eafa54d0`. Windows 11, AMD Radeon RX 9070 XT (driver 32.0.32015.7029), release libs, title relinked with the same build, no input. - On `main` alone (earlier report in #8606) it aborts about 2 s in, before its first frame: `native multisample stencil or depth format import is not implemented`. - With this PR it doesn't stop. One 240 s run: no driver failure and no AGC refusal in the log. A second run with `APS5_DUMP_FRAMES=60 APS5_DUMP_FRAMES_EVERY=120` (about 60 fps presented) shows the logos, the publisher video, the autosave notice, loading, and the 3D storybook intro with its pages drawn. Without input it stays in the intro, so I can't say yet what the first gameplay scene does. Thanks for covering this shape. AI-assisted: yes (Claude Code)
EagleBearerYS commented 2026-10-22 07:07:22 +00:00 (Migrated from github.com)

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


@BunnyFl thanks for running The Grinch: Christmas Adventures (PPSA07656) on the RX 9070 XT, with the same build for the relink and the libs. Going from an abort before the first frame on main to 240 s with no refusal, and frame dumps through the logos, the publisher video, the autosave notice, loading and the storybook intro, is the run this PR needed for that title. It'll be in Tested, on the Unblocks line and on the GPUs tested line in the next description update, with your note that without input it stays in the intro.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6334919695 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9533#issuecomment-6334919695). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-22T07:07:22Z. --- @BunnyFl thanks for running The Grinch: Christmas Adventures (PPSA07656) on the RX 9070 XT, with the same build for the relink and the libs. Going from an abort before the first frame on `main` to 240 s with no refusal, and frame dumps through the logos, the publisher video, the autosave notice, loading and the storybook intro, is the run this PR needed for that title. It'll be in Tested, on the Unblocks line and on the GPUs tested line in the next description update, with your note that without input it stays in the intro.
BunnyFl commented 2026-10-22 08:15:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by BunnyFl on 2026-10-22T08:15:12Z.


@EagleBearerYS a follow-up for the Unblocks line: with scripted input, The Grinch (PPSA07656) gets past the intro into the first level and plays there (walking, collecting presents, moving between rooms), with no AGC refusal in a 365 s run on the same build.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6336075843 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9533#issuecomment-6336075843). Originally posted by [BunnyFl](https://github.com/BunnyFl) on 2026-10-22T08:15:12Z. --- @EagleBearerYS a follow-up for the Unblocks line: with scripted input, The Grinch (PPSA07656) gets past the intro into the first level and plays there (walking, collecting presents, moving between rooms), with no AGC refusal in a 365 s run on the same build. AI-assisted: yes (Claude Code)
JJenkx commented 2026-10-22 08:19:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-22T08:19:15Z.


@EagleBearerYS I tested this head (5daa8cb7a92a993ff16b3cde6710ba882cd7681c) integrated onto main d6eafa54d0464258574fd2f71889754d05a5bc93 and found two issues worth folding in.

Linux, AMD Radeon RX 6650 XT / RADV NAVI23, driver version reported by Vulkan 109060100. These are title-free GPU correctness checks, not title bring-up or FPS evidence. All three builds used this same GPU, Release, forced Vulkan execution, disabled shader caching, and confirmed Khronos validation at both instance and device creation. No unavailable cases.

Build Focused tests Validation Additional production-DMA diagnostic
Unmodified pinned main 5/5 passed No VUID Not run: the separate-stencil fixture requires this PR
Main + this PR 7/7 passed VUID-VkImageMemoryBarrier-image-03320 in the stencil tests Failed: AGC graphics: external GPU writes over native multisample depth are not implemented
Same integration + patch below 7/7 passed No VUID Passed all 4 cases, no VUID

The focused set is agc_driver_(native_multisample_depth|native_depth_(retirement|clears|clear_refusals|stencil|separate_stencil)|msaa_dcc_clear_4) (anchored). Main has five of these; this PR adds the two stencil tests. On the integration/candidate, the printed case counts were 24 multisample, 24 retirement, 72 completed clears, 12 depth/stencil and 60 separate-stencil, all with unavailable=0.

  1. createSampleShadow transitions a combined depth/stencil image with only the depth aspect, while separateDepthStencilLayouts is not enabled. Including stencil for combined formats removes VUID 03320.
  2. The large queued fill in enqueueDmaPacket bypasses preparePacketMemory and calls storeBufferFill without metadata notification. Changing only its last argument to true makes the post-fill metadata notification happen. Keep the synchronous path unchanged: preparePacketMemory already notifies there.

The additional diagnostic uses the real sceAgcDriverSubmitDcb -> enqueueDmaPacket -> storeBufferFill -> vkCmdFillBuffer path: 4-sample D32S8, compressed/uncompressed HTILE, clear values 0/1, and three 131072-byte refills per case. It checks the DMA-fill counter and actual forwarded Vulkan fill each advance once with no added opcode drain. An earlier aspect-only control removed the VUID but retained the external-write refusal; adding the notification fix passed all four cases. The fixture is diagnostic code, not an existing upstream regression test. This does not establish 2/8-sample, Windows, or game performance behavior.

Minimal tested production patch:

diff --git a/core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketMemory.cpp b/core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketMemory.cpp
index d65d4bf795..95208940de 100644
--- a/core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketMemory.cpp
+++ b/core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketMemory.cpp
@@ -304,7 +304,7 @@ bool Driver::enqueueDmaPacket(std::span<const std::uint32_t> packet, std::uint32
         DrawPipeline::Queue0().Enqueue([this, queue, fillAddress, fillBytes, pattern] {
             GuestMemory::SetCurrentPacket(0x50, queue);
             if (const auto localDevice = device.Load()) {
-                storeBufferFill(queue, fillAddress, fillBytes, {pattern, pattern, pattern, pattern}, localDevice, false, false);
+                storeBufferFill(queue, fillAddress, fillBytes, {pattern, pattern, pattern, pattern}, localDevice, false, true);
                 ++dmaFills;
             }
         }, {{fillAddress, fillAddress + fillBytes}});
diff --git a/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp b/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
index ea180496d3..015825aaf3 100644
--- a/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
+++ b/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
@@ -1047,7 +1047,8 @@ private:
             barrier.srcQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED;
             barrier.dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED;
             barrier.image = sampleShadow->image;
-            barrier.subresourceRange = {VK_IMAGE_ASPECT_DEPTH_BIT, 0, 1, 0, 1};
+            const bool stencil = hostFormat == VK_FORMAT_D16_UNORM_S8_UINT || hostFormat == VK_FORMAT_D24_UNORM_S8_UINT || hostFormat == VK_FORMAT_D32_SFLOAT_S8_UINT;
+            barrier.subresourceRange = {VK_IMAGE_ASPECT_DEPTH_BIT | (stencil ? VK_IMAGE_ASPECT_STENCIL_BIT : 0u), 0, 1, 0, 1};
             context.Resolved(&DeviceFunctions::cmdPipelineBarrier, "vkCmdPipelineBarrier")(commands, VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, VK_PIPELINE_STAGE_TRANSFER_BIT, 0, 0, nullptr, 0, nullptr, 1, &barrier);
             if (batch) batch->SubmitAndWait();
             else Recorder::CountBarriers(Recorder::CommandClass::Draw, 1);

Candidate focused log SHA256: 44b16b140df80c75c3bba5e8490affac1e3e2ee8a91ad00838172122e5436d08; candidate DMA log SHA256: 63354a0084320880ec4253697bc889fd8a330dbdb3e011e6448e4fafc696bd4d. The exact tested reproducer, production patch, peer/candidate DMA logs, result summary and SHA256 manifest are now available. The bundle contains the original validated fixture; its README explains the pinned integration and negative/candidate controls.

AI-assisted: yes (Codex).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6336152420 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9533#issuecomment-6336152420). Originally posted by [JJenkx](https://github.com/JJenkx) on 2026-10-22T08:19:15Z. --- @EagleBearerYS I tested this head (`5daa8cb7a92a993ff16b3cde6710ba882cd7681c`) integrated onto main `d6eafa54d0464258574fd2f71889754d05a5bc93` and found two issues worth folding in. Linux, AMD Radeon RX 6650 XT / RADV NAVI23, driver version reported by Vulkan `109060100`. These are title-free GPU correctness checks, not title bring-up or FPS evidence. All three builds used this same GPU, Release, forced Vulkan execution, disabled shader caching, and confirmed Khronos validation at both instance and device creation. No unavailable cases. | Build | Focused tests | Validation | Additional production-DMA diagnostic | |---|---|---|---| | Unmodified pinned main | 5/5 passed | No VUID | Not run: the separate-stencil fixture requires this PR | | Main + this PR | 7/7 passed | `VUID-VkImageMemoryBarrier-image-03320` in the stencil tests | Failed: `AGC graphics: external GPU writes over native multisample depth are not implemented` | | Same integration + patch below | 7/7 passed | No VUID | Passed all 4 cases, no VUID | The focused set is `agc_driver_(native_multisample_depth|native_depth_(retirement|clears|clear_refusals|stencil|separate_stencil)|msaa_dcc_clear_4)` (anchored). Main has five of these; this PR adds the two stencil tests. On the integration/candidate, the printed case counts were 24 multisample, 24 retirement, 72 completed clears, 12 depth/stencil and 60 separate-stencil, all with `unavailable=0`. 1. `createSampleShadow` transitions a combined depth/stencil image with only the depth aspect, while `separateDepthStencilLayouts` is not enabled. Including stencil for combined formats removes VUID 03320. 2. The large queued fill in `enqueueDmaPacket` bypasses `preparePacketMemory` and calls `storeBufferFill` without metadata notification. Changing only its last argument to `true` makes the post-fill metadata notification happen. Keep the synchronous path unchanged: `preparePacketMemory` already notifies there. The additional diagnostic uses the real `sceAgcDriverSubmitDcb -> enqueueDmaPacket -> storeBufferFill -> vkCmdFillBuffer` path: 4-sample D32S8, compressed/uncompressed HTILE, clear values 0/1, and three 131072-byte refills per case. It checks the DMA-fill counter and actual forwarded Vulkan fill each advance once with no added opcode drain. An earlier aspect-only control removed the VUID but retained the external-write refusal; adding the notification fix passed all four cases. The fixture is diagnostic code, not an existing upstream regression test. This does not establish 2/8-sample, Windows, or game performance behavior. Minimal tested production patch: ```diff diff --git a/core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketMemory.cpp b/core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketMemory.cpp index d65d4bf795..95208940de 100644 --- a/core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketMemory.cpp +++ b/core/libs/prx/libSceAgcDriver/Execution/src/Driver/Packets/PacketMemory.cpp @@ -304,7 +304,7 @@ bool Driver::enqueueDmaPacket(std::span<const std::uint32_t> packet, std::uint32 DrawPipeline::Queue0().Enqueue([this, queue, fillAddress, fillBytes, pattern] { GuestMemory::SetCurrentPacket(0x50, queue); if (const auto localDevice = device.Load()) { - storeBufferFill(queue, fillAddress, fillBytes, {pattern, pattern, pattern, pattern}, localDevice, false, false); + storeBufferFill(queue, fillAddress, fillBytes, {pattern, pattern, pattern, pattern}, localDevice, false, true); ++dmaFills; } }, {{fillAddress, fillAddress + fillBytes}}); diff --git a/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp b/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp index ea180496d3..015825aaf3 100644 --- a/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp +++ b/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp @@ -1047,7 +1047,8 @@ private: barrier.srcQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED; barrier.dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED; barrier.image = sampleShadow->image; - barrier.subresourceRange = {VK_IMAGE_ASPECT_DEPTH_BIT, 0, 1, 0, 1}; + const bool stencil = hostFormat == VK_FORMAT_D16_UNORM_S8_UINT || hostFormat == VK_FORMAT_D24_UNORM_S8_UINT || hostFormat == VK_FORMAT_D32_SFLOAT_S8_UINT; + barrier.subresourceRange = {VK_IMAGE_ASPECT_DEPTH_BIT | (stencil ? VK_IMAGE_ASPECT_STENCIL_BIT : 0u), 0, 1, 0, 1}; context.Resolved(&DeviceFunctions::cmdPipelineBarrier, "vkCmdPipelineBarrier")(commands, VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, VK_PIPELINE_STAGE_TRANSFER_BIT, 0, 0, nullptr, 0, nullptr, 1, &barrier); if (batch) batch->SubmitAndWait(); else Recorder::CountBarriers(Recorder::CommandClass::Draw, 1); ``` Candidate focused log SHA256: `44b16b140df80c75c3bba5e8490affac1e3e2ee8a91ad00838172122e5436d08`; candidate DMA log SHA256: `63354a0084320880ec4253697bc889fd8a330dbdb3e011e6448e4fafc696bd4d`. The [exact tested reproducer, production patch, peer/candidate DMA logs, result summary and SHA256 manifest](https://gist.github.com/JJenkx/da0ac882288bc29842778339dc6602d5) are now available. The bundle contains the original validated fixture; its README explains the pinned integration and negative/candidate controls. AI-assisted: yes (Codex).
EagleBearerYS commented 2026-10-22 09:12:18 +00:00 (Migrated from github.com)

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


This PR's head is now 514643ab16.

@MarcZX10, by your review's points:

  1. The plane under a colour target: 2d4c1da61d asks for a host-only colour target over the plane before reading it, and 14e56205cf imports a plane that target drew over unproven. agc_driver_native_depth_aliased_stencil covers both.
  2. No-metadata sampling: 439557b223 accepts it only after an observed in-place expand, a draw with DB_RENDER_CONTROL's compress-disable bits. agc_driver_native_depth_expand_gate covers it.
  3. Validation: main against this head on one GitHub Linux runner (run) logs the same single VUID-VkDeviceCreateInfo-pNext-pNext on both, and this PR adds none. The previous head's VUID-VkImageMemoryBarrier-image-03320 is gone at this head.
  4. Unblocks lists PPSA07656 #8606 and PPSA02225 #4461, without Spirit of the Island.
  5. Order: #7233 → #7371 → this PR, agreed in #7371's thread, and this PR after #8223, proposed in #8223's thread. Depends on lists all four.

@milescoviello @xXPBSXx thanks for the Ghost of Tsushima Director's Cut (PPSA02225) runs, on the RTX 4070 Ti and on the RX 6400 with all of main's libs rebuilt. Both stop at the same CPU read of the stencil plane, which a 2-sample colour target covers. 514643ab16 doesn't read the plane when a host-only colour target covers it:

  • If that target is R8 with the depth's sample count over exactly the plane, and holds a known value (a fill it absorbed, a CMASK fast clear, or a clear with no draw since), the import takes that value as the stencil.
  • Otherwise the plane is imported unproven. Depth sampling and depth-only draws go on, and a stencil test or a sample of the plane refuses with the alias text and a line naming the colour target's state.

If you can run 514643ab16, the log shows which of those happens.

@BunnyFl thanks for the scripted-input run of The Grinch: Christmas Adventures (PPSA07656). The first level, walking, collecting presents and moving between rooms for 365 s with no AGC refusal is now in Tested and on the Unblocks line.

@JJenkx thanks for the RX 6650 XT runs with validation on, and for the patch.

  1. The sample shadow's barrier is fixed in 514643ab16: createSampleShadow's transition names the stencil aspect too when the host format has one. It's the same barrier your patch changes.
  2. Your one-argument change to the queued fill in enqueueDmaPacket is coming as a commit on top, credited to you with a Co-authored-by trailer, with a regression test of ours on that path. I'll link it here when it's up.
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6337124068 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9533#issuecomment-6337124068). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-22T09:12:18Z. --- This PR's head is now 514643ab16. @MarcZX10, by your review's points: 1. **The plane under a colour target:** 2d4c1da61d asks for a host-only colour target over the plane before reading it, and 14e56205cf imports a plane that target drew over unproven. `agc_driver_native_depth_aliased_stencil` covers both. 2. **No-metadata sampling:** 439557b223 accepts it only after an observed in-place expand, a draw with `DB_RENDER_CONTROL`'s compress-disable bits. `agc_driver_native_depth_expand_gate` covers it. 3. **Validation:** `main` against this head on one GitHub Linux runner ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39748126182)) logs the same single `VUID-VkDeviceCreateInfo-pNext-pNext` on both, and this PR adds none. The previous head's `VUID-VkImageMemoryBarrier-image-03320` is gone at this head. 4. **Unblocks** lists PPSA07656 #8606 and PPSA02225 #4461, without Spirit of the Island. 5. **Order:** #7233 → #7371 → this PR, agreed in #7371's thread, and this PR after #8223, proposed in #8223's thread. Depends on lists all four. @milescoviello @xXPBSXx thanks for the Ghost of Tsushima Director's Cut (PPSA02225) runs, on the RTX 4070 Ti and on the RX 6400 with all of `main`'s libs rebuilt. Both stop at the same CPU read of the stencil plane, which a 2-sample colour target covers. 514643ab16 doesn't read the plane when a host-only colour target covers it: - If that target is R8 with the depth's sample count over exactly the plane, and holds a known value (a fill it absorbed, a CMASK fast clear, or a clear with no draw since), the import takes that value as the stencil. - Otherwise the plane is imported unproven. Depth sampling and depth-only draws go on, and a stencil test or a sample of the plane refuses with the alias text and a line naming the colour target's state. If you can run 514643ab16, the log shows which of those happens. @BunnyFl thanks for the scripted-input run of The Grinch: Christmas Adventures (PPSA07656). The first level, walking, collecting presents and moving between rooms for 365 s with no AGC refusal is now in Tested and on the Unblocks line. @JJenkx thanks for the RX 6650 XT runs with validation on, and for the patch. 1. The sample shadow's barrier is fixed in 514643ab16: `createSampleShadow`'s transition names the stencil aspect too when the host format has one. It's the same barrier your patch changes. 2. Your one-argument change to the queued fill in `enqueueDmaPacket` is coming as a commit on top, credited to you with a `Co-authored-by` trailer, with a regression test of ours on that path. I'll link it here when it's up.
JJenkx commented 2026-10-22 09:21:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-22T09:21:29Z.


Thanks for incorporating the combined depth/stencil barrier fix. I expanded the queued-DMA regression on the earlier pinned stack (main d6eafa54, PR 5daa8cb7, plus the two reported production fixes):

  • RX 6650 XT / RADV, actual Khronos instance and device validation active.
  • All 12 D32S8 cases passed: 2/4/8 samples × clear 0/1 × compressed/uncompressed HTILE, with stencil checked. Three real 131072-byte production DMA fills per case; zero unavailable cases and zero VUIDs. The peer negative control still reproduces the external-GPU-write refusal.
  • The shorter, compiled fixture and raw evidence are in the existing reproducer gist, under the matrix-* filenames.

One harness caveat is preserved explicitly: CTest exited 0, but the wrapper rejected its raw confirmation count because shutdown stderr split one stdout line. matrix-original-result.json remains failed; matrix-review.json and the exact reviewer show the split reconstruction and three negative controls, confirming all 36 fills without modifying the raw log.

This does not validate current head 514643ab, latest main, a title, or FPS. The matrix fixture is available for adapting into your queued-fill regression; no competing fix PR from me. AI-assisted with Codex.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6337312249 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9533#issuecomment-6337312249). Originally posted by [JJenkx](https://github.com/JJenkx) on 2026-10-22T09:21:29Z. --- Thanks for incorporating the combined depth/stencil barrier fix. I expanded the queued-DMA regression on the **earlier pinned stack** (main `d6eafa54`, PR `5daa8cb7`, plus the two reported production fixes): - RX 6650 XT / RADV, actual Khronos instance and device validation active. - All **12 D32S8 cases** passed: 2/4/8 samples × clear 0/1 × compressed/uncompressed HTILE, with stencil checked. Three real 131072-byte production DMA fills per case; zero unavailable cases and zero VUIDs. The peer negative control still reproduces the external-GPU-write refusal. - The shorter, compiled fixture and raw evidence are in the [existing reproducer gist](https://gist.github.com/JJenkx/da0ac882288bc29842778339dc6602d5), under the `matrix-*` filenames. One harness caveat is preserved explicitly: CTest exited 0, but the wrapper rejected its raw confirmation count because shutdown stderr split one stdout line. `matrix-original-result.json` remains failed; `matrix-review.json` and the exact reviewer show the split reconstruction and three negative controls, confirming all 36 fills without modifying the raw log. This does **not** validate current head `514643ab`, latest main, a title, or FPS. The matrix fixture is available for adapting into your queued-fill regression; no competing fix PR from me. AI-assisted with Codex.
milescoviello commented 2026-10-22 09:43:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-22T09:43:48Z.


@EagleBearerYS Ghost of Tsushima (PPSA02225) on 514643ab16, warm and cold. Release libs at that commit, Linux, RTX 4070 Ti, NVIDIA 615.71.09, a pad script cycling through the menu buttons. The memory caps were 14 GB (warm) and 16 GB (cold), which was what the host had room for. Both runs stop early, so the caps didn't matter.

The earlier stop, the CPU read of the stencil plane 0x1546eb0000+0x870000, is gone. Both runs now stop on the depth plane of the same target instead: warm at 17 s, cold at 52 s, with the same two lines:

[gpu] native multisample depth 0x1544ed0000+0x1fe0000 aliases multisampled colour target 0x1544ed0000+0x1fe0000 (vk format 100, 2 samples), newest clear 0x00000000 0x00000000 0x00000000 0x00000000
compute shader 0x20001ef700: AGC graphics: native multisample depth or HTILE aliases a multisampled colour target whose samples are only on the host

What I read from them:

  • It's the same depth target as before. The depth range 0x1544ed0000+0x1fe0000 ends at 0x1546eb0000, where the stencil plane starts. So the title has a host-only 2-sample colour target over each of the two planes. The one over the depth plane is R32_SFLOAT (vk format 100) and covers exactly that range.
  • prepareDepthSampling checks the depth range first and refuses there, so neither run reaches the stencil plane's branch. The log can't show yet whether that plane would take the known R8 value or be imported unproven.
  • The depth alias's newest content is a clear to zero, 0.0 as a float. If that counts as "a clear with no draw since" in your stencil rule, the depth plane may be in the same position: a known value a colour target holds over the plane. I don't know which clear value the title gives that depth target, so I can't say whether 0.0 is its DB_DEPTH_CLEAR.

I'll run the next head the same way.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6337725902 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9533#issuecomment-6337725902). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-22T09:43:48Z. --- @EagleBearerYS Ghost of Tsushima (PPSA02225) on `514643ab16`, warm and cold. Release libs at that commit, Linux, RTX 4070 Ti, NVIDIA 615.71.09, a pad script cycling through the menu buttons. The memory caps were 14 GB (warm) and 16 GB (cold), which was what the host had room for. Both runs stop early, so the caps didn't matter. The earlier stop, the CPU read of the stencil plane `0x1546eb0000+0x870000`, is gone. Both runs now stop on the depth plane of the same target instead: warm at 17 s, cold at 52 s, with the same two lines: ``` [gpu] native multisample depth 0x1544ed0000+0x1fe0000 aliases multisampled colour target 0x1544ed0000+0x1fe0000 (vk format 100, 2 samples), newest clear 0x00000000 0x00000000 0x00000000 0x00000000 compute shader 0x20001ef700: AGC graphics: native multisample depth or HTILE aliases a multisampled colour target whose samples are only on the host ``` What I read from them: - It's the same depth target as before. The depth range `0x1544ed0000+0x1fe0000` ends at `0x1546eb0000`, where the stencil plane starts. So the title has a host-only 2-sample colour target over each of the two planes. The one over the depth plane is `R32_SFLOAT` (vk format 100) and covers exactly that range. - `prepareDepthSampling` checks the depth range first and refuses there, so neither run reaches the stencil plane's branch. The log can't show yet whether that plane would take the known R8 value or be imported unproven. - The depth alias's newest content is a clear to zero, 0.0 as a float. If that counts as "a clear with no draw since" in your stencil rule, the depth plane may be in the same position: a known value a colour target holds over the plane. I don't know which clear value the title gives that depth target, so I can't say whether 0.0 is its `DB_DEPTH_CLEAR`. I'll run the next head the same way. AI-assisted: yes (Claude Code)
JJenkx commented 2026-10-22 09:59:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-22T09:59:48Z.


I checked this against 514643ab16. The depth-plane stop is consistent with the code: prepareDepthSampling only accepts a known colour alias for index 2 (the separate stencil plane); index 0 (depth) is refused regardless of its clear value. CheckCurrent independently has the same stencil-only allowance, so accepting the initial import alone would still leave a later refusal.

For a depth-clear follow-up, the missing distinction is the target's clearDepth and HTILE state. The current shadow initializes depth from target.clearDepth, and the import requires HTILE to prove that value. The logged R32 colour clear of 0 does not establish those agree. Recording the target clear and HTILE layout/proof alongside this alias would distinguish a matching known-clear case from a conflicting one. Any implementation also needs to revalidate the alias after a subsequent draw/write; useful regression controls are matching versus mismatching depth clear, exact versus partial range, sample mismatch, and a draw after the clear.

This is source review only; I have not run Ghost of Tsushima or established that accepting this alias would advance the title. AI-assisted with Codex.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6338020932 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9533#issuecomment-6338020932). Originally posted by [JJenkx](https://github.com/JJenkx) on 2026-10-22T09:59:48Z. --- I checked this against `514643ab16`. The depth-plane stop is consistent with the code: `prepareDepthSampling` only accepts a known colour alias for index 2 (the separate stencil plane); index 0 (depth) is refused regardless of its clear value. `CheckCurrent` independently has the same stencil-only allowance, so accepting the initial import alone would still leave a later refusal. For a depth-clear follow-up, the missing distinction is the target's `clearDepth` and HTILE state. The current shadow initializes depth from `target.clearDepth`, and the import requires HTILE to prove that value. The logged R32 colour clear of 0 does not establish those agree. Recording the target clear and HTILE layout/proof alongside this alias would distinguish a matching known-clear case from a conflicting one. Any implementation also needs to revalidate the alias after a subsequent draw/write; useful regression controls are matching versus mismatching depth clear, exact versus partial range, sample mismatch, and a draw after the clear. This is source review only; I have not run Ghost of Tsushima or established that accepting this alias would advance the title. AI-assisted with Codex.
EagleBearerYS commented 2026-10-22 10:16:02 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-22T10:16:02Z.


@JJenkx a correction to my last comment: the queued DMA fill fix won't be a commit on this PR. enqueueDmaPacket's large-fill branch passes false for noteMetadata on main too (PacketMemory.cpp:307), so the fix goes to main as its own PR, and this PR inherits it from there. It's your finding and your patch, so you're welcome to open it yourself. If you'd rather we did, we'll open it in about 2 h with you as Co-authored-by, and a test on the real path: the single-sample DMA fast clear, with a fill over 64 KiB under APS5_PIPELINE_DMA. Thanks again for the 12-case matrix, and for the source review of the depth-plane stop above.

@milescoviello thanks for the warm and cold runs on 514643ab16. The stencil-plane read is gone, and the depth-plane alias you found is next: a follow-up stacked on this PR is coming for it. On your question about the 0.0 clear: as JJenkx's review above says, the colour target's clear alone doesn't show that the depth agrees with it. The follow-up has to tie it to the depth target's own clear value and HTILE before it can take it. Both runs are now in Tested, and the stop is under next stops.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6338321939 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9533#issuecomment-6338321939). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-22T10:16:02Z. --- @JJenkx a correction to my last comment: the queued DMA fill fix won't be a commit on this PR. `enqueueDmaPacket`'s large-fill branch passes `false` for `noteMetadata` on `main` too (`PacketMemory.cpp:307`), so the fix goes to `main` as its own PR, and this PR inherits it from there. It's your finding and your patch, so you're welcome to open it yourself. If you'd rather we did, we'll open it in about 2 h with you as `Co-authored-by`, and a test on the real path: the single-sample DMA fast clear, with a fill over 64 KiB under `APS5_PIPELINE_DMA`. Thanks again for the 12-case matrix, and for the source review of the depth-plane stop above. @milescoviello thanks for the warm and cold runs on 514643ab16. The stencil-plane read is gone, and the depth-plane alias you found is next: a follow-up stacked on this PR is coming for it. On your question about the 0.0 clear: as JJenkx's review above says, the colour target's clear alone doesn't show that the depth agrees with it. The follow-up has to tie it to the depth target's own clear value and HTILE before it can take it. Both runs are now in Tested, and the stop is under next stops.
EagleBearerYS commented 2026-10-22 10:23:32 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-22T10:23:32Z.


@JJenkx a correction on the test: the single-sample DMA fast clear doesn't show the gap, because that surface re-reads its HTILE words when it's bound, and only a native multisample target relies on the fill's note. A real red needs a native multisample depth target sampled on the driver's own device, which takes us about a day to build, so our PR would come then rather than in 2 h. You're still welcome to open it with your fixture; otherwise we'd adapt the matrix fixture from your gist, as you offered, with Co-authored-by credit.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6338458479 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9533#issuecomment-6338458479). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-22T10:23:32Z. --- @JJenkx a correction on the test: the single-sample DMA fast clear doesn't show the gap, because that surface re-reads its HTILE words when it's bound, and only a native multisample target relies on the fill's note. A real red needs a native multisample depth target sampled on the driver's own device, which takes us about a day to build, so our PR would come then rather than in 2 h. You're still welcome to open it with your fixture; otherwise we'd adapt the matrix fixture from your [gist](https://gist.github.com/JJenkx/da0ac882288bc29842778339dc6602d5), as you offered, with `Co-authored-by` credit.
EagleBearerYS commented 2026-10-22 10:33:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-22T10:33:08Z.


@JJenkx sorry for the back-and-forth, this is the last change: on main every metadata fill over a live native multisample target's HTILE already refuses (native multisample depth metadata fill transition is not implemented), so your fix matters only with this PR's fill-as-clear transition, and it goes into this PR as a commit with you as co-author, tested through your device-injection approach. So the main PR offer no longer applies, and there's nothing for you to open.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6338631030 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9533#issuecomment-6338631030). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-22T10:33:08Z. --- @JJenkx sorry for the back-and-forth, this is the last change: on `main` every metadata fill over a live native multisample target's HTILE already refuses (`native multisample depth metadata fill transition is not implemented`), so your fix matters only with this PR's fill-as-clear transition, and it goes into this PR as a commit with you as co-author, tested through your device-injection approach. So the `main` PR offer no longer applies, and there's nothing for you to open.
MarcZX10 commented 2026-10-22 11:37:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T11:37:12Z.

Review: CHANGES_REQUESTED


Rechecked current head 514643ab165a and the latest integration reports. The separate-stencil changes address the earlier access/refusal stops, the author has now recorded the title discussions and the #7233 → #7371 → #9533 / #8223 order, and the upstream merge is currently clean. This head is nevertheless 14 ahead / 119 behind current main (merge base a6dcea927), so it needs another current-main refresh.

The newly reported Radeon DMA matrix is from the older pinned stack (main d6eafa54 + PR 5daa8cb7 + two production fixes), not this current head or current main. The author’s latest comment says the metadata-fill/DMA gap will be fixed in this PR with a regression, so that work is still outstanding on 514643ab. Please land the coordinated fix in this PR, reproduce the negative control, and rerun the affected DMA + native multisample depth/stencil tests on the current head. Because this changes AGC behavior, the required main/PR comparison must use the same machine and GPU with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, and VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation; attach ctest -V evidence, confirm the layer was loaded, compare for new VUID- messages, and name the GPU/driver/OS. The current branch-mode overlap/conventions report has 0 convention errors (one inherited debt-length warning); I did not run a local GPU build.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5613534063 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9533#pullrequestreview-5613534063). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-22T11:37:12Z. **Review:** CHANGES_REQUESTED --- Rechecked current head `514643ab165a` and the latest integration reports. The separate-stencil changes address the earlier access/refusal stops, the author has now recorded the title discussions and the #7233 → #7371 → #9533 / #8223 order, and the upstream merge is currently clean. This head is nevertheless 14 ahead / 119 behind current `main` (merge base `a6dcea927`), so it needs another current-main refresh. The newly reported Radeon DMA matrix is from the older pinned stack (`main d6eafa54` + PR `5daa8cb7` + two production fixes), not this current head or current `main`. The author’s latest comment says the metadata-fill/DMA gap will be fixed in this PR with a regression, so that work is still outstanding on `514643ab`. Please land the coordinated fix in this PR, reproduce the negative control, and rerun the affected DMA + native multisample depth/stencil tests on the current head. Because this changes AGC behavior, the required `main`/PR comparison must use the same machine and GPU with `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1`, and `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`; attach `ctest -V` evidence, confirm the layer was loaded, compare for new `VUID-` messages, and name the GPU/driver/OS. The current branch-mode overlap/conventions report has 0 convention errors (one inherited debt-length warning); I did not run a local GPU build.
EagleBearerYS commented 2026-10-22 12:42:21 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-22T12:42:21Z.


@MarcZX10 thanks. By your review's points:

  1. The metadata-fill fix is in this PR: dd7ad4638a, Co-authored-by: JJenkx, with 6bc1899d50's driver-path test. The negative control holds: agc_driver_native_depth_driver_queued_fill fails 3 of 3 with only dd7ad4638a's driver hunk reverted ("AGC graphics: external GPU writes over native multisample depth are not implemented"), and passes 10 of 10 with it (run).
  2. Current main: 8b3a6ba88d is merged in (1e07a659ed), clean, and the PR's changed lines are unchanged; only their context moved. The DMA, DCC clear and native multisample depth and stencil tests, 13 in all, pass 10 of 10 on both runners (run).
  3. Validation, main against this head, in that run, on one GitHub Linux runner: Ubuntu 24.04.5, llvmpipe (Mesa 25.2.8, LLVM 20.1.2), with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation and ctest -V. main's arm runs the 7 of the 13 tests it has, and this head's arm runs all 13. The layer loads in both runs, with no "was not found" line. Both log only VUID-VkDeviceCreateInfo-pNext-pNext, and this head adds none.

All three are in Tested.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6341016224 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9533#issuecomment-6341016224). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-22T12:42:21Z. --- @MarcZX10 thanks. By your review's points: 1. **The metadata-fill fix** is in this PR: dd7ad4638a, `Co-authored-by: JJenkx`, with 6bc1899d50's driver-path test. The negative control holds: `agc_driver_native_depth_driver_queued_fill` fails 3 of 3 with only dd7ad4638a's driver hunk reverted ("AGC graphics: external GPU writes over native multisample depth are not implemented"), and passes 10 of 10 with it ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39769598929)). 2. **Current `main`:** 8b3a6ba88d is merged in (1e07a659ed), clean, and the PR's changed lines are unchanged; only their context moved. The DMA, DCC clear and native multisample depth and stencil tests, 13 in all, pass 10 of 10 on both runners ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/39773659774)). 3. **Validation, `main` against this head**, in that run, on one GitHub Linux runner: Ubuntu 24.04.5, llvmpipe (Mesa 25.2.8, LLVM 20.1.2), with `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1`, `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation` and `ctest -V`. `main`'s arm runs the 7 of the 13 tests it has, and this head's arm runs all 13. The layer loads in both runs, with no "was not found" line. Both log only `VUID-VkDeviceCreateInfo-pNext-pNext`, and this head adds none. All three are in Tested.
EagleBearerYS commented 2026-10-22 12:42:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-22T12:42:23Z.


@JJenkx your fix is in this PR as dd7ad4638a, with you as co-author, and 6bc1899d50 adds the test seam your approach uses, friend struct DriverTestAccess;, so the test runs native multisample depth through the driver's own device. agc_driver_native_depth_driver_queued_fill fails with only the one-argument change reverted ("external GPU writes over native multisample depth are not implemented") and passes with it, for clears 0 and 1. Thanks again for the fix and the matrix.

One question from writing the test: your matrix did three 131072-byte fills per case. On this PR, two HTILE fills of the same pattern back to back refuse ("overlapping native multisample depth clear transitions are not implemented"), with or without the fix. If yours were back to back and passed in your fixture, what did it do between them?

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6341016888 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9533#issuecomment-6341016888). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-22T12:42:23Z. --- @JJenkx your fix is in this PR as dd7ad4638a, with you as co-author, and 6bc1899d50 adds the test seam your approach uses, `friend struct DriverTestAccess;`, so the test runs native multisample depth through the driver's own device. `agc_driver_native_depth_driver_queued_fill` fails with only the one-argument change reverted ("external GPU writes over native multisample depth are not implemented") and passes with it, for clears 0 and 1. Thanks again for the fix and the matrix. One question from writing the test: your matrix did three 131072-byte fills per case. On this PR, two HTILE fills of the same pattern back to back refuse ("overlapping native multisample depth clear transitions are not implemented"), with or without the fix. If yours were back to back and passed in your fixture, what did it do between them?
milescoviello commented 2026-10-22 13:00:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-22T13:00:09Z.


@EagleBearerYS Ghost of Tsushima (PPSA02225) on the new head 1e07a659ed, the same way as before: release libs at that commit, Linux, RTX 4070 Ti, NVIDIA 615.71.09, 16 GB cap, warm and cold. Both runs stop at the same place as on 514643ab16, warm at 53 s and cold at 48 s, with the same lines:

[gpu] native multisample depth 0x1544ed0000+0x1fe0000 aliases multisampled colour target 0x1544ed0000+0x1fe0000 (vk format 100, 2 samples), newest clear 0x00000000 0x00000000 0x00000000 0x00000000
compute shader 0x20001ef700: AGC graphics: native multisample depth or HTILE aliases a multisampled colour target whose samples are only on the host

So the new commits don't change this title's path, which fits the depth-plane alias being left for your follow-up. I'll run that one when it's up.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6341367927 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9533#issuecomment-6341367927). Originally posted by [milescoviello](https://github.com/milescoviello) on 2026-10-22T13:00:09Z. --- @EagleBearerYS Ghost of Tsushima (PPSA02225) on the new head `1e07a659ed`, the same way as before: release libs at that commit, Linux, RTX 4070 Ti, NVIDIA 615.71.09, 16 GB cap, warm and cold. Both runs stop at the same place as on `514643ab16`, warm at 53 s and cold at 48 s, with the same lines: ``` [gpu] native multisample depth 0x1544ed0000+0x1fe0000 aliases multisampled colour target 0x1544ed0000+0x1fe0000 (vk format 100, 2 samples), newest clear 0x00000000 0x00000000 0x00000000 0x00000000 compute shader 0x20001ef700: AGC graphics: native multisample depth or HTILE aliases a multisampled colour target whose samples are only on the host ``` So the new commits don't change this title's path, which fits the depth-plane alias being left for your follow-up. I'll run that one when it's up. AI-assisted: yes (Claude Code)
EagleBearerYS commented 2026-10-22 13:06:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-22T13:06:17Z.


@milescoviello thanks for confirming the stop is unchanged on 1e07a659ed. That depth-plane alias is #9742's, stacked on this PR, and it's up now. With a depth-only HTILE whose every word proves DB_DEPTH_CLEAR, its import accepts one colour target over the depth plane with the target's sample count, like the title's 2-sample R32_SFLOAT one: depth reads the clear value there, never the plane's bytes. A draw or clear into that colour target afterwards, or a second one over the plane, still refuses at the next sample. If you can run #9742's head, 219e925509, the same way, warm and cold, we'd like to know where it stops next. It's on this PR's previous head, which takes this title's path the same way.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6341494789 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9533#issuecomment-6341494789). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-22T13:06:17Z. --- @milescoviello thanks for confirming the stop is unchanged on 1e07a659ed. That depth-plane alias is #9742's, stacked on this PR, and it's up now. With a depth-only HTILE whose every word proves `DB_DEPTH_CLEAR`, its import accepts one colour target over the depth plane with the target's sample count, like the title's 2-sample `R32_SFLOAT` one: depth reads the clear value there, never the plane's bytes. A draw or clear into that colour target afterwards, or a second one over the plane, still refuses at the next sample. If you can run #9742's head, 219e925509, the same way, warm and cold, we'd like to know where it stops next. It's on this PR's previous head, which takes this title's path the same way.
jotitadev commented 2026-10-23 02:06:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-23T02:06:48Z.

Review: COMMENTED


Apple GPU / MoltenVK run of 1582cf6cc0. The two new driver-path tests check every case and pass it. Then the process aborts at exit on macOS, when the driver singleton tears down the device the test handed it.

Machine: Apple M2 Max, macOS 27.2, x86_64 under Rosetta 2. Vulkan loader + MoltenVK 1.4.2 (Vulkan SDK 1.4.363.0), and again against MoltenVK main + SPIRV-Cross #2704. Release, BUILD_TESTING=ON.

Base/method: PR #8658 feat/macos-port @ c5fa39620a (current main plus the macOS port), not main, because main does not build on macOS. This head was merged onto it with git merge-tree, with no conflicts, and the ':!docs' diff applied. Full rebuild first. This was done both on its own (with #9717's test added) and together with #9717, #9443 and #7705.

Results on both drivers, every run:

  • agc_driver_native_depth_retirement, _clears, _clear_refusals, _bda_clear, _stencil, _separate_stencil, _aliased_stencil and _expand_gate pass, and so does agc_driver_native_multisample_depth.
  • agc_driver_native_depth_driver_path and agc_driver_native_depth_driver_queued_fill end as Subprocess aborted, after their summary lines:
Native depth on the driver's device cases checked=4 unavailable=2
libc++abi: terminating due to uncaught exception of type std::__1::system_error: recursive_mutex lock failed: Invalid argument

The macOS crash report has the stack:

exit -> __cxa_finalize_ranges
  -> AgcDriver::DriverDetail::Driver::~Driver -> Driver::stop -> DevicePointer::Reset
  -> AgcDriver::VulkanDevice::~VulkanDevice -> VulkanDevice::State::~State -> std::terminate

CheckDriverPath passes its device to the driver with DriverTestAccess::UseDevice and never takes it back. So the last reference goes away in the driver singleton's destructor at exit, and ~State runs after function-local statics it locks have already been destroyed. glibc lets you lock a destroyed mutex; macOS's pthread returns EINVAL. This is the same kind of failure as #8658's a036c56b8 (GuestMemory::GpuMutex). As a probe, I changed surfacesMutex() in DepthSurface.cpp to a mutex that is never freed. The abort then moved to mutex lock failed: Invalid argument, a plain std::mutex, in the same ~State. So more than one static is involved. A fix in the test, for example releasing the driver's device before CheckDriverPath returns, might avoid all of them. I haven't tried that.

Queued fill on macOS: the probe reports host imports resolve write protection: no ... imported ranges stay watched, and this file forces Watch outside Windows. So the queued case does not skip here. All its cases run and pass, at 2 and 4 samples (samples=2/4 clear=0/1: cleared by a queued DMA_DATA fill of 128 KiB from its HTILE through the driver and sampled). The abort comes only after that.

Full ^agc suite (877 tests, this PR with #9717, #9443 and #7705), both drivers: the failures from the #8658 base, plus these two, plus #7705's depth_plane_sampling_evicting, which I reported there.

GPUs tested: Apple M2 Max (MoltenVK 1.4.2; and 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:5623098779 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9533#pullrequestreview-5623098779). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-23T02:06:48Z. **Review:** COMMENTED --- Apple GPU / MoltenVK run of `1582cf6cc0`. The two new driver-path tests check every case and pass it. Then the process aborts at exit on macOS, when the driver singleton tears down the device the test handed it. **Machine:** Apple M2 Max, macOS 27.2, x86_64 under Rosetta 2. Vulkan loader + MoltenVK 1.4.2 (Vulkan SDK 1.4.363.0), and again against MoltenVK main + SPIRV-Cross #2704. Release, `BUILD_TESTING=ON`. **Base/method:** PR #8658 `feat/macos-port` @ `c5fa39620a` (current `main` plus the macOS port), not `main`, because `main` does not build on macOS. This head was merged onto it with `git merge-tree`, with no conflicts, and the `':!docs'` diff applied. Full rebuild first. This was done both on its own (with #9717's test added) and together with #9717, #9443 and #7705. **Results** on both drivers, every run: - `agc_driver_native_depth_retirement`, `_clears`, `_clear_refusals`, `_bda_clear`, `_stencil`, `_separate_stencil`, `_aliased_stencil` and `_expand_gate` pass, and so does `agc_driver_native_multisample_depth`. - `agc_driver_native_depth_driver_path` and `agc_driver_native_depth_driver_queued_fill` end as `Subprocess aborted`, after their summary lines: ``` Native depth on the driver's device cases checked=4 unavailable=2 libc++abi: terminating due to uncaught exception of type std::__1::system_error: recursive_mutex lock failed: Invalid argument ``` The macOS crash report has the stack: ``` exit -> __cxa_finalize_ranges -> AgcDriver::DriverDetail::Driver::~Driver -> Driver::stop -> DevicePointer::Reset -> AgcDriver::VulkanDevice::~VulkanDevice -> VulkanDevice::State::~State -> std::terminate ``` `CheckDriverPath` passes its device to the driver with `DriverTestAccess::UseDevice` and never takes it back. So the last reference goes away in the driver singleton's destructor at exit, and `~State` runs after function-local statics it locks have already been destroyed. glibc lets you lock a destroyed mutex; macOS's pthread returns `EINVAL`. This is the same kind of failure as #8658's `a036c56b8` (`GuestMemory::GpuMutex`). As a probe, I changed `surfacesMutex()` in `DepthSurface.cpp` to a mutex that is never freed. The abort then moved to `mutex lock failed: Invalid argument`, a plain `std::mutex`, in the same `~State`. So more than one static is involved. A fix in the test, for example releasing the driver's device before `CheckDriverPath` returns, might avoid all of them. I haven't tried that. **Queued fill on macOS:** the probe reports `host imports resolve write protection: no ... imported ranges stay watched`, and this file forces `Watch` outside Windows. So the queued case does not skip here. All its cases run and pass, at 2 and 4 samples (`samples=2/4 clear=0/1: cleared by a queued DMA_DATA fill of 128 KiB from its HTILE through the driver and sampled`). The abort comes only after that. **Full `^agc` suite** (877 tests, this PR with #9717, #9443 and #7705), both drivers: the failures from the #8658 base, plus these two, plus #7705's `depth_plane_sampling_evicting`, which I reported there. GPUs tested: Apple M2 Max (MoltenVK 1.4.2; and 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-29 22:21:04 +00:00 (Migrated from github.com)

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

Review: CHANGES_REQUESTED


Re-checked — new head, changes requested

The new fill-tracking fix has focused regression evidence, but the required validation-layer comparison does not include that production change.

What I ran

  • Exact PR head: 6eb141ce5fc9624833a5e05aa42f9f1a2e5fa4d0; PR base: 102b7a5cf0ed98dd94d9da76862eb1ee7865a932; live main: 4c8cff191609bc5f28bf9ee2f93672b531285aa4.
  • Environment: Linux x86_64, Git 2.39.5, Python 3.11.2. No build or CTest was run locally.
  • The current-main merge preview is clean. None of the PR-touched files changed on main since the branch's base, so I am not requesting a rebase solely for branch age.
git diff --check upstream/main...refs/review/pr-9533-head
python3 tools/check_conventions.py --base upstream/main --head refs/review/pr-9533-head
git merge-tree --write-tree upstream/main refs/review/pr-9533-head

Results

Check Result
Diff check Passed; no output
Conventions Exit 0; one debt-length warning on the existing native-depth debt entry (3,990 characters)
Live-main merge preview Clean; tree 9e3c41d8260d4afea07672942ebaf734cdc04a71
Focused regression tests The PR report says the new 5343d0a8da cases pass on Linux CI, with one expected lavapipe skip, and on the cloud lavapipe run 100/100 native-depth tests. These are reported results, not runs I performed.
Negative control The report says the new cases fail on the previous head a7697941f3 with the prior incomplete-store refusals; not independently reproduced here.
Required validation comparison The described main/PR validation-layer run predates 5343d0a8da; I found no corresponding run for that new production change in the current report.
Hosted CI on current head Windows was in progress; Linux product, register-context, relinker, ASan and write-watch jobs were skipped. Eligibility, conventions, labels and report passed.
Unedited local check output
diff_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: 3990 characters
1 findings, 0 errors; GitHub shows at most 10 error annotations, the job summary lists all
conventions_exit=0
9e3c41d8260d4afea07672942ebaf734cdc04a71

Findings

Blocking

  • Run the required validation comparison for the new behavior. Commit 5343d0a8da changes when tracked HTILE and stencil-plane stores qualify a clear. Please run the same relevant focused AGC tests on current main and this exact head using ctest -V, VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, ANYPS5_NO_SHADER_CACHE=1 and ANYPS5_REQUIRE_VULKAN=1. Report the exact base/head, GPU/driver/OS, layer-load confirmation, and whether the change adds any VUID- messages. The existing validation comparison covers an earlier head, while the new commit's reported tests do not identify a validation-layer comparison against current main.

Non-blocking

  • The current-main merge preview is clean, and no PR-touched path changed on main after the branch base. I found no reason to request another rebase.
  • Current-head Windows CI was still running; the Linux product and specialized jobs were skipped.

Sources

Not verified

I did not build, run CTest, or run GPU/title tests locally. The focused and negative-control results above are author-reported. The current Windows workflow had not completed.

To get this to a good state

Add the current-main/current-head validation-layer comparison and its exact test output to the report. I will rerun the same non-build checks and reassess the new head and CI before changing this review.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5705722545 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9533#pullrequestreview-5705722545). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T22:21:04Z. **Review:** CHANGES_REQUESTED --- # Re-checked — new head, changes requested The new fill-tracking fix has focused regression evidence, but the required validation-layer comparison does not include that production change. ## What I ran - Exact PR head: `6eb141ce5fc9624833a5e05aa42f9f1a2e5fa4d0`; PR base: `102b7a5cf0ed98dd94d9da76862eb1ee7865a932`; live `main`: `4c8cff191609bc5f28bf9ee2f93672b531285aa4`. - Environment: Linux x86_64, Git 2.39.5, Python 3.11.2. No build or CTest was run locally. - The current-main merge preview is clean. None of the PR-touched files changed on `main` since the branch's base, so I am not requesting a rebase solely for branch age. ```sh git diff --check upstream/main...refs/review/pr-9533-head python3 tools/check_conventions.py --base upstream/main --head refs/review/pr-9533-head git merge-tree --write-tree upstream/main refs/review/pr-9533-head ``` ## Results | Check | Result | |---|---| | Diff check | Passed; no output | | Conventions | Exit 0; one `debt-length` warning on the existing native-depth debt entry (3,990 characters) | | Live-main merge preview | Clean; tree `9e3c41d8260d4afea07672942ebaf734cdc04a71` | | Focused regression tests | The PR report says the new `5343d0a8da` cases pass on Linux CI, with one expected lavapipe skip, and on the cloud lavapipe run 100/100 native-depth tests. These are reported results, not runs I performed. | | Negative control | The report says the new cases fail on the previous head `a7697941f3` with the prior incomplete-store refusals; not independently reproduced here. | | Required validation comparison | The described `main`/PR validation-layer run predates `5343d0a8da`; I found no corresponding run for that new production change in the current report. | | Hosted CI on current head | Windows was in progress; Linux product, register-context, relinker, ASan and write-watch jobs were skipped. Eligibility, conventions, labels and report passed. | <details> <summary>Unedited local check output</summary> ```text diff_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: 3990 characters 1 findings, 0 errors; GitHub shows at most 10 error annotations, the job summary lists all conventions_exit=0 9e3c41d8260d4afea07672942ebaf734cdc04a71 ``` </details> ## Findings ### Blocking - **Run the required validation comparison for the new behavior.** Commit `5343d0a8da` changes when tracked HTILE and stencil-plane stores qualify a clear. Please run the same relevant focused AGC tests on current `main` and this exact head using `ctest -V`, `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, `ANYPS5_NO_SHADER_CACHE=1` and `ANYPS5_REQUIRE_VULKAN=1`. Report the exact base/head, GPU/driver/OS, layer-load confirmation, and whether the change adds any `VUID-` messages. The existing validation comparison covers an earlier head, while the new commit's reported tests do not identify a validation-layer comparison against current `main`. ### Non-blocking - The current-main merge preview is clean, and no PR-touched path changed on `main` after the branch base. I found no reason to request another rebase. - Current-head Windows CI was still running; the Linux product and specialized jobs were skipped. ## Sources - [The new fill-tracking code at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/6eb141ce5fc9624833a5e05aa42f9f1a2e5fa4d0/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp) - [The new regression tests at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/6eb141ce5fc9624833a5e05aa42f9f1a2e5fa4d0/core/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cpp) - [AGC validation requirements on current `main`](https://github.com/boykopovar/AnyPS5/blob/4c8cff191609bc5f28bf9ee2f93672b531285aa4/CONTRIBUTING.md#L70) - [Reported run for the new fill-tracking cases](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40897351673) ## Not verified I did not build, run CTest, or run GPU/title tests locally. The focused and negative-control results above are author-reported. The current Windows workflow had not completed. ## To get this to a good state Add the current-main/current-head validation-layer comparison and its exact test output to the report. I will rerun the same non-build checks and reassess the new head and CI before changing this review.
MarcZX10 commented 2026-10-30 00:30:51 +00:00 (Migrated from github.com)

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

Review: APPROVED


Re-checked — validation evidence, looks good

The author added the missing validation-layer comparison for head 6eb141ce5fc9624833a5e05aa42f9f1a2e5fa4d0, including the sampled-read case that blocked my previous review.

What I ran

Reviewed exact PR head 6eb141ce5fc9624833a5e05aa42f9f1a2e5fa4d0 against current main at 673fa865f418876429bd871fdda2ab15ac1a0831; the merge preview was clean (tree bcfa0c7daebf1f919bcc52232975d8d79ec226d2). 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-9533-current
git diff --check 673fa865f418876429bd871fdda2ab15ac1a0831...refs/review/pr-9533-current
python3 tools/check_conventions.py --base 673fa865f418876429bd871fdda2ab15ac1a0831 --head refs/review/pr-9533-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
PR hosted checks Eligibility, conventions, labels, report, and Windows passed; Linux product and specialized jobs were skipped
Author's validation-layer comparison Completed successfully on Linux for base 102b7a5cf0ed98dd94d9da76862eb1ee7865a932 and this exact PR head; both arms loaded the layer and reported the same existing VUID, with no new VUID
Author's sampled-read check agc_driver_sample_multisample_target passed on both comparison arms; a separate run passed 10/10 on the PR head

The validation and sampled-read workflow runs are here, here, and here. I verified that each run's commit is a child of the exact PR head and adds only the verification harness files; I did not run those tests myself.

Unedited local check output
bcfa0c7daebf1f919bcc52232975d8d79ec226d2
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: 3990 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 validation comparisons used the PR's base 102b7a5cf0ed98dd94d9da76862eb1ee7865a932; current main is 673fa865f418876429bd871fdda2ab15ac1a0831. The intervening changes on the PR-touched paths are limited to AGC test registration/gating and the debt document; the current-base merge preview is clean. The reported runtime and validation results are author-provided CI evidence.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5706703556 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9533#pullrequestreview-5706703556). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-30T00:30:51Z. **Review:** APPROVED --- # Re-checked — validation evidence, looks good The author added the missing validation-layer comparison for head `6eb141ce5fc9624833a5e05aa42f9f1a2e5fa4d0`, including the sampled-read case that blocked my previous review. ## What I ran Reviewed exact PR head `6eb141ce5fc9624833a5e05aa42f9f1a2e5fa4d0` against current `main` at `673fa865f418876429bd871fdda2ab15ac1a0831`; the merge preview was clean (tree `bcfa0c7daebf1f919bcc52232975d8d79ec226d2`). 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-9533-current git diff --check 673fa865f418876429bd871fdda2ab15ac1a0831...refs/review/pr-9533-current python3 tools/check_conventions.py --base 673fa865f418876429bd871fdda2ab15ac1a0831 --head refs/review/pr-9533-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 | | PR hosted checks | Eligibility, conventions, labels, report, and Windows passed; Linux product and specialized jobs were skipped | | Author's validation-layer comparison | Completed successfully on Linux for base `102b7a5cf0ed98dd94d9da76862eb1ee7865a932` and this exact PR head; both arms loaded the layer and reported the same existing VUID, with no new VUID | | Author's sampled-read check | `agc_driver_sample_multisample_target` passed on both comparison arms; a separate run passed 10/10 on the PR head | The validation and sampled-read workflow runs are [here](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40966175820), [here](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40969575596), and [here](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40969373583). I verified that each run's commit is a child of the exact PR head and adds only the verification harness files; I did not run those tests myself. <details> <summary>Unedited local check output</summary> ```text bcfa0c7daebf1f919bcc52232975d8d79ec226d2 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: 3990 characters 1 findings, 0 errors; GitHub shows at most 10 error annotations, the job summary lists all ``` </details> ## Sources - [Validation-comparison report for the exact PR head](https://github.com/boykopovar/AnyPS5/blob/6eb141ce5fc9624833a5e05aa42f9f1a2e5fa4d0/README.md) - [Pinned verification workflow configuration](https://github.com/EagleBearerYS/AnyPS5/blob/26299ec1ce982c1f7efc99d7335b5485a033ccb1/.github/verify/config.sh) ## Not verified I did not build or run GPU tests locally, and no PS5-console behavior was tested. The validation comparisons used the PR's base `102b7a5cf0ed98dd94d9da76862eb1ee7865a932`; current `main` is `673fa865f418876429bd871fdda2ab15ac1a0831`. The intervening changes on the PR-touched paths are limited to AGC test registration/gating and the debt document; the current-base merge preview is clean. The reported runtime and validation results are author-provided CI evidence.
MarcZX10 commented 2026-11-01 00:51:46 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-01T00:51:46Z.

Review: COMMENTED


Re-checked — new head, approval withheld pending GPU evidence

The new guard is conservative and documented, but the exact-head pending-HTILE path has not run on a GPU, so I cannot approve this updated head yet.

What I ran

Reviewed head 6d0ff6cd85d9694864285ff684d9ee453107db6b against base 0836dfdf4fecb1e0326100c490476e15d3a74da5. The PR stack preview against current main (cae3edaf11db8c6c1694c2d772d07c079755a71f) is clean. Environment: Linux x86_64, Python 3.11.2, Git 2.39.5; no local build or C++ test was run.

python3 /marc/AnyPS5/tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 9533
gh api repos/boykopovar/AnyPS5/contents/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp?ref=6d0ff6cd85d9694864285ff684d9ee453107db6b
gh api repos/boykopovar/AnyPS5/commits/a6b6274a4d8ea91802b232af593702fe2b1f7ac6

Results

Check Result
Diff check and conventions Passed; conventions reported only the existing debt-entry length warning
Current-main merge preview Passed; clean
Hosted Windows build/check Passed
Hosted Linux and specialized jobs Skipped
Exact-head GPU regression Not run on the available hosted jobs; the GPU-specific path therefore remains unverified here
ABI audit and test-quality helper Unavailable in the isolated PR snapshot; these are not applicable to the behavior change itself
Unedited convention output
docs/dev/debt/libSceAgcDriver.md:62: 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: 3990 characters
1 findings, 0 errors; GitHub shows at most 10 error annotations, the job summary lists all

Findings

Blocking

None identified in the source review. The guard refuses a metadata fill while an HTILE clear dispatch is pending, and the added regression exercises that refusal.

Non-blocking

The exact-head regression did not execute on a GPU: hosted Linux and specialized jobs were skipped, and Windows CI passed without providing GPU execution. Earlier GPU runs described in the PR body are on earlier heads and do not verify this new guard.

Sources

Not verified

No local build, CTest, GPU execution, console behavior, or exact-head validation-layer run was performed. The live dependency report also shows that several stacked dependency PR heads have advanced beyond the revisions included here; the target PR itself merges cleanly into current main.

To get this to a good state

Please attach a focused GPU run of the new pending-HTILE regression on this exact head, including its result and validation-layer output if available. I will recheck the same path and current dependencies before deciding on approval.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5725744556 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9533#pullrequestreview-5725744556). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-01T00:51:46Z. **Review:** COMMENTED --- # Re-checked — new head, approval withheld pending GPU evidence The new guard is conservative and documented, but the exact-head pending-HTILE path has not run on a GPU, so I cannot approve this updated head yet. ## What I ran Reviewed head `6d0ff6cd85d9694864285ff684d9ee453107db6b` against base `0836dfdf4fecb1e0326100c490476e15d3a74da5`. The PR stack preview against current `main` (`cae3edaf11db8c6c1694c2d772d07c079755a71f`) is clean. Environment: Linux x86_64, Python 3.11.2, Git 2.39.5; no local build or C++ test was run. ```sh python3 /marc/AnyPS5/tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 9533 gh api repos/boykopovar/AnyPS5/contents/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp?ref=6d0ff6cd85d9694864285ff684d9ee453107db6b gh api repos/boykopovar/AnyPS5/commits/a6b6274a4d8ea91802b232af593702fe2b1f7ac6 ``` ## Results | Check | Result | |---|---| | Diff check and conventions | Passed; conventions reported only the existing debt-entry length warning | | Current-main merge preview | Passed; clean | | Hosted Windows build/check | Passed | | Hosted Linux and specialized jobs | Skipped | | Exact-head GPU regression | Not run on the available hosted jobs; the GPU-specific path therefore remains unverified here | | ABI audit and test-quality helper | Unavailable in the isolated PR snapshot; these are not applicable to the behavior change itself | <details><summary>Unedited convention output</summary> ```text docs/dev/debt/libSceAgcDriver.md:62: 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: 3990 characters 1 findings, 0 errors; GitHub shows at most 10 error annotations, the job summary lists all ``` </details> ## Findings ### Blocking None identified in the source review. The guard refuses a metadata fill while an HTILE clear dispatch is pending, and the added regression exercises that refusal. ### Non-blocking The exact-head regression did not execute on a GPU: hosted Linux and specialized jobs were skipped, and Windows CI passed without providing GPU execution. Earlier GPU runs described in the PR body are on earlier heads and do not verify this new guard. ## Sources - [Updated guard at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/6d0ff6cd85d9694864285ff684d9ee453107db6b/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp) - [Regression case at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/6d0ff6cd85d9694864285ff684d9ee453107db6b/core/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cpp) - [Recorded unsupported transition at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/6d0ff6cd85d9694864285ff684d9ee453107db6b/docs/dev/debt/libSceAgcDriver.md) ## Not verified No local build, CTest, GPU execution, console behavior, or exact-head validation-layer run was performed. The live dependency report also shows that several stacked dependency PR heads have advanced beyond the revisions included here; the target PR itself merges cleanly into current `main`. ## To get this to a good state Please attach a focused GPU run of the new pending-HTILE regression on this exact head, including its result and validation-layer output if available. I will recheck the same path and current dependencies before deciding on approval.
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!9533
No description provided.