Skip to content

agx: apply single-sample coverage before in-tile MRT stores - #452

Merged
RyanTheTide merged 1 commit into
aurora-wipfrom
j716c/single-sample-coverage
Nov 19, 2026
Merged

RyanTheTide merged 1 commit into
aurora-wipfrom
j716c/single-sample-coverage

Conversation

@erikwb

@erikwb erikwb commented Nov 18, 2026

Copy link
Copy Markdown

A single-sample M5 fragment epilog with multiple color attachments could fail to compile after exported coverage was already consumed by a kill. For in-tile stores, omit the redundant sample-mask operand and preserve the existing translucent pass classification. Multisample and spilled stores retain their explicit masks.

On G17C, a native 64×64 Vulkan draw loaded two attachments (RGBA8 and RGBA16F). A checker of even and odd columns verified that surviving lanes wrote both attachments and discarded lanes preserved both. A second draw enabled alpha-to-coverage with a different alpha in each half of the image. Readback matched the expected values on both attachments in both runs. The affected three-target game epilog also compiled in a completed 4K benchmark. G17G and G17S share the path and have no hardware results in this submission.

This compiler fix applies directly to aurora-wip. The game benchmark also used the single-texel and sampler allocation changes.

The other two changes used for the game benchmark are #450 and #451.

Reviewed with sol-loop: 2 rounds with GPT-6.2 Sol. Sol verdict: approved.

Created with Codex.

Keep the existing translucent pass classification after the coverage kill. Spilled stores and multisample targets still consume the explicit sample mask.

Developed with Claude Code.

Signed-off-by: Erik Bourget <erik@ebourget.net>
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.

2 participants