Skip to content

Commit

Permalink
Update spirv-cross to fix build failures with recent versions of clang (
Browse files Browse the repository at this point in the history
  • Loading branch information
romainguy committed Apr 4, 2023
1 parent a484fe1 commit 5fe0a50
Show file tree
Hide file tree
Showing 3,614 changed files with 11,790 additions and 190,246 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
3 changes: 3 additions & 0 deletions third_party/spirv-cross/.clang-format
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright 2016-2021 The Khronos Group Inc.
# SPDX-License-Identifier: Apache-2.0

# The style used for all options not specifically set in the configuration.
BasedOnStyle: LLVM

Expand Down
20 changes: 18 additions & 2 deletions third_party/spirv-cross/.github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
# Copyright 2020-2021 The Khronos Group, Inc.
# SPDX-License-Identifier: Apache-2.0

name: CI

on:
push:
branches: [ master ]
branches: [ main ]
pull_request:
types: [ opened, synchronize, reopened ]

Expand All @@ -11,7 +14,7 @@ jobs:
name: "Build ${{ matrix.platform }}"
strategy:
matrix:
platform: [windows-latest, ubuntu-16.04, ubuntu-18.04, ubuntu-20.04, macos-latest]
platform: [windows-latest, ubuntu-18.04, ubuntu-20.04, macos-latest]
env:
PARALLEL: -j 2

Expand Down Expand Up @@ -51,4 +54,17 @@ jobs:
shell: bash
working-directory: ${{github.workspace}}/build
run: ctest --verbose -C Release
reuse:
name: "REUSE license check"
runs-on: ubuntu-latest
container: khronosgroup/docker-images:asciidoctor-spec

steps:
- uses: actions/checkout@v2

# REUSE license checker
- name: license-check
run: |
reuse lint
4 changes: 4 additions & 0 deletions third_party/spirv-cross/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright 2016-2021 The Khronos Group Inc.
# SPDX-License-Identifier: Apache-2.0

*.o
*.d
*.txt
Expand All @@ -18,3 +21,4 @@
*.vcxproj.user

!CMakeLists.txt
!LICENSES/*.txt
11 changes: 11 additions & 0 deletions third_party/spirv-cross/.reuse/dep5
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: SPIRV-Cross
Source: https://github.com/KhronosGroup/SPIRV-Cross

Files: shaders*/* reference/* tests-other/*
Copyright: 2016-2021 The Khronos Group, Inc.
License: Apache-2.0

Files: spirv.h spirv.hpp GLSL.std.450.h
Copyright: 2016-2021 The Khronos Group, Inc.
License: LicenseRef-KhronosFreeUse
72 changes: 0 additions & 72 deletions third_party/spirv-cross/.travis.yml

This file was deleted.

6 changes: 3 additions & 3 deletions third_party/spirv-cross/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Copyright 2016-2021 Google Inc.
# SPDX-License-Identifier: Apache-2.0 OR MIT
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -16,7 +17,6 @@
# At your option, you may choose to accept this material under either:
# 1. The Apache License, Version 2.0, found at <http://www.apache.org/licenses/LICENSE-2.0>, or
# 2. The MIT License, found at <http://opensource.org/licenses/MIT>.
# SPDX-License-Identifier: Apache-2.0 OR MIT.
#

cmake_minimum_required(VERSION 3.0)
Expand Down Expand Up @@ -332,7 +332,7 @@ if (SPIRV_CROSS_STATIC)
endif()

set(spirv-cross-abi-major 0)
set(spirv-cross-abi-minor 47)
set(spirv-cross-abi-minor 56)
set(spirv-cross-abi-patch 0)

if (SPIRV_CROSS_SHARED)
Expand Down Expand Up @@ -442,7 +442,7 @@ if (SPIRV_CROSS_CLI)
target_compile_definitions(spirv-cross PRIVATE ${spirv-compiler-defines} HAVE_SPIRV_CROSS_GIT_VERSION)
set_target_properties(spirv-cross PROPERTIES LINK_FLAGS "${spirv-cross-link-flags}")
if (NOT SPIRV_CROSS_SKIP_INSTALL)
install(TARGETS spirv-cross RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
install(TARGETS spirv-cross DESTINATION ${CMAKE_INSTALL_BINDIR})
endif()
target_link_libraries(spirv-cross PRIVATE
spirv-cross-glsl
Expand Down
11 changes: 11 additions & 0 deletions third_party/spirv-cross/CODE_OF_CONDUCT.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Copyright (c) 2016-2020 The Khronos Group Inc.
//
// SPDX-License-Identifier: CC-BY-4.0

= Code of Conduct

A reminder that this issue tracker is managed by the Khronos Group.
Interactions here should follow the
https://www.khronos.org/developers/code-of-conduct[Khronos Code of Conduct],
which prohibits aggressive or derogatory language. Please keep the
discussion friendly and civil.
1 change: 0 additions & 1 deletion third_party/spirv-cross/CODE_OF_CONDUCT.md

This file was deleted.

29 changes: 6 additions & 23 deletions third_party/spirv-cross/GLSL.std.450.h
Original file line number Diff line number Diff line change
@@ -1,27 +1,10 @@
/*
** Copyright (c) 2014-2016 The Khronos Group Inc.
**
** Permission is hereby granted, free of charge, to any person obtaining a copy
** of this software and/or associated documentation files (the "Materials"),
** to deal in the Materials without restriction, including without limitation
** the rights to use, copy, modify, merge, publish, distribute, sublicense,
** and/or sell copies of the Materials, and to permit persons to whom the
** Materials are furnished to do so, subject to the following conditions:
**
** The above copyright notice and this permission notice shall be included in
** all copies or substantial portions of the Materials.
**
** MODIFICATIONS TO THIS FILE MAY MEAN IT NO LONGER ACCURATELY REFLECTS KHRONOS
** STANDARDS. THE UNMODIFIED, NORMATIVE VERSIONS OF KHRONOS SPECIFICATIONS AND
** HEADER INFORMATION ARE LOCATED AT https://www.khronos.org/registry/
**
** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
** OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
** FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
** THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
** LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
** FROM,OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS
** IN THE MATERIALS.
* Copyright 2014-2016,2021 The Khronos Group, Inc.
* SPDX-License-Identifier: MIT
*
* MODIFICATIONS TO THIS FILE MAY MEAN IT NO LONGER ACCURATELY REFLECTS KHRONOS
* STANDARDS. THE UNMODIFIED, NORMATIVE VERSIONS OF KHRONOS SPECIFICATIONS AND
* HEADER INFORMATION ARE LOCATED AT https://www.khronos.org/registry/
*/

#ifndef GLSLstd450_H
Expand Down
Loading

0 comments on commit 5fe0a50

Please sign in to comment.