Skip to content

Commit bc20c1e

Browse files
authored
Ensure cl.xml passes validation (#831)
* Ensure cl.xml passes validation Fixes #830 * Add XML validation to CI
1 parent 60cf775 commit bc20c1e

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ rvm:
99
- 2.3.3
1010

1111
before_install:
12-
- sudo apt-get install -y libpango1.0-dev ghostscript fonts-lyx
12+
- sudo apt-get install -y libpango1.0-dev ghostscript fonts-lyx jing
1313
- gem install asciidoctor -v 2.0.16
1414
- gem install coderay -v 1.1.1
1515
- gem install rouge -v 3.19.0
@@ -20,6 +20,7 @@ before_install:
2020
script:
2121
- git describe --tags --dirty
2222
- make -O -j 5 api c env ext cxx4opencl manhtmlpages
23+
- make -C xml validate
2324

2425
deploy:
2526
provider: releases

xml/cl.xml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ server's OpenCL/api-docs repository.
494494
<enum value="SIZE_MAX" name="CL_IMPORT_MEMORY_WHOLE_ALLOCATION_ARM"/>
495495
</enums>
496496

497-
<enums name="Constants.cl_intel_command_queue_families" vendor="Intel" commant="cl_intel_command_queue_families constants, in cl_ext.h">
497+
<enums name="Constants.cl_intel_command_queue_families" vendor="Intel" comment="cl_intel_command_queue_families constants, in cl_ext.h">
498498
<enum value="64" name="CL_QUEUE_FAMILY_MAX_NAME_SIZE_INTEL"/>
499499
<enum value="0" name="CL_QUEUE_DEFAULT_CAPABILITIES_INTEL"/>
500500
</enums>
@@ -7144,13 +7144,10 @@ server's OpenCL/api-docs repository.
71447144
<enum name="CL_QUEUE_JOB_SLOT_ARM"/>
71457145
</require>
71467146
</extension>
7147-
<extension name="cl_khr_command_buffer_mutable_dispatch" comment="version 0.9.0" supported="opencl">
7147+
<extension name="cl_khr_command_buffer_mutable_dispatch" requires="cl_khr_command_buffer" comment="version 0.9.0" supported="opencl">
71487148
<require>
71497149
<type name="CL/cl.h"/>
71507150
</require>
7151-
<require>
7152-
<extension name="cl_khr_command_buffer"/>
7153-
</require>
71547151
<require>
71557152
<type name="cl_command_buffer_structure_type_khr"/>
71567153
<type name="cl_mutable_dispatch_fields_khr"/>

xml/registry.rnc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,7 @@ Extension = element extension {
436436
attribute type { text } ? ,
437437
attribute requires { text } ? ,
438438
attribute requiresCore { text } ? ,
439+
attribute condition { text } ? ,
439440
attribute supported { StringGroup } ? ,
440441
attribute promotedto { text } ? ,
441442
attribute deprecatedby { text } ? ,
@@ -445,6 +446,7 @@ Extension = element extension {
445446
(
446447
element require {
447448
attribute api { text } ? ,
449+
attribute condition { text } ? ,
448450
ProfileName ? ,
449451
ExtensionName ? ,
450452
FeatureName ? ,
@@ -478,6 +480,7 @@ InterfaceElement =
478480
Enum |
479481
element command {
480482
Name ,
483+
attribute requires { text } ? ,
481484
Comment ?
482485
}
483486

0 commit comments

Comments
 (0)