Docs: the helper-thread words' four mechanisms, and what a split quad's helper query answers
The read of the ten cases held as helper_thread_words (lavapipe, job 83263; Radeon 780M, jobs 83264 and 83267) explained 454 of their 455 differing words by four mechanisms: Apple's partial quads, lavapipe's clip seam, RADV's lane order and x86 lavapipe's 8-lane subgroup. The docs said otherwise in two places: - QuadsSplitByClipping said each run of a split quad combines fewer active lanes than Metal's. Each piece's run keeps all four lanes; what differs is the helper query, which names the other piece's covered pixels as helpers where Metal's quad, shaded once, names none. The note's doc comment, its API.md catalogue entry and the validation gap's doc now say that. - FragmentSimdgroupGrouping gains the fill past a subgroup under 32 lanes: it reads an inactive lane, which MSL 4.1 section 6.10.2 leaves undefined, and the device reads the calling lane in its place (lower::simd's PartialFragment read). docs/VALIDATION.md's verdict section names the four mechanisms and what lavapipe and the 780M do under each, where the next reader of a held case looks. The gap's doc in c3.rs no longer says the cause is unread. Docs and doc comments only. pin-compute.py over the tree gives the committed runtime-sources fingerprint (artifact.rs is not one of its inputs), so no re-pin. cargo fmt --all is clean.
This commit is contained in:
1 parent
f0077ea01b
commit
f42e61aa84
4 files changed
+50
-20
No files matched your search
+9
-4
@@ -2183,8 +2183,9 @@ category, and says what makes an operation carry the note and what may differ. E
|
||||
- `metal2vulkan-degrade-quads-split-by-clipping` (precision). `PrecisionNote::QuadsSplitByClipping`:
|
||||
A fragment function runs a quad or simdgroup operation, recorded on every device: a device may
|
||||
shade a triangle it clips as several triangles, and then a quad a seam between the pieces crosses
|
||||
runs once per piece, each run with the other piece's pixels as helper invocations, so the
|
||||
operation counts or combines fewer active lanes than Metal's, whose quad holds all four.
|
||||
runs once per piece, each run with the other piece's pixels as helper invocations, so a helper
|
||||
query in either run names the other piece's covered pixels as helpers, where Metal's quad,
|
||||
shaded once, names none.
|
||||
- `metal2vulkan-degrade-fragment-simdgroup-grouping` (precision).
|
||||
`PrecisionNote::FragmentSimdgroupGrouping`: A fragment function runs a simdgroup operation (a
|
||||
reduction, scan, vote, ballot, shuffle, broadcast or AGX multiply-add) or reads its
|
||||
@@ -2199,8 +2200,12 @@ category, and says what makes an operation carry the note and what may differ. E
|
||||
quad's other covered pixels as helpers, where the device shades them as one quad: a ballot of the
|
||||
helper query names covered pixels as helpers on the M3 Max (3 of the 16 quads of an 8x8 target, 2
|
||||
to 4 of the 12 of a 7x5 one, under the full-screen triangle with every third pixel discarded) and
|
||||
none on the device. A device whose fragment subgroup holds fewer than two quads combines the
|
||||
one quad's pixels alone, so a reduction ahead of a `discard_fragment` counts no quad the discard
|
||||
none on the device. A device whose fragment subgroup holds fewer than 32 lanes runs it as a
|
||||
partly occupied simdgroup, its upper lanes inactive: a fill from past the subgroup reads an
|
||||
inactive lane, which Metal leaves undefined (MSL 4.1 section 6.10.2: a thread needs to only read
|
||||
data from another active thread in the SIMD-group), and the device reads the calling lane in its
|
||||
place. Where the subgroup holds fewer than two quads, the device combines the one quad's pixels
|
||||
alone, so a reduction ahead of a `discard_fragment` counts no quad the discard
|
||||
drops, where an Apple GPU's simdgroup counts the dropped quads of its 8x4 pixel block; the
|
||||
device states one fragment subgroup size, so no required size widens it, and no exact form
|
||||
exists there.
|
||||
|
||||
Reference in new issue
Block a user