docs(agc): drop another level from the reused depth storage refusals #8412

Merged
thuanquang merged 1 commit from upstream-pr/8412 into main 2026-10-24 09:21:37 +00:00
thuanquang commented 2026-10-20 12:28:03 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by thuanquang on 2026-10-20T12:28:03Z.


What

The Reused depth storage entry in docs/dev/debt/libSceAgcDriver.md says a matching storage view "still throws" when it is of another level. It does not: DepthSurfaceStorage returns no depth storage for mip != 0 || resource.baseLevel != 0 (DepthSurface.cpp:1981 on main), so ShaderResources.cpp falls through to the ordinary storage cache over guest memory, as the entry's first sentence describes for other mismatching views. tests/execution/DepthStorage.cpp:203 and :208 require that a storage access to a later level gets no depth storage. "or another level" is removed from the list of refusals.

Tested

Docs only; nothing was built or run. Checked on main by reading DepthSurface.cpp:1981, the DepthSurfaceStorage call in ShaderResources.cpp, and tests/execution/DepthStorage.cpp:203-208. (main 02b5a8e55)

  • python tools/check_conventions.py --base origin/main with this title and body: 0 errors and one debt-length warning, because the entry was already over 1000 characters (3629 before, 3613 after this change).
  • Not tested: behaviour on any machine; this changes text only.

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: none
  • GPUs tested: n/a
  • AI-assisted: yes (Claude Code)

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4935711125 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8412). Originally posted by [thuanquang](https://github.com/thuanquang) on 2026-10-20T12:28:03Z. --- ### What The `Reused depth storage` entry in `docs/dev/debt/libSceAgcDriver.md` says a matching storage view "still throws" when it is of another level. It does not: `DepthSurfaceStorage` returns no depth storage for `mip != 0 || resource.baseLevel != 0` (`DepthSurface.cpp:1981` on `main`), so `ShaderResources.cpp` falls through to the ordinary storage cache over guest memory, as the entry's first sentence describes for other mismatching views. `tests/execution/DepthStorage.cpp:203` and `:208` require that a storage access to a later level gets no depth storage. "or another level" is removed from the list of refusals. ### Tested Docs only; nothing was built or run. Checked on `main` by reading `DepthSurface.cpp:1981`, the `DepthSurfaceStorage` call in `ShaderResources.cpp`, and `tests/execution/DepthStorage.cpp:203-208`. (`main` `02b5a8e55`) - `python tools/check_conventions.py --base origin/main` with this title and body: 0 errors and one `debt-length` warning, because the entry was already over 1000 characters (3629 before, 3613 after this change). - Not tested: behaviour on any machine; this changes text only. ### Checklist - [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: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes (Claude Code) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
harisibrar1 commented 2026-10-21 05:59:54 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by harisibrar1 on 2026-10-21T05:59:54Z.

Review: APPROVED


Checked against main:

  • core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp:2167 returns nullptr from DepthSurfaceStorage when mip != 0 || resource.baseLevel != 0, and ShaderResources.cpp:1116 then falls through to the ordinary guest-memory storage path, so a view of another level is not refused with a throw.
  • core/libs/prx/libSceAgcDriver/tests/execution/DepthStorage.cpp:203 and :208 pin that behaviour (a later mip or baseLevel gets no depth storage).
  • The other refusals in the list are unchanged. check_conventions.py --base main --head pr-8412: 0 errors; the one debt-length warning is the entry's existing length.

Reviewed with AI assistance (Claude Code); the checks above were run locally on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5595537310 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8412#pullrequestreview-5595537310). Originally posted by [harisibrar1](https://github.com/harisibrar1) on 2026-10-21T05:59:54Z. **Review:** APPROVED --- Checked against main: - `core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp:2167` returns `nullptr` from `DepthSurfaceStorage` when `mip != 0 || resource.baseLevel != 0`, and `ShaderResources.cpp:1116` then falls through to the ordinary guest-memory storage path, so a view of another level is not refused with a throw. - `core/libs/prx/libSceAgcDriver/tests/execution/DepthStorage.cpp:203` and `:208` pin that behaviour (a later mip or `baseLevel` gets no depth storage). - The other refusals in the list are unchanged. `check_conventions.py --base main --head pr-8412`: 0 errors; the one `debt-length` warning is the entry's existing length. Reviewed with AI assistance (Claude Code); the checks above were run locally on my machine.
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!8412
No description provided.