fix(agc): preserve authoritative stencil plane ownership #19428

Open
IvanFogel wants to merge 17 commits from upstream-pr/19428 into main
IvanFogel commented 2026-11-13 09:20:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by IvanFogel on 2026-11-13T09:20:43Z.


What

November 22, after the cross-identity depth retirement change. Standalone dff79672b07e includes main 70cca973b49f and preserves the stencil patch in all four files. It passed 30/30 (24 real Vulkan, 6 host) focused executions. Main passed all 16/16 (10 real Vulkan, 6 host) shared controls. The selection covers stencil ownership transfer, clear, copy failure, CPU writes, read-only owners and retirement across depth identities. Clear and failed-copy cases were also repeated with guest write watching disabled.

A private composition 167ff94d5e0f with the current #15058, f4a1b9408504, passed 31/31 (24 real Vulkan, 7 host). Its owner-transfer resolution retains the peer's depth snapshot at the compatible-owner handoff, including a newly cleared destination, and preserves stencil publication after successful copy work. The three color-memo claim cases reported failing on the previous peer head (disabled, enabled and verify) passed on main, standalone and this composition. Coverage also includes the peer's committed-memory and guarded multisample-owner checks. The four compared shared-depth cases require the Windows direct-mapping backend. The earlier Win64 Wine result below retains its original revision. The current combination still needs native Windows GPU qualification and a landing-order agreement. This PR stays Draft.

Every GPU case used an NVIDIA GeForce RTX 3070 Ti, driver 620.73.04, on CachyOS Linux with Khronos validation 1.4.363. The verbose logs recorded 25 layer insertions on the standalone commit and 11 on main, with 25 on the composition. All selected hardware runs completed without skips or VUID or synchronization diagnostics. The seven public-header and skip checks passed, and 11 AGC headers compiled independently. Shader caching was disabled in every GPU case.

November 21 refresh. I integrated main 6f5c412af786 into this branch. The standalone candidate 7439af5a0ef5 passed all 19 focused Linux GPU executions. Those cover stencil ownership transfer, clear, failed copy, stale and fresh CPU writes, D16 depth, independent planes and read-only owners. Two executions repeated clear and copy-failure with guest write watching disabled. The same machine passed the 5 shared depth and stencil controls on main.

This PR is still Draft and depends on #15058. The earlier Windows shared-backing joint test ran under Wine. A native Windows hardware run combining these changes and agreement on landing order are still outstanding.

Test machine: NVIDIA GeForce RTX 3070 Ti, driver 620.73.04, CachyOS Linux, GCC 16.2.1, Khronos validation 1.4.363. Every GPU case required real Vulkan and logged validation-layer insertion (19 insertions on this branch). Both hardware runs had zero skips and zero VUID or synchronization diagnostics. The six skip-audit cases and public-header audit passed, and 11 AGC headers compiled independently. The shader cache was disabled in every GPU case.

Joint runtime with #15058, November 20. I combined the then-submitted head (f9a5bdf969) with main fd7fe562ed and #15058 at 8378a3d27c in a local checkout (1cefc2a882). The shared ownership-transfer function takes the previous owner's snapshot for compatible depth surfaces, including a newly cleared depth surface. On the stencil path it transfers the published bytes, baseline and generation before retiring the previous owner.

Retain compatible authoritative stencil publication, generation, pending clear state and the unwatched guest-memory baseline when shared planes change ownership. Fresh and reused read-only owners preserve CPU/GPU write order; potentially throwing copy and baseline work finishes before the source is retired.

Earlier integration note (superseded selector dependency)

Draft: proposed landing order is #15058 first; no author agreement is claimed. The submitted branch contains the stencil fix, its regressions and the one-line #20367 validation prerequisite. A separate combined branch preserves #15058's depth snapshots and performs stencil publication transfer after potentially throwing copy work, including created/cleared destinations. That composition is tested on Linux; it is evidence for the eventual rebase, not an import of the dependency into this PR.

Current Draft integration gate: proposed #15058 first, with no author agreement claimed. #20367 was superseded by upstream #20282 and is removed from both this branch and its dependencies. The separate composition preserves the depth snapshot transfer and stencil handoff ordering. The November 20 joint checkout passed its Windows shared-backing tests under Wine. Native Windows execution of the joint checkout remains open.

2026-11-17 integration: submitted head f9a5bdf96981f22011a756069cf779cf595aa146 merges tested main 050cdf95addcb05b1c663587ab921216707623fe and preserves the full original prerequisite histories. The feature and regression code are unchanged by this mechanical main integration.

Tested

