fix(agc): settle queued HTILE clears before native depth use #7371

Merged
Amoenus merged 1 commit from upstream-pr/7371 into main 2026-10-22 14:14:34 +00:00
Amoenus commented 2026-10-18 03:10:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-18T03:10:59Z.


What

Register a recognized queued native-depth HTILE clear's exact range as a pending write, then settle that producer before cached-owner, sampled-texture or attachment consumption. Copy the range under the surface mutex and release it before SyncThrough. Retain CPU-race, complete-coverage, clear-value and unknown-writer refusals.

#7233 is merged. Head d62377dd75ebb86eeac6bd3f4d6be986ba84c8cb is one focused commit on main 3ca07d086d5f44fbe3c00370e7f03953ab46ca1b: five files, +68/-3. Its added/removed line sequences are identical to our prior delta against adapted #7233. The prior published head is preserved; MarcZX10's prerequisite and Jan Slegl's tracker-test attribution remain in merged #7233.

Sonic Unleashed Recompiled PPSA99902, #4443, encountered this stop in the earlier composed bring-up:

AGC graphics: external GPU writes over native multisample depth are not implemented

This refresh has no new title replay or performance claim. Agreed order: this PR before #9533; #9533 also follows #6973. The new metadata-fill composition refusal in EagleBearerYS's 5e8a1cdb83 stays with that fill capability. Main still refuses metadata fills over this native owner.

Tested

Frozen source: main 3ca07d086d5f44fbe3c00370e7f03953ab46ca1b; fixture-only control b11525c34ca7da4456bc6b0c281619c7e80192bc; final head d62377dd75ebb86eeac6bd3f4d6be986ba84c8cb. Windows 11 Enterprise 26200, WinLibs GCC15.2r7/UCRT Release, SPIRV-Tools enabled (confirmed from the retained production compile commands).

Three fresh serial processes per group/device Passes Expected missing-handoff failures
Literal main 39 (9 CPU +30 GPU) 0
Main + identical BDA regression fixture only 0 6
Final head 39 (9 CPU +30 GPU) 0
  • Handoff control: main plus only the identical NativeDepthBdaClear.cpp fails 3/3 per physical GPU at the recognized HTILE clear is missing its pending write range. Final head passes 3/3 per GPU. Each process checks owner, sampled texture and attachment consumption before explicit WaitIdle, settled pending ranges, exact 32768-byte metadata and complete 1MiB allocation readback. The unrecognized-pending-write refusal also passes.
  • Scope: CPU write tracking, guest memory and AGC graphics. GPU BDA clear, native multisample depth, depth clears, retirement and clear refusals. Real execution sources and actual device identities verified. Native-depth-clears has 26 completed-output cases plus one expected uncovered-HTILE refusal, checked=27 unavailable=0, on both main and head. That refusal does not prove completed-clear output or fix #8759.
  • Devices/setup: RTX5080 10de:2c02, 610.62 /32.0.16.1062; Radeon Graphics 1002:13c0, 32.0.21036.18. Required Vulkan, ANYPS5_NO_SHADER_CACHE=1, APS5_NO_PIPELINE_JOURNAL=1, loaded Khronos1.4.363, verbose serial CTest with 30s timeout. Across 84 processes: zero VUIDs, validation errors/warnings, whole-test skips or timeouts; maximum 6.949s. Driver caches uncontrolled.
  • Build: all runtime libraries, relinker and selected test targets pass on main and final head; the fixture-only control target builds. A default all-test-executables build was intentionally stopped when it began rebuilding unrelated tests; no full-default-build or full-suite pass is claimed for this refresh.
  • Analysis: Cppcheck2.20 then clang-tidy23.1.3 on all four changed C++ units, 85.060s analyzer time: 18 Cppcheck and9 clang-tidy advisories. All27 five-line diagnostic contexts match main. Existing batch-allocation, extension-pointer, timer, teardown, format, widening and copy findings retain earlier triage; no new defect established in this delta, parser/configuration failure, timeout, automatic fix or static-clean claim.
  • Conventions/title/template and three-dot whitespace pass. Checked newer main 8b3e39832af85f404c6195418d11b3e1ebd1924d for source compatibility: its sRGB twin, video-init and directory-link changes do not change this handoff delta. That newer composition is not runtime-tested here. Maintainer-triggered CI remains separate.

Reproduce the primary check: ctest --test-dir <build> -V -j1 --timeout 30 -R '^agc_driver_native_depth_bda_clear$' with the settings above.

Attributed external evidence at its reported pins

jotitadev retested older head 989764414 on Apple M2 Max, macOS27.2, x86_64/Rosetta2, composed with macOS port #8658 ee0a438415. On MoltenVK1.4.2 and MoltenVK main + SPIRV-Cross #2704, all five focused depth groups pass 3/3; reverting the handoff production files preserves the prerequisite and makes BDA clear fail at the missing pending range. The earlier clear-test timeout is gone in that composition. CheckImportWindow still fails with and without this PR; the full AGC suites retain base failures, plus an intermittent colour-target result on MoltenVK1.4.2. These are the reviewer's results, not local/current-head totals.

