Repository navigation
Conversation
…ssed CMASK A first draw into a multisampled color target whose CB_COLOR_INFO enables COMPRESSION but not FAST_CLEAR, without DCC, has a CMASK that holds only FMASK compression. When every fragment in its color memory holds the same texel, any FMASK mapping to a stored fragment reads that texel, so the target should import as it does without a CMASK, whether that CMASK is zero or mixed. Differing fragments under such a CMASK still refuse, which the second test pins. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…sed CMASK PrepareMultisampleTargetForDraw refused every first draw into a multisampled color target with a CMASK and neither DCC nor FAST_CLEAR, before looking at its color memory. Such a CMASK holds only FMASK compression. When all fragments hold one texel, every FMASK mapping to a stored fragment reads that texel, so the target now imports as that clear. The refusal stays for differing fragments, whose values depend on the FMASK. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Evidence for the title runs, listed so the numbers above can be checked. All runs: Windows 10 Pro 10.0.19045,
The diagnostic of arm A printed for the target that throws:
AI-assisted (Claude Code). |
|
Ran the new
On RDNA2/RDNA3 the test exercises the real import path (the run reports AI-assisted: yes. |
|
Windows check of head
AI-assisted: yes. |
|
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.
|
|
Validation-layer run of this PR on an NVIDIA GPU under Linux, since CI covers only lavapipe. Setup: Arch Linux (kernel 7.3.4), GCC 16.2.1, Release,
The pattern selects every No new AI-assisted: yes (Claude Code) |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
Nothing blocks this change; the points below are optional.
What I ran
Reviewed head 1cd3db531ed042f1ddff0ab2f729f408c751bc41 using the pinned repo_read.py reader. I did not run commands or tests.
Results
| Check | Result | Note |
|---|---|---|
| Diff and changed source | passed | All four changed files read |
| Tests | not run | Author-reported results only |
Findings
Blocking
None.
Non-blocking
None.
Not verified
No tests were run independently. I reviewed all files listed in the manifest; files.json was not available through the reader. The code paths and behavior outside the read ranges were not verified. The author reports passing tests and title runs, but those results were not independently confirmed.
To get this to a good state
Nothing is required.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Merged main ( AI-assisted (Claude Code). |
|
Merged main (4d1fb21) into the branch; the head moves from 1e6b9a1 to 9ca1928. There was no textual conflict. The debt entry for the compressed-CMASK import is now its own fragment (add Functional) instead of an edit of the Initial multisample color draw contents entry, because main changed that entry through another fragment. No change to the code or tests of this pull request. The multisample test family of the target (18 tests) passes on the merge on one RTX 4080 SUPER, without the validation layer. AI-assisted (Claude Code). |
What
A title run of PPSA12361 on
main7fe931bacdastops atinitial multisample color contents with CMASK require a modeled metadata import(MultisampleTarget.cpp, inPrepareMultisampleTargetForDraw); three runs did (one plain, two with a read-only diagnostic added). The target that triggers it has two samples, 8 bytes per element, 512x512, no DCC and no fast clear, but a CMASK, which here only holds the compression of the fragment mask (FMASK). The diagnostic showed the color memory of that target all zero (4194304 bytes) in both runs, the FMASK not uniform in both, and the CMASK all zero in one run and mixed in the other.This imports the initial contents of such a target when all its fragments hold one texel, as that texel (the same import as without a CMASK), and still throws when the fragments differ. For uniform contents every FMASK value that names a stored fragment reads the same texel, so the CMASK does not change the result; what the console reads where an FMASK value names no stored fragment is not known, and
docs/dev/debt/libSceAgcDriver.mdsays so. The test commit pins a two-sample RGBA16F fixture whose CMASK is all zero and one whose CMASK is mixed (the FMASK is not uniform in both), with colour memory of one texel: it is imported as that texel and the guest bytes and the CMASK are unchanged; a counter-test with one differing fragment is refused without an owner and without byte changes.On the same base,
7fe931bacdawith the change cherry-picked, two title runs (Windows, RTX 4080 SUPER) do not show the old message and both end at the next refusal,dithered or rounded alpha-to-coverage is unsupported (register 0x2dc = 0x0001aa01). So the title moves on to its next stop; it does not produce a working frame here. On the currentmain04263e4d8438two runs without the change did not reach this target at all (no stop; the reason was not examined), so the stop could not be reproduced there; two runs with the change on that base also end at the alpha-to-coverage refusal. Whether the same draw is meant and how far the title gets in content was not measured (no picture was looked at, no input was sent).Tested
Windows 10 Pro 10.0.19045,
ANYPS5_GPU=4080for the tests and the title runs (Selected GPU name=NVIDIA GeForce RTX 4080 SUPERin each log), relinker and all libraries built from the tree before each title run (411 libraries on7fe931bacda, 413 on04263e4d8438). The unit tests ran on the heads of this pull request, on baseupstream/main04263e4d8438, one run per arm, on 14 November 2026; after the full build of the last head (ninjareturning 0) the five tests passed once more.agc_driver_sample_multisample_target_testsinitial-contents tests (5)agc_driver_native_color_initial_uniform_cmaskfails withinitial multisample color contents with CMASK require a modeled metadata import, the counter-test..._cmask_refusalpassesThe validation layer was inserted into each test process (
VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, 5 of 5 processes per log) for the same pair on two GPUs, with the heads before this branch's last rewrite, which differ from the heads of this pull request only by one comment line removed from the test file (git diff --stat: one line inSampleMultisampleTarget.cpp; the fix and the debt entry are unchanged): RTX 4080 SUPER (driver 32.0.16.1074) and Radeon RX 6400 (driver 32.0.21033.3005), driver versions as reported by Windows. The test commit alone gives 4 of 5 and the fix 5 of 5 on both; no log line containsVUID(0 lines in each of the four logs). The GPU was shared with a running title (about 87 % load), and this says nothing about other tests or other draws.tools/check_conventions.py --base upstream/mainpasses with no error and no warning (the changed entry is 998 characters, up from 673). Not tested: Linux, macOS, the CI runner, a console (the entry stays unmeasured there), other titles, a title run on the currentmainthat reaches this target, and the frame the title would draw after its next stop.Overlap: the 144 other open pull requests that change
MultisampleTarget.cpp,SampleMultisampleTarget.cpp,agc_driver_sample_multisample_target_tests.cmakeordocs/dev/debt/libSceAgcDriver.md(found by reading the changed files of all 1543 open pull requests at about 06:07 UTC) were test-merged on 2026-11-14 at about 06:25 UTC againstmainea32608486(the branch is based on04263e4d84); the branch merges into it without a conflict. 56 of them already conflict withmainwithout this change and still conflict with it; 88 merge cleanly with and without it, among them #17956 (native depth owners under an initial multisampled colour import, which changes the same debt entry andMultisampleTarget.cpp, and whose tests do not test the CMASK refusal this change removes). None conflicts only with this change. One pull request opened after that scan, #20579 (fix(agc): upload initial MSAA color through an attachment fallback), also changesMultisampleTarget.cppandSampleMultisampleTarget.cpp, but not the CMASK refusal this change removes: it adds an attachment fallback for the nonuniform upload when multisampled storage writes are missing and rewords that refusal. On 2026-11-16 at about 17:55 UTC it was test-merged with this branch (head1cd3db531e) and withmainbedf88ef89without a conflict in either pairing, and in the mergedMultisampleTarget.cppthe CMASK check stays inside the branch for nonuniform contents, as in this change; the merged result was not built or run. Whichever is merged first, the other needs no change to the refusal this change removes.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)VUIDlineAI-assisted (Claude Code).
🤖 Generated with Claude Code