Skip to content

Commit 999a1e0

Browse files
committed
Merge branch 'main' into error-code-consistency
2 parents 12fc5ab + d1eb455 commit 999a1e0

14 files changed

Lines changed: 115 additions & 85 deletions

.github/workflows/presubmit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
container: khronosgroup/docker-images@sha256:4aab96a03ef292439c9bd0f972adfa29cdf838d0909b1cb4ec2a6d7b2d14a37f
2121

2222
steps:
23-
- uses: actions/checkout@v4
23+
- uses: actions/checkout@v5
2424
with:
2525
submodules: recursive
2626
# If fetch-depth: 0 is not specified, then

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222

2323
steps:
2424
- name: Get Spec Source
25-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
25+
uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v4.2.2
2626
with:
2727
submodules: recursive
2828
# If fetch-depth: 0 is not specified, then
@@ -46,7 +46,7 @@ jobs:
4646
python3 makeSpec -clean -spec khr+ext OUTDIR=out.release -j 5 api c env ext cxx4opencl
4747
4848
- name: Release Specs
49-
uses: softprops/action-gh-release@72f2c25fcb47643c292f7107632f7a47c1df5cd8 # v2.3.2
49+
uses: softprops/action-gh-release@6cbd405e2c4e67a21c47fa9e383d020e4e28b836 # v2.3.3
5050
with:
5151
draft: true
5252
files: |

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,7 @@ CFEATURES = c/features.txt
517517
CFUNCTIONS = c/functions.txt
518518
GENSCRIPT = $(SCRIPTS)/gencl.py
519519
DICTSCRIPT = $(SCRIPTS)/gen_dictionaries.py
520+
EXTIFACESSCRIPT= $(SCRIPTS)/gen_extension_interfaces.py
520521
VERSIONSCRIPT = $(SCRIPTS)/gen_version_notes.py
521522
CFEATSCRIPT = $(SCRIPTS)/gen_dictionary_from_file.py
522523
CFUNCSCRIPT = $(SCRIPTS)/gen_dictionary_from_file.py
@@ -542,11 +543,13 @@ $(APIDEPEND): $(APIXML) $(DICTSCRIPT) $(GENSCRIPT) $(VERSIONSCRIPT)
542543

543544
extinc: $(METADEPEND)
544545

545-
$(METADEPEND): $(APIXML) $(GENSCRIPT)
546+
$(METADEPEND): $(APIXML) $(GENSCRIPT) $(CFEATSCRIPT) $(EXTIFACESSCRIPT)
546547
$(QUIET)$(MKDIR) $(METAPATH)
548+
$(QUIET)$(MKDIR) $(METAPATH)/interfaces
547549
$(QUIET)$(PYTHON) $(GENSCRIPT) $(GENSCRIPTOPTS) -o $(METAPATH) extinc
548550
$(QUIET)$(PYTHON) $(CFEATSCRIPT) -i $(CFEATURES) -o $(METAPATH)/c-feature-dictionary.asciidoc
549551
$(QUIET)$(PYTHON) $(CFUNCSCRIPT) -i $(CFUNCTIONS) -o $(METAPATH)/c-function-dictionary.asciidoc
552+
$(QUIET)$(PYTHON) $(EXTIFACESSCRIPT) -registry $(APIXML) -o $(METAPATH)/interfaces
550553

551554
# This generates a single file containing asciidoc attributes for each
552555
# extension in the spec being built.

api/cl_ext_buffer_device_address.asciidoc

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -44,22 +44,7 @@ This extension is targeted to complement the OpenCL SVM extension by providing
4444
an additional lower-end step in the spectrum of type of pointers/buffers OpenCL
4545
can allocate.
4646

47-
=== New Command
48-
49-
* {clSetKernelArgDevicePointerEXT}
50-
51-
=== New Types
52-
53-
* {cl_mem_device_address_ext_TYPE}
54-
55-
=== New Enums
56-
57-
* {cl_mem_properties_TYPE}
58-
** {CL_MEM_DEVICE_PRIVATE_ADDRESS_EXT}
59-
* {cl_mem_info_TYPE}
60-
** {CL_MEM_DEVICE_ADDRESS_EXT}
61-
* {cl_kernel_exec_info_TYPE}
62-
** {CL_KERNEL_EXEC_INFO_DEVICE_PTRS_EXT}
47+
include::{generated}/meta/interfaces/cl_ext_buffer_device_address.txt[]
6348

6449
=== Version History
6550

api/cl_ext_cxx_for_opencl.asciidoc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,7 @@ with stable versions published in releases of the repository.
2727
This extension also enables applications to query the version of the language
2828
supported by the device compiler.
2929

