fix(agc): share a depth plane's contents across its stencil pairings #4683

Merged
XairRrR merged 1 commit from upstream-pr/4683 into main 2026-10-14 09:41:52 +00:00
XairRrR commented 2026-10-12 18:57:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-10-12T18:57:47Z.


What

A depth surface is looked up by its depth address, stencil address, extent, format and sample count. When a title binds one depth plane with several stencil planes, each pairing gets its own Vulkan image. Depth written through one pairing, and an HTILE fast clear consumed by one, never reach the others, so later draws test against stale depth.

Changes in Graphics/src/DepthSurface.cpp:

  • Each depth and stencil plane address records the surface that holds its current contents.
  • Binding a plane through another surface of the same format, sample count and extent copies that aspect over with vkCmdCopyImage. If the previous surface still has a pending fast clear for that aspect, the clear is carried over instead.
  • Sampling a plane address reads the surface that bound it last, and falls back to the newest surface as before.
  • Depth images get TRANSFER_SRC usage for the copy.

Related: #454 retires a depth surface once another writer covers its memory. It does not carry contents between surfaces that share a plane.

Test in tests/DepthSurfaceReuse.cpp:

  • binding a depth plane with a second stencil plane copies its depth over;
  • binding the same pairing again copies nothing;
  • going back to the first pairing copies the depth written through the second;
  • binding a stencil plane with another depth plane copies its stencil over.

It fails on main with "a depth plane paired with another stencil plane must carry its depth over".

Uncharted: Legacy of Thieves Collection (PPSA05684) binds the depth plane of its main menu scene with three stencil planes. Its tile-lighting compute writes a constant colour into sky pixels (depth == 1.0) and relies on the sky dome draw (depth test LEQUAL) to cover them. That draw tested against a stale image, failed everywhere, and the menu background showed a magenta gradient instead of the sky, cliff and fog. With this change the menu renders correctly. Frame rate is unchanged (8.5 fps with the change, 8.3 without).

Tested

  • Arch Linux (kernel 7.2.9), GCC 16.2.1, NVIDIA RTX 4070 Ti SUPER (driver 615.78.08), Release with BUILD_TESTING=ON.
  • Branch built alone on main 2a5eca11c. Full ctest: 959/959. Conventions check passed.
  • Title: Uncharted: Legacy of Thieves Collection (PPSA05684), main menu, on its own bring-up branch (plain main does not run it yet).

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 in TechnicalDebt
  • 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
  • Unblocks: PPSA05684 #4001
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4833744256 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4683). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-10-12T18:57:47Z. --- ### What A depth surface is looked up by its depth address, stencil address, extent, format and sample count. When a title binds one depth plane with several stencil planes, each pairing gets its own Vulkan image. Depth written through one pairing, and an HTILE fast clear consumed by one, never reach the others, so later draws test against stale depth. Changes in `Graphics/src/DepthSurface.cpp`: - Each depth and stencil plane address records the surface that holds its current contents. - Binding a plane through another surface of the same format, sample count and extent copies that aspect over with `vkCmdCopyImage`. If the previous surface still has a pending fast clear for that aspect, the clear is carried over instead. - Sampling a plane address reads the surface that bound it last, and falls back to the newest surface as before. - Depth images get `TRANSFER_SRC` usage for the copy. Related: #454 retires a depth surface once another writer covers its memory. It does not carry contents between surfaces that share a plane. Test in `tests/DepthSurfaceReuse.cpp`: - binding a depth plane with a second stencil plane copies its depth over; - binding the same pairing again copies nothing; - going back to the first pairing copies the depth written through the second; - binding a stencil plane with another depth plane copies its stencil over. It fails on `main` with "a depth plane paired with another stencil plane must carry its depth over". Uncharted: Legacy of Thieves Collection (PPSA05684) binds the depth plane of its main menu scene with three stencil planes. Its tile-lighting compute writes a constant colour into sky pixels (depth == 1.0) and relies on the sky dome draw (depth test LEQUAL) to cover them. That draw tested against a stale image, failed everywhere, and the menu background showed a magenta gradient instead of the sky, cliff and fog. With this change the menu renders correctly. Frame rate is unchanged (8.5 fps with the change, 8.3 without). ### Tested - Arch Linux (kernel 7.2.9), GCC 16.2.1, NVIDIA RTX 4070 Ti SUPER (driver 615.78.08), Release with `BUILD_TESTING=ON`. - Branch built alone on main 2a5eca11c. Full ctest: 959/959. Conventions check passed. - Title: Uncharted: Legacy of Thieves Collection (PPSA05684), main menu, on its own bring-up branch (plain `main` does not run it yet). ### 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 in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [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: none - [x] Unblocks: PPSA05684 #4001 - [x] AI-assisted: yes
Scramblrrrr commented 2026-10-12 23:04:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Scramblrrrr on 2026-10-12T23:04:11Z.


Combined source branch is prepared on current main43e3a70f8143f014f621c48abbdb137fffd7346e: https://github.com/Scramblrrrr/AnyPS5/tree/codex/depth-filter-plane-pairing-current-main , head9d5d0f94965dd100a52015abf78bec34349ddaf1. This retains both #4646 commits and author-preserved #4683 head35c4b5cde, resolving only DepthSurface.cpp conflicts. Negative admission check now lives at the start of planeSurface; both addresses are admitted before a newly created surface is constructed, and device cleanup keeps both key and owner-map removals. All #4683 pairing/copy tests and #4646 recorder lookup/CLI coverage remain. Source/diff-check/conventions pass. Not built/staged; native combined validation will follow after the separate007 test ends. No game/FPS claim, no competing PR. AI-assisted: Codex.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6134298092 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4683#issuecomment-6134298092). Originally posted by [Scramblrrrr](https://github.com/Scramblrrrr) on 2026-10-12T23:04:11Z. --- Combined source branch is prepared on current main43e3a70f8143f014f621c48abbdb137fffd7346e: https://github.com/Scramblrrrr/AnyPS5/tree/codex/depth-filter-plane-pairing-current-main , head9d5d0f94965dd100a52015abf78bec34349ddaf1. This retains both #4646 commits and author-preserved #4683 head35c4b5cde, resolving only DepthSurface.cpp conflicts. Negative admission check now lives at the start of planeSurface; both addresses are admitted before a newly created surface is constructed, and device cleanup keeps both key and owner-map removals. All #4683 pairing/copy tests and #4646 recorder lookup/CLI coverage remain. Source/diff-check/conventions pass. Not built/staged; native combined validation will follow after the separate007 test ends. No game/FPS claim, no competing PR. AI-assisted: Codex.
Scramblrrrr commented 2026-10-12 23:16:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Scramblrrrr on 2026-10-12T23:16:07Z.


Combined Windows validation completed for9d5d0f94965dd100a52015abf78bec34349ddaf1 on main43e3a70f8143f014f621c48abbdb137fffd7346e: both #4646 commits plus author-preserved #4683 35c4b5cde. Fresh graphics/recorder target builds, RTX5070Ti/GCC15.2/Release/toolsOFF.

Full mocked agc_driver_graphics PASS4.67s and native agc_depth_surface_lookup PASS0.55s,2/2 in5.56s, no skip. Production-only negative restores DepthSurface.cpp from preceding814a830e2 (filter kept, pairing fix removed), fixtures/CMake unchanged: graphics FAIL "a depth plane paired with another stencil plane must carry its depth over", native lookup control PASS,2-test total5.16s. Restore/touch/rebuild positive: graphics4.84s/native lookup0.35s,2/2 PASS5.24s. Source clean/diff-check/conventions pass. All both PRs' fixture/registration changes retained; address guard is in the common planeSurface helper before lookup/fallback scan, keys admitted before construction and cleared by device.

Branch: https://github.com/Scramblrrrr/AnyPS5/tree/codex/depth-filter-plane-pairing-current-main . This is combined PR compatibility/native validation, not a game cross-test or real-GPU readback of pairing copies. None of these generic build artifacts were staged into007; its ongoing runtime stack remains separate. No FPS claim. AI-assisted: Codex.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6134441483 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4683#issuecomment-6134441483). Originally posted by [Scramblrrrr](https://github.com/Scramblrrrr) on 2026-10-12T23:16:07Z. --- Combined Windows validation completed for9d5d0f94965dd100a52015abf78bec34349ddaf1 on main43e3a70f8143f014f621c48abbdb137fffd7346e: both #4646 commits plus author-preserved #4683 35c4b5cde. Fresh graphics/recorder target builds, RTX5070Ti/GCC15.2/Release/toolsOFF. Full mocked agc_driver_graphics PASS4.67s and native agc_depth_surface_lookup PASS0.55s,2/2 in5.56s, no skip. Production-only negative restores DepthSurface.cpp from preceding814a830e2 (filter kept, pairing fix removed), fixtures/CMake unchanged: graphics FAIL "a depth plane paired with another stencil plane must carry its depth over", native lookup control PASS,2-test total5.16s. Restore/touch/rebuild positive: graphics4.84s/native lookup0.35s,2/2 PASS5.24s. Source clean/diff-check/conventions pass. All both PRs' fixture/registration changes retained; address guard is in the common planeSurface helper before lookup/fallback scan, keys admitted before construction and cleared by device. Branch: https://github.com/Scramblrrrr/AnyPS5/tree/codex/depth-filter-plane-pairing-current-main . This is combined PR compatibility/native validation, not a game cross-test or real-GPU readback of pairing copies. None of these generic build artifacts were staged into007; its ongoing runtime stack remains separate. No FPS claim. AI-assisted: Codex.
Scramblrrrr commented 2026-10-12 23:26:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Scramblrrrr on 2026-10-12T23:26:16Z.


One integration concern before I carry this into007: that runtime stack also contains #454's last-writer retirement (headde90e241e, on #425), unlike the isolated current-main9d5d0f949 validation above. Binding a different overlapping depth target retires older surfaces; color/storage/CPU/driver reuse can retire them too.

A compatible plane-pairing switch should carry the source aspect even if that source's whole surface was retired by the pairing switch. Conversely, a real color/storage/CPU overwrite must invalidate that plane's owner so an old depth image cannot be copied back over reused memory. Simply ignoring retired owners loses the first case; simply copying any matching owner risks the second. This is source-level reasoning, not evidence that #4683 fixes007's black scene, and the main-only fixture does not cover the combination.

Have you cross-tested owner tracking with #454, or do you have a combined head to try? I can cross-test the pairing and last-writer controls on Windows. Until then, the public main+#4646+#4683 branch9d5d0f949 remains separate from the007 game stack. AI-assisted: Codex.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6134560407 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4683#issuecomment-6134560407). Originally posted by [Scramblrrrr](https://github.com/Scramblrrrr) on 2026-10-12T23:26:16Z. --- One integration concern before I carry this into007: that runtime stack also contains #454's last-writer retirement (headde90e241e, on #425), unlike the isolated current-main9d5d0f949 validation above. Binding a different overlapping depth target retires older surfaces; color/storage/CPU/driver reuse can retire them too. A compatible plane-pairing switch should carry the source aspect even if that source's whole surface was retired by the pairing switch. Conversely, a real color/storage/CPU overwrite must invalidate that plane's owner so an old depth image cannot be copied back over reused memory. Simply ignoring retired owners loses the first case; simply copying any matching owner risks the second. This is source-level reasoning, not evidence that #4683 fixes007's black scene, and the main-only fixture does not cover the combination. Have you cross-tested owner tracking with #454, or do you have a combined head to try? I can cross-test the pairing and last-writer controls on Windows. Until then, the public main+#4646+#4683 branch9d5d0f949 remains separate from the007 game stack. AI-assisted: Codex.
XairRrR commented 2026-10-13 11:34:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-10-13T11:34:34Z.


Thanks for carrying it with #4646 and for the Windows runs.

