Skip to content

asahi: fix G17P mesh export ordering and late selector allocation - #392

Merged
DjDeveloperr merged 1 commit into
aurora-wipfrom
djdev/g17p-mesh-output-arena
Nov 17, 2026
Merged

DjDeveloperr merged 1 commit into
aurora-wipfrom
djdev/g17p-mesh-output-arena

Conversation

@DjDeveloperr

@DjDeveloperr DjDeveloperr commented Nov 16, 2026 •

Copy link
Copy Markdown

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 1ee921d also 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 with g17_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.

@DjDeveloperr DjDeveloperr changed the title hk: reserve the G17P mesh vertex output arena hk: encode G17P mesh output limits independently of shared memory Nov 16, 2026
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
DjDeveloperr force-pushed the djdev/g17p-mesh-output-arena branch from dcae3c3 to 5bf141e Compare November 17, 2026 18:12
@DjDeveloperr DjDeveloperr changed the title hk: encode G17P mesh output limits independently of shared memory asahi: fix G17P mesh export ordering and late selector allocation Nov 17, 2026
@DjDeveloperr
DjDeveloperr marked this pull request as ready for review November 17, 2026 18:14
@DjDeveloperr
DjDeveloperr merged commit 187417e into aurora-wip Nov 17, 2026
@RyanTheTide
RyanTheTide deleted the djdev/g17p-mesh-output-arena branch November 17, 2026 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant