Repository navigation
asahi: fix G17P mesh export ordering and late selector allocation - #392
Merged
Merged
Conversation
Apply the complete mesh correctness prerequisite on current aurora-wip. Keep all newly merged compiler, sampler, image, queue and WSI changes. Complete index and vertex-batch phases explicitly, retain independent output extent encoding and template 0x40, and restrict ordinary late asynchronous producers without weakening required native protocols. Retain the corrected direct-packer fixture's pseudo lowering, all twelve selector/system-read subcases, and the fail-closed negative tests. The original core delta applies without source adaptation. This new composition has not been built or tested. Signed-off-by: Diljit Singh <hey@djdev.me>
DjDeveloperr
force-pushed
the
djdev/g17p-mesh-output-arena
branch
from
November 17, 2026 18:12
dcae3c3 to
5bf141e
Compare
DjDeveloperr
marked this pull request as ready for review
November 17, 2026 18:14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
G17P mesh draws can corrupt output when index exports or successive vertex batches reuse the exporter before the preceding phase has finished. Insert explicit phase boundaries and retire the modeled producers at each boundary. Keep mesh output limits independent of threadgroup memory.
Unlinked mesh interfaces may load UVS selectors between exports. Keep those loads and other ordinary async producers off the pending export channel while preserving the existing wait and required-channel rules. The regression fixture exercises 12 selector/cursor combinations and both refusal cases.
The combined tip tree in #391 passed 138 Asahi CI checks and built on the local AArch64 Mac. The corresponding Edge stack passed the previous Neo hardware gate, including all nine original CTS regressions. Standalone checks for this PR and focused validation of the new tip artifact are tracked separately. Edge counterpart: #421.
The local AArch64 build of
1ee921dalso passed 18 NIR tests, six pipeline creation probes and eleven compiler profiles. The 36 emitted programs and 79 linked-code records matched the retained Neo candidate in those profiles.Focused Neo smoke on
7.3.0-neo-usb1947v3: all nine regressions passed, and both concurrent multiview clients checked clean. The first cold draw corrupted pixels on both the tip artifact (1ee921d, 5,516 mismatches) and the Edge control (6fd8163, 5,360 mismatches). The remaining 19 draws checked clean in each run. The two drivers reproduced the same affected lanes on the same boot. The controlled kernel check then passed withg17_mesh_tvb_floor=1: both unchanged driver binaries rendered all 20 cold-test draws with zero incorrect pixels. The old default kernel lacks Linux #2058 and therefore cannot activate the Mesa mesh heap hint.