Notice
Copyright (c) 2020 The Khronos Group Inc. Copyright terms at http://www.khronos.org/registry/speccopyright.html
Status
-
Complete
-
Approved by the SPIR Working Group: 2020-05-13
-
Approved by the Khronos Board of Promoters: 2020-06-26
Dependencies
This extension is written against the SPIR-V Specification, Version 1.5, Revision 3, Unified.
This extension requires SPIR-V 1.3.
Overview
This extension adds a new execution mode SubgroupUniformControlFlowKHR to extend the guarantees provided by the definition of Uniform Control Flow in the SPIR-V Specification. The SubgroupUniformControlFlowKHR execution mode requires that all invocations in each subgroup scope instance must reconverge if they were uniform for that subgroup instance upon entry into a structured loop or selection and they all exit via the loop’s or selection’s merge block.
Extension Name
To use this extension within a SPIR-V module, the following OpExtension must be present in the module:
OpExtension "SPV_KHR_subgroup_uniform_control_flow"
Modifications to the SPIR-V Specification, Version 1.5
Execution Mode
In section 3.6 "Execution Mode", add the following row to the table:
| Execution Mode | Extra Operands | Enabling Capabilities | |||
|---|---|---|---|---|---|
4421 |
SubgroupUniformControlFlowKHR |
Shader |
|||