Skip to content

Commit bcb4665

Browse files
authored
Fixup extension references and subtitutions (#107)
1 parent 6aab755 commit bcb4665

File tree

3 files changed

+13
-16
lines changed

3 files changed

+13
-16
lines changed

scripts/core/EXT_Exp_ImageView.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ from templates import helper as th
1515
=========================
1616

1717
%if ver >= 1.5:
18-
This experimental extension is deprecated and replaced by the ${x}_extension_image_view standard extension.
18+
This experimental extension is deprecated and replaced by the :ref:`${th.subt(namespace, tags, X)}_extension_image_view <${th.subt(namespace, tags, X)}_extension_image_view>` standard extension.
1919
%endif
2020

2121
API

scripts/core/EXT_Exp_ImageViewPlanar.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ from templates import helper as th
1515
=============================
1616

1717
%if ver >= 1.5:
18-
This experimental extension is deprecated and replaced by the ${x}_extension_image_view_planar standard extension.
18+
This experimental extension is deprecated and replaced by the :ref:`${th.subt(namespace, tags, X)}_extension_image_view_planar <${th.subt(namespace, tags, X)}_extension_image_view_planar>` standard extension.
1919
%endif
2020

2121
API

scripts/core/SPIRV.rst

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
1+
<%
2+
import re
3+
from templates import helper as th
4+
%>
25
<%
36
OneApi=tags['$OneApi']
47
x=tags['$x']
@@ -414,13 +417,12 @@ Floating-Point Atomics
414417
----------------------
415418

416419
${OneApi} Level-Zero API environments supporting the extension
417-
**${x}_extension_float_atomics** must support additional atomic instructions,
418-
capabilities, and types.
420+
**${th.subt(namespace, tags, X)}_extension_float_atomics** must support additional atomic instructions, capabilities, and types.
419421

420422
Atomic Load, Store, and Exchange
421423
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
422424

423-
If the ${OneApi} Level-Zero API environment supports the extension **${X}_extension_float_atomics** and ${x}_device_fp_atomic_ext_flags_t.fp16Flags includes ${X}_DEVICE_FP_ATOMIC_EXT_FLAG_GLOBAL_LOAD_STORE or ${X}_DEVICE_FP_ATOMIC_EXT_FLAG_LOCAL_LOAD_STORE, then for the **Atomic Instructions** **OpAtomicLoad**, **OpAtomicStore**, and **OpAtomicExchange**:
425+
If the ${OneApi} Level-Zero API environment supports the extension **${th.subt(namespace, tags, X)}_extension_float_atomics** and ${x}_device_fp_atomic_ext_flags_t.fp16Flags includes ${X}_DEVICE_FP_ATOMIC_EXT_FLAG_GLOBAL_LOAD_STORE or ${X}_DEVICE_FP_ATOMIC_EXT_FLAG_LOCAL_LOAD_STORE, then for the **Atomic Instructions** **OpAtomicLoad**, **OpAtomicStore**, and **OpAtomicExchange**:
424426

425427
- 16-bit floating-point types are supported for the *Result Type* and type of
426428
*Value*.
@@ -430,7 +432,7 @@ If the ${OneApi} Level-Zero API environment supports the extension **${X}_extens
430432
Atomic Add and Subtract
431433
~~~~~~~~~~~~~~~~~~~~~~~
432434

433-
If the ${OneApi} Level-Zero API environment supports the extension **${X}_extension_float_atomics** and ${x}_device_fp_atomic_ext_flags_t.fp16Flags, ${x}_device_fp_atomic_ext_flags_t.fp32Flags, or ${x}_device_fp_atomic_ext_flags_t.fp64Flags include ${X}_DEVICE_FP_ATOMIC_EXT_FLAG_GLOBAL_ADD or ${X}_DEVICE_FP_ATOMIC_EXT_FLAG_LOCAL_ADD, then the environment must accept modules that declare use of the extensions ``SPV_EXT_shader_atomic_float_add`` and ``SPV_EXT_shader_atomic_float16_add``.
435+
If the ${OneApi} Level-Zero API environment supports the extension **${th.subt(namespace, tags, X)}_extension_float_atomics** and ${x}_device_fp_atomic_ext_flags_t.fp16Flags, ${x}_device_fp_atomic_ext_flags_t.fp32Flags, or ${x}_device_fp_atomic_ext_flags_t.fp64Flags include ${X}_DEVICE_FP_ATOMIC_EXT_FLAG_GLOBAL_ADD or ${X}_DEVICE_FP_ATOMIC_EXT_FLAG_LOCAL_ADD, then the environment must accept modules that declare use of the extensions ``SPV_EXT_shader_atomic_float_add`` and ``SPV_EXT_shader_atomic_float16_add``.
434436
Additionally:
435437

436438
- When ${x}_device_fp_atomic_ext_flags_t.fp16Flags includes ${X}_DEVICE_FP_ATOMIC_EXT_FLAG_GLOBAL_ADD or ${X}_DEVICE_FP_ATOMIC_EXT_FLAG_LOCAL_ADD, the **AtomicFloat16AddEXT** capability must be supported.
@@ -444,7 +446,7 @@ Additionally:
444446
Atomic Min and Max
445447
~~~~~~~~~~~~~~~~~~
446448

447-
If the ${OneApi} Level-Zero API environment supports the extension **${X}_extension_float_atomics** and the ${x}_device_fp_atomic_ext_flags_t.fp32Flags, ${x}_device_fp_atomic_ext_flags_t.fp64Flags, or ${x}_device_fp_atomic_ext_flags_t.fp16Flags bitfields include ${X}_DEVICE_FP_ATOMIC_EXT_FLAG_GLOBAL_MIN_MAX or ${X}_DEVICE_FP_ATOMIC_EXT_FLAG_LOCAL_MIN_MAX, then the environment must accept modules that declare use of the extension ``SPV_EXT_shader_atomic_float_min_max``.
449+
If the ${OneApi} Level-Zero API environment supports the extension **${th.subt(namespace, tags, X)}_extension_float_atomics** and the ${x}_device_fp_atomic_ext_flags_t.fp32Flags, ${x}_device_fp_atomic_ext_flags_t.fp64Flags, or ${x}_device_fp_atomic_ext_flags_t.fp16Flags bitfields include ${X}_DEVICE_FP_ATOMIC_EXT_FLAG_GLOBAL_MIN_MAX or ${X}_DEVICE_FP_ATOMIC_EXT_FLAG_LOCAL_MIN_MAX, then the environment must accept modules that declare use of the extension ``SPV_EXT_shader_atomic_float_min_max``.
448450
Additionally:
449451

450452
- When ${x}_device_fp_atomic_ext_flags_t.fp32Flags includes ${X}_DEVICE_FP_ATOMIC_EXT_FLAG_GLOBAL_MIN_MAX or ${X}_DEVICE_FP_ATOMIC_EXT_FLAG_LOCAL_MIN_MAX, the **AtomicFloat32MinMaxEXT** capability must be supported.
@@ -462,8 +464,7 @@ Extended Subgroups
462464
------------------
463465

464466
${OneApi} Level-Zero API environments supporting the extension
465-
**${X}_extension_subgroups** must support additional subgroup instructions,
466-
capabilities, and types.
467+
**${th.subt(namespace, tags, X)}_extension_subgroups** must support additional subgroup instructions, capabilities, and types.
467468

468469
Extended Types
469470
~~~~~~~~~~~~~~
@@ -655,9 +656,7 @@ Linkonce ODR
655656
------------
656657

657658
${OneApi} Level-Zero API environments supporting the extension
658-
**${X}_extension_linkonce_odr** must must accept SPIR-V modules that
659-
declare use of the ``SPV_KHR_linkonce_odr`` extension via
660-
**OpExtension**.
659+
**${th.subt(namespace, tags, X)}_extension_linkonce_odr** must must accept SPIR-V modules that declare use of the ``SPV_KHR_linkonce_odr`` extension via **OpExtension**.
661660

662661
When use of the ``SPV_KHR_linkonce_odr`` extension is declared in the
663662
module via **OpExtension**, the environment must accept modules that
@@ -670,9 +669,7 @@ Bfloat16 Conversions
670669
--------------------
671670

672671
${OneApi} Level-Zero API environments supporting the extension
673-
**${X}_extension_bfloat16_conversions** must must accept SPIR-V modules that
674-
declare use of the ``SPV_INTEL_bloat16_conversion`` extension via
675-
**OpExtension**.
672+
**${th.subt(namespace, tags, X)}_extension_bfloat16_conversions** must must accept SPIR-V modules that declare use of the ``SPV_INTEL_bloat16_conversion`` extension via **OpExtension**.
676673

677674
When use of the ``SPV_INTEL_bloat16_conversion`` extension is declared in the
678675
module via **OpExtension**, the environment must accept modules that

0 commit comments

Comments
 (0)