Repository navigation
docs(debt): record the unsupported and unmeasured multisample CB resolve of 11_11_10 float targets - #11364
Conversation
…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
left a comment
There was a problem hiding this comment.
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:
- 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.mdrequires 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. - This is an AGC change, but the report does not show the required same focused tests on
mainand the change withANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1, andVK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, nor compare the logs for missing-layer messages and newVUID-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. - The tested base in the report is
204c6747d0, while currentmainiscbee224804625f2416993f94b2bc1f8c58b1d4bb. 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.
|
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.
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.
|
|
Thanks for the review. Taking the points in order.
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). |
|
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. |
|
One rebase detail: current |
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>
|
Converted as suggested: the code and tests are back to the state of 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
left a comment
There was a problem hiding this comment.
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.
|
Checked that the refusal the entry describes is in |
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 inState.cppand theexpectFailurecase intests/Graphics.cppare 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
599e4d620fonmainb82c33ef65.tools/check_conventions.py --base upstream/mainpasses, andgit diff --stat upstream/main...HEADshows onlydocs/dev/debt/libSceAgcDriver.md(one insertion). No code changes, so no test was run for this head.Overlap:
git merge-treeof this head with the open pull requests that edited the same files earlier: #9020, #9335 and #7893 conflict only indocs/dev/debt/libSceAgcDriver.md, so whichever lands second rebases and keeps both entries. #9789, #7243, #6973, #6987, #6989, #6995 and #7002 merge cleanly.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)AI-assisted (Claude Code).