fix(agc): reclaim published native depth owners safely #10469

Open
Ondra97 wants to merge 10 commits from upstream-pr/10469 into main
Ondra97 commented 2026-10-24 02:11:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Ondra97 on 2026-10-24T02:11:07Z.


What

A guest access to GPU-written native multisample D32 depth with HTILE needs both its sample bytes and expanded metadata. This PR publishes both planes before making the owner inactive, then uses main's inactive/unwritten-owner reclamation and sampled-view lifetime checks. Owner maps retire before removal, and recorded work retains its resources.

The November 16 main sync used 38c924f1deceb20374844f72faf5ba6d07822678. Main's bare D32 path without HTILE keeps its retained-owner behaviour, as does D32S8 with and without HTILE. Allocation leases, snapshot/racing-write checks, overwritten-plane proofs, colour-alias retirement and pending-unit checks are retained. The carried #9950 implementation retains Ethan Barr's authored commit 2767cce0cea4c3ef792ea7d34c414ac4ed94b61a.

The four reviewed HTILE-clear publication-refusal assertions were already D32-only at the previous public head 5d28444d420c8bc3b6c76c4bece81f590051671c; this refresh keeps that adjustment, the remaining safety checks and production D16 refusal. It does not add D16 publication. The six publication/held-view/reclamation/rebinding fixtures are unchanged.

#9950 remains open at 9db462e0671b972f6fa380b5bc819348771f8954; that exact head is not an ancestor of this branch. Its carried implementation is adapted to the shared publisher on main. The existing order remains #9950 -> (#10469/#10492) -> #10497 -> #7002. The related branches were not changed.

The November 19 main sync preserves the reuse rule from #15941. A reuse that takes a guest byte still retires an owner, while a reuse that takes no byte retains a bare D32 or D32S8 owner. HTILE D32 retires after both planes commit, and recorded work and held views keep their existing lifetime protections.

Tested

November 19 Windows Release validation used main 3f4693be439f05ffe3961733357f445e8488bd87 and PR head 2ade1d253ee1505300c4dcf2f01bd128cba20276. On Windows 11 Pro 10.0.26300, Ryzen 9 7900X, 31.66 GiB RAM and NVIDIA RTX 4070 Ti SUPER driver 621.24, both runtime builds produced the relinker, all patched libraries and the selected AGC test executables.

The same 31 focused Vulkan CTests passed on each revision. Each logged insertion of Khronos validation 1.4.335 and selected the NVIDIA GPU. Shader caches were disabled and synchronization validation was enabled. No VUID or synchronization hazard was logged. All six D32 HTILE publication and reclamation cases ran on the PR head. The additional mock graphics fixture passed on each revision. The queued-fill fixture skipped on both revisions because its host import was compared. Two internal HTILE write-coverage assertions also skipped in each run.

The latest main at the publication check was b68affac18ca39391a3800d5cb51735d085c014d. The two intervening commits touch only UserService and Fios2 tests, and main merges cleanly with this head. The Windows results above cover the exact built revisions listed above.

Automated local validation on November 16, 2026 (Europe/Prague): main 38c924f1deceb20374844f72faf5ba6d07822678 and submitted source df36ea58024006c8bfd006b87c533e3a7a8bda8d.

Pre-push main 87fdadcd1ebed6d6582457e0f9d5e69d26b5d7b6 is 21 commits ahead of the validated base. Its test merge is clean and it changes none of this PR's files. The later main+PR composition is outside these local binaries' qualification and still needs completed full CI results for that composition.

Windows 11 Pro 10.0.26300; Ryzen 9 7900X; 31.66 GiB RAM; NVIDIA GeForce RTX 4070 Ti SUPER, driver 621.24. WinLibs GCC 15.2.0 r7 UCRT, CMake 4.3.1, Ninja 1.13.2 and native Python 3.14.7. Separate Release full-runtime builds produced the relinker, all patched libraries and four focused fixture targets, with SPIRV-Tools enabled. The final refresh used two top-level compiler jobs and one inherited job for nested builds; the build arms and GPU tests ran serially.

Metric Before (main) After (fix)
Real GPU CTests per iteration 31 passed 31 passed
Iterations per revision 2 2
Real GPU CTest failures / CTest skips 0 / 0 0 / 0
Additional host-only graphics fixture 1 passed 1 passed
Additional queued-fill fixture 1 explicit skip 1 explicit skip

The unchanged official tools/vulkan_validation_gate.py completed a fresh-output run at main 45f6d379cc5 / fix d681cf4fe95, exiting 0 for these 31 GPU CTests twice per revision. That report, logs and all hash-inventoried runtime/staging files are archived. After the final current-main merge, both exclusively owned build roots were fully rebuilt incrementally using BUILD.md's configure/build workflow, and the same tests ran again in main/fix then fix/main order. The separate final report uses the unchanged gate's strict timeout, layer/skip/error parsing, comparison, source-identity and before/after artifact-hash helpers; it records the final commits above. Both arms require Vulkan, disable normal shader caches, enable APS5_VERIFY_SHAPE_MEMO=1, and use explicit Khronos validation 1.4.335 with VK_LAYER_VALIDATE_SYNC=1 and loader logging. Every selected GPU test shows the inserted Khronos layer. Actual device logs name the RTX 4070 Ti SUPER; there is no missing requested layer, VUID or SYNC-HAZARD in either revision's logs.

All six D32 publication/reclamation fixtures execute in each fix iteration: 2/4/8 samples at 5x3 and 70x67, with HTILE/XOR variation, exact samples/padding/metadata, held-view retention, reclamation and address rebinding. Current main's bare D32, D32S8 two/three-plane publication, race/unmap, overwritten-plane, single-sample-view, alias and pending-unit tests remain in the selection. A separate negative control runs the fix fixture executable with the hash-identified main runtime and fails at the expected unsupported D32 guest-publication guard.

Coverage limits are explicit. agc_driver_graphics uses mock Vulkan and is validated as a host fixture, so it cannot prove insertion of a real layer. agc_driver_native_depth_driver_queued_fill opens the real device and layer, then returns the project's registered skip code 77 because host imports are compared rather than write-watched on this Windows/device path. In both revisions, agc_driver_native_depth_clears and agc_driver_native_depth_buffer_clear also omit one internal HTILE write-coverage assertion per iteration for that capability; their remaining checks run. The project Windows skip audit accepts the explicit CTest skip on both supplemental reports; these acceptance paths remain unverified here. The earlier broad 33-test report at main dcf3d15978c / fix e209ad10f2f retains exit 1 for the host fixture's absent real layer and the explicit queued-fill skip; it is not presented as a passed gate.

Conventions and whitespace checks pass (one debt-length warning on this PR's 1002-character debt entry, zero errors). The isolated overlap run inspected 1,779 open PR heads and exits 2: one confirmed overlap with #15941 and 29 incomplete shared-file comparisons. The #15941 author's existing agreement permits either order while retaining both rules; the second branch must keep D32 retirement and its separate reuse policy. The declared publisher, owned follow-ups and related shared-file diffs were reviewed manually. No clean full-overlap result or combined foreign-stack qualification is claimed. No full CTest, title/console run, cross-vendor result or performance claim is made.

SHA256 provenance

Build and test-staging driver hashes match in each arm, and the final validation compares the selected runtime hashes before and after testing. The negative control uses the main driver's hash and the fix executable's hash below.

Artifact Main SHA256 Fix SHA256
DepthSurface.cpp source bytes 3f79c61bf6d57c152c8d495c7686155ab58c40638db95318dafaee8e14fe128e e132ca0899161b79e0633d436b981bf41a3983cf013b379a79fad26bdb5cb7bb
Unpatched driver, also the test-staged driver 0dfe2196406cdac742eb657206f48baa822f981a72e13d720b4c840ff2ec5001 62cdca54b13e4cf816b92329680fef975899fe96c860efead5bcac7f20ca0be4
Packaged driver 38328322ee284da29a870222be1f4b7854da27f8876facd639e6446c761be6e9 c9de9fae54db3f1ffb4621c1ffaba93504fb4195c133335e2fe4f243d5008d11
Native multisample depth test executable d8357c198a28484ed1c43839582b8b20e72d077b011cd03cc07f4e424f33dde6 8a6ce6a7f5261f2c9e544cf0d79c235d606921277f83d050a53894c98c55c60d

Tracked-source manifest SHA256: main e938d97ab196659c7a37dd90c34678eaca8fb759567ba8c131f70129c97eee28, fix e9cebdfa98e8374d7531a2f434d728bfdeecff3539cab4c2a1d118fa41a57740. Other dynamic host libraries and ignored source files are outside the official tool's inventory.

Reproduce the real-GPU selection

With clean initialized source roots at the two commits above, run from the fix root. Select WinLibs GCC 15.2.0 r7 on PATH; use the matching Khronos layer directory and an available pinned FFmpeg package per BUILD.md.

$env:CMAKE_BUILD_PARALLEL_LEVEL='1'
$env:MAKEFLAGS='-j1'
$env:VK_LAYER_PATH='D:/Github/AnyPS5/build_tools/c012-refresh/vulkan-sdk/Bin'
$env:VK_LAYER_VALIDATE_SYNC='1'
$env:APS5_VERIFY_SHAPE_MEMO='1'
$tests='^(agc_driver_native_depth_aliased_depth_depth_only|agc_driver_native_depth_aliased_depth_no_stencil|agc_driver_native_depth_aliased_depth_stencil|agc_driver_native_depth_aliased_stencil|agc_driver_native_depth_bare_publication|agc_driver_native_depth_bda_clear|agc_driver_native_depth_buffer_clear|agc_driver_native_depth_clear_refusals|agc_driver_native_depth_clears|agc_driver_native_depth_covered_owner|agc_driver_native_depth_driver_path|agc_driver_native_depth_expand_gate|agc_driver_native_depth_htile_plane_alias|agc_driver_native_depth_initial_owner|agc_driver_native_depth_overwritten_planes|agc_driver_native_depth_overwritten_published|agc_driver_native_depth_pending_units|agc_driver_native_depth_publication|agc_driver_native_depth_publication_without_htile|agc_driver_native_depth_retirement|agc_driver_native_depth_separate_stencil|agc_driver_native_depth_single_sample_view|agc_driver_native_depth_smaller_extent|agc_driver_native_depth_stencil|agc_driver_native_depth_stencil_view|agc_driver_native_depth_stored_repeat_fill|agc_driver_native_depth_uneven_plane|agc_driver_native_depth_uniform_plane_alias|agc_driver_native_depth_uniform_planes|agc_driver_native_multisample_depth|agc_driver_sample_multisample_target)$'
python tools/vulkan_validation_gate.py `
  --baseline ../main-source 38c924f1deceb20374844f72faf5ba6d07822678 `
  --candidate . df36ea58024006c8bfd006b87c533e3a7a8bda8d `
  --output ../proof-reproduction `
  --target relinker --target libs `
  --target agc_driver_native_multisample_depth_tests `
  --target agc_driver_sample_multisample_target_tests `
  --target agc_driver_graphics_tests `
  --target agc_driver_native_depth_bda_clear_tests `
  --tests $tests --gpu 'NVIDIA GeForce RTX 4070 Ti SUPER' --repeat 2 `
  --cmake-arg=-DANYPS5_ENABLE_SPIRV_TOOLS=ON --runtime core/libs/libs --runtime tests
python tools/check_conventions.py --base origin/main
git diff --check origin/main...HEAD

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: #9950
  • Fixes: none
  • Unblocks: none
  • GPUs tested: NVIDIA GeForce RTX 4070 Ti SUPER, driver 621.24, Windows 11 Pro 10.0.26300; paired November 16 and November 19 runs
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4991683083 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10469). Originally posted by [Ondra97](https://github.com/Ondra97) on 2026-10-24T02:11:07Z. --- ### What A guest access to GPU-written native multisample D32 depth with HTILE needs both its sample bytes and expanded metadata. This PR publishes both planes before making the owner inactive, then uses main's inactive/unwritten-owner reclamation and sampled-view lifetime checks. Owner maps retire before removal, and recorded work retains its resources. The November 16 main sync used `38c924f1deceb20374844f72faf5ba6d07822678`. Main's bare D32 path without HTILE keeps its retained-owner behaviour, as does D32S8 with and without HTILE. Allocation leases, snapshot/racing-write checks, overwritten-plane proofs, colour-alias retirement and pending-unit checks are retained. The carried #9950 implementation retains Ethan Barr's authored commit `2767cce0cea4c3ef792ea7d34c414ac4ed94b61a`. The four reviewed HTILE-clear publication-refusal assertions were already D32-only at the previous public head `5d28444d420c8bc3b6c76c4bece81f590051671c`; this refresh keeps that adjustment, the remaining safety checks and production D16 refusal. It does not add D16 publication. The six publication/held-view/reclamation/rebinding fixtures are unchanged. #9950 remains open at `9db462e0671b972f6fa380b5bc819348771f8954`; that exact head is not an ancestor of this branch. Its carried implementation is adapted to the shared publisher on main. The existing order remains #9950 -> (#10469/#10492) -> #10497 -> #7002. The related branches were not changed. The November 19 main sync preserves the reuse rule from #15941. A reuse that takes a guest byte still retires an owner, while a reuse that takes no byte retains a bare D32 or D32S8 owner. HTILE D32 retires after both planes commit, and recorded work and held views keep their existing lifetime protections. ### Tested <!-- 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. --> November 19 Windows Release validation used main `3f4693be439f05ffe3961733357f445e8488bd87` and PR head `2ade1d253ee1505300c4dcf2f01bd128cba20276`. On Windows 11 Pro 10.0.26300, Ryzen 9 7900X, 31.66 GiB RAM and NVIDIA RTX 4070 Ti SUPER driver 621.24, both runtime builds produced the relinker, all patched libraries and the selected AGC test executables. The same 31 focused Vulkan CTests passed on each revision. Each logged insertion of Khronos validation 1.4.335 and selected the NVIDIA GPU. Shader caches were disabled and synchronization validation was enabled. No VUID or synchronization hazard was logged. All six D32 HTILE publication and reclamation cases ran on the PR head. The additional mock graphics fixture passed on each revision. The queued-fill fixture skipped on both revisions because its host import was compared. Two internal HTILE write-coverage assertions also skipped in each run. The latest main at the publication check was `b68affac18ca39391a3800d5cb51735d085c014d`. The two intervening commits touch only UserService and Fios2 tests, and main merges cleanly with this head. The Windows results above cover the exact built revisions listed above. Automated local validation on November 16, 2026 (Europe/Prague): main `38c924f1deceb20374844f72faf5ba6d07822678` and submitted source `df36ea58024006c8bfd006b87c533e3a7a8bda8d`. Pre-push main `87fdadcd1ebed6d6582457e0f9d5e69d26b5d7b6` is 21 commits ahead of the validated base. Its test merge is clean and it changes none of this PR's files. The later main+PR composition is outside these local binaries' qualification and still needs completed full CI results for that composition. Windows 11 Pro 10.0.26300; Ryzen 9 7900X; 31.66 GiB RAM; NVIDIA GeForce RTX 4070 Ti SUPER, driver 621.24. WinLibs GCC 15.2.0 r7 UCRT, CMake 4.3.1, Ninja 1.13.2 and native Python 3.14.7. Separate Release full-runtime builds produced the relinker, all patched libraries and four focused fixture targets, with SPIRV-Tools enabled. The final refresh used two top-level compiler jobs and one inherited job for nested builds; the build arms and GPU tests ran serially. | Metric | Before (main) | After (fix) | | --- | ---: | ---: | | Real GPU CTests per iteration | 31 passed | 31 passed | | Iterations per revision | 2 | 2 | | Real GPU CTest failures / CTest skips | 0 / 0 | 0 / 0 | | Additional host-only graphics fixture | 1 passed | 1 passed | | Additional queued-fill fixture | 1 explicit skip | 1 explicit skip | The unchanged official `tools/vulkan_validation_gate.py` completed a fresh-output run at main `45f6d379cc5` / fix `d681cf4fe95`, exiting 0 for these 31 GPU CTests twice per revision. That report, logs and all hash-inventoried runtime/staging files are archived. After the final current-main merge, both exclusively owned build roots were fully rebuilt incrementally using BUILD.md's configure/build workflow, and the same tests ran again in main/fix then fix/main order. The separate final report uses the unchanged gate's strict timeout, layer/skip/error parsing, comparison, source-identity and before/after artifact-hash helpers; it records the final commits above. Both arms require Vulkan, disable normal shader caches, enable `APS5_VERIFY_SHAPE_MEMO=1`, and use explicit Khronos validation 1.4.335 with `VK_LAYER_VALIDATE_SYNC=1` and loader logging. Every selected GPU test shows the inserted Khronos layer. Actual device logs name the RTX 4070 Ti SUPER; there is no missing requested layer, VUID or SYNC-HAZARD in either revision's logs. All six D32 publication/reclamation fixtures execute in each fix iteration: 2/4/8 samples at 5x3 and 70x67, with HTILE/XOR variation, exact samples/padding/metadata, held-view retention, reclamation and address rebinding. Current main's bare D32, D32S8 two/three-plane publication, race/unmap, overwritten-plane, single-sample-view, alias and pending-unit tests remain in the selection. A separate negative control runs the fix fixture executable with the hash-identified main runtime and fails at the expected unsupported D32 guest-publication guard. Coverage limits are explicit. `agc_driver_graphics` uses mock Vulkan and is validated as a host fixture, so it cannot prove insertion of a real layer. `agc_driver_native_depth_driver_queued_fill` opens the real device and layer, then returns the project's registered skip code 77 because host imports are compared rather than write-watched on this Windows/device path. In both revisions, `agc_driver_native_depth_clears` and `agc_driver_native_depth_buffer_clear` also omit one internal HTILE write-coverage assertion per iteration for that capability; their remaining checks run. The project Windows skip audit accepts the explicit CTest skip on both supplemental reports; these acceptance paths remain unverified here. The earlier broad 33-test report at main `dcf3d15978c` / fix `e209ad10f2f` retains exit 1 for the host fixture's absent real layer and the explicit queued-fill skip; it is not presented as a passed gate. Conventions and whitespace checks pass (one debt-length warning on this PR's 1002-character debt entry, zero errors). The isolated overlap run inspected 1,779 open PR heads and exits 2: one confirmed overlap with #15941 and 29 incomplete shared-file comparisons. The [#15941 author's existing agreement](https://github.com/boykopovar/AnyPS5/pull/10497#issuecomment-6901120918) permits either order while retaining both rules; the second branch must keep D32 retirement and its separate reuse policy. The declared publisher, owned follow-ups and related shared-file diffs were reviewed manually. No clean full-overlap result or combined foreign-stack qualification is claimed. No full CTest, title/console run, cross-vendor result or performance claim is made. <details> <summary>SHA256 provenance</summary> Build and test-staging driver hashes match in each arm, and the final validation compares the selected runtime hashes before and after testing. The negative control uses the main driver's hash and the fix executable's hash below. | Artifact | Main SHA256 | Fix SHA256 | | --- | --- | --- | | DepthSurface.cpp source bytes | `3f79c61bf6d57c152c8d495c7686155ab58c40638db95318dafaee8e14fe128e` | `e132ca0899161b79e0633d436b981bf41a3983cf013b379a79fad26bdb5cb7bb` | | Unpatched driver, also the test-staged driver | `0dfe2196406cdac742eb657206f48baa822f981a72e13d720b4c840ff2ec5001` | `62cdca54b13e4cf816b92329680fef975899fe96c860efead5bcac7f20ca0be4` | | Packaged driver | `38328322ee284da29a870222be1f4b7854da27f8876facd639e6446c761be6e9` | `c9de9fae54db3f1ffb4621c1ffaba93504fb4195c133335e2fe4f243d5008d11` | | Native multisample depth test executable | `d8357c198a28484ed1c43839582b8b20e72d077b011cd03cc07f4e424f33dde6` | `8a6ce6a7f5261f2c9e544cf0d79c235d606921277f83d050a53894c98c55c60d` | Tracked-source manifest SHA256: main `e938d97ab196659c7a37dd90c34678eaca8fb759567ba8c131f70129c97eee28`, fix `e9cebdfa98e8374d7531a2f434d728bfdeecff3539cab4c2a1d118fa41a57740`. Other dynamic host libraries and ignored source files are outside the official tool's inventory. </details> <details> <summary>Reproduce the real-GPU selection</summary> With clean initialized source roots at the two commits above, run from the fix root. Select WinLibs GCC 15.2.0 r7 on `PATH`; use the matching Khronos layer directory and an available pinned FFmpeg package per BUILD.md. ```powershell $env:CMAKE_BUILD_PARALLEL_LEVEL='1' $env:MAKEFLAGS='-j1' $env:VK_LAYER_PATH='D:/Github/AnyPS5/build_tools/c012-refresh/vulkan-sdk/Bin' $env:VK_LAYER_VALIDATE_SYNC='1' $env:APS5_VERIFY_SHAPE_MEMO='1' $tests='^(agc_driver_native_depth_aliased_depth_depth_only|agc_driver_native_depth_aliased_depth_no_stencil|agc_driver_native_depth_aliased_depth_stencil|agc_driver_native_depth_aliased_stencil|agc_driver_native_depth_bare_publication|agc_driver_native_depth_bda_clear|agc_driver_native_depth_buffer_clear|agc_driver_native_depth_clear_refusals|agc_driver_native_depth_clears|agc_driver_native_depth_covered_owner|agc_driver_native_depth_driver_path|agc_driver_native_depth_expand_gate|agc_driver_native_depth_htile_plane_alias|agc_driver_native_depth_initial_owner|agc_driver_native_depth_overwritten_planes|agc_driver_native_depth_overwritten_published|agc_driver_native_depth_pending_units|agc_driver_native_depth_publication|agc_driver_native_depth_publication_without_htile|agc_driver_native_depth_retirement|agc_driver_native_depth_separate_stencil|agc_driver_native_depth_single_sample_view|agc_driver_native_depth_smaller_extent|agc_driver_native_depth_stencil|agc_driver_native_depth_stencil_view|agc_driver_native_depth_stored_repeat_fill|agc_driver_native_depth_uneven_plane|agc_driver_native_depth_uniform_plane_alias|agc_driver_native_depth_uniform_planes|agc_driver_native_multisample_depth|agc_driver_sample_multisample_target)$' python tools/vulkan_validation_gate.py ` --baseline ../main-source 38c924f1deceb20374844f72faf5ba6d07822678 ` --candidate . df36ea58024006c8bfd006b87c533e3a7a8bda8d ` --output ../proof-reproduction ` --target relinker --target libs ` --target agc_driver_native_multisample_depth_tests ` --target agc_driver_sample_multisample_target_tests ` --target agc_driver_graphics_tests ` --target agc_driver_native_depth_bda_clear_tests ` --tests $tests --gpu 'NVIDIA GeForce RTX 4070 Ti SUPER' --repeat 2 ` --cmake-arg=-DANYPS5_ENABLE_SPIRV_TOOLS=ON --runtime core/libs/libs --runtime tests python tools/check_conventions.py --base origin/main git diff --check origin/main...HEAD ``` </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: <!-- #PR, or none --> #9950 - [x] Fixes: <!-- issue it closes as Fixes #N, or none --> none - [x] Unblocks: <!-- title ID and Game bring-up discussion, e.g. PPSA01325 #3232, or none --> none - [x] GPUs tested: <!-- for AGC, shader recompiler or VideoOut changes: vendor, model, driver and OS of each GPU the GPU tests ran on; otherwise n/a --> NVIDIA GeForce RTX 4070 Ti SUPER, driver 621.24, Windows 11 Pro 10.0.26300; paired November 16 and November 19 runs - [x] AI-assisted: <!-- yes / no --> yes
MarcZX10 commented 2026-10-24 19:54:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-24T19:54:12Z.

Review: APPROVED


Reviewed exact head 4f64dee52dbfc4dc4c4cf374e6f24dccbf8e670e. PublishToGuest limits readback to supported D32 multisample surfaces, synchronizes prior recorder work, writes tiled samples and expanded HTILE back to guest memory, and marks publication complete only after both writes. Reclamation requires that publication, an inactive owner, and no remaining sampled views; it retires the owner maps before releasing the surface. The regression covers sample counts, padding, HTILE, retained views, reclamation, and rebinding.

Local diff-check and conventions pass. I did not run the GPU suite here; the PR reports paired current-main/candidate builds and six focused CTests on an RTX 4070 Ti SUPER with validation enabled and no VUIDs. Product CI is skipped by path policy. The declared dependency on the exact open prerequisite head is retained.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5639713550 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10469#pullrequestreview-5639713550). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-24T19:54:12Z. **Review:** APPROVED --- Reviewed exact head `4f64dee52dbfc4dc4c4cf374e6f24dccbf8e670e`. `PublishToGuest` limits readback to supported D32 multisample surfaces, synchronizes prior recorder work, writes tiled samples and expanded HTILE back to guest memory, and marks publication complete only after both writes. Reclamation requires that publication, an inactive owner, and no remaining sampled views; it retires the owner maps before releasing the surface. The regression covers sample counts, padding, HTILE, retained views, reclamation, and rebinding. Local diff-check and conventions pass. I did not run the GPU suite here; the PR reports paired current-main/candidate builds and six focused CTests on an RTX 4070 Ti SUPER with validation enabled and no VUIDs. Product CI is skipped by path policy. The declared dependency on the exact open prerequisite head is retained.
MarcZX10 commented 2026-11-19 19:41:24 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-19T19:41:24Z.

Review: COMMENTED


Reviewed — no blocking findings

The inspected changes add D32 HTILE publication and owner retirement after both guest planes commit; I found no concrete blocking defect in the reviewed code.

What I ran

Reviewed head 2ade1d253ee1505300c4dcf2f01bd128cba20276. I read the prepared description, commits, manifest and diff, then targeted source ranges with repo_read.py. No build or tests were run; test results in the description are author-reported.

Results

Check Result Note
Diff and targeted code review passed Three changed files inspected
Build and tests not run Author-reported results only

Findings

Blocking

None.

Non-blocking

None.

Not verified

The complete contents of the large changed test source were not read; I reviewed the added publication fixture and the changed test hunks. No local checks were run. The report’s hardware and CI results were not independently confirmed. All three changed files are included in the review folder; files.json was not present in the prepared folder listing.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5982066925 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10469#pullrequestreview-5982066925). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-19T19:41:24Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The inspected changes add D32 HTILE publication and owner retirement after both guest planes commit; I found no concrete blocking defect in the reviewed code. ## What I ran Reviewed head `2ade1d253ee1505300c4dcf2f01bd128cba20276`. I read the prepared description, commits, manifest and diff, then targeted source ranges with `repo_read.py`. No build or tests were run; test results in the description are author-reported. ## Results | Check | Result | Note | |---|---|---| | Diff and targeted code review | passed | Three changed files inspected | | Build and tests | not run | Author-reported results only | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified The complete contents of the large changed test source were not read; I reviewed the added publication fixture and the changed test hunks. No local checks were run. The report’s hardware and CI results were not independently confirmed. All three changed files are included in the review folder; `files.json` was not present in the prepared folder listing. ## To get this to a good state Nothing is required.
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/10469:upstream-pr/10469'
git switch 'upstream-pr/10469'

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