November 22 tested revisions. Standalone dff79672b07e3ad18a4c9b93a78c64b82901b852 and main 70cca973b49f92baf7e731f85f6b6c3fed775a25, with private composition 167ff94d5e0f47013bbe543502dfb5c4e37df4d0 against #15058 at f4a1b94085046d5fa1cac888bfc96099b592fd79.

November 20 joint validation. On CachyOS Linux, GeForce RTX 3070 Ti, driver 620.70.06, all five matched GPU controls passed on main and on the joint branch. All twelve additional stencil ownership cases also passed on the joint branch (17/17 total). Every test log shows the requested Khronos layer 1.4.363 inserted with real Vulkan required and the shader cache disabled. There were zero skips, missing layers or VUID/SYNC diagnostics. The longest joint case took 2.87 seconds. The separate Windows comparison follows below.

November 20 Windows shared-backing tests under Wine. On the same RTX 3070 Ti, I built x86-64 Windows binaries with MinGW-w64 GCC 16.2.0 and ran them under Wine 11.22 (Staging). All four agc_driver_depth_compared_shared cases passed on #15058 plus main fd7fe562ed (baseline b3830edf58) and on the joint checkout 1cefc2a882, with zero skips. The base case checks private and aliased section views and transfer between owners. The other cases check an unmap during completion, a CPU write between depth-unit reads, and a large unit. The fixture checks the Win32 mapping type and protection, guest write tracking, and the resulting GPU depth values.

Every case selected the RTX 3070 Ti with real Vulkan required, the shader cache disabled and Khronos validation 1.4.363 inserted. Each of the eight executions logged VUID-vkCreateDevice-ppEnabledExtensionNames-01387 once. The validation layer reported VK_EXT_external_memory_dma_buf without VK_KHR_external_memory_fd at device creation. The two commits produced the same diagnostic and no synchronization hazards. Native Windows hardware execution of this exact joint checkout and landing order with #15058 remain open.

2026-11-17 exact-head qualification: f9a5bdf96981f22011a756069cf779cf595aa146 against main 050cdf95addcb05b1c663587ab921216707623fe.

  • 26/26 selected candidate CTests pass. 17 real-Vulkan stencil cases, 2 additional unwatched controls, and 7 tooling/header CTests pass. Five matched GPU controls plus the tooling group are present in the matched main baseline.
  • Aggregate main baseline: 146 Vulkan cases, 49 host controls, one cache contract and 7 tooling checks pass. Shared per-test environments were compared; no selected skips, missing validation layers or new VUID-/SYNC- diagnostics. Raw logs contain no such validation errors on either side, and every selected case finishes below 30 seconds.
  • NVIDIA GeForce RTX3070Ti / driver620.70.06, CachyOS Linux7.3.4, GCC16.2.1, Khronos validation1.4.363 actually inserted. Real Vulkan is required; shader cache is off except the explicit cold-pipeline contract on both pins. Host cohorts create no Vulkan contexts.
  • Affected AGC headers compile independently; conventions, whitespace and scoped/global debt checks pass. Independent integration review found no required source changes. Original checkout and all 47 initialized module worktrees were restored exactly.

Exact pins, matched controls, per-test results and full verbose validation logs.

Keep Draft for proposed #15058 ordering and the recorded Windows shared-backing composition gate. No agreed landing order is claimed. Native Windows/macOS, another GPU vendor, commercial titles, console parity and performance improvements were not established. Older external and peer-composition receipts below retain their original pins.

Historical exact-head qualification

2026-11-15 cleanup — exact submitted commit b6e08256c086798fef7cb07fd09117efff0e58e0, based on tested main 4da77d3353c9c9f59f15436af86f44e4bb3ee074. The AGC/shader code, tests and build inputs are byte-identical to previously reviewed head 4c4fde00ef5329fcd3b18f59707bac9aad5c74d2; only the main merge and superseded documentation dependency change.

Headless NVIDIA RTX 3070 Ti / 620.70.06 / CachyOS Linux 7.3.4-1-cachyos, Khronos validation 1.4.363: 5/5 matched main controls, 17/17 standalone cases, 2/2 additional unwatched controls and 17/17 composition cases pass. Every real GPU execution inserts validation, with no skips, missing layers or VUID/SYNC errors; shader cache is off and fifo_latest_ready requested. All test times are below 30 seconds.

Composition 529b1af6416cd0d3ac9ad170508fd8bf7a58ca7e includes #15058 at 6b7ff32a1174a58b462061b8362f023f405f4838. Its two Windows-only compared-shared controls skip on Linux as expected; those are not native Windows execution proof. Draft/order/platform gates remain. No old external GPU report is treated as a rerun. No title or speed claim.

