platform/upstream/SPIRV-Headers.git
6 years agoClay Shader Compiler
Clay Engine [Thu, 3 May 2018 10:02:02 +0000 (17:02 +0700)]
Clay Shader Compiler

6 years agoMerge pull request #68 from dneto0/hlsl-decorate-string
John Kessenich [Fri, 13 Apr 2018 21:57:14 +0000 (15:57 -0600)]
Merge pull request #68 from dneto0/hlsl-decorate-string

SPV_GOOGLE_hlsl_functionality1 includes all of SPV_GOOGLE_decorate_st…

6 years agoSPV_GOOGLE_hlsl_functionality1 includes all of SPV_GOOGLE_decorate_string
David Neto [Fri, 13 Apr 2018 21:50:04 +0000 (17:50 -0400)]
SPV_GOOGLE_hlsl_functionality1 includes all of SPV_GOOGLE_decorate_string

This fix to the SPV_GOOGLE_hlsl_functionality1 extension spec is pending.

6 years agoAdd tokens for SPV_EXT_descriptor_indexing.
John Kessenich [Thu, 5 Apr 2018 16:42:47 +0000 (10:42 -0600)]
Add tokens for SPV_EXT_descriptor_indexing.

6 years agoMerge pull request #67 from jeffbolznv/partition_missing_extension
John Kessenich [Fri, 30 Mar 2018 20:00:04 +0000 (14:00 -0600)]
Merge pull request #67 from jeffbolznv/partition_missing_extension

Add missing 'extensions' for OpGroupNonUniformPartitionNV

6 years agoAdd missing 'extensions' for OpGroupNonUniformPartitionNV
Jeff Bolz [Fri, 30 Mar 2018 19:57:06 +0000 (14:57 -0500)]
Add missing 'extensions' for OpGroupNonUniformPartitionNV

6 years agoAdd SPV_NV_shader_subgroup_partitioned to SPIR-V JSON
John Kessenich [Fri, 30 Mar 2018 17:58:42 +0000 (11:58 -0600)]
Add SPV_NV_shader_subgroup_partitioned to SPIR-V JSON

6 years agoMerge pull request #66 from bashbaug/intel_enum_block
John Kessenich [Thu, 29 Mar 2018 17:14:45 +0000 (11:14 -0600)]
Merge pull request #66 from bashbaug/intel_enum_block

reserve 2x SPIR-V enum blocks for upcoming Intel extensions

6 years agoreserve 2x SPIR-V enum blocks for upcoming Intel extensions
bashbaug [Wed, 28 Mar 2018 23:29:46 +0000 (16:29 -0700)]
reserve 2x SPIR-V enum blocks for upcoming Intel extensions

6 years agoMerge pull request #64 from antiagainst/add-extensions
John Kessenich [Wed, 21 Mar 2018 00:41:58 +0000 (18:41 -0600)]
Merge pull request #64 from antiagainst/add-extensions

Add missing extensions on some symbols

6 years agoAdd missing extensions on some symbols
Lei Zhang [Mon, 19 Mar 2018 23:55:17 +0000 (19:55 -0400)]
Add missing extensions on some symbols

For the following extensions:

* SPV_KHR_post_depth_coverage
* SPV_EXT_fragment_fully_covered
* SPV_AMD_shader_fragment_mask

6 years agoMerge pull request #63 from antiagainst/add-missing-extensions
John Kessenich [Mon, 19 Mar 2018 20:24:59 +0000 (14:24 -0600)]
Merge pull request #63 from antiagainst/add-missing-extensions

Add missing extensions for several symbols

6 years agoAdd missing extensions for several symbols
Lei Zhang [Mon, 19 Mar 2018 19:08:33 +0000 (15:08 -0400)]
Add missing extensions for several symbols

Added the extension requirement for the symbols of the following
extensions:

* SPV_EXT_shader_stencil_export
* SPV_AMD_shader_explicit_vertex_parameter

6 years agoMerge pull request #62 from antiagainst/fix-extensions
John Kessenich [Wed, 14 Mar 2018 21:47:53 +0000 (15:47 -0600)]
Merge pull request #62 from antiagainst/fix-extensions

Add missing extension/capability requirements for some symbols

