Repository navigation
agx: apply single-sample coverage before in-tile MRT stores - #452
Merged
Merged
Conversation
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>
This was referenced Nov 18, 2026
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.
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.