EagleBearerYS's composed-branch report preserves Note -> Arm after imports -> completion, and keeps SyncThrough outside surfacesMutex. Its lavapipe imports are not write-watched: BDA clear skips there, so it is not coverage of our watched-import regression. MarcZX10 withdrew the earlier deadlock concern.

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: none
  • Fixes: none
  • Unblocks: PPSA99902 #4443 (the pending native HTILE consumer stop only; full title remains incomplete)
  • GPUs tested: NVIDIA GeForce RTX 5080, 610.62 / 32.0.16.1062; AMD Radeon(TM) Graphics, 32.0.21036.18; Windows 11 Enterprise 26200.
  • AI-assisted: yes (Codex); author responsible
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4905981600 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7371). Originally posted by [Amoenus](https://github.com/Amoenus) on 2026-10-18T03:10:59Z. --- ### What Register a recognized queued native-depth HTILE clear's exact range as a pending write, then settle that producer before cached-owner, sampled-texture or attachment consumption. Copy the range under the surface mutex and release it before `SyncThrough`. Retain CPU-race, complete-coverage, clear-value and unknown-writer refusals. #7233 is merged. Head `d62377dd75ebb86eeac6bd3f4d6be986ba84c8cb` is one focused commit on main `3ca07d086d5f44fbe3c00370e7f03953ab46ca1b`: five files, +68/-3. Its added/removed line sequences are identical to our prior delta against adapted #7233. [The prior published head is preserved](https://github.com/Amoenus/AnyPS5/tree/codex/archive-pr7371-before-main3ca0-20261022); MarcZX10's prerequisite and Jan Slegl's tracker-test attribution remain in merged #7233. Sonic Unleashed Recompiled **PPSA99902**, #4443, encountered this stop in the earlier composed bring-up: ```text AGC graphics: external GPU writes over native multisample depth are not implemented ``` This refresh has no new title replay or performance claim. Agreed order: this PR before #9533; #9533 also follows #6973. The new metadata-fill composition refusal in EagleBearerYS's [5e8a1cdb83](https://github.com/EagleBearerYS/AnyPS5/commit/5e8a1cdb83b80bcc2fa23ced0ec44446865e9834) stays with that fill capability. Main still refuses metadata fills over this native owner. ### Tested **Frozen source:** main `3ca07d086d5f44fbe3c00370e7f03953ab46ca1b`; fixture-only control [`b11525c34ca7da4456bc6b0c281619c7e80192bc`](https://github.com/Amoenus/AnyPS5/commit/b11525c34ca7da4456bc6b0c281619c7e80192bc); final head `d62377dd75ebb86eeac6bd3f4d6be986ba84c8cb`. Windows 11 Enterprise 26200, WinLibs GCC15.2r7/UCRT Release, SPIRV-Tools enabled (confirmed from the retained production compile commands). | Three fresh serial processes per group/device | Passes | Expected missing-handoff failures | | --- | ---: | ---: | | Literal main | 39 (9 CPU +30 GPU) | 0 | | Main + identical BDA regression fixture only | 0 | 6 | | Final head | 39 (9 CPU +30 GPU) | 0 | - **Handoff control:** main plus only the identical `NativeDepthBdaClear.cpp` fails 3/3 per physical GPU at `the recognized HTILE clear is missing its pending write range`. Final head passes 3/3 per GPU. Each process checks owner, sampled texture and attachment consumption before explicit WaitIdle, settled pending ranges, exact 32768-byte metadata and complete 1MiB allocation readback. The unrecognized-pending-write refusal also passes. - **Scope:** CPU write tracking, guest memory and AGC graphics. GPU BDA clear, native multisample depth, depth clears, retirement and clear refusals. Real execution sources and actual device identities verified. Native-depth-clears has **26 completed-output cases plus one expected uncovered-HTILE refusal**, `checked=27 unavailable=0`, on both main and head. That refusal does not prove completed-clear output or fix #8759. - **Devices/setup:** RTX5080 `10de:2c02`, 610.62 /32.0.16.1062; Radeon Graphics `1002:13c0`, 32.0.21036.18. Required Vulkan, `ANYPS5_NO_SHADER_CACHE=1`, `APS5_NO_PIPELINE_JOURNAL=1`, loaded Khronos1.4.363, verbose serial CTest with 30s timeout. Across 84 processes: zero VUIDs, validation errors/warnings, whole-test skips or timeouts; maximum **6.949s**. Driver caches uncontrolled. - **Build:** all runtime libraries, relinker and selected test targets pass on main and final head; the fixture-only control target builds. A default all-test-executables build was intentionally stopped when it began rebuilding unrelated tests; no full-default-build or full-suite pass is claimed for this refresh. - **Analysis:** Cppcheck2.20 then clang-tidy23.1.3 on all four changed C++ units, 85.060s analyzer time: 18 Cppcheck and9 clang-tidy advisories. All27 five-line diagnostic contexts match main. Existing batch-allocation, extension-pointer, timer, teardown, format, widening and copy findings retain earlier triage; no new defect established in this delta, parser/configuration failure, timeout, automatic fix or static-clean claim. - Conventions/title/template and three-dot whitespace pass. Checked newer main `8b3e39832af85f404c6195418d11b3e1ebd1924d` for source compatibility: its sRGB twin, video-init and directory-link changes do not change this handoff delta. That newer composition is not runtime-tested here. Maintainer-triggered CI remains separate. Reproduce the primary check: `ctest --test-dir <build> -V -j1 --timeout 30 -R '^agc_driver_native_depth_bda_clear$'` with the settings above. #### Attributed external evidence at its reported pins jotitadev [retested older head `989764414`](https://github.com/boykopovar/AnyPS5/pull/7371#pullrequestreview-5611299165) on Apple M2 Max, macOS27.2, x86_64/Rosetta2, composed with macOS port #8658 `ee0a438415`. On MoltenVK1.4.2 and MoltenVK main + SPIRV-Cross #2704, all five focused depth groups pass 3/3; reverting the handoff production files preserves the prerequisite and makes BDA clear fail at the missing pending range. The earlier clear-test timeout is gone in that composition. `CheckImportWindow` still fails with and without this PR; the full AGC suites retain base failures, plus an intermittent colour-target result on MoltenVK1.4.2. These are the reviewer's results, not local/current-head totals. EagleBearerYS's [composed-branch report](https://github.com/boykopovar/AnyPS5/pull/7371#issuecomment-6338323858) preserves Note -> Arm after imports -> completion, and keeps `SyncThrough` outside `surfacesMutex`. Its lavapipe imports are not write-watched: BDA clear skips there, so it is not coverage of our watched-import regression. MarcZX10 [withdrew the earlier deadlock concern](https://github.com/boykopovar/AnyPS5/pull/7371#pullrequestreview-5561252792). ### 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: <!-- #PR, or none --> none - [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 --> PPSA99902 #4443 (the pending native HTILE consumer stop only; full title remains incomplete) - [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 5080, 610.62 / 32.0.16.1062; AMD Radeon(TM) Graphics, 32.0.21036.18; Windows 11 Enterprise 26200. - [x] AI-assisted: <!-- yes / no --> yes (Codex); author responsible
MarcZX10 commented 2026-10-18 03:21:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-18T03:21:48Z.

Review: COMMENTED


I found a likely deadlock in the consumer handoff. DepthSurfaceView, DepthSurfaceTexture, and DepthSurfaceHolds acquire GuestMemory::GpuMutex() before calling settlePendingHtileClear(), which can call Recorder::SyncThrough() while that mutex is still held. The queued dispatch is executed by Queue0 and its dispatch lambda takes the same GPU mutex (the prerequisite #7233 report also identifies this lock as the Driver-worker timeout cause). If the pending write belongs to that queued clear, the consumer waits for the batch while its worker cannot acquire the mutex to record/submit it. Could the handoff arrange to wait outside the GPU mutex, or otherwise prove the pending batch is already submitted before this path waits? The surface mutex is released, but the GPU mutex remains held.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5561250084 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7371#pullrequestreview-5561250084). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-18T03:21:48Z. **Review:** COMMENTED --- I found a likely deadlock in the consumer handoff. `DepthSurfaceView`, `DepthSurfaceTexture`, and `DepthSurfaceHolds` acquire `GuestMemory::GpuMutex()` before calling `settlePendingHtileClear()`, which can call `Recorder::SyncThrough()` while that mutex is still held. The queued dispatch is executed by Queue0 and its dispatch lambda takes the same GPU mutex (the prerequisite #7233 report also identifies this lock as the Driver-worker timeout cause). If the pending write belongs to that queued clear, the consumer waits for the batch while its worker cannot acquire the mutex to record/submit it. Could the handoff arrange to wait outside the GPU mutex, or otherwise prove the pending batch is already submitted before this path waits? The surface mutex is released, but the GPU mutex remains held.
MarcZX10 commented 2026-10-18 03:22:45 +00:00 (Migrated from github.com)

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

Review: COMMENTED


Follow-up to my earlier comment: I could not establish the deadlock from the current synchronization path. PendingWriteOverlaps only becomes true after recordDispatch has queued the HTILE completion and registered the recorder range; that recording path itself runs under GpuMutex. So the specific queued worker I was concerned about has already passed the mutex before this consumer can observe the pending range. Please disregard my deadlock concern. I found no concrete defect in the reviewed handoff.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5561252792 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7371#pullrequestreview-5561252792). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-18T03:22:45Z. **Review:** COMMENTED --- Follow-up to my earlier comment: I could not establish the deadlock from the current synchronization path. `PendingWriteOverlaps` only becomes true after `recordDispatch` has queued the HTILE completion and registered the recorder range; that recording path itself runs under `GpuMutex`. So the specific queued worker I was concerned about has already passed the mutex before this consumer can observe the pending range. Please disregard my deadlock concern. I found no concrete defect in the reviewed handoff.
github-actions[bot] commented 2026-10-18 03:32:31 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-18T03:32:31Z.


Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 1368 core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
PR 1395 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
PR 2434 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 4040 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 4072 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 4472 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 5021 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 5431 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 5441 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 5925 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6188 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6202 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6292 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
PR 6300 core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
core/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cpp
PR 6615 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
PR 6788 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 6808 core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
core/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cpp
PR 6879 core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
PR 6960 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7201 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
PR 7256 core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
PR 7275 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7622 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7642 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 7705 core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
PR 8014 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 8105 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp
core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp
PR 8278 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 8658 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
core/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cpp
PR 9356 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 9387 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
PR 9508 core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6245222790 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7371#issuecomment-6245222790). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-18T03:32:31Z. --- <!-- pr-overlap --> Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | [PR 1368](https://www.github.com/boykopovar/AnyPS5/pull/1368) | `core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp` | | [PR 1395](https://www.github.com/boykopovar/AnyPS5/pull/1395) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp` | | [PR 2434](https://www.github.com/boykopovar/AnyPS5/pull/2434) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 4040](https://www.github.com/boykopovar/AnyPS5/pull/4040) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 4072](https://www.github.com/boykopovar/AnyPS5/pull/4072) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 4472](https://www.github.com/boykopovar/AnyPS5/pull/4472) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 5021](https://www.github.com/boykopovar/AnyPS5/pull/5021) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 5431](https://www.github.com/boykopovar/AnyPS5/pull/5431) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 5441](https://www.github.com/boykopovar/AnyPS5/pull/5441) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 5925](https://www.github.com/boykopovar/AnyPS5/pull/5925) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 6188](https://www.github.com/boykopovar/AnyPS5/pull/6188) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 6202](https://www.github.com/boykopovar/AnyPS5/pull/6202) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 6292](https://www.github.com/boykopovar/AnyPS5/pull/6292) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp` | | [PR 6300](https://www.github.com/boykopovar/AnyPS5/pull/6300) | `core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cpp` | | [PR 6615](https://www.github.com/boykopovar/AnyPS5/pull/6615) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp` | | [PR 6788](https://www.github.com/boykopovar/AnyPS5/pull/6788) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 6808](https://www.github.com/boykopovar/AnyPS5/pull/6808) | `core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cpp` | | [PR 6879](https://www.github.com/boykopovar/AnyPS5/pull/6879) | `core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp` | | [PR 6960](https://www.github.com/boykopovar/AnyPS5/pull/6960) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 7201](https://www.github.com/boykopovar/AnyPS5/pull/7201) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp` | | [PR 7256](https://www.github.com/boykopovar/AnyPS5/pull/7256) | `core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp` | | [PR 7275](https://www.github.com/boykopovar/AnyPS5/pull/7275) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 7622](https://www.github.com/boykopovar/AnyPS5/pull/7622) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 7642](https://www.github.com/boykopovar/AnyPS5/pull/7642) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 7705](https://www.github.com/boykopovar/AnyPS5/pull/7705) | `core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp` | | [PR 8014](https://www.github.com/boykopovar/AnyPS5/pull/8014) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 8105](https://www.github.com/boykopovar/AnyPS5/pull/8105) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hpp`<br>`core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp` | | [PR 8278](https://www.github.com/boykopovar/AnyPS5/pull/8278) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 8658](https://www.github.com/boykopovar/AnyPS5/pull/8658) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp`<br>`core/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cpp` | | [PR 9356](https://www.github.com/boykopovar/AnyPS5/pull/9356) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 9387](https://www.github.com/boykopovar/AnyPS5/pull/9387) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` | | [PR 9508](https://www.github.com/boykopovar/AnyPS5/pull/9508) | `core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp` |
jotitadev commented 2026-10-19 09:00:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-19T09:00:44Z.

Review: COMMENTED


Apple GPU / MoltenVK run, as a third vendor for the dependency note. The handoff works on Metal: agc_driver_native_depth_bda_clear passes, and it fails with your handoff commit reverted. agc_driver_native_depth_clears times out at 30 s here too, as on your RTX 5080 and Radeon. It passes without #7233, so on Apple it is also new with the prerequisite. On this tree it passes in 0.3 s.

Machine: Apple M2 Max, macOS 27.2, x86-64 build under Rosetta. Drivers: MoltenVK 1.4.2 (Vulkan SDK 1.4.363.0) and MoltenVK main + SPIRV-Cross #2704. Head 3ca97c756. The diff from the merge base includes #7233 (42cbe0c33). One hunk in NoteHtileDepthClear conflicted because this tree predates main's sampling.Refuse(...). I kept the tree's sampling.refusal = ... for the two refusals and took your new else block unchanged.

Tested: the tree is main a373e85e5 + mugurc's macOS series (ci/macos-series-2) + the PRs needed to build on macOS (#6667, #6668, #7524, #6969, and two files of #7332), not plain main (it doesn't build on macOS yet). Applied together in the same build: #7371, #7535, #7684, #7746 and #7759, plus a test-only patch that lets nine AGC fixtures load the Vulkan loader on macOS (branch jotitadev:fix/agc-tests-vulkan-loader-macos). Base on that tree: 40 ^agc failures with MoltenVK 1.4.2 and 26 with MoltenVK main + #2704, plus agc_driver_pooled_buffer_range and agc_performance_overlay, which only run because of the loader patch.

  • With the PR: agc_driver_native_depth_bda_clear and agc_driver_native_multisample_depth pass 3 of 3 on both drivers. agc_write_tracking is a base failure on macOS, at CheckImportWindow (a block the import window did not touch reads as written). That check runs after the new possible-write checks, and the test still stops there, so the new checks pass.
  • With only 3ca97c756's VulkanDevice.cpp, DepthSurface.hpp and DepthSurface.cpp changes reverted (#7233 kept), agc_driver_native_depth_bda_clear fails on both drivers with the recognized HTILE clear is missing its pending write range, the same as your control. agc_driver_native_depth_clears still times out.
  • With the whole diff reverted, agc_driver_native_depth_clears, agc_driver_native_multisample_depth and agc_driver_native_depth_bda_clear pass 3 of 3 on both drivers.
  • Full ^agc suite with the stack: the base failures plus agc_driver_native_depth_clears (timeout) on both drivers. #7746 in the same build removes one base failure. Nothing else changes.

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

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

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5569157715 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7371#pullrequestreview-5569157715). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-19T09:00:44Z. **Review:** COMMENTED --- <!-- head: 3ca97c756 --> Apple GPU / MoltenVK run, as a third vendor for the dependency note. The handoff works on Metal: `agc_driver_native_depth_bda_clear` passes, and it fails with your handoff commit reverted. `agc_driver_native_depth_clears` times out at 30 s here too, as on your RTX 5080 and Radeon. It passes without #7233, so on Apple it is also new with the prerequisite. On this tree it passes in 0.3 s. Machine: Apple M2 Max, macOS 27.2, x86-64 build under Rosetta. Drivers: MoltenVK 1.4.2 (Vulkan SDK 1.4.363.0) and MoltenVK main + SPIRV-Cross #2704. Head 3ca97c756. The diff from the merge base includes #7233 (42cbe0c33). One hunk in `NoteHtileDepthClear` conflicted because this tree predates main's `sampling.Refuse(...)`. I kept the tree's `sampling.refusal = ...` for the two refusals and took your new `else` block unchanged. **Tested:** the tree is `main` a373e85e5 + mugurc's macOS series (`ci/macos-series-2`) + the PRs needed to build on macOS (#6667, #6668, #7524, #6969, and two files of #7332), not plain `main` (it doesn't build on macOS yet). Applied together in the same build: #7371, #7535, #7684, #7746 and #7759, plus a test-only patch that lets nine AGC fixtures load the Vulkan loader on macOS (branch `jotitadev:fix/agc-tests-vulkan-loader-macos`). Base on that tree: 40 `^agc` failures with MoltenVK 1.4.2 and 26 with MoltenVK main + #2704, plus `agc_driver_pooled_buffer_range` and `agc_performance_overlay`, which only run because of the loader patch. - With the PR: `agc_driver_native_depth_bda_clear` and `agc_driver_native_multisample_depth` pass 3 of 3 on both drivers. `agc_write_tracking` is a base failure on macOS, at `CheckImportWindow` (`a block the import window did not touch reads as written`). That check runs after the new possible-write checks, and the test still stops there, so the new checks pass. - With only 3ca97c756's `VulkanDevice.cpp`, `DepthSurface.hpp` and `DepthSurface.cpp` changes reverted (#7233 kept), `agc_driver_native_depth_bda_clear` fails on both drivers with `the recognized HTILE clear is missing its pending write range`, the same as your control. `agc_driver_native_depth_clears` still times out. - With the whole diff reverted, `agc_driver_native_depth_clears`, `agc_driver_native_multisample_depth` and `agc_driver_native_depth_bda_clear` pass 3 of 3 on both drivers. - Full `^agc` suite with the stack: the base failures plus `agc_driver_native_depth_clears` (timeout) on both drivers. #7746 in the same build removes one base failure. Nothing else changes. GPUs tested: Apple M2 Max (MoltenVK 1.4.2; MoltenVK main + SPIRV-Cross #2704) Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
Amoenus commented 2026-10-20 22:38:32 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-20T22:38:32Z.


Updated in place after #7233 merged: #7371 is now the focused five-file handoff delta at d62377dd75, on main 3ca07d086d, with Depends on: none. The PR description holds the current validation matrix, hardware, reproduction and external-review scope.

Current local qualification: 78 passes (39 main, 39 refreshed head) and six expected fixture-only control failures, across RTX5080 and Radeon Graphics. No VUIDs, validation errors/warnings, whole-test skips or timeouts. All runtime libraries/relinker and focused targets build; the full-default target was intentionally stopped, not claimed complete. All27 analyzer diagnostic contexts match main. No new game replay or FPS claim.

The older 9897644145 / cd700fe9ec 198-process qualification is historical at those pins; its published source is preserved. The latest attributed Apple review supersedes the earlier timeout report only for its stated macOS-port composition. #8759 remains a separate tracking gap.

AI-assisted maintenance: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6303353936 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7371#issuecomment-6303353936). Originally posted by [Amoenus](https://github.com/Amoenus) on 2026-10-20T22:38:32Z. --- Updated in place after #7233 merged: #7371 is now the focused five-file handoff delta at `d62377dd75`, on main `3ca07d086d`, with **Depends on: none**. The [PR description](https://github.com/boykopovar/AnyPS5/pull/7371) holds the current validation matrix, hardware, reproduction and external-review scope. Current local qualification: 78 passes (39 main, 39 refreshed head) and six expected fixture-only control failures, across RTX5080 and Radeon Graphics. No VUIDs, validation errors/warnings, whole-test skips or timeouts. All runtime libraries/relinker and focused targets build; the full-default target was intentionally stopped, not claimed complete. All27 analyzer diagnostic contexts match main. No new game replay or FPS claim. The older `9897644145` / `cd700fe9ec` 198-process qualification is historical at those pins; [its published source is preserved](https://github.com/Amoenus/AnyPS5/tree/codex/archive-pr7371-before-main3ca0-20261022). The latest attributed Apple review supersedes the earlier timeout report only for its stated macOS-port composition. #8759 remains a separate tracking gap. AI-assisted maintenance: yes.
EagleBearerYS commented 2026-10-22 02:03:40 +00:00 (Migrated from github.com)

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


@Amoenus a merge-order note: #9533 changes NoteHtileDepthClear in DepthSurface.cpp and the native multisample depth tests, where this PR settles queued HTILE clears, for native multisample D32S8 targets with a separate stencil plane. #9533 goes after #7233, as this one does, and proposes going before this PR, which would then rebase over it. If you'd rather this one went first, say so and #9533 will list it under Depends on.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6330907588 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7371#issuecomment-6330907588). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-22T02:03:40Z. --- @Amoenus a merge-order note: #9533 changes `NoteHtileDepthClear` in `DepthSurface.cpp` and the native multisample depth tests, where this PR settles queued HTILE clears, for native multisample D32S8 targets with a separate stencil plane. #9533 goes after #7233, as this one does, and proposes going before this PR, which would then rebase over it. If you'd rather this one went first, say so and #9533 will list it under Depends on.
Amoenus commented 2026-10-22 07:56:39 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-22T07:56:39Z.


@EagleBearerYS I prefer #7233 -> #7371 -> #9533. #7371 is the focused queued-clear completion/handoff correction; #9533 adds the separate-stencil and depth-only-HTILE shapes. Landing the handoff first keeps that correction reviewable without pulling the wider stencil capability into it, and matches the order we previously discussed on #7233.

Please list #7371 in your merge-order dependencies and rebase after it. In the composition, keep the pending/armed/completion ordering and the range-limited SyncThrough outside surfacesMutex; the clear-aspect/plane proofs from your changes must also survive. This is a source-level merge-order preference, not validation of the combined branch. #7371 remains mergeable on current main d6eafa54d0 and still depends on #7233. AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6335742651 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7371#issuecomment-6335742651). Originally posted by [Amoenus](https://github.com/Amoenus) on 2026-10-22T07:56:39Z. --- @EagleBearerYS I prefer **#7233 -> #7371 -> #9533**. #7371 is the focused queued-clear completion/handoff correction; #9533 adds the separate-stencil and depth-only-HTILE shapes. Landing the handoff first keeps that correction reviewable without pulling the wider stencil capability into it, and matches the order we previously discussed on #7233. Please list #7371 in your merge-order dependencies and rebase after it. In the composition, keep the pending/armed/completion ordering and the range-limited `SyncThrough` outside `surfacesMutex`; the clear-aspect/plane proofs from your changes must also survive. This is a source-level merge-order preference, not validation of the combined branch. #7371 remains mergeable on current main `d6eafa54d0` and still depends on #7233. AI-assisted: yes.
jotitadev commented 2026-10-22 08:26:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-22T08:26:07Z.

Review: COMMENTED


Re-ran 989764414 on the M2. The agc_driver_native_depth_clears timeout I reported on 3ca97c756 is gone on Apple: it passes in about 0.7 s on both drivers, with the refreshed #7233 included.

Machine: Apple M2 Max, macOS 27.2, x86_64 under Rosetta 2. Release, BUILD_TESTING=ON.
Drivers: MoltenVK 1.4.2 (Vulkan SDK 1.4.363.0), and MoltenVK main + SPIRV-Cross #2704.
Base/method: PR #8658 feat/macos-port @ ee0a438415 (current main plus the macOS port), not main, which does not build on macOS. This head merged into it (git merge-tree, no conflicts), diff without docs/. Full rebuild before each run. No other PRs stacked this time.

  • With the PR, 3 of 3 on both drivers: agc_driver_native_depth_bda_clear, agc_driver_native_multisample_depth, agc_driver_native_depth_clears, agc_driver_native_depth_retirement and agc_driver_native_depth_clear_refusals pass. agc_write_tracking fails here with or without the PR, at CheckImportWindow (a block the import window did not touch reads as written). That is a macOS base failure. The new CheckStoredOverUsesPageEvidence runs before it and passes.
  • Handoff production files reverted (VulkanDevice.cpp, DepthSurface.hpp, DepthSurface.cpp back to 01248f46b6, prerequisite kept): agc_driver_native_depth_bda_clear fails on both drivers with the recognized HTILE clear is missing its pending write range, the same as your control. agc_driver_native_depth_clears passes in this state too.
  • Full ^agc suite (-j1 --timeout 30, 857 tests): MoltenVK main + #2704 matches the base exactly (16 failures). MoltenVK 1.4.2 has the base's 17 plus agc_driver_uint8x4_color_target. That test is intermittent on this machine without this PR too (UINT16_ABGR export byte mismatch), and it does not touch HTILE or depth. No timeouts on either driver.

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

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

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5611299165 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7371#pullrequestreview-5611299165). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-22T08:26:07Z. **Review:** COMMENTED --- <!-- head: 989764414 --> Re-ran 989764414 on the M2. The `agc_driver_native_depth_clears` timeout I reported on 3ca97c756 is gone on Apple: it passes in about 0.7 s on both drivers, with the refreshed #7233 included. **Machine:** Apple M2 Max, macOS 27.2, x86_64 under Rosetta 2. Release, `BUILD_TESTING=ON`. **Drivers:** MoltenVK 1.4.2 (Vulkan SDK 1.4.363.0), and MoltenVK main + SPIRV-Cross #2704. **Base/method:** PR #8658 `feat/macos-port` @ `ee0a438415` (current `main` plus the macOS port), not `main`, which does not build on macOS. This head merged into it (`git merge-tree`, no conflicts), diff without `docs/`. Full rebuild before each run. No other PRs stacked this time. - **With the PR**, 3 of 3 on both drivers: `agc_driver_native_depth_bda_clear`, `agc_driver_native_multisample_depth`, `agc_driver_native_depth_clears`, `agc_driver_native_depth_retirement` and `agc_driver_native_depth_clear_refusals` pass. `agc_write_tracking` fails here with or without the PR, at `CheckImportWindow` (`a block the import window did not touch reads as written`). That is a macOS base failure. The new `CheckStoredOverUsesPageEvidence` runs before it and passes. - **Handoff production files reverted** (`VulkanDevice.cpp`, `DepthSurface.hpp`, `DepthSurface.cpp` back to 01248f46b6, prerequisite kept): `agc_driver_native_depth_bda_clear` fails on both drivers with `the recognized HTILE clear is missing its pending write range`, the same as your control. `agc_driver_native_depth_clears` passes in this state too. - **Full `^agc` suite** (`-j1 --timeout 30`, 857 tests): MoltenVK main + #2704 matches the base exactly (16 failures). MoltenVK 1.4.2 has the base's 17 plus `agc_driver_uint8x4_color_target`. That test is intermittent on this machine without this PR too (UINT16_ABGR export byte mismatch), and it does not touch HTILE or depth. No timeouts on either driver. GPUs tested: Apple M2 Max (MoltenVK 1.4.2; MoltenVK main + SPIRV-Cross #2704) Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
EagleBearerYS commented 2026-10-22 09:12:20 +00:00 (Migrated from github.com)

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


@Amoenus thanks, agreed: #9533 lists #7371 under Depends on and rebases after it (#7233 → #7371 → #9533). A git merge-tree of #9533's next head over this PR isn't clean, in DepthSurface.cpp and the native multisample depth tests, so the rebase composes the two and keeps:

  • this PR's pending, armed and completed order: a clear is proved only once it has completed;
  • the range-limited SyncThrough outside surfacesMutex;
  • #9533's clear-aspect and plane checks, after this PR's pending-clear refusal.

A composed branch will be on my fork for you to look at if you want to check the handoff; I'll link it here when it's up.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6337124577 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7371#issuecomment-6337124577). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-22T09:12:20Z. --- @Amoenus thanks, agreed: #9533 lists #7371 under Depends on and rebases after it (#7233 → #7371 → #9533). A `git merge-tree` of #9533's next head over this PR isn't clean, in `DepthSurface.cpp` and the native multisample depth tests, so the rebase composes the two and keeps: - this PR's pending, armed and completed order: a clear is proved only once it has completed; - the range-limited `SyncThrough` outside `surfacesMutex`; - #9533's clear-aspect and plane checks, after this PR's pending-clear refusal. A composed branch will be on my fork for you to look at if you want to check the handoff; I'll link it here when it's up.
EagleBearerYS commented 2026-10-22 10:16:08 +00:00 (Migrated from github.com)

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


@Amoenus the composed branch is up: compose/9533-on-7371 (5e8a1cdb83). It's #9533's 11 commits replayed on a merge of this PR's 9897644145, plus one commit for a gap the two only have together.

  • The merge (af515f6075) keeps this PR's order. NoteHtileDepthClear only marks the clear pending; the generation is taken in ArmHtileDepthClear after the dispatch's imports; the clear is proved once CompleteHtileDepthClear marks it written. CheckCurrent refuses a pending clear before #9533's plane checks. An HTILE dispatch clear takes this PR's branch whole, and fills keep #9533's.
  • One replayed commit changed (702a88984b): #9533's expand-gate test notes an HTILE mask clear, so on this PR it arms it too.
  • New (5e8a1cdb83): a whole-HTILE metadata fill noted between a dispatch clear's Note and its Arm was taken as the clear's fill pattern, so the dispatch clear would have been proved as a fill. It now refuses, with its own case in --clear-refusals: red with the hunk reverted, green on the head.
  • Syncs: no line from #9533 or the new commit adds one. This PR's range-limited SyncThrough in settlePendingHtileClear still runs after its lock block, outside surfacesMutex.
  • Checks (Linux, CI's flags, lavapipe):
    • Every commit builds and passes ^agc_driver_native|^agc_driver_msaa_dcc_clear_4$, and the head passes it ×5.
    • The full ^agc suite gives 877 of 878 on the head. The one failure, agc_driver_sgpr_pattern_fill_keys, passes ×20 alone and also fails intermittently in parallel ^agc runs on main.
    • Each of this PR's changes and #9533's was reverted on the head, and its test's red recorded.
    • Lavapipe's imports aren't write-watched, so agc_driver_native_depth_bda_clear skips and the DriverDispatch case takes its unwatched branch. 71decdc752 and 2b5d9eba09 had no red there, and need a device whose imports stay watched.

#9533 takes this branch, with main merged in, once this PR merges.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6338323858 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7371#issuecomment-6338323858). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-22T10:16:08Z. --- @Amoenus the composed branch is up: [`compose/9533-on-7371`](https://github.com/EagleBearerYS/AnyPS5/commits/compose/9533-on-7371) (5e8a1cdb83). It's #9533's 11 commits replayed on a merge of this PR's 9897644145, plus one commit for a gap the two only have together. - **The merge** ([af515f6075](https://github.com/EagleBearerYS/AnyPS5/commit/af515f6075cb9cb274e7b482f7ee5e558fd222d1)) keeps this PR's order. `NoteHtileDepthClear` only marks the clear pending; the generation is taken in `ArmHtileDepthClear` after the dispatch's imports; the clear is proved once `CompleteHtileDepthClear` marks it written. `CheckCurrent` refuses a pending clear before #9533's plane checks. An HTILE dispatch clear takes this PR's branch whole, and fills keep #9533's. - **One replayed commit changed** ([702a88984b](https://github.com/EagleBearerYS/AnyPS5/commit/702a88984b44432a577c237c18b8c67727fbf8ee)): #9533's expand-gate test notes an HTILE mask clear, so on this PR it arms it too. - **New** ([5e8a1cdb83](https://github.com/EagleBearerYS/AnyPS5/commit/5e8a1cdb83b80bcc2fa23ced0ec44446865e9834)): a whole-HTILE metadata fill noted between a dispatch clear's Note and its Arm was taken as the clear's fill pattern, so the dispatch clear would have been proved as a fill. It now refuses, with its own case in `--clear-refusals`: red with the hunk reverted, green on the head. - **Syncs:** no line from #9533 or the new commit adds one. This PR's range-limited `SyncThrough` in `settlePendingHtileClear` still runs after its lock block, outside `surfacesMutex`. - **Checks** (Linux, CI's flags, lavapipe): - Every commit builds and passes `^agc_driver_native|^agc_driver_msaa_dcc_clear_4$`, and the head passes it ×5. - The full `^agc` suite gives 877 of 878 on the head. The one failure, `agc_driver_sgpr_pattern_fill_keys`, passes ×20 alone and also fails intermittently in parallel `^agc` runs on `main`. - Each of this PR's changes and #9533's was reverted on the head, and its test's red recorded. - Lavapipe's imports aren't write-watched, so `agc_driver_native_depth_bda_clear` skips and the `DriverDispatch` case takes its unwatched branch. 71decdc752 and 2b5d9eba09 had no red there, and need a device whose imports stay watched. #9533 takes this branch, with `main` merged in, once this PR merges.
Amoenus commented 2026-10-22 13:07:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-22T13:07:27Z.


Merged update, 2026-10-22: #7371 landed as 329efe1bfdaff116c57cdf62718026ee4f5521ae at 14:14 UTC, containing qualified head d62377dd75. #9533 can now take the agreed main-based composition; its separate dependency on #6973 remains. That root is refreshed at 9290696549 after #8847. The validation below retains its stated source pins.

@EagleBearerYS Thanks for the composed branch and the separate red/green control. I inspected 5e8a1cdb83: the pending-dispatch/fill refusal belongs with the new fill support in #9533. On current main, metadata fills over the live native owner still refuse; I will keep #7371 focused on the queued-clear handoff. The agreed order remains #7371 before #9533, with #9533 also following #6973 as confirmed there.

#7233 has now merged. The published head is preserved on the fork. The same five-file delta is now pushed at d62377dd75, directly on main 3ca07d086d, with Depends on: none. Current-main and refreshed-head checks give 78 passes total on RTX 5080 and Radeon Graphics; the fixture-only negative control fails at the expected missing pending range 3/3 per GPU. The maintained description has full scope and reproduction. Newer main 8b3e39832a merges cleanly with this source; that newer composition was source-checked, not runtime-tested. Your lavapipe skip limitation remains separate from watched-import coverage on these devices.

@jotitadev Thank you for re-running 989764414 and the production-revert control. I updated the maintained report to reflect that the earlier clear-test timeout is gone in your reported macOS-port composition. The base CheckImportWindow failure and intermittent colour-target result remain scoped to your report; they are not counted as our local rebase results.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6341520240 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7371#issuecomment-6341520240). Originally posted by [Amoenus](https://github.com/Amoenus) on 2026-10-22T13:07:27Z. --- **Merged update, 2026-10-22:** #7371 landed as `329efe1bfdaff116c57cdf62718026ee4f5521ae` at 14:14 UTC, containing qualified head `d62377dd75`. #9533 can now take the agreed main-based composition; its separate dependency on #6973 remains. That root is refreshed at `9290696549` after #8847. The validation below retains its stated source pins. @EagleBearerYS Thanks for the composed branch and the separate red/green control. I inspected `5e8a1cdb83`: the pending-dispatch/fill refusal belongs with the new fill support in #9533. On current main, metadata fills over the live native owner still refuse; I will keep #7371 focused on the queued-clear handoff. The agreed order remains #7371 before #9533, with #9533 also following #6973 as confirmed there. #7233 has now merged. The published head is preserved on the fork. The same five-file delta is now pushed at `d62377dd75`, directly on main `3ca07d086d`, with **Depends on: none**. Current-main and refreshed-head checks give 78 passes total on RTX 5080 and Radeon Graphics; the fixture-only negative control fails at the expected missing pending range 3/3 per GPU. The maintained description has full scope and reproduction. Newer main `8b3e39832a` merges cleanly with this source; that newer composition was source-checked, not runtime-tested. Your lavapipe skip limitation remains separate from watched-import coverage on these devices. @jotitadev Thank you for re-running `989764414` and the production-revert control. I updated the maintained report to reflect that the earlier clear-test timeout is gone in your reported macOS-port composition. The base `CheckImportWindow` failure and intermittent colour-target result remain scoped to your report; they are not counted as our local rebase results.
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!7371
No description provided.