docs(agc): drop the stale "only" from the alpha-to-coverage entry #8424

Merged
thuanquang merged 1 commit from upstream-pr/8424 into main 2026-10-24 09:24:05 +00:00
thuanquang commented 2026-10-20 12:30:11 +00:00 (Migrated from github.com)

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


What

The Alpha-to-coverage entry in docs/dev/debt/libSceAgcDriver.md opens with "only DB_ALPHA_TO_MASK = 0xaa01 is accepted", while the same entry later describes the default dithered value 0x18701, which #4451 (c8b3a3753, "emulate default eight-sample dithered alpha coverage") added. DecodeState accepts both (State.cpp: AlphaToCoverageUndithered = 0xaa01, AlphaToCoverageDithered = 0x18701, and alpha == AlphaToCoverageUndithered || (!alphaDisabled && alpha == AlphaToCoverageDithered), the dithered one with eight samples). "only" is removed.

Tested

Docs only; nothing was built or run. Checked on main 6c52b649e7 by reading core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp (the two constants at State.cpp:230-231 and DecodeState at :1386-1388). The PR was rebased four times, each time because main rewrote an adjacent entry (last: #8121), and the code was rechecked each time.

  • 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 (2168 before, 2163 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:4935735747 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8424). Originally posted by [thuanquang](https://github.com/thuanquang) on 2026-10-20T12:30:11Z. --- ### What The `Alpha-to-coverage` entry in `docs/dev/debt/libSceAgcDriver.md` opens with "only `DB_ALPHA_TO_MASK = 0xaa01` is accepted", while the same entry later describes the default dithered value `0x18701`, which #4451 (`c8b3a3753`, "emulate default eight-sample dithered alpha coverage") added. `DecodeState` accepts both (`State.cpp`: `AlphaToCoverageUndithered = 0xaa01`, `AlphaToCoverageDithered = 0x18701`, and `alpha == AlphaToCoverageUndithered || (!alphaDisabled && alpha == AlphaToCoverageDithered)`, the dithered one with eight samples). "only" is removed. ### Tested Docs only; nothing was built or run. Checked on `main` `6c52b649e7` by reading `core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp` (the two constants at `State.cpp:230-231` and `DecodeState` at `:1386-1388`). The PR was rebased four times, each time because main rewrote an adjacent entry (last: #8121), and the code was rechecked each time. - `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 (2168 before, 2163 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:51 +00:00 (Migrated from github.com)

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

Review: APPROVED


Checked against main:

  • core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp:169-170 defines both AlphaToCoverageUndithered (0xaa01) and AlphaToCoverageDithered (0x18701). State.cpp:1203-1204 and 1917-1921 accept both, so "only 0xaa01" is stale.
  • The same entry already describes the dithered 0x18701 path and its per-quad sample-mask table, so dropping "only" removes the contradiction without changing any other claim.
  • check_conventions.py --base main --head pr-8424: 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:5595536975 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8424#pullrequestreview-5595536975). Originally posted by [harisibrar1](https://github.com/harisibrar1) on 2026-10-21T05:59:51Z. **Review:** APPROVED --- Checked against main: - `core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp:169-170` defines both `AlphaToCoverageUndithered` (0xaa01) and `AlphaToCoverageDithered` (0x18701). State.cpp:1203-1204 and 1917-1921 accept both, so "only 0xaa01" is stale. - The same entry already describes the dithered `0x18701` path and its per-quad sample-mask table, so dropping "only" removes the contradiction without changing any other claim. - `check_conventions.py --base main --head pr-8424`: 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!8424
No description provided.