Current conventions, whitespace and debt-fold checks pass. Mechanical merges of both exact heads with later main 6ad1fe8a7196823f1048a10f4713e355a6f61afe are clean; no intervening relevant AGC/shader or replay allocator/write-watch changes. Full exact-head GPU logs, controls, source equivalence and independent review.

Historical qualification (original exact commits)

Latest local qualification (2026-11-15): exact submitted head 4c4fde00ef5329fcd3b18f59707bac9aad5c74d2 contains main ecd019f60180f2a0bfa0a0038743b1ffaa35ce15 and the one-line #20367 debt-selector prerequisite.

  • Matched fresh-main selection: 5/5 focused real-Vulkan tests passed. Candidate: 17/17 focused tests plus 2/2 additional unwatched clear/copy-failure controls passed. Every GPU case loaded Khronos validation 1.4.363; no GPU skips, missing layers or VUID/SYNC diagnostics. Full per-test logs were compared with main. NVIDIA GeForce RTX 3070 Ti, driver 620.70.06, CachyOS/Arch Linux 7.3.4-1-cachyos, GCC 16.2.1 Release; real Vulkan required, shader cache off, fifo_latest_ready requested.
  • The new fresh/reused unwatched CPU-order regressions failed at their intended byte-order assertion on test-only head 35c736b1fbdaae5a8f50822a4c4d3b9d0a72df58 over the earlier mechanical main 1bdf1d5e46a9752977a9f645f3672113e87235ec; later-CPU and later-GPU controls passed. All four pass on this submitted head. Existing copy-failure and independent-depth coverage remains intact.
  • Separate composition 421cd9ad327df105a5583d7506404e91b1b34d72 preserves exact latest #15058 head 6b7ff32a1174a58b462061b8362f023f405f4838: all 17 focused GPU cases pass without validation diagnostics. The dependency's two Windows-only compared-shared cases skip on Linux and provide no Windows execution proof. The composition preserves depth snapshots before fresh-clear handling and transfers stencil ownership after successful inheritance.
  • Current conventions, debt-fragment folding and whitespace checks pass. Independent source reviews found no required changes. Canonical overlap still reports #15058 and returns exit 2 because 22 conflicting peers cannot be compared automatically. Manual source inspection found no equivalent handoff in those frozen peers; this is not a claim that every peer combination was run.

Exact pins, full Vulkan logs, RED/GREEN, source reviews and overlap evidence. Keep Draft and the proposed #15058/#20367 dependencies. No landing-order agreement, native Windows rerun, console/title unblock, destination-allocation rollback or performance improvement is claimed.

Historical qualification at earlier exact commits

Latest local qualification (2026-11-13): submitted head 9ee0e35cbc7edc1a8644da0434709a9b251e86a8 contains main snapshot 496d57b47a9b2771146d2882c48d599aca8ce883, including upstream CES revert bbc937d05536ad0dce4e7a91b90e0d20cbd21360. Feature implementation/tests and all existing non-merge commits are unchanged; conventions and whitespace checks pass. All 13 focused GPU CTests pass, with 13 actual Khronos validation-layer insertions and no selected skips or missing layers. Full per-test logs were compared with the matched fresh-main selection; no new VUID/SYNC errors. NVIDIA GeForce RTX 3070 Ti, driver 620.70.06, CachyOS/Arch Linux 7.3.3-1-cachyos; real Vulkan required, shader cache off, fifo_latest_ready requested, layer1.4.363. This refresh retests the standalone feature only; earlier dependency-composition results remain tied to their recorded commits. Keep Draft and the current proposed dependency.

Exact pins and full qualification logs. Prior external Windows/macOS reports below remain historical; this update does not claim hosted full CI on the new head, author agreement, a commercial-title unblock or FPS improvement.

Fresh 2026-11-13 qualification: CachyOS/Arch Linux 7.3.3-1-cachyos, GCC 16.2.1 Release, NVIDIA GeForce RTX 3070 Ti driver 620.70.06. Main snapshot cddfa7e6628510af42a785d4e2aff1011b916b04: 5 focused baseline tests pass. Submitted candidate 922835da2d7bffa23f031055382c52e8714e0664: all 13 tests pass, with 13 validation-layer insertions and no skips. The new copy-failure regression injects a missing vkCmdCopyImage resolution, checks that the source remains authoritative, then verifies publication and successful retry. It fails against the rejected pre-copy retirement experiment and passes against the submitted post-copy handoff.

