Skip to content

docs(libSceAgcDriver): note the sample count seen with DB_ALPHA_TO_MASK 0x1aa01 - #23744

Merged
oneandonlydean merged 1 commit into
boykopovar:mainfrom
xXPBSXx:docs-agc-alpha-to-coverage-1aa01-observed
Nov 20, 2026
Merged

oneandonlydean merged 1 commit into
boykopovar:mainfrom
xXPBSXx:docs-agc-alpha-to-coverage-1aa01-observed

Conversation

@xXPBSXx

@xXPBSXx xXPBSXx commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

What

The entry Alpha-to-coverage 0x1aa01 in docs/dev/debt/libSceAgcDriver.md (line 113, 831 characters) records that DB_ALPHA_TO_MASK = 0x1aa01 throws dithered or rounded alpha-to-coverage is unsupported, that it differs from the accepted undithered 0xaa01 by bit 16, which radeonsi never programs together with these bits, that PPSA12361 reaches it, and that reading it as 0xaa01 for a one-sample draw was tried and does not unblock the title. This change adds two sentences to that entry before its last sentence: in one of two host runs of PPSA12361 on a tree that includes the change of the open pull request #19904, a draw rejected with 0x1aa01 had two raster samples, with PA_SC_AA_CONFIG 0x00108001, DB_EQAA 0x00001111 and PA_SC_AA_MASK 0x0000cc44 (log lines 2692 to 2699 of the second run, attached to the first comment as an excerpt; the same line shows decodeSamples=2 and PA_SC_MODE_CNTL_0 0x00000003). The register values were read by a local diagnostic line that is in no change. The entry keeps saying that what the console covers for this value is not measured, so it stays unsupported. Only this one entry changes, as a new fragment in docs/dev/debt/changes/; no code does.

This is an observation from a host run of the title, not a console probe: nothing was measured on a PS5, and the entry says so ("a host run, not a console probe").

Why the attempt noted in the entry does not help: the change that was tried applied the one-sample reading 0xaa01 only to a draw with one raster sample, and the draw seen here has two, so the rejection stays and the title stops. That is stated here and not in the entry, which only says that the attempt was tried and does not unblock the title.

Tested

This is a documentation change; no test was added or run, and nothing was measured on a console. The observation comes from two host runs of PPSA12361 (a game-file run on the development machine, not a console), both on a local tree that includes the change of #19904, which is still open:

  • the first run, started on 2026-11-19 at 13:19 UTC (4469 log lines), has no diag-a2c line and no alpha-to-coverage is unsupported line, so it did not stop on this register value;
  • the second run, started on 2026-11-19 at 13:34 UTC and ending at 13:37 UTC, stopped with dithered or rounded alpha-to-coverage is unsupported (register 0x2dc = 0x0001aa01) right after the diagnostic line at line 2692 (lines 2692 to 2699 of its log, attached in the first comment).

