Skip to content

[SPIRV] Implement WaveOpsIncludeHelperLanes - #7806

Merged
Steven Perron (s-perron) merged 5 commits into
microsoft:mainfrom
s-perron:WaveOpsIncludeHelperLanes
Oct 16, 2025
Merged

Steven Perron (s-perron) merged 5 commits into
microsoft:mainfrom
s-perron:WaveOpsIncludeHelperLanes

Conversation

@s-perron

Copy link
Copy Markdown
Collaborator

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
Comment thread tools/clang/lib/SPIRV/SpirvEmitter.cpp Resolved
Co-authored-by: Nathan Gauër <github@keenuts.net>
@github-actions

github-actions Bot commented Oct 15, 2025 •

Copy link
Copy Markdown
Contributor

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

@Keenuts Nathan Gauër (Keenuts) left a comment

Copy link
Copy Markdown
Collaborator

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

Comment thread tools/clang/lib/SPIRV/SpirvEmitter.cpp Resolved
@s-perron
Steven Perron (s-perron) merged commit b43660a into microsoft:main Oct 16, 2025
@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

Archived in project

Development

Successfully merging this pull request may close these issues.

[SPIR-V] Implement Shader Model 6.7 WaveOpsIncludeHelperLanes Option

3 participants