30-
=== New Enums
31-
32-
* {cl_device_info_TYPE}
33-
** {CL_DEVICE_CXX_FOR_OPENCL_NUMERIC_VERSION_EXT}
30+
include::{generated}/meta/interfaces/cl_ext_cxx_for_opencl.txt[]
3431

3532
=== New build option
3633

api/cl_ext_image_from_buffer.asciidoc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@ include::{generated}/meta/{refprefix}cl_ext_image_from_buffer.txt[]
2020
This extension enables all types of images to be created from an existing buffer
2121
object.
2222

23-
=== New Enums
24-
25-
* {cl_image_requirements_info_ext_TYPE}
26-
** {CL_IMAGE_REQUIREMENTS_SLICE_PITCH_ALIGNMENT_EXT}
23+
include::{generated}/meta/interfaces/cl_ext_image_from_buffer.txt[]
2724

2825
=== Conformance tests
2926

api/cl_ext_image_raw10_raw12.asciidoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ include::{generated}/meta/{refprefix}cl_ext_image_raw10_raw12.txt[]
1515
The latest published specification for this extension is available on
1616
the https://registry.khronos.org/OpenCL/extensions/ext/cl_ext_image_raw10_raw12.html[OpenCL registry].
1717

18+
include::{generated}/meta/interfaces/cl_ext_image_raw10_raw12.txt[]
19+
1820
=== Version History
1921

2022
* Revision 1.0.0, 2023-05-03

api/cl_ext_image_requirements_info.asciidoc

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,7 @@ include::{generated}/meta/{refprefix}cl_ext_image_requirements_info.txt[]
2222
This extension enables applications to query requirements for an image without
2323
having to create the image.
2424

25-
=== New Commands
26-
27-
* {clGetImageRequirementsInfoEXT}
28-
29-
=== New Types
30-
31-
* {cl_image_requirements_info_ext_TYPE}
32-
33-
=== New Enums
34-
35-
* {cl_image_requirements_info_ext_TYPE}
36-
** {CL_IMAGE_REQUIREMENTS_ROW_PITCH_ALIGNMENT_EXT}
37-
** {CL_IMAGE_REQUIREMENTS_BASE_ADDRESS_ALIGNMENT_EXT}
38-
** {CL_IMAGE_REQUIREMENTS_SIZE_EXT}
39-
** {CL_IMAGE_REQUIREMENTS_MAX_WIDTH_EXT}
40-
** {CL_IMAGE_REQUIREMENTS_MAX_HEIGHT_EXT}
41-
** {CL_IMAGE_REQUIREMENTS_MAX_DEPTH_EXT}
42-
** {CL_IMAGE_REQUIREMENTS_MAX_ARRAY_SIZE_EXT}
25+
include::{generated}/meta/interfaces/cl_ext_image_requirements_info.txt[]
4326

4427
=== Conformance tests
4528

api/cl_ext_image_unorm_int_2_101010.asciidoc

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,12 @@ image format.
2020
OpenCL C compilers supporting this extension will define the
2121
{opencl_c_ext_image_unorm_int_2_101010} feature macro.
2222

23+
include::{generated}/meta/interfaces/cl_ext_image_unorm_int_2_101010.txt[]
24+
2325
=== New feature macro
2426

2527
* {opencl_c_ext_image_unorm_int_2_101010}
2628

27-
=== New Enums
28-
29-
* {cl_channel_type_TYPE}
30-
** {CL_UNORM_INT_2_101010_EXT}
31-
3229
=== New OpenCL C channel data type
3330

3431
* `CLK_UNORM_INT_2_101010_EXT`

api/cl_ext_image_unsigned_10x6_12x4_14x2.asciidoc

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,12 @@ formats:
2727
OpenCL C compilers supporting this extension will define the
2828
{opencl_c_ext_image_unsigned_10x6_12x4_14x2} feature macro.
2929

30+
include::{generated}/meta/interfaces/cl_ext_image_unsigned_10x6_12x4_14x2.txt[]
31+
3032
=== New feature macro
3133

3234
* {opencl_c_ext_image_unsigned_10x6_12x4_14x2}
3335

34-
=== New Enums
35-
36-
* {cl_channel_type_TYPE}
37-
** {CL_UNSIGNED_INT10X6_EXT}
38-
** {CL_UNSIGNED_INT12X4_EXT}
39-
** {CL_UNSIGNED_INT14X2_EXT}
40-
** {CL_UNORM_INT10X6_EXT}
41-
** {CL_UNORM_INT12X4_EXT}
42-
** {CL_UNORM_INT14X2_EXT}
43-
4436
=== New OpenCL C channel data type
4537

4638
* `CLK_UNSIGNED_INT10X6_EXT`

0 commit comments

Comments
 (0)