The times are UTC, taken from the log file times (the machine's clock is UTC+1, so the local times 14:19 and 14:34 are 13:19 and 13:34 UTC). The GPU is not named in the excerpt and no statement about it is made. The runs ended one without and one with the stop, so "in one of two runs" in the entry is a count of these two runs and not a rate.

The entry is 831 characters on main and 1191 with the two sentences, so tools/check_conventions.py reports one debt-length warning in the diff (no error), and debt_fold --check returns 0. The older evidence names in the entry (run_024721.err and run_025512.err with their line numbers) are the entry's existing wording and are not touched. Not tested: Linux, macOS, the CI runner, any console run.

Overlap: counted on 2026-11-19 at 14:47 UTC from the 1971 open pull requests (file lists from the GitHub API; the ten with 100 or more files were read in full through the files API; the patches of the 1119 pull requests that change a file under docs/dev/debt/ were searched for alpha-to-coverage, 1aa01, DB_ALPHA_TO_MASK and OFFSET_ROUND) against main at 321faba. This pull request adds one file, docs/dev/debt/changes/docs-agc-alpha-to-coverage-1aa01-observed.md, and no code; no open pull request has a file of that name. No patch of the open pull requests contains 1aa01 or the entry Alpha-to-coverage 0x1aa01; the patches of #17611, #20156, #20187 and #21630 contain the words alpha-to-coverage or OFFSET_ROUND in other entries (the shader recompiler entry on a sample-mask export, the Sample masks entry, the MSAA_ENABLE single-sample entry). #14561 (feat(agc): implement measured single-sample dithered alpha coverage, mergeable) names DB_ALPHA_TO_MASK in code and tests: it adds its own fragment for the entry Single-sample dithered alpha-to-coverage, a different entry, and changes core/libs/prx/libSceAgcDriver/Graphics/src/State.cpp in three hunks, which this description does not cite by line number. #19904 (fix(agc): import uniform initial multisample contents under a compressed CMASK), the change that the tree of the second run included, changes a different entry of docs/dev/debt/libSceAgcDriver.md (line 52 of its base). On main, no fragment names the entry. This pull request does not depend on any of them (Depends on: none): the added sentences are observations of a host run and do not need #19904 to be merged; the description names it because the tree of the runs included it.

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 (no graphics change)
  • AI-assisted: yes

…SK 0x1aa01

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@xXPBSXx

xXPBSXx commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

Evidence for the second sentence of the added text: an excerpt of the host run of PPSA12361 that stopped on DB_ALPHA_TO_MASK = 0x1aa01, started on 2026-11-19 at 13:34 UTC (log file time, UTC). The excerpt is lines 2692 to 2699 of that run's log (574 KB, not attached whole); line 2692 is the diagnostic line of a local build, which is in no change and prints the sample count the driver decoded (decodeSamples=2) and the four registers. The tree included the change of the open pull request #19904. The first run of the same title, started on 2026-11-19 at 13:19 UTC (4469 log lines), has no diagnostic line and no alpha-to-coverage is unsupported line (0 matches for each). The GPU is not named in the excerpt.

log lines 2692 to 2699 of the second run
[diag-a2c] DrawRejection DB_ALPHA_TO_MASK 0x1aa01 decodeSamples=2 PA_SC_AA_CONFIG(0x2f8)=0x00108001 DB_EQAA(0x201)=0x00001111 PA_SC_MODE_CNTL_0(0x292)=0x00000003 PA_SC_AA_MASK(0x2fe)=0x0000cc44
[gpu] driver failure: dithered or rounded alpha-to-coverage is unsupported (register 0x2dc = 0x0001aa01)
[videoout] presentation failed: dithered or rounded alpha-to-coverage is unsupported (register 0x2dc = 0x0001aa01)
terminate called after throwing an instance of 'std::runtime_error'
  what():  dithered or rounded alpha-to-coverage is unsupported (register 0x2dc = 0x0001aa01)
terminate called after throwing an instance of 'std::runtime_error'
  what():  dithered or rounded alpha-to-coverage is unsupported (register 0x2dc = 0x0001aa01)
FATAL: abort() (SIGABRT) on thread 20088

@github-actions github-actions Bot added the docs label Nov 19, 2026
@xXPBSXx

xXPBSXx commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

Correction to the Overlap paragraph. The patch search described there had returned no output because of a script fault (a carriage return in the pull request numbers made every request invalid), so the list of pull requests whose patches contain these words was not backed by a search. I reran it on 2026-11-19: the list of open pull requests is from 20:47 UTC (2019 open pull requests, the patches of the 1187 that change a file under docs/dev/debt/, in a library named in the searched terms, or that have 100 or more files, searched for alpha-to-coverage, 1aa01, DB_ALPHA_TO_MASK and OFFSET_ROUND).

The words alpha-to-coverage or OFFSET_ROUND appear in the patches of #6481, #7668, #9335, #11587, #11825, #13147, #14561, #20156, #20187 and #21630; the description names #20156, #20187, #21630, #14561 and also #17611, which no longer matches. The six not named: #6481 and #11587 carry the Sample masks entry of docs/dev/debt/libSceAgcDriver.md as context, #7668, #11825 and #13147 carry the DB_SHADER_CONTROL.DEPTH_BEFORE_SHADER entry as context, and #9335 rewrites the Packed color target merges entry of docs/dev/debt/shader.md. All of these are other entries than the one this fragment changes. 1aa01 appears in no patch of another pull request, so the statement that no patch contains it stands.

AI-assisted (Claude Code).

@oneandonlydean
oneandonlydean merged commit dc73e53 into boykopovar:main Nov 20, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants