Skip to content

[SPIRV] Implement WaveOpsIncludeHelperLanes#7806

Merged
s-perron merged 5 commits intomicrosoft:mainfrom
s-perron:WaveOpsIncludeHelperLanes
Oct 16, 2025
Merged

[SPIRV] Implement WaveOpsIncludeHelperLanes#7806
s-perron merged 5 commits intomicrosoft:mainfrom
s-perron:WaveOpsIncludeHelperLanes

Conversation

@s-perron
Copy link
Collaborator

@s-perron s-perron commented Oct 8, 2025

This commit implements the [WaveOpsIncludeHelperLanes] attribute for the SPIR-V backend.

When this attribute is applied to a shader entry point, the compiler will:

  • Add the SPV_KHR_maximal_reconvergence and SPV_KHR_quad_control extensions.
  • Add the QuadControlKHR capability.
  • Add the MaximallyReconvergesKHR and RequireFullQuadsKHR execution modes to the entry point.

This change also includes new tests to verify the correctness of the implementation and updates the documentation.

Fixes #7334

This commit implements the `[WaveOpsIncludeHelperLanes]` attribute for the SPIR-V backend.

When this attribute is applied to a shader entry point, the compiler will:
- Add the `SPV_KHR_maximal_reconvergence` and `SPV_KHR_quad_control` extensions.
- Add the `QuadControlKHR` capability.
- Add the `MaximallyReconvergesKHR` and `RequireFullQuadsKHR` execution modes to the entry point.

This change also includes new tests to verify the correctness of the implementation and updates the documentation.

Fixes microsoft#7334
@s-perron s-perron requested a review from luciechoi October 10, 2025 18:01
Co-authored-by: Nathan Gauër <github@keenuts.net>
@github-actions
Copy link
Contributor

github-actions bot commented Oct 15, 2025

✅ With the latest revision this PR passed the C/C++ code formatter.

Copy link
Collaborator

@Keenuts Keenuts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just the missing test you should add before merging

@s-perron s-perron enabled auto-merge (squash) October 15, 2025 16:30
@s-perron s-perron requested a review from Keenuts October 15, 2025 16:31
@s-perron s-perron merged commit b43660a into microsoft:main Oct 16, 2025
12 checks passed
@github-project-automation github-project-automation bot moved this from New to Done in HLSL Roadmap Oct 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[SPIR-V] Implement Shader Model 6.7 WaveOpsIncludeHelperLanes Option

3 participants