docs(debt): record the non-pipe-aligned depth HTILE import gap #8319

Merged
Aryansh1520 merged 3 commits from upstream-pr/8319 into main 2026-11-01 23:05:41 +00:00
Aryansh1520 commented 2026-10-20 10:00:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Aryansh1520 on 2026-10-20T10:00:27Z.


What

Records a known gap in libSceAgcDriver: the native multisampled depth import refuses a depth HTILE that is not pipe-aligned (0x2af bit 18 is zero) or does not use iterate-256 (DB_Z_INFO bit 20 is zero). The title Sonic Superstars (PPSA06888) uses that layout on its 2x depth targets, and the refusal stops presentation before the title screen. Not verified: whether the clear-proof is correct for that layout, since the import reads the HTILE words as a flat array. This PR adds the entry only; it changes no code.

Tested

Not tested: documentation only. The conventions check passes (tools/check_conventions.py --base origin/main). The refusal was observed on Linux x86-64 (CachyOS, kernel 7.2.10) with the title above; the flags were logged from the decoder, not from hardware.

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

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4934134440 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8319). Originally posted by [Aryansh1520](https://github.com/Aryansh1520) on 2026-10-20T10:00:27Z. --- ### What Records a known gap in `libSceAgcDriver`: the native multisampled depth import refuses a depth HTILE that is not pipe-aligned (`0x2af` bit 18 is zero) or does not use iterate-256 (`DB_Z_INFO` bit 20 is zero). The title Sonic Superstars (PPSA06888) uses that layout on its 2x depth targets, and the refusal stops presentation before the title screen. Not verified: whether the clear-proof is correct for that layout, since the import reads the HTILE words as a flat array. This PR adds the entry only; it changes no code. ### Tested Not tested: documentation only. The conventions check passes (`tools/check_conventions.py --base origin/main`). The refusal was observed on Linux x86-64 (CachyOS, kernel 7.2.10) with the title above; the flags were logged from the decoder, not from hardware. ### 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: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
oneandonlydean commented 2026-10-21 03:57:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-21T03:57:58Z.


@Aryansh1520 One part of the new entry does not match the code. It says the import refuses a depth HTILE that "is not pipe-aligned or does not use iterate-256", but only the first condition refuses.

DepthSurface.cpp#L106 refuses on !target.htilePipeAligned (with a zero or unaligned HTILE address or a VRS encoding), and htilePipeAligned is 0x2af bit 18 (State.cpp#L346). DB_Z_INFO bit 20 is decoded into iterate256 at State.cpp#L333, but no refusal reads it. Its only use in the import is DepthSurface.cpp#L357, which requires a sampled descriptor to match the target. So a pipe-aligned HTILE with iterate-256 off is imported.

Could the entry say the import refuses a non-pipe-aligned HTILE (0x2af bit 18 zero), and mention iterate-256 being off only as part of the observed layout? For example:

refuses a depth HTILE that is not pipe-aligned (`0x2af` bit 18 is zero). The title above uses that layout, with iterate-256 also off (`DB_Z_INFO` bit 20 is zero), on its 2x depth targets
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6307672440 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8319#issuecomment-6307672440). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-21T03:57:58Z. --- @Aryansh1520 One part of the new entry does not match the code. It says the import refuses a depth HTILE that "is not pipe-aligned or does not use iterate-256", but only the first condition refuses. [DepthSurface.cpp#L106](https://github.com/boykopovar/AnyPS5/blob/7ab4b2e5610c3d4328c83566cba488eb82972c9c/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp#L106) refuses on `!target.htilePipeAligned` (with a zero or unaligned HTILE address or a VRS encoding), and `htilePipeAligned` is `0x2af` bit 18 ([State.cpp#L346](https://github.com/boykopovar/AnyPS5/blob/7ab4b2e5610c3d4328c83566cba488eb82972c9c/core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp#L346)). `DB_Z_INFO` bit 20 is decoded into `iterate256` at [State.cpp#L333](https://github.com/boykopovar/AnyPS5/blob/7ab4b2e5610c3d4328c83566cba488eb82972c9c/core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp#L333), but no refusal reads it. Its only use in the import is [DepthSurface.cpp#L357](https://github.com/boykopovar/AnyPS5/blob/7ab4b2e5610c3d4328c83566cba488eb82972c9c/core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cpp#L357), which requires a sampled descriptor to match the target. So a pipe-aligned HTILE with iterate-256 off is imported. Could the entry say the import refuses a non-pipe-aligned HTILE (`0x2af` bit 18 zero), and mention iterate-256 being off only as part of the observed layout? For example: ```markdown refuses a depth HTILE that is not pipe-aligned (`0x2af` bit 18 is zero). The title above uses that layout, with iterate-256 also off (`DB_Z_INFO` bit 20 is zero), on its 2x depth targets ```
Aryansh1520 commented 2026-10-21 08:16:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Aryansh1520 on 2026-10-21T08:16:43Z.


Thanks @oneandonlydean, you're right. The entry now says the import refuses only a non-pipe-aligned HTILE (0x2af bit 18 zero), and mentions iterate-256 off (DB_Z_INFO bit 20 zero) only as the layout of the title's 2x depth targets. Fixed in d23704854. The Sonic Superstars claim is still unverified and is marked as such in the entry.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6311359550 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8319#issuecomment-6311359550). Originally posted by [Aryansh1520](https://github.com/Aryansh1520) on 2026-10-21T08:16:43Z. --- Thanks @oneandonlydean, you're right. The entry now says the import refuses only a non-pipe-aligned HTILE (`0x2af` bit 18 zero), and mentions iterate-256 off (`DB_Z_INFO` bit 20 zero) only as the layout of the title's 2x depth targets. Fixed in d23704854. The Sonic Superstars claim is still unverified and is marked as such in the entry.
Aryansh1520 commented 2026-10-21 08:16:49 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Aryansh1520 on 2026-10-21T08:16:49Z.


Correction to my last comment: the Sonic Superstars (PPSA06888) sentence is not marked as unverified in the entry. Only the clear-proof part is. The layout claim for that title is still the author's and has not been checked against the title, so treat it as unconfirmed until it is.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6311361121 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8319#issuecomment-6311361121). Originally posted by [Aryansh1520](https://github.com/Aryansh1520) on 2026-10-21T08:16:49Z. --- Correction to my last comment: the Sonic Superstars (PPSA06888) sentence is not marked as unverified in the entry. Only the clear-proof part is. The layout claim for that title is still the author's and has not been checked against the title, so treat it as unconfirmed until it is.
THEMANnt commented 2026-10-28 12:05:49 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-10-28T12:05:49Z.

Review: COMMENTED


Reviewed d23704854b4d25e7cfa496055c5005e6bad3d669 against author merge base 8a7ba4beb4f439aaf52297d86ec9174d9531b442 — comment; final validation remains pending.

The new debt entry matches the explicit refusal of non-pipe-aligned HTILE in the native multisample depth import. It keeps iterate-256-off as a title observation and does not incorrectly turn it into an additional tested refusal condition. Clear-proof correctness remains explicitly unverified.

Validation: inspected the Markdown diff and pinned source references; relative links resolve and git diff --check passed. This is documentation/source consistency review. Title disassembly, console snapshots and hardware measurements were not independently reproduced; no runtime regression result is claimed.

Publication-time checks: merge conflict with main. Please complete these checks before final approval; this status alone is not a demonstrated implementation defect.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5682294254 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8319#pullrequestreview-5682294254). Originally posted by [THEMANnt](https://github.com/THEMANnt) on 2026-10-28T12:05:49Z. **Review:** COMMENTED --- Reviewed `d23704854b4d25e7cfa496055c5005e6bad3d669` against author merge base `8a7ba4beb4f439aaf52297d86ec9174d9531b442` — comment; final validation remains pending. The new debt entry matches the explicit refusal of non-pipe-aligned HTILE in the native multisample depth import. It keeps iterate-256-off as a title observation and does not incorrectly turn it into an additional tested refusal condition. Clear-proof correctness remains explicitly unverified. Validation: inspected the Markdown diff and pinned source references; relative links resolve and `git diff --check` passed. This is documentation/source consistency review. Title disassembly, console snapshots and hardware measurements were not independently reproduced; no runtime regression result is claimed. Publication-time checks: merge conflict with main. Please complete these checks before final approval; this status alone is not a demonstrated implementation defect.
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!8319
No description provided.