1
0
forked from pool/spirv-headers

Accepting request 1206373 from X11:Wayland

- Update to release 1.6.4+sdk296

OBS-URL: https://build.opensuse.org/request/show/1206373
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/spirv-headers?expand=0&rev=44
This commit is contained in:
Ana Guerrero 2024-10-09 20:03:10 +00:00 committed by Git OBS Bridge
commit 1eaab6c598
8 changed files with 408 additions and 10 deletions

View File

@ -0,0 +1,333 @@
From 0413bc33faa7d85d8619c119661c09774bb47654 Mon Sep 17 00:00:00 2001
From: Dmitry Sidorov <dmitry.sidorov@intel.com>
Date: Wed, 25 Sep 2024 18:01:03 +0200
Subject: [PATCH 1/2] Add SPV_EXT_optnone (#449)
* Rename SPV_INTEL_optnone to SPV_EXT_optnone
Signed-off-by: Sidorov, Dmitry <dmitry.sidorov@intel.com>
* keep intel names as well
Signed-off-by: Sidorov, Dmitry <dmitry.sidorov@intel.com>
---------
Signed-off-by: Sidorov, Dmitry <dmitry.sidorov@intel.com>
---
include/spirv/unified1/spirv.bf | 3 +++
include/spirv/unified1/spirv.core.grammar.json | 12 ++++++++++++
include/spirv/unified1/spirv.cs | 3 +++
include/spirv/unified1/spirv.h | 5 ++++-
include/spirv/unified1/spirv.hpp | 5 ++++-
include/spirv/unified1/spirv.hpp11 | 5 ++++-
include/spirv/unified1/spirv.json | 2 ++
include/spirv/unified1/spirv.lua | 3 +++
include/spirv/unified1/spirv.py | 3 +++
include/spirv/unified1/spv.d | 3 +++
10 files changed, 41 insertions(+), 3 deletions(-)
diff --git a/include/spirv/unified1/spirv.bf b/include/spirv/unified1/spirv.bf
index 453a3a2..fc66285 100644
--- a/include/spirv/unified1/spirv.bf
+++ b/include/spirv/unified1/spirv.bf
@@ -871,6 +871,7 @@ namespace Spv
DontInline = 1,
Pure = 2,
Const = 3,
+ OptNoneEXT = 16,
OptNoneINTEL = 16,
Max = 0x7fffffff,
}
@@ -882,6 +883,7 @@ namespace Spv
DontInline = 0x00000002,
Pure = 0x00000004,
Const = 0x00000008,
+ OptNoneEXT = 0x00010000,
OptNoneINTEL = 0x00010000,
}
@@ -1256,6 +1258,7 @@ namespace Spv
AtomicFloat32AddEXT = 6033,
AtomicFloat64AddEXT = 6034,
LongCompositesINTEL = 6089,
+ OptNoneEXT = 6094,
OptNoneINTEL = 6094,
AtomicFloat16AddEXT = 6095,
DebugInfoModuleINTEL = 6114,
diff --git a/include/spirv/unified1/spirv.core.grammar.json b/include/spirv/unified1/spirv.core.grammar.json
index d562964..25bb306 100644
--- a/include/spirv/unified1/spirv.core.grammar.json
+++ b/include/spirv/unified1/spirv.core.grammar.json
@@ -10517,6 +10517,12 @@
"value" : "0x0008",
"version" : "1.0"
},
+ {
+ "enumerant" : "OptNoneEXT",
+ "value" : "0x10000",
+ "capabilities" : [ "OptNoneEXT" ],
+ "version" : "None"
+ },
{
"enumerant" : "OptNoneINTEL",
"value" : "0x10000",
@@ -16711,6 +16717,12 @@
"extensions" : [ "SPV_INTEL_long_composites" ],
"version" : "None"
},
+ {
+ "enumerant" : "OptNoneEXT",
+ "value" : 6094,
+ "extensions" : [ "SPV_EXT_optnone" ],
+ "version" : "None"
+ },
{
"enumerant" : "OptNoneINTEL",
"value" : 6094,
diff --git a/include/spirv/unified1/spirv.cs b/include/spirv/unified1/spirv.cs
index dfdbac6..b06bab7 100644
--- a/include/spirv/unified1/spirv.cs
+++ b/include/spirv/unified1/spirv.cs
@@ -870,6 +870,7 @@ namespace Spv
DontInline = 1,
Pure = 2,
Const = 3,
+ OptNoneEXT = 16,
OptNoneINTEL = 16,
Max = 0x7fffffff,
}
@@ -881,6 +882,7 @@ namespace Spv
DontInline = 0x00000002,
Pure = 0x00000004,
Const = 0x00000008,
+ OptNoneEXT = 0x00010000,
OptNoneINTEL = 0x00010000,
}
@@ -1255,6 +1257,7 @@ namespace Spv
AtomicFloat32AddEXT = 6033,
AtomicFloat64AddEXT = 6034,
LongCompositesINTEL = 6089,
+ OptNoneEXT = 6094,
OptNoneINTEL = 6094,
AtomicFloat16AddEXT = 6095,
DebugInfoModuleINTEL = 6114,
diff --git a/include/spirv/unified1/spirv.h b/include/spirv/unified1/spirv.h
index 92096ec..00f5ab3 100644
--- a/include/spirv/unified1/spirv.h
+++ b/include/spirv/unified1/spirv.h
@@ -852,6 +852,7 @@ typedef enum SpvFunctionControlShift_ {
SpvFunctionControlDontInlineShift = 1,
SpvFunctionControlPureShift = 2,
SpvFunctionControlConstShift = 3,
+ SpvFunctionControlOptNoneEXTShift = 16,
SpvFunctionControlOptNoneINTELShift = 16,
SpvFunctionControlMax = 0x7fffffff,
} SpvFunctionControlShift;
@@ -862,6 +863,7 @@ typedef enum SpvFunctionControlMask_ {
SpvFunctionControlDontInlineMask = 0x00000002,
SpvFunctionControlPureMask = 0x00000004,
SpvFunctionControlConstMask = 0x00000008,
+ SpvFunctionControlOptNoneEXTMask = 0x00010000,
SpvFunctionControlOptNoneINTELMask = 0x00010000,
} SpvFunctionControlMask;
@@ -1226,6 +1228,7 @@ typedef enum SpvCapability_ {
SpvCapabilityAtomicFloat32AddEXT = 6033,
SpvCapabilityAtomicFloat64AddEXT = 6034,
SpvCapabilityLongCompositesINTEL = 6089,
+ SpvCapabilityOptNoneEXT = 6094,
SpvCapabilityOptNoneINTEL = 6094,
SpvCapabilityAtomicFloat16AddEXT = 6095,
SpvCapabilityDebugInfoModuleINTEL = 6114,
@@ -3823,7 +3826,7 @@ inline const char* SpvCapabilityToString(SpvCapability value) {
case SpvCapabilityAtomicFloat32AddEXT: return "AtomicFloat32AddEXT";
case SpvCapabilityAtomicFloat64AddEXT: return "AtomicFloat64AddEXT";
case SpvCapabilityLongCompositesINTEL: return "LongCompositesINTEL";
- case SpvCapabilityOptNoneINTEL: return "OptNoneINTEL";
+ case SpvCapabilityOptNoneEXT: return "OptNoneEXT";
case SpvCapabilityAtomicFloat16AddEXT: return "AtomicFloat16AddEXT";
case SpvCapabilityDebugInfoModuleINTEL: return "DebugInfoModuleINTEL";
case SpvCapabilityBFloat16ConversionINTEL: return "BFloat16ConversionINTEL";
diff --git a/include/spirv/unified1/spirv.hpp b/include/spirv/unified1/spirv.hpp
index 1065013..4a8b09a 100644
--- a/include/spirv/unified1/spirv.hpp
+++ b/include/spirv/unified1/spirv.hpp
@@ -848,6 +848,7 @@ enum FunctionControlShift {
FunctionControlDontInlineShift = 1,
FunctionControlPureShift = 2,
FunctionControlConstShift = 3,
+ FunctionControlOptNoneEXTShift = 16,
FunctionControlOptNoneINTELShift = 16,
FunctionControlMax = 0x7fffffff,
};
@@ -858,6 +859,7 @@ enum FunctionControlMask {
FunctionControlDontInlineMask = 0x00000002,
FunctionControlPureMask = 0x00000004,
FunctionControlConstMask = 0x00000008,
+ FunctionControlOptNoneEXTMask = 0x00010000,
FunctionControlOptNoneINTELMask = 0x00010000,
};
@@ -1222,6 +1224,7 @@ enum Capability {
CapabilityAtomicFloat32AddEXT = 6033,
CapabilityAtomicFloat64AddEXT = 6034,
CapabilityLongCompositesINTEL = 6089,
+ CapabilityOptNoneEXT = 6094,
CapabilityOptNoneINTEL = 6094,
CapabilityAtomicFloat16AddEXT = 6095,
CapabilityDebugInfoModuleINTEL = 6114,
@@ -3819,7 +3822,7 @@ inline const char* CapabilityToString(Capability value) {
case CapabilityAtomicFloat32AddEXT: return "AtomicFloat32AddEXT";
case CapabilityAtomicFloat64AddEXT: return "AtomicFloat64AddEXT";
case CapabilityLongCompositesINTEL: return "LongCompositesINTEL";
- case CapabilityOptNoneINTEL: return "OptNoneINTEL";
+ case CapabilityOptNoneEXT: return "OptNoneEXT";
case CapabilityAtomicFloat16AddEXT: return "AtomicFloat16AddEXT";
case CapabilityDebugInfoModuleINTEL: return "DebugInfoModuleINTEL";
case CapabilityBFloat16ConversionINTEL: return "BFloat16ConversionINTEL";
diff --git a/include/spirv/unified1/spirv.hpp11 b/include/spirv/unified1/spirv.hpp11
index 22e45f5..c0b82e9 100644
--- a/include/spirv/unified1/spirv.hpp11
+++ b/include/spirv/unified1/spirv.hpp11
@@ -848,6 +848,7 @@ enum class FunctionControlShift : unsigned {
DontInline = 1,
Pure = 2,
Const = 3,
+ OptNoneEXT = 16,
OptNoneINTEL = 16,
Max = 0x7fffffff,
};
@@ -858,6 +859,7 @@ enum class FunctionControlMask : unsigned {
DontInline = 0x00000002,
Pure = 0x00000004,
Const = 0x00000008,
+ OptNoneEXT = 0x00010000,
OptNoneINTEL = 0x00010000,
};
@@ -1222,6 +1224,7 @@ enum class Capability : unsigned {
AtomicFloat32AddEXT = 6033,
AtomicFloat64AddEXT = 6034,
LongCompositesINTEL = 6089,
+ OptNoneEXT = 6094,
OptNoneINTEL = 6094,
AtomicFloat16AddEXT = 6095,
DebugInfoModuleINTEL = 6114,
@@ -3819,7 +3822,7 @@ inline const char* CapabilityToString(Capability value) {
case CapabilityAtomicFloat32AddEXT: return "AtomicFloat32AddEXT";
case CapabilityAtomicFloat64AddEXT: return "AtomicFloat64AddEXT";
case CapabilityLongCompositesINTEL: return "LongCompositesINTEL";
- case CapabilityOptNoneINTEL: return "OptNoneINTEL";
+ case CapabilityOptNoneEXT: return "OptNoneEXT";
case CapabilityAtomicFloat16AddEXT: return "AtomicFloat16AddEXT";
case CapabilityDebugInfoModuleINTEL: return "DebugInfoModuleINTEL";
case CapabilityBFloat16ConversionINTEL: return "BFloat16ConversionINTEL";
diff --git a/include/spirv/unified1/spirv.json b/include/spirv/unified1/spirv.json
index 161deff..50b7a92 100644
--- a/include/spirv/unified1/spirv.json
+++ b/include/spirv/unified1/spirv.json
@@ -854,6 +854,7 @@
"DontInline": 1,
"Pure": 2,
"Const": 3,
+ "OptNoneEXT": 16,
"OptNoneINTEL": 16
}
},
@@ -1199,6 +1200,7 @@
"AtomicFloat32AddEXT": 6033,
"AtomicFloat64AddEXT": 6034,
"LongCompositesINTEL": 6089,
+ "OptNoneEXT": 6094,
"OptNoneINTEL": 6094,
"AtomicFloat16AddEXT": 6095,
"DebugInfoModuleINTEL": 6114,
diff --git a/include/spirv/unified1/spirv.lua b/include/spirv/unified1/spirv.lua
index 28c5e40..745ce60 100644
--- a/include/spirv/unified1/spirv.lua
+++ b/include/spirv/unified1/spirv.lua
@@ -839,6 +839,7 @@ spv = {
DontInline = 1,
Pure = 2,
Const = 3,
+ OptNoneEXT = 16,
OptNoneINTEL = 16,
Max = 0x7fffffff,
},
@@ -849,6 +850,7 @@ spv = {
DontInline = 0x00000002,
Pure = 0x00000004,
Const = 0x00000008,
+ OptNoneEXT = 0x00010000,
OptNoneINTEL = 0x00010000,
},
@@ -1213,6 +1215,7 @@ spv = {
AtomicFloat32AddEXT = 6033,
AtomicFloat64AddEXT = 6034,
LongCompositesINTEL = 6089,
+ OptNoneEXT = 6094,
OptNoneINTEL = 6094,
AtomicFloat16AddEXT = 6095,
DebugInfoModuleINTEL = 6114,
diff --git a/include/spirv/unified1/spirv.py b/include/spirv/unified1/spirv.py
index bb78fe3..c2c690a 100644
--- a/include/spirv/unified1/spirv.py
+++ b/include/spirv/unified1/spirv.py
@@ -817,6 +817,7 @@ spv = {
'DontInline' : 1,
'Pure' : 2,
'Const' : 3,
+ 'OptNoneEXT' : 16,
'OptNoneINTEL' : 16,
},
@@ -826,6 +827,7 @@ spv = {
'DontInline' : 0x00000002,
'Pure' : 0x00000004,
'Const' : 0x00000008,
+ 'OptNoneEXT' : 0x00010000,
'OptNoneINTEL' : 0x00010000,
},
@@ -1184,6 +1186,7 @@ spv = {
'AtomicFloat32AddEXT' : 6033,
'AtomicFloat64AddEXT' : 6034,
'LongCompositesINTEL' : 6089,
+ 'OptNoneEXT' : 6094,
'OptNoneINTEL' : 6094,
'AtomicFloat16AddEXT' : 6095,
'DebugInfoModuleINTEL' : 6114,
diff --git a/include/spirv/unified1/spv.d b/include/spirv/unified1/spv.d
index daf2523..ea9216c 100644
--- a/include/spirv/unified1/spv.d
+++ b/include/spirv/unified1/spv.d
@@ -873,6 +873,7 @@ enum FunctionControlShift : uint
DontInline = 1,
Pure = 2,
Const = 3,
+ OptNoneEXT = 16,
OptNoneINTEL = 16,
Max = 0x7fffffff,
}
@@ -884,6 +885,7 @@ enum FunctionControlMask : uint
DontInline = 0x00000002,
Pure = 0x00000004,
Const = 0x00000008,
+ OptNoneEXT = 0x00010000,
OptNoneINTEL = 0x00010000,
}
@@ -1258,6 +1260,7 @@ enum Capability : uint
AtomicFloat32AddEXT = 6033,
AtomicFloat64AddEXT = 6034,
LongCompositesINTEL = 6089,
+ OptNoneEXT = 6094,
OptNoneINTEL = 6094,
AtomicFloat16AddEXT = 6095,
DebugInfoModuleINTEL = 6114,
--
2.46.1

View File

@ -0,0 +1,48 @@
From ec59c77a3bb5c747a369931ef101ac7c14823f2f Mon Sep 17 00:00:00 2001
From: "Samuel (Sheng-Wen) Huang" <38491862+samuelhsw@users.noreply.github.com>
Date: Wed, 25 Sep 2024 09:03:12 -0700
Subject: [PATCH 2/2] Reserve SPIR-V enums for MediaTek (#451)
---
include/spirv/spir-v.xml | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/include/spirv/spir-v.xml b/include/spirv/spir-v.xml
index 43dba9e..ad437d1 100644
--- a/include/spirv/spir-v.xml
+++ b/include/spirv/spir-v.xml
@@ -152,13 +152,14 @@
<ids type="opcode" start="6528" end="6591" vendor="Codeplay" comment="Contact duncan.brawley@codeplay.com"/>
<ids type="opcode" start="6592" end="6655" vendor="Saarland University" comment="Contact devillers@cg.uni-saarland.de"/>
<ids type="opcode" start="6656" end="6719" vendor="Meta" comment="Contact dunfanlu@meta.com"/>
+ <ids type="opcode" start="6720" end="6783" vendor="MediaTek" comment="Contact samuel.huang@mediatek.com"/>
<!-- Opcode enumerants to reserve for future use. To get a block, allocate
multiples of 64 starting at the lowest available point in this
block and add a corresponding <ids> tag immediately above. Make
sure to fill in the vendor attribute, and preferably add a contact
person/address in a comment attribute. -->
<!-- Example new block: <ids type="opcode" start="XXXX" end="XXXX+64n-1" vendor="Add vendor" comment="Contact TBD"/> -->
- <ids type="opcode" start="6720" end="65535" comment="Opcode range reservable for future use by vendors"/>
+ <ids type="opcode" start="6784" end="65535" comment="Opcode range reservable for future use by vendors"/>
<!-- End reservations of opcodes -->
@@ -185,13 +186,14 @@
<ids type="enumerant" start="6528" end="6591" vendor="Codeplay" comment="Contact duncan.brawley@codeplay.com"/>
<ids type="enumerant" start="6592" end="6655" vendor="Saarland University" comment="Contact devillers@cg.uni-saarland.de"/>
<ids type="enumerant" start="6656" end="6719" vendor="Meta" comment="Contact dunfanlu@meta.com"/>
+ <ids type="enumerant" start="6720" end="6783" vendor="MediaTek" comment="Contact samuel.huang@mediatek.com"/>
<!-- Enumerants to reserve for future use. To get a block, allocate
multiples of 64 starting at the lowest available point in this
block and add a corresponding <ids> tag immediately above. Make
sure to fill in the vendor attribute, and preferably add a contact
person/address in a comment attribute. -->
<!-- Example new block: <ids type="enumerant" start="XXXX" end="XXXX+64n-1" vendor="Add vendor" comment="Contact TBD"/> -->
- <ids type="enumerant" start="6720" end="4294967295" comment="Enumerant range reservable for future use by vendors"/>
+ <ids type="enumerant" start="6784" end="4294967295" comment="Enumerant range reservable for future use by vendors"/>
<!-- End reservations of enumerants -->
--
2.46.1

View File

@ -1,4 +1,4 @@
mtime: 1721710366
commit: 131519444b9804409644a169ee851b9b06ffd5f7a4c89044b692335cb50dd874
mtime: 1728403956
commit: edf237a7fca487d1ee6effb1fd4f23d68bbdb989a94270a1875f6d2acd3fcd1d
url: https://src.opensuse.org/jengelh/spirv-headers
revision: master

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8ced412eb3ae28541d439f1ae83adb6623590728df4f99dd07b00352adca35e4
oid sha256:0b5b7bc56fd4d86793b2b61cee5031edd5feee8a5a80a746ee27ff1b53be6b1e
size 256

View File

@ -1,3 +1,18 @@
-------------------------------------------------------------------
Tue Oct 8 16:04:45 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
- Update to release 1.6.4+sdk296 based on Git tag/release
"SDK-1.3.296.0"
* Update headers with SPIR-V version 1.6, revision 4
* Reserve 4 memory operands bits for Arm
* Add support for SPV_KHR_untyped_pointers and
SPV_INTEL_subgroup_buffer_prefetch
* Add Capability and Execution mode
SPV_KHR_compute_shader_derivatives
- Add 0001-Add-SPV_EXT_optnone-449.patch,
0002-Reserve-SPIR-V-enums-for-MediaTek-451.patch
for spirv-tools
-------------------------------------------------------------------
Tue Jul 23 04:50:50 UTC 2024 - Jan Engelhardt <jengelh@inai.de>

View File

@ -19,19 +19,21 @@
# The git repo is a hodgepodge.
# Most recent tag is 1.5.4, but that is outdated.
# CMakeLists.txt's project() line contains 1.5.5, but this is outdated too.
# The SPIR-V version is 1.6.1 (include/spirv/unified1/spirv.core.grammar.json)
# The SPIR-V version is 1.6.4 (include/spirv/unified1/spirv.core.grammar.json)
# They add "SDK" tags that reflect the Vulkan version (1.3),
# and the independently increasing toolchain release number (283).
# and the independently increasing toolchain release number (296).
Name: spirv-headers
Version: 1.6.1+sdk290
%define innerver 1.3.290
Version: 1.6.4+sdk296
%define innerver 1.3.296
Release: 0
Summary: Machine-readable files from the SPIR-V registry
License: MIT
Group: Development/Libraries/C and C++
URL: https://github.com/KhronosGroup/SPIRV-Headers
Source: https://github.com/KhronosGroup/SPIRV-Headers/archive/vulkan-sdk-%innerver.tar.gz
Patch1: 0001-Add-SPV_EXT_optnone-449.patch
Patch2: 0002-Reserve-SPIR-V-enums-for-MediaTek-451.patch
BuildArch: noarch
BuildRequires: cmake >= 2.8
BuildRequires: fdupes

BIN
vulkan-sdk-1.3.290.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
vulkan-sdk-1.3.296.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.