bin/khronos-update: add support for the SPIRV files
authorEric Engestrom <eric@engestrom.ch>
Tue, 21 Jul 2020 00:27:33 +0000 (02:27 +0200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 24 Jul 2020 11:10:13 +0000 (11:10 +0000)
Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6004>

bin/khronos-update.py

index 68801d507e065ee486cd2a317e1fb36e9a81fb70..6f93c71f8318e5d6541f695227949bd49cbcca6c 100755 (executable)
@@ -140,6 +140,17 @@ SOURCES = [
         ],
     },
 
+    {
+        'api': 'spirv',
+        'sources': [
+            Source('src/compiler/spirv/spirv.h',                    'https://github.com/KhronosGroup/SPIRV-Headers/raw/master/include/spirv/unified1/spirv.h'),
+            Source('src/compiler/spirv/spirv.core.grammar.json',    'https://github.com/KhronosGroup/SPIRV-Headers/raw/master/include/spirv/unified1/spirv.core.grammar.json'),
+            Source('src/compiler/spirv/OpenCL.std.h',               'https://github.com/KhronosGroup/SPIRV-Headers/raw/master/include/spirv/unified1/OpenCL.std.h'),
+            Source('src/compiler/spirv/GLSL.std.450.h',             'https://github.com/KhronosGroup/SPIRV-Headers/raw/master/include/spirv/unified1/GLSL.std.450.h'),
+            Source('src/compiler/spirv/GLSL.ext.AMD.h',             'https://github.com/KhronosGroup/glslang/raw/master/SPIRV/GLSL.ext.AMD.h'),  # FIXME: is this the canonical source?
+        ],
+    },
+
     {
         'api': 'vulkan',
         'inc_folder': 'vulkan',