No, I have not cross-tested it with #454. My stack is main from 10 Oct plus #425, #757/#758 and #2076, without #454. I agree with both cases you describe. Here is how I would combine them; it is untested with #454:

  • Pairing switch: a new pairing of a plane should take that plane's contents from its owner before #454 retires anything, so call takePlanes before the retirement. Retiring a surface then does not lose the plane: the new pairing already holds it.
  • Real overwrite: when #454 retires a surface because a color target, a written storage image or a CPU/driver store covers its plane, it should also drop the owner entries for that plane's addresses. A later pairing of that address then starts from its own clear instead of copying an old image over reused memory.

In short, ownership follows the plane's memory, and #454's last-writer rule decides when an owner is no longer valid.

If you have a combined head with #454 I can run it on my side. Note that PPSA05684 does not exercise #454's retirement, as far as I know.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6144626094 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4683#issuecomment-6144626094). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-10-13T11:34:34Z. --- Thanks for carrying it with #4646 and for the Windows runs. No, I have not cross-tested it with #454. My stack is main from 10 Oct plus #425, #757/#758 and #2076, without #454. I agree with both cases you describe. Here is how I would combine them; it is untested with #454: - **Pairing switch:** a new pairing of a plane should take that plane's contents from its owner before #454 retires anything, so call `takePlanes` before the retirement. Retiring a surface then does not lose the plane: the new pairing already holds it. - **Real overwrite:** when #454 retires a surface because a color target, a written storage image or a CPU/driver store covers its plane, it should also drop the owner entries for that plane's addresses. A later pairing of that address then starts from its own clear instead of copying an old image over reused memory. In short, ownership follows the plane's memory, and #454's last-writer rule decides when an owner is no longer valid. If you have a combined head with #454 I can run it on my side. Note that PPSA05684 does not exercise #454's retirement, as far as I know. AI-assisted: yes
github-actions[bot] commented 2026-10-13 11:36:48 +00:00 (Migrated from github.com)

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


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
#5446 core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp L608-612
#5496 core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp L598-606, L608-612, L677-682, L723-727
core/libs/prx/libSceAgcDriver/tests/DepthSurfaceReuse.cpp L37, L40-41
#5499 core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp L145
#5524 core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp L598-606, L608-612, L677-682, L706-709, L723-727, L758-763
core/libs/prx/libSceAgcDriver/tests/DepthSurfaceReuse.cpp L37, L40-41
#5554 core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp L598-606, L608-612, L677-682, L706-709, L723-727, L758-763
core/libs/prx/libSceAgcDriver/tests/DepthSurfaceReuse.cpp L37, L40-41
#5627 core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp L541-543, L597-606, L608-612
core/libs/prx/libSceAgcDriver/tests/DepthSurfaceReuse.cpp L11, L37, L41, L99, L278
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6144663083 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4683#issuecomment-6144663083). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-13T11:36:48Z. --- <!-- 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 | |---|---|---|---| | #5446 | `core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp` [L608-612](https://github.com/boykopovar/AnyPS5/blob/5744094e79e07faad3a9c06fa5f1d04fd7b9549c/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp#L608-L612) | | | | #5496 | `core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp` [L598-606](https://github.com/boykopovar/AnyPS5/blob/5744094e79e07faad3a9c06fa5f1d04fd7b9549c/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp#L598-L606), [L608-612](https://github.com/boykopovar/AnyPS5/blob/5744094e79e07faad3a9c06fa5f1d04fd7b9549c/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp#L608-L612), [L677-682](https://github.com/boykopovar/AnyPS5/blob/5744094e79e07faad3a9c06fa5f1d04fd7b9549c/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp#L677-L682), [L723-727](https://github.com/boykopovar/AnyPS5/blob/5744094e79e07faad3a9c06fa5f1d04fd7b9549c/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp#L723-L727)<br>`core/libs/prx/libSceAgcDriver/tests/DepthSurfaceReuse.cpp` [L37](https://github.com/boykopovar/AnyPS5/blob/5744094e79e07faad3a9c06fa5f1d04fd7b9549c/core/libs/prx/libSceAgcDriver/tests/DepthSurfaceReuse.cpp#L37), [L40-41](https://github.com/boykopovar/AnyPS5/blob/5744094e79e07faad3a9c06fa5f1d04fd7b9549c/core/libs/prx/libSceAgcDriver/tests/DepthSurfaceReuse.cpp#L40-L41) | | | | #5499 | `core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp` [L145](https://github.com/boykopovar/AnyPS5/blob/5744094e79e07faad3a9c06fa5f1d04fd7b9549c/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp#L145) | | | | #5524 | `core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp` [L598-606](https://github.com/boykopovar/AnyPS5/blob/5744094e79e07faad3a9c06fa5f1d04fd7b9549c/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp#L598-L606), [L608-612](https://github.com/boykopovar/AnyPS5/blob/5744094e79e07faad3a9c06fa5f1d04fd7b9549c/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp#L608-L612), [L677-682](https://github.com/boykopovar/AnyPS5/blob/5744094e79e07faad3a9c06fa5f1d04fd7b9549c/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp#L677-L682), [L706-709](https://github.com/boykopovar/AnyPS5/blob/5744094e79e07faad3a9c06fa5f1d04fd7b9549c/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp#L706-L709), [L723-727](https://github.com/boykopovar/AnyPS5/blob/5744094e79e07faad3a9c06fa5f1d04fd7b9549c/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp#L723-L727), [L758-763](https://github.com/boykopovar/AnyPS5/blob/5744094e79e07faad3a9c06fa5f1d04fd7b9549c/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp#L758-L763)<br>`core/libs/prx/libSceAgcDriver/tests/DepthSurfaceReuse.cpp` [L37](https://github.com/boykopovar/AnyPS5/blob/5744094e79e07faad3a9c06fa5f1d04fd7b9549c/core/libs/prx/libSceAgcDriver/tests/DepthSurfaceReuse.cpp#L37), [L40-41](https://github.com/boykopovar/AnyPS5/blob/5744094e79e07faad3a9c06fa5f1d04fd7b9549c/core/libs/prx/libSceAgcDriver/tests/DepthSurfaceReuse.cpp#L40-L41) | | | | #5554 | `core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp` [L598-606](https://github.com/boykopovar/AnyPS5/blob/5744094e79e07faad3a9c06fa5f1d04fd7b9549c/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp#L598-L606), [L608-612](https://github.com/boykopovar/AnyPS5/blob/5744094e79e07faad3a9c06fa5f1d04fd7b9549c/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp#L608-L612), [L677-682](https://github.com/boykopovar/AnyPS5/blob/5744094e79e07faad3a9c06fa5f1d04fd7b9549c/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp#L677-L682), [L706-709](https://github.com/boykopovar/AnyPS5/blob/5744094e79e07faad3a9c06fa5f1d04fd7b9549c/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp#L706-L709), [L723-727](https://github.com/boykopovar/AnyPS5/blob/5744094e79e07faad3a9c06fa5f1d04fd7b9549c/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp#L723-L727), [L758-763](https://github.com/boykopovar/AnyPS5/blob/5744094e79e07faad3a9c06fa5f1d04fd7b9549c/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp#L758-L763)<br>`core/libs/prx/libSceAgcDriver/tests/DepthSurfaceReuse.cpp` [L37](https://github.com/boykopovar/AnyPS5/blob/5744094e79e07faad3a9c06fa5f1d04fd7b9549c/core/libs/prx/libSceAgcDriver/tests/DepthSurfaceReuse.cpp#L37), [L40-41](https://github.com/boykopovar/AnyPS5/blob/5744094e79e07faad3a9c06fa5f1d04fd7b9549c/core/libs/prx/libSceAgcDriver/tests/DepthSurfaceReuse.cpp#L40-L41) | | | | #5627 | `core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp` [L541-543](https://github.com/boykopovar/AnyPS5/blob/5744094e79e07faad3a9c06fa5f1d04fd7b9549c/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp#L541-L543), [L597-606](https://github.com/boykopovar/AnyPS5/blob/5744094e79e07faad3a9c06fa5f1d04fd7b9549c/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp#L597-L606), [L608-612](https://github.com/boykopovar/AnyPS5/blob/5744094e79e07faad3a9c06fa5f1d04fd7b9549c/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp#L608-L612)<br>`core/libs/prx/libSceAgcDriver/tests/DepthSurfaceReuse.cpp` [L11](https://github.com/boykopovar/AnyPS5/blob/5744094e79e07faad3a9c06fa5f1d04fd7b9549c/core/libs/prx/libSceAgcDriver/tests/DepthSurfaceReuse.cpp#L11), [L37](https://github.com/boykopovar/AnyPS5/blob/5744094e79e07faad3a9c06fa5f1d04fd7b9549c/core/libs/prx/libSceAgcDriver/tests/DepthSurfaceReuse.cpp#L37), [L41](https://github.com/boykopovar/AnyPS5/blob/5744094e79e07faad3a9c06fa5f1d04fd7b9549c/core/libs/prx/libSceAgcDriver/tests/DepthSurfaceReuse.cpp#L41), [L99](https://github.com/boykopovar/AnyPS5/blob/5744094e79e07faad3a9c06fa5f1d04fd7b9549c/core/libs/prx/libSceAgcDriver/tests/DepthSurfaceReuse.cpp#L99), [L278](https://github.com/boykopovar/AnyPS5/blob/5744094e79e07faad3a9c06fa5f1d04fd7b9549c/core/libs/prx/libSceAgcDriver/tests/DepthSurfaceReuse.cpp#L278) | | |
adriadam10 commented 2026-10-13 14:59:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-13T14:59:41Z.


Checked on current main (merged cleanly): agc_driver_graphics (includes DepthSurfaceReuse) passes, and fails with DepthSurface.cpp reverted, so the new pairing test pins the change. Rest of the libSceAgcDriver ctest scope is green except agc_driver_tessellation, which segfaults on main too. Owner pointers are cleared together with the surfaces in ClearDepthSurfaces. Merging once the full build is green.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6148496727 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4683#issuecomment-6148496727). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-13T14:59:41Z. --- Checked on current main (merged cleanly): `agc_driver_graphics` (includes `DepthSurfaceReuse`) passes, and fails with `DepthSurface.cpp` reverted, so the new pairing test pins the change. Rest of the libSceAgcDriver ctest scope is green except `agc_driver_tessellation`, which segfaults on main too. Owner pointers are cleared together with the surfaces in `ClearDepthSurfaces`. Merging once the full build is green.
blawesom commented 2026-10-13 18:51:46 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-13T18:51:46Z.


Rebase handoff — rebased onto current main (staleness only, applied cleanly — matching @adriadam10's earlier "merged cleanly" check), authorship unchanged.

Verified on Linux (CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release, BUILD_TESTING=ON, AMD RX 9070 XT / RADV):

  • builds; tools/check_conventions.py --base origin/main passes
  • full suite: 1070/1071 — the only failure is the known main regression (agc_driver_tessellation segfault, #4727)

To pick it up:

git fetch https://github.com/blawesom/AnyPS5 rebase/4683
git checkout <your branch>
git merge --ff-only FETCH_HEAD

Head is c9ce705cc.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6152803033 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4683#issuecomment-6152803033). Originally posted by [blawesom](https://github.com/blawesom) on 2026-10-13T18:51:46Z. --- **Rebase handoff** — rebased onto current `main` (staleness only, applied cleanly — matching @adriadam10's earlier "merged cleanly" check), authorship unchanged. Verified on Linux (CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release, `BUILD_TESTING=ON`, AMD RX 9070 XT / RADV): - builds; `tools/check_conventions.py --base origin/main` passes - **full suite: 1070/1071** — the only failure is the known `main` regression (`agc_driver_tessellation` segfault, #4727) **To pick it up:** ``` git fetch https://github.com/blawesom/AnyPS5 rebase/4683 git checkout <your branch> git merge --ff-only FETCH_HEAD ``` Head is `c9ce705cc`.
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!4683
No description provided.