Skip to content

Commit 66e6a49

Browse files
committed
Merge branch 'main' of github.com:KhronosGroup/SPIRV-Headers into header_4_hlsl
2 parents 6a74600 + de1807b commit 66e6a49

File tree

95 files changed

+6623
-4770
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+6623
-4770
lines changed

.github/workflows/presubmit.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,16 @@ jobs:
3838
./bin/makeHeaders
3939
- name: Check generated headers
4040
run: git diff --exit-code
41+
- name: Check for legacy asciidoc in JSON
42+
if: matrix.os == 'ubuntu-latest'
43+
run: |
44+
grep \"\'".*"\'\" include/spirv/unified1/*.json >build/bad-asciidoc.txt || true
45+
if [ 0 -lt $(cat build/bad-asciidoc.txt | wc -l) ]; then
46+
echo "Legacy asciidoc italics detected, like \"'foo'\". Text formating aren't used anymore. Please use \"foo\" instead."
47+
head -10 build/bad-asciidoc.txt
48+
exit 1
49+
fi
50+
4151
4252
test_cmake_min_required:
4353
runs-on: ubuntu-latest
@@ -121,3 +131,16 @@ jobs:
121131
run: |
122132
cmake -S tests/pkg_config -B tests/pkg_config/build/ -D CMAKE_PREFIX_PATH=${GITHUB_WORKSPACE}/build/install
123133
cmake --build tests/pkg_config/build/
134+
135+
license-check:
136+
name: Verify repository license compliance
137+
runs-on: ubuntu-latest
138+
# We now refer to the container by its SHA instead of the name, to prevent
139+
# caching problems when updating the image.
140+
# container: khronosgroup/docker-images:asciidoctor-spec.20240726
141+
container: khronosgroup/docker-images@sha256:724f67d8562445523644abf017d5d192b369fafc122de75e9d26792c649821a0
142+
143+
steps:
144+
- uses: actions/checkout@v4
145+
- name: REUSE license checker
146+
run: reuse lint

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
build
22
out
33
.DS_Store
4+
bazel-*
5+
MODULE.bazel.lock

BUILD.bazel

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
load("@rules_cc//cc:cc_library.bzl", "cc_library")
2+
13
package(
24
default_visibility = ["//visibility:public"],
35
)
@@ -121,6 +123,11 @@ filegroup(
121123
srcs = ["include/spirv/unified1/extinst.spv-amd-shader-trinary-minmax.grammar.json"],
122124
)
123125

126+
filegroup(
127+
name = "spirv_ext_inst_tosa_001000_1",
128+
srcs = ["include/spirv/unified1/extinst.tosa.001000.1.grammar.json"],
129+
)
130+
124131
cc_library(
125132
name = "spirv_common_headers",
126133
hdrs = [
@@ -136,6 +143,7 @@ cc_library(
136143
"include/spirv/unified1/NonSemanticShaderDebugInfo100.h",
137144
"include/spirv/unified1/NonSemanticVkspReflection.h",
138145
"include/spirv/unified1/OpenCL.std.h",
146+
"include/spirv/unified1/TOSA.001000.1.h",
139147
],
140148
includes = ["include"],
141149
)
@@ -175,4 +183,3 @@ cc_library(
175183
includes = ["include"],
176184
deps = [":spirv_common_headers"],
177185
)
178-

BUILD.gn

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,10 @@
1-
# Copyright (c) 2020-2024 Google LLC
1+
# SPDX-FileCopyrightText: 2020-2024 Google LLC
2+
# SPDX-License-Identifier: MIT
23
#
3-
# Permission is hereby granted, free of charge, to any person obtaining a copy
4-
# of this software and/or associated documentation files (the "Materials"),
5-
# to deal in the Materials without restriction, including without limitation
6-
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
7-
# and/or sell copies of the Materials, and to permit persons to whom the
8-
# Materials are furnished to do so, subject to the following conditions:
9-
#
10-
# The above copyright notice and this permission notice shall be included in
11-
# all copies or substantial portions of the Materials.
12-
#
13-
# MODIFICATIONS TO THIS FILE MAY MEAN IT NO LONGER ACCURATELY REFLECTS KHRONOS
14-
# STANDARDS. THE UNMODIFIED, NORMATIVE VERSIONS OF KHRONOS SPECIFICATIONS AND
15-
# HEADER INFORMATION ARE LOCATED AT https://www.khronos.org/registry/
16-
#
17-
# THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
18-
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20-
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22-
# FROM,OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS
23-
# IN THE MATERIALS.
4+
# MODIFICATIONS TO THIS FILE MAY MEAN IT NO LONGER ACCURATELY REFLECTS
5+
# KHRONOS STANDARDS. THE UNMODIFIED, NORMATIVE VERSIONS OF KHRONOS
6+
# SPECIFICATIONS AND HEADER INFORMATION ARE LOCATED AT
7+
# https://www.khronos.org/registry/
248

259
config("spv_headers_public_config") {
2610
include_dirs = [ "include" ]

CMakeLists.txt

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,11 @@
1-
# Copyright (c) 2015-2024 The Khronos Group Inc.
2-
#
3-
# Permission is hereby granted, free of charge, to any person obtaining a
4-
# copy of this software and/or associated documentation files (the
5-
# "Materials"), to deal in the Materials without restriction, including
6-
# without limitation the rights to use, copy, modify, merge, publish,
7-
# distribute, sublicense, and/or sell copies of the Materials, and to
8-
# permit persons to whom the Materials are furnished to do so, subject to
9-
# the following conditions:
10-
#
11-
# The above copyright notice and this permission notice shall be included
12-
# in all copies or substantial portions of the Materials.
13-
#
1+
# SPDX-FileCopyrightText: 2015-2024 The Khronos Group Inc.
2+
# SPDX-License-Identifier: MIT
3+
#
144
# MODIFICATIONS TO THIS FILE MAY MEAN IT NO LONGER ACCURATELY REFLECTS
155
# KHRONOS STANDARDS. THE UNMODIFIED, NORMATIVE VERSIONS OF KHRONOS
166
# SPECIFICATIONS AND HEADER INFORMATION ARE LOCATED AT
177
# https://www.khronos.org/registry/
18-
#
19-
# THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
20-
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21-
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
22-
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
23-
# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
24-
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
25-
# MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
8+
269
cmake_minimum_required(VERSION 3.14)
2710
project(SPIRV-Headers LANGUAGES C CXX VERSION 1.5.5)
2811

0 commit comments

Comments
 (0)