Skip to content

docs(debt): record the unsupported and unmeasured multisample CB resolve of 11_11_10 float targets - #11364

Merged
adriadam10 merged 6 commits into
boykopovar:mainfrom
xXPBSXx:fix-agc-cb-resolve-packed-float
Oct 27, 2026
Merged

adriadam10 merged 6 commits into
boykopovar:mainfrom
xXPBSXx:fix-agc-cb-resolve-packed-float

Conversation

@xXPBSXx

@xXPBSXx xXPBSXx commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

What

Adds one entry to docs/dev/debt/libSceAgcDriver.md: a CB resolve whose source is a multisampled 11_11_10 float color target is refused, its averaging and rounding on the console are not measured, and no known source describes them. PPSA12361 reaches it: a local diagnostic print showed a two-sample R32_UINT source (packing 11_11_10 float) of 512x512 resolving into one sample, and the title stops there (issue #11362).

The code and the tests are back to the state of main: the refusal in State.cpp and the expectFailure case in tests/Graphics.cpp are unchanged. An earlier version of this PR implemented the resolve; after review it was converted to this debt entry, and the implementation is not part of this PR. It can come back separately once a source and the validation matrix exist.

Tested

Head 599e4d620f on main b82c33ef65. tools/check_conventions.py --base upstream/main passes, and git diff --stat upstream/main...HEAD shows only docs/dev/debt/libSceAgcDriver.md (one insertion). No code changes, so no test was run for this head.

Overlap: git merge-tree of this head with the open pull requests that edited the same files earlier: #9020, #9335 and #7893 conflict only in docs/dev/debt/libSceAgcDriver.md, so whichever lands second rebases and keeps both entries. #9789, #7243, #6973, #6987, #6989, #6995 and #7002 merge cleanly.

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 (issue AGC: PPSA12361 stops at CB resolves of 11_11_10 float color targets #11362 stays open)
  • Unblocks: none
  • GPUs tested: n/a (documentation only)
  • AI-assisted: yes

AI-assisted (Claude Code).

xXPBSXx and others added 3 commits October 26, 2026 09:01
…ked samples

A CB resolve whose source is an 11_11_10 float target stopped the title at
decode ("CB resolves of 11_11_10 float color targets are unsupported"): the
target is an R32_UINT image, and the subpass resolve of an integer format
takes one sample instead of averaging. The resolve now draws a pass that
reads every sample of the multisampled R32_UINT image, unpacks the three
unsigned small floats, averages them in float32 in sample order, and packs
the result with truncation toward zero, matching the ROUND_MODE the target
is already required to have. An infinite or NaN field in any sample is
passed through from the first sample that has one.

The averaging is assumed to match the console's CB resolve of an unpacked
float target; it is not measured on hardware. 10_11_11 unorm and 4_4_4_4
unorm targets still refuse the resolve.

AI-assisted: yes

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

The decode test now expects a CB resolve of an 11_11_10 float target to
decode into a resolve pass instead of refusing it; the 10_11_11 unorm
refusal stays. A new execution test fills a multisampled R32_UINT image with
a different packed word per sample (2, 4 and 8 samples, fractions that need
truncation, denormals, large values, an infinite field), resolves it through
the new pass, and compares every texel with the float32 average of the
unpacked samples packed with truncation toward zero. With the pass summing
only the first sample the two-sample case fails (texel 0x701c0380 instead of
0x80200400); with the full pass it passes on an RTX 4080 SUPER and an
RX 6400.

AI-assisted: yes

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
AI-assisted: yes

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

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed exact head d34c5315def48114231528cfdac6f3d957d23bf0 against current main cbee224804625f2416993f94b2bc1f8c58b1d4bb.

The packed decode/average/repack path and its CPU-reference execution test are substantial, and the PR is transparent about the remaining unknowns. I am requesting changes before treating this as a verified implementation:

  1. The PR and new debt text say the console's resolve behavior for this packed float target has not been measured. The test proves this shader matches the PR's assumed float32-average/truncate reference on two host GPUs; it does not prove that the console uses that resolve rule or the first-special-sample behavior. AGENTS.md requires unsupported behavior to continue throwing when general behavior is unknown, with the gap recorded in debt. Please add console/reference evidence for these semantics, or retain the refusal until they are established.
  2. This is an AGC change, but the report does not show the required same focused tests on main and the change with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1, and VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, nor compare the logs for missing-layer messages and new VUID- errors. Please provide that baseline/change validation matrix and name each GPU/driver/OS used. The current hosted product jobs are skipped by path policy.
  3. The tested base in the report is 204c6747d0, while current main is cbee224804625f2416993f94b2bc1f8c58b1d4bb. The merge preview is clean; only the shared debt file changed since the tested base. Please refresh onto current main and preserve both debt updates, then rerun conventions and report results for the resulting head.

I cannot run the GPU test locally because this environment has no /dev/dri device. Hosted eligibility, conventions, intake, labels and report checks pass on the PR head; the product test jobs are skipped by path policy. I did not independently run the reported Windows GPU tests.

AI-assisted review.

@github-actions github-actions Bot added the fix error Closes an issue (Fixes #N) label Oct 26, 2026
@github-actions

github-actions Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

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
PR 7893 docs/dev/debt/libSceAgcDriver.md L171-172

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 2434 docs/dev/debt/libSceAgcDriver.md
PR 4448 docs/dev/debt/libSceAgcDriver.md
PR 4449 docs/dev/debt/libSceAgcDriver.md
PR 5372 docs/dev/debt/libSceAgcDriver.md
PR 5925 docs/dev/debt/libSceAgcDriver.md
PR 6194 docs/dev/debt/libSceAgcDriver.md
PR 6223 docs/dev/debt/libSceAgcDriver.md
PR 6273 docs/dev/debt/libSceAgcDriver.md
PR 6280 docs/dev/debt/libSceAgcDriver.md
PR 6300 docs/dev/debt/libSceAgcDriver.md
PR 6412 docs/dev/debt/libSceAgcDriver.md
PR 6481 docs/dev/debt/libSceAgcDriver.md
PR 6548 docs/dev/debt/libSceAgcDriver.md
PR 6549 docs/dev/debt/libSceAgcDriver.md
PR 6743 docs/dev/debt/libSceAgcDriver.md
PR 6804 docs/dev/debt/libSceAgcDriver.md
PR 6808 docs/dev/debt/libSceAgcDriver.md
PR 6926 docs/dev/debt/libSceAgcDriver.md
PR 6959 docs/dev/debt/libSceAgcDriver.md
PR 6977 docs/dev/debt/libSceAgcDriver.md
PR 7256 docs/dev/debt/libSceAgcDriver.md
PR 7449 docs/dev/debt/libSceAgcDriver.md
PR 7604 docs/dev/debt/libSceAgcDriver.md
PR 7642 docs/dev/debt/libSceAgcDriver.md
PR 8223 docs/dev/debt/libSceAgcDriver.md
PR 8319 docs/dev/debt/libSceAgcDriver.md
PR 8395 docs/dev/debt/libSceAgcDriver.md
PR 8542 docs/dev/debt/libSceAgcDriver.md
PR 8592 docs/dev/debt/libSceAgcDriver.md
PR 9020 docs/dev/debt/libSceAgcDriver.md
PR 9335 docs/dev/debt/libSceAgcDriver.md
PR 9356 docs/dev/debt/libSceAgcDriver.md
PR 9387 docs/dev/debt/libSceAgcDriver.md
PR 9431 docs/dev/debt/libSceAgcDriver.md
PR 9432 docs/dev/debt/libSceAgcDriver.md
PR 9508 docs/dev/debt/libSceAgcDriver.md
PR 9533 docs/dev/debt/libSceAgcDriver.md
PR 9592 docs/dev/debt/libSceAgcDriver.md
PR 9672 docs/dev/debt/libSceAgcDriver.md
PR 9673 docs/dev/debt/libSceAgcDriver.md
PR 9674 docs/dev/debt/libSceAgcDriver.md
PR 9675 docs/dev/debt/libSceAgcDriver.md
PR 9676 docs/dev/debt/libSceAgcDriver.md
PR 9717 docs/dev/debt/libSceAgcDriver.md
PR 9742 docs/dev/debt/libSceAgcDriver.md
PR 9748 docs/dev/debt/libSceAgcDriver.md
PR 9842 docs/dev/debt/libSceAgcDriver.md
PR 9891 docs/dev/debt/libSceAgcDriver.md
PR 9892 docs/dev/debt/libSceAgcDriver.md
PR 9893 docs/dev/debt/libSceAgcDriver.md
PR 9895 docs/dev/debt/libSceAgcDriver.md
PR 9950 docs/dev/debt/libSceAgcDriver.md
PR 10049 docs/dev/debt/libSceAgcDriver.md
PR 10064 docs/dev/debt/libSceAgcDriver.md
PR 10193 docs/dev/debt/libSceAgcDriver.md
PR 10233 docs/dev/debt/libSceAgcDriver.md
PR 10333 docs/dev/debt/libSceAgcDriver.md
PR 10359 docs/dev/debt/libSceAgcDriver.md
PR 10435 docs/dev/debt/libSceAgcDriver.md
PR 11081 docs/dev/debt/libSceAgcDriver.md
PR 11557 docs/dev/debt/libSceAgcDriver.md

@xXPBSXx

xXPBSXx commented Oct 26, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for the review. Taking the points in order.

  1. Console behavior: I do not have a console measurement or a source for the resolve rule of this packed target, and I will not claim one. I looked for a reference for the averaging and the rounding (Mesa/RADV and public AMD documentation) and did not find one that describes the console's CB resolve of this packed format. The special handling of an infinite or NaN field from the first sample has no source, and I will take it out in a follow-up commit. I propose to keep the refusal as the default and put the new pass behind an opt-in switch, with the gap recorded in debt, or, if you prefer, to turn this into a debt-only change. Please tell me which direction you want.
  2. Validation: I will run the focused tests on main and on the change with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1 and the Khronos validation layer (a local build; version and file hash will be named), on each GPU, and post the comparison, including any new VUID- message.
  3. Base: I will refresh the branch with a normal merge of current main, without a force push, so the reviewed head stays an ancestor.

On drivers: the GPUs are an RTX 4080 SUPER (driver 32.0.16.1074) and an RX 6400 (driver 32.0.21033.3005) on Windows 10 Pro 10.0.19045. I queried the versions today and did not record them per run, so I cannot say that every earlier run used exactly these versions.

I will report back with the results.

AI-assisted (Claude Code).

@MarcZX10

Copy link
Copy Markdown
Contributor

Thanks for checking the evidence and being explicit about what is not measured. I recommend keeping the current refusal as the default and not adding an opt-in switch for the guessed resolve: a configuration flag would still ship and encourage an unverified console behavior, while the existing code already safely rejects it. The current debt entry covers packed 11_11_10 rendering but does not specifically state that this multisample CB resolve is unsupported and unmeasured. If you want this PR to land now, convert it to a narrowly scoped debt update for that resolve path, leave the refusal and its existing regression coverage in place, and keep the issue open. Then a later implementation can be reviewed separately once console/reference evidence establishes the resolve rule and the requested same-GPU validation-layer matrix passes on current main and the change. I will retain the changes-requested review until the base and behavior evidence are resolved.

@MarcZX10

Copy link
Copy Markdown
Contributor

One rebase detail: current main is now 5b5d24cb22; the three commits after 4e43321bd6 include a new measurement entry in docs/dev/debt/libSceAgcDriver.md, the same debt file this PR changes. Please preserve that entry as well as the existing packed-target notes when refreshing the branch. The review remains changes requested pending the conservative scope and validation described above.

xXPBSXx and others added 3 commits October 26, 2026 11:26
The review found no console or reference source for the averaging and the
rounding of this resolve, and asked for the refusal and its regression
coverage to stay. The resolve pass, its execution test and the changed decode
case are taken out again; State.cpp, MultisampleTarget.cpp, the CMake file and
tests/Graphics.cpp are back to the state of the base, so the refusal in
State.cpp and the expectFailure case in tests/Graphics.cpp are unchanged.

AI-assisted: yes

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ve of 11_11_10 float targets

The debt entry for 11_11_10 float color targets covers rendering but not the
resolve. A CB resolve of a multisampled 11_11_10 float source stays refused;
the new entry says that its averaging and rounding are not measured, that no
known source describes them, and that PPSA12361 reaches it (issue boykopovar#11362).

AI-assisted: yes

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@xXPBSXx xXPBSXx changed the title fix(agc): resolve 11_11_10 float color targets by averaging the unpacked samples docs(debt): record the unsupported and unmeasured multisample CB resolve of 11_11_10 float targets Oct 26, 2026
@xXPBSXx

xXPBSXx commented Oct 26, 2026

Copy link
Copy Markdown
Contributor Author

Converted as suggested: the code and tests are back to the state of main, the refusal and its regression coverage are unchanged, the debt entry now names this resolve path as unsupported and unmeasured with the PPSA12361 observation, the new measurement entry from main is kept, and issue #11362 stays open. The branch was refreshed with a normal merge of main (b82c33ef65), no force push; the reviewed head d34c5315de is an ancestor of the new head 599e4d620f.

The implementation is not part of this PR; I will bring it back separately once a source and the validation matrix exist. Could you re-review the new head?

AI-assisted (Claude Code).

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-reviewed exact head 599e4d620f0c74418078f7db39ae84a5c152d75a. The PR now changes only the debt entry: the refusal and existing regression test remain unchanged, the unmeasured console semantics are stated explicitly, and the PPSA12361 observation links the note to issue #11362. The branch preserves the previously requested AGC debt context and is mergeable. Eligibility, conventions, and labels pass; code/build jobs are skipped by path policy. No code test is applicable to this docs-only head. This resolves my prior requests for the unverified implementation to be removed and the behavior gap documented.

@github-actions github-actions Bot removed the fix error Closes an issue (Fixes #N) label Oct 26, 2026
@adriadam10 adriadam10 self-assigned this Oct 27, 2026
@adriadam10
adriadam10 merged commit 5c3c9d9 into boykopovar:main Oct 27, 2026
11 checks passed
@adriadam10

Copy link
Copy Markdown
Collaborator

Checked that the refusal the entry describes is in State.cpp (CB resolve of packed color targets throws), the entry sits in the right section in the neighbours' format, and Conventions pass; docs-only, merged.

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.

3 participants