6 years agoAdd missing extension/capability requirements for some symbols
Lei Zhang [Wed, 14 Mar 2018 14:23:16 +0000 (10:23 -0400)]
Add missing extension/capability requirements for some symbols

Make the grammar more accurate:

Certain symbols can be enabled by an extension in all SPIR-V
versions, like DeviceGroup. Previously the extension for it
is missing, which makes it look like it is only available from
SPIR-V 1.3.

Make tooling more easier to check certain rules:

Certain symbols require both an extension and a capability to
be available. Instead of only specifying the capability, we can
specify both the capability and the extension on the symbol.
So tools don't need to perform indirect query on the capability
to find out the extension requirements. For example, BaseVertex
requires the DrawParameters capability. But it also requires
the SPV_KHR_shader_draw_parameters extension in SPIR-V <1.3.
Previously we can only find out that fact by checking the
extension requirements for DrawParameters.

Make the grammar more consistent:

Previously some symbols have all their capabilities and extensions
listed, but some are not.

6 years agoCreate version 1.3 of SPIR-V.
John Kessenich [Wed, 7 Mar 2018 03:49:00 +0000 (20:49 -0700)]
Create version 1.3 of SPIR-V.

6 years agoMerge pull request #61 from antiagainst/backport-google-ext
John Kessenich [Fri, 2 Mar 2018 21:19:16 +0000 (14:19 -0700)]
Merge pull request #61 from antiagainst/backport-google-ext

Fix Google extension grammar error and backport

6 years agoBack port grammar and symbols for two Google extensions
Lei Zhang [Fri, 2 Mar 2018 17:46:51 +0000 (12:46 -0500)]
Back port grammar and symbols for two Google extensions

* SPV_GOOGLE_decorate_string
* SPV_GOOGLE_hlsl_functionality1

6 years agoFix grammar error for Google decorate_string & hlsl_functionality1
Lei Zhang [Fri, 2 Mar 2018 20:45:55 +0000 (15:45 -0500)]
Fix grammar error for Google decorate_string & hlsl_functionality1

6 years agoMerge pull request #60 from antiagainst/add-google-ext
John Kessenich [Fri, 2 Mar 2018 16:49:57 +0000 (09:49 -0700)]
Merge pull request #60 from antiagainst/add-google-ext

Add grammar and symbols for two Google extensions to unified1

6 years agoAdd grammar and symbols for two Google extensions to unified1
Lei Zhang [Thu, 1 Mar 2018 21:24:21 +0000 (16:24 -0500)]
Add grammar and symbols for two Google extensions to unified1

* SPV_GOOGLE_decorate_string
* SPV_GOOGLE_hlsl_functionality1

6 years agoBe more clear about build directories in the README.
John Kessenich [Fri, 2 Mar 2018 16:40:00 +0000 (09:40 -0700)]
Be more clear about build directories in the README.

6 years agoGenerate headers from last grammar change.
John Kessenich [Fri, 2 Mar 2018 16:35:52 +0000 (09:35 -0700)]
Generate headers from last grammar change.

6 years agoMerge pull request #59 from amdrexu/feature
John Kessenich [Fri, 2 Mar 2018 16:33:07 +0000 (09:33 -0700)]
Merge pull request #59 from amdrexu/feature

Update grammar json for SPV_AMD_gpu_shader_half_float_fetch

6 years agoUpdate grammar json for SPV_AMD_gpu_shader_half_float_fetch
Rex Xu [Fri, 2 Mar 2018 14:15:21 +0000 (22:15 +0800)]
Update grammar json for SPV_AMD_gpu_shader_half_float_fetch

6 years agoMerge pull request #57 from antiagainst/shader_ballot
John Kessenich [Thu, 15 Feb 2018 17:10:42 +0000 (10:10 -0700)]
Merge pull request #57 from antiagainst/shader_ballot

Allow SubgroupSize and SubgroupLocalInvocationId with SubgroupBallotKHR

6 years agoAllow SubgroupSize and SubgroupLocalInvocationId with SubgroupBallotKHR
Lei Zhang [Tue, 13 Feb 2018 17:29:01 +0000 (12:29 -0500)]
Allow SubgroupSize and SubgroupLocalInvocationId with SubgroupBallotKHR

As specified in https://www.khronos.org/registry/spir-v/extensions/KHR/SPV_KHR_shader_ballot.html:

```
(Add the SubgroupBallotKHR capability to SubgroupSize.)
(Add the SubgroupBallotKHR capability to SubgroupLocalInvocationId.)
```

6 years agoBuildHeaders: Add missing 'const'.
John Kessenich [Thu, 1 Feb 2018 21:46:45 +0000 (14:46 -0700)]
BuildHeaders: Add missing 'const'.

6 years agoUpdate copyright dates.
John Kessenich [Thu, 1 Feb 2018 21:32:00 +0000 (14:32 -0700)]
Update copyright dates.

6 years agoAdd a header generator project.
John Kessenich [Tue, 23 Jan 2018 09:46:13 +0000 (02:46 -0700)]
Add a header generator project.

6 years agoMerge pull request #56 from jozefkucia/register-vkd3d-shader-compiler
John Kessenich [Wed, 31 Jan 2018 19:25:35 +0000 (12:25 -0700)]
Merge pull request #56 from jozefkucia/register-vkd3d-shader-compiler

Register the VKD3D Shader Compiler

6 years agoRegister the VKD3D Shader Compiler
Józef Kucia [Wed, 31 Jan 2018 10:52:24 +0000 (11:52 +0100)]
Register the VKD3D Shader Compiler

See https://source.winehq.org/git/vkd3d.git/

6 years agoCorrect the version/revision in the grammar file.
John Kessenich [Sun, 14 Jan 2018 10:26:45 +0000 (03:26 -0700)]
Correct the version/revision in the grammar file.

6 years agoAdd headers for the 1.2 unified (1.0, 1.1, and 1.2) specification.
John Kessenich [Wed, 3 Jan 2018 23:43:17 +0000 (16:43 -0700)]
Add headers for the 1.2 unified (1.0, 1.1, and 1.2) specification.

6 years agoMerge pull request #54 from dneto0/google-range
John Kessenich [Sat, 2 Dec 2017 02:13:54 +0000 (19:13 -0700)]
Merge pull request #54 from dneto0/google-range

Reserve token range for Google

6 years agoReserve token range for Google
David Neto [Fri, 1 Dec 2017 15:34:45 +0000 (10:34 -0500)]
Reserve token range for Google

6 years agoAdd new Intel token reservations.
John Kessenich [Sun, 15 Oct 2017 03:03:27 +0000 (21:03 -0600)]
Add new Intel token reservations.

6 years agoAdd new tokens for SPV_AMD_shader_fragment_mask, and rebuild all headers.
John Kessenich [Wed, 13 Sep 2017 22:25:38 +0000 (16:25 -0600)]
Add new tokens for SPV_AMD_shader_fragment_mask, and rebuild all headers.

Replaces #47.

6 years agoAdd new tokens for SPV_AMD_shader_fragment_mask
Rex Xu [Tue, 12 Sep 2017 07:51:35 +0000 (15:51 +0800)]
Add new tokens for SPV_AMD_shader_fragment_mask

7 years agoFix #45, and minor reordering.
John Kessenich [Fri, 1 Sep 2017 07:09:12 +0000 (01:09 -0600)]
Fix #45, and minor reordering.

- SPV_EXT_shader_stencil_export
- SPV_AMD_shader_image_load_store_lod

7 years agoMerge pull request #46 from dneto0/regsiter-spirv-tools-linker
John Kessenich [Wed, 30 Aug 2017 21:35:17 +0000 (15:35 -0600)]
Merge pull request #46 from dneto0/regsiter-spirv-tools-linker

Register the Khronos SPIRV-Tools Linker

7 years agoRegister the Khronos SPIRV-Tools Linker
David Neto [Wed, 30 Aug 2017 04:07:21 +0000 (00:07 -0400)]
Register the Khronos SPIRV-Tools Linker

See https://github.com/KhronosGroup/SPIRV-Tools/pull/693

7 years agoUpdate all headers for SPV_EXT_shader_stencil_export.
John Kessenich [Tue, 22 Aug 2017 15:27:46 +0000 (09:27 -0600)]
Update all headers for SPV_EXT_shader_stencil_export.

7 years agoAdd SPV_EXT_shader_viewport_index_layer.
John Kessenich [Fri, 11 Aug 2017 18:37:09 +0000 (12:37 -0600)]
Add SPV_EXT_shader_viewport_index_layer.

7 years agoMerge pull request #41 from metora/master
John Kessenich [Fri, 21 Jul 2017 05:26:56 +0000 (14:26 +0900)]
Merge pull request #41 from metora/master

Reserve number 16 to Mesa-IR/SPIR-V Translator

7 years agoReserve number 16 to Mesa-IR/SPIR-V Translator
metora [Fri, 21 Jul 2017 04:40:12 +0000 (12:40 +0800)]
Reserve number 16 to Mesa-IR/SPIR-V Translator

7 years agoIncremental update for multiple recent extensions.
John Kessenich [Fri, 30 Jun 2017 19:46:52 +0000 (13:46 -0600)]
Incremental update for multiple recent extensions.

SPV_KHR_shader_atomic_counter_ops
SPV_KHR_post_depth_coverage
SPV_AMD_texture_gather_bias_lod
OpGroup*AMD
ExplicitInterpAMD

7 years agoMerge pull request #39 from bashbaug/intel_enum_block
John Kessenich [Thu, 22 Jun 2017 18:09:01 +0000 (12:09 -0600)]
Merge pull request #39 from bashbaug/intel_enum_block

reserve SPIR-V enum block for upcoming Intel extension

7 years agoreserve SPIR-V enum block for upcoming Intel extension
bashbaug [Thu, 22 Jun 2017 17:55:10 +0000 (10:55 -0700)]
reserve SPIR-V enum block for upcoming Intel extension

7 years agoAdd version 1.2 headers, update 1.1 to rev. 7, and 1.0 to rev. 11.
John Kessenich [Tue, 16 May 2017 05:34:12 +0000 (23:34 -0600)]
Add version 1.2 headers, update 1.1 to rev. 7, and 1.0 to rev. 11.

7 years agoAdd recently reserved enumerants.
John Kessenich [Thu, 6 Apr 2017 20:35:19 +0000 (14:35 -0600)]
Add recently reserved enumerants.

7 years agoSynchronize OpenCL extended instruction set header with spec, and add missing capabil...
John Kessenich [Thu, 30 Mar 2017 23:21:18 +0000 (17:21 -0600)]
Synchronize OpenCL extended instruction set header with spec, and add missing capability use to the JSON grammar.

7 years agoUpdate JSON grammar files for 16-bit storage.
John Kessenich [Thu, 23 Mar 2017 18:26:43 +0000 (12:26 -0600)]
Update JSON grammar files for 16-bit storage.

7 years agoMerge pull request #31 from antiagainst/spirv-generator-15
John Kessenich [Tue, 14 Mar 2017 16:09:29 +0000 (10:09 -0600)]
Merge pull request #31 from antiagainst/spirv-generator-15

Reserve SPIR-V generator number 15 for rspirv

7 years agoReserve SPIR-V generator number 15 for rspirv
Lei Zhang [Tue, 14 Mar 2017 13:51:07 +0000 (09:51 -0400)]
Reserve SPIR-V generator number 15 for rspirv

link: https://github.com/google/rspirv
7 years agoMerge pull request #30 from antiagainst/spirv-generator-14
John Kessenich [Mon, 13 Mar 2017 21:30:17 +0000 (15:30 -0600)]
Merge pull request #30 from antiagainst/spirv-generator-14

Reserve generator number 14

7 years agoReserve generator number 14
Lei Zhang [Tue, 7 Mar 2017 22:21:25 +0000 (17:21 -0500)]
Reserve generator number 14

7 years agoAdd Rev. 10 of 1.0 and Rev. 6 of 1.1 headers.
John Kessenich [Mon, 27 Feb 2017 09:08:09 +0000 (02:08 -0700)]
Add Rev. 10 of 1.0 and Rev. 6 of 1.1 headers.

7 years agoMerge pull request #29 from antiagainst/core-grammar-revision
John Kessenich [Thu, 16 Feb 2017 18:14:01 +0000 (11:14 -0700)]
Merge pull request #29 from antiagainst/core-grammar-revision

Update SPIR-V core grammar revision number

7 years agoUpdate SPIR-V core grammar revision number
Lei Zhang [Wed, 15 Feb 2017 20:11:38 +0000 (15:11 -0500)]
Update SPIR-V core grammar revision number

7 years agoNew revisions of SPIR-V 1.0 and 1.1, and both extended instruction sets.
John Kessenich [Wed, 15 Feb 2017 18:34:58 +0000 (11:34 -0700)]
New revisions of SPIR-V 1.0 and 1.1, and both extended instruction sets.

This includes SPV_KHR_subgroup_vote tokens.

7 years agoMerge pull request #26 from dneto0/register-shaderc-glslang-frontend
John Kessenich [Thu, 8 Dec 2016 17:01:06 +0000 (10:01 -0700)]
Merge pull request #26 from dneto0/register-shaderc-glslang-frontend

Add "Shaderc over Glslang" as a front end

7 years agoAdd "Shaderc over Glslang" as a front end
David Neto [Thu, 8 Dec 2016 16:47:22 +0000 (11:47 -0500)]
Add "Shaderc over Glslang" as a front end

This will help gauge Shaderc usage.

7 years agoAdd Imagination as a vendor and reserve an enum range for them.
John Kessenich [Sat, 22 Oct 2016 08:22:42 +0000 (02:22 -0600)]
Add Imagination as a vendor and reserve an enum range for them.

7 years agoCorrect Revision numbers for previous commit.
John Kessenich [Sat, 8 Oct 2016 23:56:28 +0000 (17:56 -0600)]
Correct Revision numbers for previous commit.

7 years agoUpdate to Rev. 8 of 1.0 and Rev. 4 of 1.1. Includes enums for SPV_KHR_shader_draw_par...
John Kessenich [Sat, 8 Oct 2016 22:51:48 +0000 (16:51 -0600)]
Update to Rev. 8 of 1.0 and Rev. 4 of 1.1. Includes enums for SPV_KHR_shader_draw_parameters.

7 years agoMerge pull request #23 from dneto0/clarify-opcode-enum-ranges
John Kessenich [Wed, 21 Sep 2016 15:45:31 +0000 (09:45 -0600)]
Merge pull request #23 from dneto0/clarify-opcode-enum-ranges

Clarify opcode/enum ranges

7 years agoFix typos and style, from review feedback
David Neto [Wed, 21 Sep 2016 15:39:17 +0000 (11:39 -0400)]
Fix typos and style, from review feedback

7 years agoClarify uses of value used in KHR specs
David Neto [Mon, 19 Sep 2016 20:28:24 +0000 (16:28 -0400)]
Clarify uses of value used in KHR specs

If a value's use is adopted by a KHR extension or
spec, then it's as if the value were originally
reserved in a Khronos ragne.  Khronos permanently
fixes that use.

7 years agoClarify opcode/enum ranges
David Neto [Mon, 19 Sep 2016 19:41:05 +0000 (15:41 -0400)]
Clarify opcode/enum ranges

7 years agoAdd SPV_KHR_shader_ballot enumerants for 1.0.
John Kessenich [Fri, 16 Sep 2016 18:16:00 +0000 (12:16 -0600)]
Add SPV_KHR_shader_ballot enumerants for 1.0.

7 years agoAdd SPV_KHR_shader_ballot enumerants.
John Kessenich [Fri, 16 Sep 2016 18:09:29 +0000 (12:09 -0600)]
Add SPV_KHR_shader_ballot enumerants.

8 years agoUpdate headers to latest revision (no functional changes).
John Kessenich [Fri, 12 Aug 2016 05:07:49 +0000 (23:07 -0600)]
Update headers to latest revision (no functional changes).

8 years agoRev. 6 of 1.0 and Rev. 2 of 1.1 headers (changed headers).
John Kessenich [Sat, 16 Jul 2016 00:54:29 +0000 (18:54 -0600)]
Rev. 6 of 1.0 and Rev. 2 of 1.1 headers (changed headers).

The previous commit was just new headers, for simpler tracking.

8 years agoRev. 6 of 1.0 and Rev. 2 of 1.1 headers.
John Kessenich [Sat, 16 Jul 2016 00:49:51 +0000 (18:49 -0600)]
Rev. 6 of 1.0 and Rev. 2 of 1.1 headers.

8 years agoMerge pull request #8 from KhronosGroup/issue-7-README
Jon Leech [Thu, 19 May 2016 19:17:43 +0000 (12:17 -0700)]
Merge pull request #8 from KhronosGroup/issue-7-README

Fixes #7. Direct people to file header issues in github, not bugzilla.

8 years agoFixes #7.
Jon Leech [Thu, 19 May 2016 19:11:12 +0000 (12:11 -0700)]
Fixes #7.

Direct people to file header issues in github, not bugzilla.

8 years agoGLSL.std.h is now at 1.0 Rev 3
David Neto [Sat, 16 Apr 2016 20:55:01 +0000 (16:55 -0400)]
GLSL.std.h is now at 1.0 Rev 3

8 years agoAdd tool 11 from Intel
David Neto [Sat, 16 Apr 2016 02:55:11 +0000 (22:55 -0400)]
Add tool 11 from Intel

8 years agoThere's no JSON grammar for the OpenCL extended instruction set.
David Neto [Sat, 16 Apr 2016 01:22:40 +0000 (21:22 -0400)]
There's no JSON grammar for the OpenCL extended instruction set.

8 years agoFix arguments to OpConstantPipeStorage
David Neto [Sat, 16 Apr 2016 01:02:45 +0000 (21:02 -0400)]
Fix arguments to OpConstantPipeStorage

8 years agoFix result for OpTypeNamedBarrier, OpTypePipeStorage
David Neto [Fri, 15 Apr 2016 02:34:40 +0000 (22:34 -0400)]
Fix result for OpTypeNamedBarrier, OpTypePipeStorage

They don't have type for their result, since they are
type generating instructions.

8 years agoClarify text for GLSL and OpenCL header versions.
David Neto [Thu, 14 Apr 2016 22:50:41 +0000 (18:50 -0400)]
Clarify text for GLSL and OpenCL header versions.

8 years agoClarify placement of different versioned specs
David Neto [Thu, 14 Apr 2016 22:32:58 +0000 (18:32 -0400)]
Clarify placement of different versioned specs

8 years agoAdd JSON grammar for GLSL.std.450 extended instructions.
David Neto [Thu, 14 Apr 2016 22:12:02 +0000 (18:12 -0400)]
Add JSON grammar for GLSL.std.450 extended instructions.

8 years agoAdd JSON grammars for SPIR-V core instructions.
David Neto [Thu, 14 Apr 2016 21:02:09 +0000 (17:02 -0400)]
Add JSON grammars for SPIR-V core instructions.

8 years agoFix OpenCL.std.h warnings for g++ pedantic
David Neto [Thu, 14 Apr 2016 20:01:12 +0000 (16:01 -0400)]
Fix OpenCL.std.h warnings for g++ pedantic

Fixes https://www.khronos.org/bugzilla/show_bug.cgi?id=1476

8 years agoAdd an example using a SPIR-V 1.1 header.
David Neto [Thu, 14 Apr 2016 19:54:53 +0000 (15:54 -0400)]
Add an example using a SPIR-V 1.1 header.

Also update the README to show use of 1.1 SPIR-V headers
with 1.0 extended instruction sets.

8 years agoAdd SPIR-V 1.1 Rev 1 headers
David Neto [Thu, 14 Apr 2016 19:52:20 +0000 (15:52 -0400)]
Add SPIR-V 1.1 Rev 1 headers

8 years agoUpdate to SPIR-V 1.0 Rev 5 headers
David Neto [Thu, 14 Apr 2016 19:31:38 +0000 (15:31 -0400)]
Update to SPIR-V 1.0 Rev 5 headers

8 years agoPublish SPIR-V Registry files: SPIR-V 1.0 Revision 4
David Neto [Thu, 17 Mar 2016 20:23:57 +0000 (16:23 -0400)]
Publish SPIR-V Registry files: SPIR-V 1.0 Revision 4

Include all the headers.

Include the XML registry file, spir-v.xml, since it's also machine-readable
and potentially useful to programs.