Combined dependency head 1693715b7140a8c00d8478a60e195a0b149a8486 also passes all 13 Linux cases against the same fresh-main baseline. Its integration branch preserves the exact #15058 head 280ba62f5b8acfeb8cdd5d91f905b9e6ea8a7f8f and authorship. The dependency's two compared-shared-memory tests skip on Linux; they do not verify Windows behavior. The combined branch includes an unrelated textual collision inherited from #15058 and is not the proposed PR head.

GPU logs confirm real Khronos 1.4.363 insertion with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, VK_LOADER_DEBUG=layer and ANYPS5_PRESENT_MODE=fifo_latest_ready. Full per-test log comparisons find no new VUID/SYNC diagnostics. Conventions and whitespace checks pass. No commercial-title unblock, FPS improvement, Windows runtime or software-driver result is claimed.

The standalone overlap scan still reports #15058's complementary edit to ownership transfer. Other uncompared peers were reviewed from frozen heads and their own merge bases. The proposed order remains explicit until the dependency lands and this branch is rebased.

Refresh validation (2026-11-13): based on main c76eb6a26433216e2219fa9937e9cd57254be272, tested PR head 3077ee2da6b1251177868983829242db576dec96.

All 13 focused CTests passed with 13 actual Khronos validation-layer insertions and no selected-test skips. Full per-test logs were compared with the matched fresh-main baseline: no new VUID/SYNC validation errors and no missing layers. GPU: NVIDIA GeForce RTX 3070 Ti, driver 620.70.06, CachyOS/Arch Linux 7.3.3-1-cachyos. Real Vulkan required, shader cache disabled and fifo_latest_ready requested. This is correctness validation; no new FPS or commercial-title claim.

Fresh evidence-only dependency composition 2a25156dd6f9085c182b92927832a6d2c5b892cc preserves exact #15058 head 280ba62f5b8acfeb8cdd5d91f905b9e6ea8a7f8f: all 13 selected Linux GPU tests passed, with 13 actual Khronos insertions and no new VUID/SYNC diagnostics relative to matched main. Its updated evidence branch is linked above. The submitted feature branch remains separate and Draft, with proposed dependency #15058; no agreed landing order or Windows-only peer test result is claimed.

Refresh logs and installation/validation evidence. Earlier results above remain evidence for their explicitly recorded commits; old Windows/macOS CI reports were not rerun by this local validation. Fresh platform CI results are separate.

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 and the licence notice of code adapted from upstream (see AGENTS.md)
  • 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: #15058
  • Fixes: none
  • Unblocks: none
  • GPUs tested: NVIDIA GeForce RTX 3070 Ti, 620.73.04 (November 21–22), 620.70.06 (prior runs), CachyOS/Arch Linux
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5293140764 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19428). Originally posted by [IvanFogel](https://github.com/IvanFogel) on 2026-11-13T09:20:43Z. --- ### What **November 22, after the cross-identity depth retirement change.** Standalone `dff79672b07e` includes main `70cca973b49f` and preserves the stencil patch in all four files. It passed 30/30 (24 real Vulkan, 6 host) focused executions. Main passed all 16/16 (10 real Vulkan, 6 host) shared controls. The selection covers stencil ownership transfer, clear, copy failure, CPU writes, read-only owners and retirement across depth identities. Clear and failed-copy cases were also repeated with guest write watching disabled. A private composition `167ff94d5e0f` with the current #15058, `f4a1b9408504`, passed 31/31 (24 real Vulkan, 7 host). Its owner-transfer resolution retains the peer's depth snapshot at the compatible-owner handoff, including a newly cleared destination, and preserves stencil publication after successful copy work. The three color-memo claim cases reported failing on the previous peer head (disabled, enabled and verify) passed on main, standalone and this composition. Coverage also includes the peer's committed-memory and guarded multisample-owner checks. The four compared shared-depth cases require the Windows direct-mapping backend. The earlier Win64 Wine result below retains its original revision. The current combination still needs native Windows GPU qualification and a landing-order agreement. This PR stays Draft. Every GPU case used an NVIDIA GeForce RTX 3070 Ti, driver 620.73.04, on CachyOS Linux with Khronos validation 1.4.363. The verbose logs recorded 25 layer insertions on the standalone commit and 11 on main, with 25 on the composition. All selected hardware runs completed without skips or VUID or synchronization diagnostics. The seven public-header and skip checks passed, and 11 AGC headers compiled independently. Shader caching was disabled in every GPU case. **November 21 refresh.** I integrated main `6f5c412af786` into this branch. The standalone candidate `7439af5a0ef5` passed all 19 focused Linux GPU executions. Those cover stencil ownership transfer, clear, failed copy, stale and fresh CPU writes, D16 depth, independent planes and read-only owners. Two executions repeated clear and copy-failure with guest write watching disabled. The same machine passed the 5 shared depth and stencil controls on main. This PR is still Draft and depends on #15058. The earlier Windows shared-backing joint test ran under Wine. A native Windows hardware run combining these changes and agreement on landing order are still outstanding. Test machine: NVIDIA GeForce RTX 3070 Ti, driver 620.73.04, CachyOS Linux, GCC 16.2.1, Khronos validation 1.4.363. Every GPU case required real Vulkan and logged validation-layer insertion (19 insertions on this branch). Both hardware runs had zero skips and zero VUID or synchronization diagnostics. The six skip-audit cases and public-header audit passed, and 11 AGC headers compiled independently. The shader cache was disabled in every GPU case. **Joint runtime with #15058, November 20.** I combined the then-submitted head (`f9a5bdf969`) with main `fd7fe562ed` and #15058 at `8378a3d27c` in a local checkout (`1cefc2a882`). The shared ownership-transfer function takes the previous owner's snapshot for compatible depth surfaces, including a newly cleared depth surface. On the stencil path it transfers the published bytes, baseline and generation before retiring the previous owner. Retain compatible authoritative stencil publication, generation, pending clear state and the unwatched guest-memory baseline when shared planes change ownership. Fresh and reused read-only owners preserve CPU/GPU write order; potentially throwing copy and baseline work finishes before the source is retired. <details> <summary>Earlier integration note (superseded selector dependency)</summary> **Draft: proposed landing order is #15058 first; no author agreement is claimed.** The submitted branch contains the stencil fix, its regressions and the one-line #20367 validation prerequisite. A separate combined branch preserves #15058's depth snapshots and performs stencil publication transfer after potentially throwing copy work, including created/cleared destinations. That composition is tested on Linux; it is evidence for the eventual rebase, not an import of the dependency into this PR. </details> **Current Draft integration gate:** proposed #15058 first, with no author agreement claimed. #20367 was superseded by upstream #20282 and is removed from both this branch and its dependencies. The separate composition preserves the depth snapshot transfer and stencil handoff ordering. The November 20 joint checkout passed its Windows shared-backing tests under Wine. Native Windows execution of the joint checkout remains open. **2026-11-17 integration:** submitted head `f9a5bdf96981f22011a756069cf779cf595aa146` merges tested main `050cdf95addcb05b1c663587ab921216707623fe` and preserves the full original prerequisite histories. The feature and regression code are unchanged by this mechanical main integration. ### Tested **November 22 tested revisions.** Standalone `dff79672b07e3ad18a4c9b93a78c64b82901b852` and main `70cca973b49f92baf7e731f85f6b6c3fed775a25`, with private composition `167ff94d5e0f47013bbe543502dfb5c4e37df4d0` against #15058 at `f4a1b94085046d5fa1cac888bfc96099b592fd79`. **November 20 joint validation.** On CachyOS Linux, GeForce RTX 3070 Ti, driver 620.70.06, all five matched GPU controls passed on main and on the joint branch. All twelve additional stencil ownership cases also passed on the joint branch (17/17 total). Every test log shows the requested Khronos layer 1.4.363 inserted with real Vulkan required and the shader cache disabled. There were zero skips, missing layers or VUID/SYNC diagnostics. The longest joint case took 2.87 seconds. The separate Windows comparison follows below. **November 20 Windows shared-backing tests under Wine.** On the same RTX 3070 Ti, I built x86-64 Windows binaries with MinGW-w64 GCC 16.2.0 and ran them under Wine 11.22 (Staging). All four `agc_driver_depth_compared_shared` cases passed on #15058 plus main `fd7fe562ed` (baseline `b3830edf58`) and on the joint checkout `1cefc2a882`, with zero skips. The base case checks private and aliased section views and transfer between owners. The other cases check an unmap during completion, a CPU write between depth-unit reads, and a large unit. The fixture checks the Win32 mapping type and protection, guest write tracking, and the resulting GPU depth values. Every case selected the RTX 3070 Ti with real Vulkan required, the shader cache disabled and Khronos validation 1.4.363 inserted. Each of the eight executions logged `VUID-vkCreateDevice-ppEnabledExtensionNames-01387` once. The validation layer reported `VK_EXT_external_memory_dma_buf` without `VK_KHR_external_memory_fd` at device creation. The two commits produced the same diagnostic and no synchronization hazards. Native Windows hardware execution of this exact joint checkout and landing order with #15058 remain open. **2026-11-17 exact-head qualification:** `f9a5bdf96981f22011a756069cf779cf595aa146` against main `050cdf95addcb05b1c663587ab921216707623fe`. - **26/26** selected candidate CTests pass. 17 real-Vulkan stencil cases, 2 additional unwatched controls, and 7 tooling/header CTests pass. Five matched GPU controls plus the tooling group are present in the matched main baseline. - Aggregate main baseline: 146 Vulkan cases, 49 host controls, one cache contract and 7 tooling checks pass. Shared per-test environments were compared; no selected skips, missing validation layers or new `VUID-`/`SYNC-` diagnostics. Raw logs contain no such validation errors on either side, and every selected case finishes below 30 seconds. - NVIDIA GeForce RTX3070Ti / driver620.70.06, CachyOS Linux7.3.4, GCC16.2.1, Khronos validation1.4.363 actually inserted. Real Vulkan is required; shader cache is off except the explicit cold-pipeline contract on both pins. Host cohorts create no Vulkan contexts. - Affected AGC headers compile independently; conventions, whitespace and scoped/global debt checks pass. Independent integration review found no required source changes. Original checkout and all 47 initialized module worktrees were restored exactly. [Exact pins, matched controls, per-test results and full verbose validation logs](https://gist.github.com/IvanFogel/0c5c3dabc0120d691e121c269b33da97). Keep Draft for proposed #15058 ordering and the recorded Windows shared-backing composition gate. No agreed landing order is claimed. Native Windows/macOS, another GPU vendor, commercial titles, console parity and performance improvements were not established. Older external and peer-composition receipts below retain their original pins. <details> <summary>Historical exact-head qualification</summary> **2026-11-15 cleanup — exact submitted commit `b6e08256c086798fef7cb07fd09117efff0e58e0`**, based on tested main `4da77d3353c9c9f59f15436af86f44e4bb3ee074`. The AGC/shader code, tests and build inputs are byte-identical to previously reviewed head `4c4fde00ef5329fcd3b18f59707bac9aad5c74d2`; only the main merge and superseded documentation dependency change. Headless NVIDIA RTX 3070 Ti / 620.70.06 / CachyOS Linux 7.3.4-1-cachyos, Khronos validation 1.4.363: **5/5 matched main controls, 17/17 standalone cases, 2/2 additional unwatched controls and 17/17 composition cases pass**. Every real GPU execution inserts validation, with no skips, missing layers or VUID/SYNC errors; shader cache is off and fifo_latest_ready requested. All test times are below 30 seconds. Composition `529b1af6416cd0d3ac9ad170508fd8bf7a58ca7e` includes #15058 at `6b7ff32a1174a58b462061b8362f023f405f4838`. Its two Windows-only compared-shared controls skip on Linux as expected; those are not native Windows execution proof. Draft/order/platform gates remain. No old external GPU report is treated as a rerun. No title or speed claim. Current conventions, whitespace and debt-fold checks pass. Mechanical merges of both exact heads with later main `6ad1fe8a7196823f1048a10f4713e355a6f61afe` are clean; no intervening relevant AGC/shader or replay allocator/write-watch changes. [Full exact-head GPU logs, controls, source equivalence and independent review](https://gist.github.com/IvanFogel/ed3fb66263c2e12cdb811f758bc9da88). <details> <summary>Historical qualification (original exact commits)</summary> Latest local qualification (2026-11-15): exact submitted head `4c4fde00ef5329fcd3b18f59707bac9aad5c74d2` contains main `ecd019f60180f2a0bfa0a0038743b1ffaa35ce15` and the one-line #20367 debt-selector prerequisite. - Matched fresh-main selection: 5/5 focused real-Vulkan tests passed. Candidate: 17/17 focused tests plus 2/2 additional unwatched clear/copy-failure controls passed. Every GPU case loaded Khronos validation 1.4.363; no GPU skips, missing layers or VUID/SYNC diagnostics. Full per-test logs were compared with main. NVIDIA GeForce RTX 3070 Ti, driver 620.70.06, CachyOS/Arch Linux 7.3.4-1-cachyos, GCC 16.2.1 Release; real Vulkan required, shader cache off, fifo_latest_ready requested. - The new fresh/reused unwatched CPU-order regressions failed at their intended byte-order assertion on test-only head `35c736b1fbdaae5a8f50822a4c4d3b9d0a72df58` over the earlier mechanical main `1bdf1d5e46a9752977a9f645f3672113e87235ec`; later-CPU and later-GPU controls passed. All four pass on this submitted head. Existing copy-failure and independent-depth coverage remains intact. - Separate composition `421cd9ad327df105a5583d7506404e91b1b34d72` preserves exact latest #15058 head `6b7ff32a1174a58b462061b8362f023f405f4838`: all 17 focused GPU cases pass without validation diagnostics. The dependency's two Windows-only compared-shared cases skip on Linux and provide no Windows execution proof. The composition preserves depth snapshots before fresh-clear handling and transfers stencil ownership after successful inheritance. - Current conventions, debt-fragment folding and whitespace checks pass. Independent source reviews found no required changes. Canonical overlap still reports #15058 and returns exit 2 because 22 conflicting peers cannot be compared automatically. Manual source inspection found no equivalent handoff in those frozen peers; this is not a claim that every peer combination was run. [Exact pins, full Vulkan logs, RED/GREEN, source reviews and overlap evidence](https://gist.github.com/IvanFogel/1acfe7275fef69a766cf1a9e8f903dbe). Keep Draft and the proposed #15058/#20367 dependencies. No landing-order agreement, native Windows rerun, console/title unblock, destination-allocation rollback or performance improvement is claimed. <details> <summary>Historical qualification at earlier exact commits</summary> Latest local qualification (2026-11-13): submitted head `9ee0e35cbc7edc1a8644da0434709a9b251e86a8` contains main snapshot `496d57b47a9b2771146d2882c48d599aca8ce883`, including upstream CES revert `bbc937d05536ad0dce4e7a91b90e0d20cbd21360`. Feature implementation/tests and all existing non-merge commits are unchanged; conventions and whitespace checks pass. All 13 focused GPU CTests pass, with 13 actual Khronos validation-layer insertions and no selected skips or missing layers. Full per-test logs were compared with the matched fresh-main selection; no new VUID/SYNC errors. NVIDIA GeForce RTX 3070 Ti, driver 620.70.06, CachyOS/Arch Linux 7.3.3-1-cachyos; real Vulkan required, shader cache off, fifo_latest_ready requested, layer1.4.363. This refresh retests the standalone feature only; earlier dependency-composition results remain tied to their recorded commits. Keep Draft and the current proposed dependency. [Exact pins and full qualification logs](https://gist.github.com/IvanFogel/e3096e7ad75390006640ba809885967d). Prior external Windows/macOS reports below remain historical; this update does not claim hosted full CI on the new head, author agreement, a commercial-title unblock or FPS improvement. Fresh 2026-11-13 qualification: CachyOS/Arch Linux 7.3.3-1-cachyos, GCC 16.2.1 Release, NVIDIA GeForce RTX 3070 Ti driver 620.70.06. Main snapshot `cddfa7e6628510af42a785d4e2aff1011b916b04`: 5 focused baseline tests pass. Submitted candidate `922835da2d7bffa23f031055382c52e8714e0664`: all 13 tests pass, with 13 validation-layer insertions and no skips. The new copy-failure regression injects a missing `vkCmdCopyImage` resolution, checks that the source remains authoritative, then verifies publication and successful retry. It fails against the rejected pre-copy retirement experiment and passes against the submitted post-copy handoff. Combined dependency head `1693715b7140a8c00d8478a60e195a0b149a8486` also passes all 13 Linux cases against the same fresh-main baseline. Its [integration branch](https://github.com/IvanFogel/AnyPS5/tree/evidence/20261113/stencil-integration) preserves the exact #15058 head `280ba62f5b8acfeb8cdd5d91f905b9e6ea8a7f8f` and authorship. The dependency's two compared-shared-memory tests skip on Linux; they do not verify Windows behavior. The combined branch includes an unrelated textual collision inherited from #15058 and is not the proposed PR head. GPU logs confirm real Khronos 1.4.363 insertion with `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1`, `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, `VK_LOADER_DEBUG=layer` and `ANYPS5_PRESENT_MODE=fifo_latest_ready`. Full per-test log comparisons find no new VUID/SYNC diagnostics. Conventions and whitespace checks pass. No commercial-title unblock, FPS improvement, Windows runtime or software-driver result is claimed. The standalone overlap scan still reports #15058's complementary edit to ownership transfer. Other uncompared peers were reviewed from frozen heads and their own merge bases. The proposed order remains explicit until the dependency lands and this branch is rebased. <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> <!-- refresh-20261113-pr-19428 --> Refresh validation (2026-11-13): based on main `c76eb6a26433216e2219fa9937e9cd57254be272`, tested PR head `3077ee2da6b1251177868983829242db576dec96`. All 13 focused CTests passed with 13 actual Khronos validation-layer insertions and no selected-test skips. Full per-test logs were compared with the matched fresh-main baseline: no new VUID/SYNC validation errors and no missing layers. GPU: NVIDIA GeForce RTX 3070 Ti, driver 620.70.06, CachyOS/Arch Linux 7.3.3-1-cachyos. Real Vulkan required, shader cache disabled and fifo_latest_ready requested. This is correctness validation; no new FPS or commercial-title claim. Fresh evidence-only dependency composition `2a25156dd6f9085c182b92927832a6d2c5b892cc` preserves exact #15058 head `280ba62f5b8acfeb8cdd5d91f905b9e6ea8a7f8f`: all 13 selected Linux GPU tests passed, with 13 actual Khronos insertions and no new VUID/SYNC diagnostics relative to matched main. Its updated evidence branch is linked above. The submitted feature branch remains separate and Draft, with proposed dependency #15058; no agreed landing order or Windows-only peer test result is claimed. [Refresh logs and installation/validation evidence](https://gist.github.com/IvanFogel/66bd1758f9aa19acd831265c01a61f04). Earlier results above remain evidence for their explicitly recorded commits; old Windows/macOS CI reports were not rerun by this local validation. Fresh platform CI results are separate. <!-- /refresh-20261113 --> </details> </details> </details> ### 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) and the licence notice of code adapted from upstream (see AGENTS.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: #15058 <!-- #PR, or none --> - [x] Fixes: none <!-- issue it closes as Fixes #N, or none --> - [x] Unblocks: none <!-- title ID and Game bring-up discussion, e.g. PPSA01325 #3232, or none --> - [x] GPUs tested: NVIDIA GeForce RTX 3070 Ti, 620.73.04 (November 21–22), 620.70.06 (prior runs), CachyOS/Arch Linux <!-- for AGC, shader recompiler or VideoOut changes: vendor, model, driver and OS of each GPU the GPU tests ran on; otherwise n/a --> - [x] AI-assisted: yes <!-- yes / no -->
MarcZX10 commented 2026-11-20 07:33:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T07:33:41Z.

Review: APPROVED


Reviewed — looks good

Nothing in the inspected change shows a verified defect; the author should retain the documented integration and platform limits.

What I ran

Reviewed head f9a5bdf96981f22011a756069cf779cf595aa146 and its prepared diff. No commands or tests were run.

Results

Check Result Note
Source review passed All four changed files read
Tests not run No local execution performed

Findings

Blocking

None.

Non-blocking

None.

Not verified

The description reports Linux GPU and test results; these were not independently rerun. Windows shared-backing behavior and native console/title behavior remain unverified, as the change documentation states. All four changed files listed in the manifest were included and read; no changed files were excluded.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5989054830 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19428#pullrequestreview-5989054830). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-20T07:33:41Z. **Review:** APPROVED --- # Reviewed — looks good Nothing in the inspected change shows a verified defect; the author should retain the documented integration and platform limits. ## What I ran Reviewed head `f9a5bdf96981f22011a756069cf779cf595aa146` and its prepared diff. No commands or tests were run. ## Results | Check | Result | Note | |---|---|---| | Source review | passed | All four changed files read | | Tests | not run | No local execution performed | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified The description reports Linux GPU and test results; these were not independently rerun. Windows shared-backing behavior and native console/title behavior remain unverified, as the change documentation states. All four changed files listed in the manifest were included and read; no changed files were excluded. ## To get this to a good state Nothing is required.
ligmaSec commented 2026-12-03 22:17:06 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T22:17:06Z.

Review: COMMENTED


I trial-merged dff79672b0 cleanly onto a1b75b0947. The key ordering in takePlane is to carry over the guest baseline with the stencil contents, mark the new owner stale, and then retire the previous owner. The copy-failure and CPU-after-handoff cases check distinct ways that ownership can get out of sync. Please keep the failure case when composing this with #15058. My review is source-based and the reported hardware results are from the author.

AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:6179572084 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19428#pullrequestreview-6179572084). Originally posted by [ligmaSec](https://github.com/ligmaSec) on 2026-12-03T22:17:06Z. **Review:** COMMENTED --- I trial-merged `dff79672b0` cleanly onto `a1b75b0947`. The key ordering in `takePlane` is to carry over the guest baseline with the stencil contents, mark the new owner stale, and then retire the previous owner. The copy-failure and CPU-after-handoff cases check distinct ways that ownership can get out of sync. Please keep the failure case when composing this with #15058. My review is source-based and the reported hardware results are from the author. AI-assisted: yes.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/19428:upstream-pr/19428'
git switch 'upstream-pr/19428'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/19428'
git switch 'upstream-pr/19428'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/19428'
git switch 'upstream-pr/19428'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/19428'
git switch 'main'
git merge --squash 'upstream-pr/19428'
git switch 'main'
git merge --ff-only 'upstream-pr/19428'
git switch 'main'
git merge 'upstream-pr/19428'
git push origin 'main'
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!19428
No description provided.