Notice
Copyright (c) 2022 The Khronos Group Inc. Copyright terms at http://www.khronos.org/registry/speccopyright.html
Status
-
Complete
-
Approved by the SPIR-V Working Group: 2021-12-08
-
Approved by the Khronos Board of Promoters: 2022-01-21
Dependencies
This extension is written against the SPIR-V Specification, Version 1.5, Revision 5, Unified.
This extension requires SPIR-V 1.0.
Overview
This extension adds new instructions to SPIR-V to support additional group operations within uniform control flow. Some SPIR-V consumers may only be able to support these operations within uniform control flow for some Execution Scopes, and some SPIR-V consumers may be able to generate more efficient code when control flow is known to be uniform.
Extension Name
To use this extension within a SPIR-V module, the following OpExtension must be present in the module:
OpExtension "SPV_KHR_uniform_group_instructions"
Modifications to the SPIR-V Specification, Version 1.5
Capabilities
Modify Section 3.31, Capability, adding rows to the Capability table:
| Capability | Implicitly Declares | |
|---|---|---|
6400 |
GroupUniformArithmeticKHR |
Groups |
Instructions
Add new instructions to Section 3.37.21, Group and Subgroup Instructions:
OpGroupIMulKHR |
Capability: |
|||||
6 |
6401 |
<id> |
Result <id> |
Scope <id> |
<Group Operation> |
<id> |
OpGroupFMulKHR |
Capability: |
|||||
6 |
6402 |
<id> |
Result <id> |
Scope <id> |
<Group Operation> |
<id> |
OpGroupBitwiseAndKHR |
Capability: |
|||||
6 |
6403 |
<id> |
Result <id> |
Scope <id> |
<Group Operation> |
<id> |
OpGroupBitwiseOrKHR |
Capability: |
|||||
6 |
6404 |
<id> |
Result <id> |
Scope <id> |
<Group Operation> |
<id> |
OpGroupBitwiseXorKHR |
Capability: |
|||||
6 |
6405 |
<id> |
Result <id> |
Scope <id> |
<Group Operation> |
<id> |
OpGroupLogicalAndKHR |
Capability: |
|||||
6 |
6406 |
<id> |
Result <id> |
Scope <id> |
<Group Operation> |
<id> |
OpGroupLogicalOrKHR |
Capability: |
|||||
6 |
6407 |
<id> |
Result <id> |
Scope <id> |
<Group Operation> |
<id> |
OpGroupLogicalXorKHR |
Capability: |
|||||
6 |
6408 |
<id> |
Result <id> |
Scope <id> |
<Group Operation> |
<id> |