perf(agc): skip the depth plane copy when no slice changed #2491

Merged
oneandonlydean merged 2 commits from upstream-pr/2491 into main 2026-10-13 01:49:05 +00:00
oneandonlydean commented 2026-10-09 23:10:19 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T23:10:19Z.


What

Follow-up to #425. Stacked on #2490 (keep unchanged guest layers of a depth plane copy), which this builds on; the first commit here is #2490's.

  • Each depth surface carries a write serial, bumped when a draw binds it as its depth target and when a pending fast clear is applied.
  • DepthPlaneCopy keeps the image and serial of every slice it copied. A use copies only the slices whose surface or serial changed, plus the guest layers that changed (as before), and records nothing at all when none did.
  • A slice whose surface is the depth target of the latest depth draw is copied at every use until another depth target is bound, since that draw may still be recorded after the copy.
  • When only some slices changed, the copy image keeps its other layers (it goes from GENERAL to transfer and back instead of from UNDEFINED).

#425 is merged, so this head is rebased onto main 1c5e6287, on top of #2490's new head af716047. Both commits applied without conflicts and the change is the same.

  • Depth surface images are written only through DepthSurfaceView (draws) and ApplyFastClear on main, HTILE and memory value fills included (they set the pending clear), so the serial covers every writer.
  • The copy's cached textures view the copy image, which lives as long as the copy, so the 2D view of the first slice that #425 added stays valid and sees each refill.
  • #4500 adds a store-back from a storage image into a depth surface. With both in the tree, that store-back has to bump the serial (written = ++depthWrites; after its copyPlane(plane, stencil, false)); whichever lands second needs that one line.

It cannot merge before #2490.

Why

Every sampled use of a depth array, cube or R16_UINT view copied every slice a depth surface holds into the staging buffer and the whole staging buffer into the copy image, behind three ALL_COMMANDS barriers, although nothing had written the slices since the previous use. A title that renders its shadow cascades once per frame and samples them a few hundred times spent most of its GPU frame in these copies.

Tested

Linux (CachyOS, GCC 16.2.1, Release with CI's configure flags and ANYPS5_ENABLE_SPIRV_TOOLS=ON, full build and libs), RTX 4090, NVIDIA 610.57.04.

  • ctest -R "agc|shader" (--parallel 4, ANYPS5_REQUIRE_VULKAN=1): 462/462 on this head (e691d032), 462/462 on #2490 af716047, 461/461 on main 1c5e6287. tools/check_conventions.py --base origin/main and tools/check_test_registration.py pass.

  • The seven agc_driver_depth* tests under VK_LAYER_KHRONOS_validation: pass, no validation message.

  • agc_driver_depth_plane_guest_layers counts the recorded slice copies (vkCmdCopyImageToBuffer) and copy fills (vkCmdCopyBufferToImage):

    • a use with nothing written since records none; on #2490 with only the test change it records one of each and fails with sampling the depth planes with nothing written since recorded 1 depth surface copies and 1 plane copy fills, expected 0 and 0;
    • while a draw to a slice's surface is the latest depth draw, each use copies that slice; after another depth target is bound, it is copied once more and then not again;
    • a CPU write to the guest layer refills only that layer.

    It passes with the change (5 of 5 runs).

  • A 2D title we test with, on this head: 220 s through the menu into the second room, picture checks pass, no error line. It does not sample depth planes this way, so this is a regression check only.

  • A 3D title we test with stops on main before its title scene without #4500, so it was measured on main 1c5e6287 + #4500, with #2490 and this together: frames per second in the title scene and in the menu after it.

    build title fps menu fps
    main 1c5e6287 + #4500 0.8 0.65
    the same + #2490 + this 17.3 13.7

    Without the two changes the title scene runs at 0.6 to 0.9 fps from its first frame on (74 frames in 90 s); with them the run goes on into the first level. One run each; caches warm for the second row. In the second row #4500's store-back also bumps the write serial (the line named under What).

Not measured on this base: the level numbers of the earlier base (0.174 fps without, 2.275 fps with, on main 99c1c263 + #425's earlier head + #454). Not tested on Windows or on AMD.

Checklist

  • Based on current main (1c5e6287, the merge of #425); no other open PR changes DepthPlaneCopy (#1368 samples depth arrays with its own storage, separately)
  • 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: #2490
  • Unblocks: none
  • AI-assisted: yes (Claude Code)
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4806836628 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2491). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-09T23:10:19Z. --- ### What Follow-up to #425. Stacked on #2490 (keep unchanged guest layers of a depth plane copy), which this builds on; the first commit here is #2490's. - Each depth surface carries a write serial, bumped when a draw binds it as its depth target and when a pending fast clear is applied. - `DepthPlaneCopy` keeps the image and serial of every slice it copied. A use copies only the slices whose surface or serial changed, plus the guest layers that changed (as before), and records nothing at all when none did. - A slice whose surface is the depth target of the latest depth draw is copied at every use until another depth target is bound, since that draw may still be recorded after the copy. - When only some slices changed, the copy image keeps its other layers (it goes from `GENERAL` to transfer and back instead of from `UNDEFINED`). #425 is merged, so this head is rebased onto `main` 1c5e6287, on top of #2490's new head `af716047`. Both commits applied without conflicts and the change is the same. - Depth surface images are written only through `DepthSurfaceView` (draws) and `ApplyFastClear` on `main`, HTILE and memory value fills included (they set the pending clear), so the serial covers every writer. - The copy's cached textures view the copy image, which lives as long as the copy, so the 2D view of the first slice that #425 added stays valid and sees each refill. - #4500 adds a store-back from a storage image into a depth surface. With both in the tree, that store-back has to bump the serial (`written = ++depthWrites;` after its `copyPlane(plane, stencil, false)`); whichever lands second needs that one line. It cannot merge before #2490. ### Why Every sampled use of a depth array, cube or `R16_UINT` view copied every slice a depth surface holds into the staging buffer and the whole staging buffer into the copy image, behind three `ALL_COMMANDS` barriers, although nothing had written the slices since the previous use. A title that renders its shadow cascades once per frame and samples them a few hundred times spent most of its GPU frame in these copies. ### Tested Linux (CachyOS, GCC 16.2.1, Release with CI's configure flags and `ANYPS5_ENABLE_SPIRV_TOOLS=ON`, full build and `libs`), RTX 4090, NVIDIA 610.57.04. - `ctest -R "agc|shader"` (`--parallel 4`, `ANYPS5_REQUIRE_VULKAN=1`): 462/462 on this head (`e691d032`), 462/462 on #2490 `af716047`, 461/461 on `main` 1c5e6287. `tools/check_conventions.py --base origin/main` and `tools/check_test_registration.py` pass. - The seven `agc_driver_depth*` tests under `VK_LAYER_KHRONOS_validation`: pass, no validation message. - `agc_driver_depth_plane_guest_layers` counts the recorded slice copies (`vkCmdCopyImageToBuffer`) and copy fills (`vkCmdCopyBufferToImage`): - a use with nothing written since records none; on #2490 with only the test change it records one of each and fails with `sampling the depth planes with nothing written since recorded 1 depth surface copies and 1 plane copy fills, expected 0 and 0`; - while a draw to a slice's surface is the latest depth draw, each use copies that slice; after another depth target is bound, it is copied once more and then not again; - a CPU write to the guest layer refills only that layer. It passes with the change (5 of 5 runs). - A 2D title we test with, on this head: 220 s through the menu into the second room, picture checks pass, no error line. It does not sample depth planes this way, so this is a regression check only. - A 3D title we test with stops on `main` before its title scene without #4500, so it was measured on `main` 1c5e6287 + #4500, with #2490 and this together: frames per second in the title scene and in the menu after it. | build | title fps | menu fps | |---|---|---| | `main` 1c5e6287 + #4500 | 0.8 | 0.65 | | the same + #2490 + this | 17.3 | 13.7 | Without the two changes the title scene runs at 0.6 to 0.9 fps from its first frame on (74 frames in 90 s); with them the run goes on into the first level. One run each; caches warm for the second row. In the second row #4500's store-back also bumps the write serial (the line named under What). Not measured on this base: the level numbers of the earlier base (0.174 fps without, 2.275 fps with, on `main` 99c1c263 + #425's earlier head + #454). Not tested on Windows or on AMD. ### Checklist - [x] Based on current `main` (1c5e6287, the merge of #425); no other open PR changes `DepthPlaneCopy` (#1368 samples depth arrays with its own storage, separately) - [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: #2490 - [x] Unblocks: none - [x] AI-assisted: yes (Claude Code)
NahuelGenchi commented 2026-10-10 02:55:06 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by NahuelGenchi on 2026-10-10T02:55:06Z.


Tested on a second title and vendor: Sonic Origins Plus (PPSA05324), Linux, Radeon R9 380 2 GB (RADV, Mesa 26.0.8), 960x540 render size. Its main menu draws a 4-slice 1024x1024 D32 shadow cascade array once per frame and samples it in 43 draws.

Main menu, 10 s windows with APS5_PROFILE_GPU=1. Both builds are the same tree (#425 at 62b1e552, #454, and the fixes the title needs to reach the menu), without and with this PR's head 8085ddae:

Per presented frame Without With
Presents per 10 s 100–104 146–151
GPU busy 98.7 ms 65.1 ms
Uses of the plane copy 43 43
Uses that record a copy 43, 4 slices each 1, 4 slices
GPU time outside every timed range 22–23 ms 1.4 ms
Blended passes that sample the cascades 45 passes, 15.1 ms 4.2 passes, 3.8 ms
  • The copies were the untimed GPU time. I counted the uses and the recorded copies with a local counter in Refresh.
  • The draws that sample the array now share passes. Each copy used to end the pass before it.
  • The menu frame looks the same in both builds.
  • agc_driver_depth_plane_guest_layers passes on this card.

One note for the rebase: with #454 in the same tree, DepthSurfaceView conflicts. I kept #454's shape, bumped written where it finds the bound surface, and set drawnDepth = bound before the return.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6093034542 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2491#issuecomment-6093034542). Originally posted by [NahuelGenchi](https://github.com/NahuelGenchi) on 2026-10-10T02:55:06Z. --- Tested on a second title and vendor: Sonic Origins Plus (PPSA05324), Linux, Radeon R9 380 2 GB (RADV, Mesa 26.0.8), 960x540 render size. Its main menu draws a 4-slice 1024x1024 D32 shadow cascade array once per frame and samples it in 43 draws. Main menu, 10 s windows with `APS5_PROFILE_GPU=1`. Both builds are the same tree (#425 at 62b1e552, #454, and the fixes the title needs to reach the menu), without and with this PR's head 8085ddae: | Per presented frame | Without | With | |---|---|---| | Presents per 10 s | 100–104 | 146–151 | | GPU busy | 98.7 ms | 65.1 ms | | Uses of the plane copy | 43 | 43 | | Uses that record a copy | 43, 4 slices each | 1, 4 slices | | GPU time outside every timed range | 22–23 ms | 1.4 ms | | Blended passes that sample the cascades | 45 passes, 15.1 ms | 4.2 passes, 3.8 ms | - **The copies were the untimed GPU time.** I counted the uses and the recorded copies with a local counter in `Refresh`. - **The draws that sample the array now share passes.** Each copy used to end the pass before it. - **The menu frame looks the same** in both builds. - **`agc_driver_depth_plane_guest_layers` passes** on this card. One note for the rebase: with #454 in the same tree, `DepthSurfaceView` conflicts. I kept #454's shape, bumped `written` where it finds the bound surface, and set `drawnDepth = bound` before the return.
Mouhand-Kaddo commented 2026-10-10 10:04:53 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Mouhand-Kaddo on 2026-10-10T10:04:53Z.


Additional platform validation on standalone PR head 8085ddae5d8326194483da312e50ed9a3d96c702:

Windows: passed — Windows 11, supported WinLibs GCC 15.2.0 UCRT/POSIX/SEH r7; CMake 4.3.1 / Ninja.

Release / BUILD_TESTING=ON: built the selected test targets; 2 CTest cases, 0 failures, 0 CTest skips.

Tests: agc_driver_graphics, agc_driver_depth_plane_guest_layers.

Reproduce after building the test targets: ctest --test-dir <build> --verbose --no-tests=error --timeout 30 -R "^agc_driver_(depth_plane_guest_layers|graphics)$".

Vulkan: native AMD RX 6900 XT, driver 32.0.21045.5002.

Integration limitation: a local merge against main 948a526c2 has source conflicts; these results validate the standalone PR head, not a resolved merge.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6096392527 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2491#issuecomment-6096392527). Originally posted by [Mouhand-Kaddo](https://github.com/Mouhand-Kaddo) on 2026-10-10T10:04:53Z. --- <!-- anyps5-platform-validation:8085ddae5d8326194483da312e50ed9a3d96c702 --> Additional platform validation on standalone PR head `8085ddae5d8326194483da312e50ed9a3d96c702`: **Windows: passed** — Windows 11, supported WinLibs GCC 15.2.0 UCRT/POSIX/SEH r7; CMake 4.3.1 / Ninja. Release / `BUILD_TESTING=ON`: built the selected test targets; 2 CTest cases, 0 failures, 0 CTest skips. Tests: `agc_driver_graphics`, `agc_driver_depth_plane_guest_layers`. Reproduce after building the test targets: `ctest --test-dir <build> --verbose --no-tests=error --timeout 30 -R "^agc_driver_(depth_plane_guest_layers|graphics)$"`. Vulkan: native AMD RX 6900 XT, driver 32.0.21045.5002. Integration limitation: a local merge against main `948a526c2` has source conflicts; these results validate the standalone PR head, not a resolved merge.
github-actions[bot] commented 2026-10-13 01:17:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-13T01:17:13Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
#4500 docs/dev/debt/libSceAgcDriver.md L29-30
#4873 core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp L209-210, L227-234, L277-287
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6135960557 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2491#issuecomment-6135960557). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-13T01:17:13Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | #4500 | `docs/dev/debt/libSceAgcDriver.md` [L29-30](https://github.com/boykopovar/AnyPS5/blob/c3625c4789e8c10ab51b9d7ae4a4cb77e87a0aa3/docs/dev/debt/libSceAgcDriver.md#L29-L30) | | | | #4873 | `core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp` [L209-210](https://github.com/boykopovar/AnyPS5/blob/c3625c4789e8c10ab51b9d7ae4a4cb77e87a0aa3/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp#L209-L210), [L227-234](https://github.com/boykopovar/AnyPS5/blob/c3625c4789e8c10ab51b9d7ae4a4cb77e87a0aa3/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp#L227-L234), [L277-287](https://github.com/boykopovar/AnyPS5/blob/c3625c4789e8c10ab51b9d7ae4a4cb77e87a0aa3/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp#L277-L287) | | |
GustavoGamarra95 commented 2026-10-13 01:22:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by GustavoGamarra95 on 2026-10-13T01:22:58Z.


@oneandonlydean #4873 overlaps this PR in DepthSurface.cpp (the bot flagged it). It is a follow-up to #425 for padded linear slices: Beast of Reincarnation (PPSA29343) samples a 32x32 D16 surface as a six-face cube, and DescribeSurface gives 16384-byte slices while the copy expects 2048, so the title stops with depth plane copy geometry does not match its layers.

This PR keeps the same tight-slice assumption in record(): region() uses sliceBytes() * layer as the staging offset, while the detiler writes at geometry.LinearLayerOffset(layer). Whichever lands second can resolve it like this:

  • Refresh: accept geometry.sliceLinearBytes >= sliceBytes() and grow the staging buffer to sliceLinearBytes * layers when needed;
  • region(): bufferOffset = geometry.LinearLayerOffset(layer) + mip.linearOffset and bufferRowLength = mip.pitchBytes / elementBytes.

Growing the staging buffer does not affect this PR's partial copy: every copied layer rewrites its part of the staging buffer before the image copy, and unchanged layers are kept in the image, not in the staging buffer. Happy to rebase #4873 onto this one if it lands first, or the other way around.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6136024127 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2491#issuecomment-6136024127). Originally posted by [GustavoGamarra95](https://github.com/GustavoGamarra95) on 2026-10-13T01:22:58Z. --- @oneandonlydean #4873 overlaps this PR in `DepthSurface.cpp` (the bot flagged it). It is a follow-up to #425 for padded linear slices: Beast of Reincarnation (PPSA29343) samples a 32x32 D16 surface as a six-face cube, and `DescribeSurface` gives 16384-byte slices while the copy expects 2048, so the title stops with `depth plane copy geometry does not match its layers`. This PR keeps the same tight-slice assumption in `record()`: `region()` uses `sliceBytes() * layer` as the staging offset, while the detiler writes at `geometry.LinearLayerOffset(layer)`. Whichever lands second can resolve it like this: - `Refresh`: accept `geometry.sliceLinearBytes >= sliceBytes()` and grow the staging buffer to `sliceLinearBytes * layers` when needed; - `region()`: `bufferOffset = geometry.LinearLayerOffset(layer) + mip.linearOffset` and `bufferRowLength = mip.pitchBytes / elementBytes`. Growing the staging buffer does not affect this PR's partial copy: every copied layer rewrites its part of the staging buffer before the image copy, and unchanged layers are kept in the image, not in the staging buffer. Happy to rebase #4873 onto this one if it lands first, or the other way around.
oneandonlydean commented 2026-10-13 01:31:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-13T01:31:09Z.


This one goes in first, after #2490. Please rebase #4873 on top once it is merged, with the Refresh and region() changes you describe, so the partial copy uses the padded slice offsets as well.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6136114867 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2491#issuecomment-6136114867). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-13T01:31:09Z. --- This one goes in first, after #2490. Please rebase #4873 on top once it is merged, with the `Refresh` and `region()` changes you describe, so the partial copy uses the padded slice offsets as well.
GustavoGamarra95 commented 2026-10-13 01:36:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by GustavoGamarra95 on 2026-10-13T01:36:58Z.


Sounds good. I'll wait for #2490 and #2491 to land, then rebase #4873 onto the updated main and adapt Refresh and region() to preserve the padded linear slice offsets with partial copies. Thanks for coordinating the merge order.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6136177479 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2491#issuecomment-6136177479). Originally posted by [GustavoGamarra95](https://github.com/GustavoGamarra95) on 2026-10-13T01:36:58Z. --- Sounds good. I'll wait for #2490 and #2491 to land, then rebase #4873 onto the updated main and adapt `Refresh` and `region()` to preserve the padded linear slice offsets with partial copies. Thanks for coordinating the merge order.
Scramblrrrr commented 2026-10-13 02:20:00 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Scramblrrrr on 2026-10-13T02:20:00Z.


Windows RTX 5070 Ti cross-test completed for the #2490/#2491 port, now codex/first-light-depth-plane-copy-cross-test at 2086c53287fce217be13ffaba1e7e190515e5878, base 861fe25b9 (experimental 007 integration).

Native guest-layer/copy-count, depth compare-copy, fast-clear, fast-clear-submit, storage-reuse, last-writer and full mocked graphics: 7/7 passed initially (7.50 s). I also imported Michon's sampled-value fixture dc0c2cf8c preserving authorship. It exposed a pre-existing integration omission: the extracted planesAccepted helper lost upstream's depth-bits alternative. Both this port and production baseline 861fe25b9 failed the D16 depth-bits array refusal identically. Restoring the same upstream gate made all eight checks pass (8.05 s).

Then I removed only #2491's production change, keeping #2490, the restored format gate and both fixtures: copy-count fails with 1 depth surface copy + 1 plane fill where 0 + 0 are expected; sampled-value control passes. Restored and rebuilt: 8/8 passed (7.98 s), without skips (ANYPS5_REQUIRE_VULKAN=1). Final fixture-only comment cleanup follows this integration's conventions; rebuilt sampled-value test passes again. Scoped conventions/diff checks pass.

The integration also has storage-to-depth write-back, so Transfer(..., false, ...) bumps the new write serial as required; retired-surface/address filters and TakeWrites are preserved. No game performance claim yet. The new game comparison stages only patched graphics, with libc/kernel unchanged, normal asynchronous draws, the same warm cache/profile/cache and memory limits as 861fe25b9. Graphics SHA256 FCB1B8FBE97FD95D817653C882B307D2296D81EEA04C913F3474C056016DF166.

AI-assisted (Codex). No title code, captures or assets uploaded.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6136784940 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2491#issuecomment-6136784940). Originally posted by [Scramblrrrr](https://github.com/Scramblrrrr) on 2026-10-13T02:20:00Z. --- Windows RTX 5070 Ti cross-test completed for the #2490/#2491 port, now `codex/first-light-depth-plane-copy-cross-test` at 2086c53287fce217be13ffaba1e7e190515e5878, base 861fe25b9 (experimental 007 integration). Native guest-layer/copy-count, depth compare-copy, fast-clear, fast-clear-submit, storage-reuse, last-writer and full mocked graphics: 7/7 passed initially (7.50 s). I also imported Michon's sampled-value fixture dc0c2cf8c preserving authorship. It exposed a pre-existing integration omission: the extracted planesAccepted helper lost upstream's depth-bits alternative. Both this port and production baseline 861fe25b9 failed the D16 depth-bits array refusal identically. Restoring the same upstream gate made all eight checks pass (8.05 s). Then I removed only #2491's production change, keeping #2490, the restored format gate and both fixtures: copy-count fails with 1 depth surface copy + 1 plane fill where 0 + 0 are expected; sampled-value control passes. Restored and rebuilt: 8/8 passed (7.98 s), without skips (ANYPS5_REQUIRE_VULKAN=1). Final fixture-only comment cleanup follows this integration's conventions; rebuilt sampled-value test passes again. Scoped conventions/diff checks pass. The integration also has storage-to-depth write-back, so Transfer(..., false, ...) bumps the new write serial as required; retired-surface/address filters and TakeWrites are preserved. No game performance claim yet. The new game comparison stages only patched graphics, with libc/kernel unchanged, normal asynchronous draws, the same warm cache/profile/cache and memory limits as 861fe25b9. Graphics SHA256 FCB1B8FBE97FD95D817653C882B307D2296D81EEA04C913F3474C056016DF166. AI-assisted (Codex). No title code, captures or assets uploaded.
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!2491
No description provided.