-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes issue #860. Updates the switches used by the the GL loader to those generated by `generate_format_switches.rb` in the KTX-Specification repo as a way to get them updated for these and some other recently added Vulkan formats. The glloader now loads the newly allowed formats. VkFormat declarations for Java and Python are now generated by `mkvkformatfiles` which has been moved to ci_scripts since it now generates files outside the `lib` directory. The unattractive alternative was to hand edit these files to add the newly allowed formats. CI testing of vkformat-related file generation (`mkvk`) has been moved to a dedicated GitHub workflow and removed from the main CI builds. This is because testing now requires a clone of the KTX-Specification repo due to the use of `generate_format_switches.rb`. The change to `createdfd.c` is to remove a duplicated line of code and is unrelated to the purpose of this PR. KhronosGroup/KTX-Software-CTS#19 removes the tests for these as prohibited and adds new tests for the formats.
- Loading branch information
1 parent
83b6386
commit 5ac5cf1
Showing
26 changed files
with
1,178 additions
and
497 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Copyright 2015-2020 The Khronos Group Inc. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
name: KTX-Software Check mkvk CI | ||
|
||
# Seems no way to avoid duplicating this on logic in each .yml file. | ||
# See https://github.com/actions/starter-workflows/issues/245. | ||
on: | ||
# Trigger the workflow on a pull request, | ||
pull_request: | ||
|
||
push: | ||
# And on pushes to main, which will occur when a PR is merged. | ||
branches: | ||
- main | ||
# Also trigger on push of release tags to any branch. Useful | ||
# for testing release builds before merging to main. | ||
tags: | ||
- 'v[0-9]+.[0-9]+.[0-9]+' | ||
- 'v[0-9]+.[0-9]+.[0-9]+-*' | ||
paths-ignore: | ||
- .appveyor.yml | ||
- .travis.yml | ||
|
||
# Allow manual trigger | ||
workflow_dispatch: | ||
|
||
jobs: | ||
check-mkvk: | ||
strategy: | ||
matrix: | ||
os: [ macos-latest, ubuntu-latest, windows-latest ] | ||
|
||
runs-on: ${{ matrix.os }} | ||
env: | ||
BUILD_DIR: "build" | ||
WERROR: ON | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Clone KTX-Specification repo | ||
run: | | ||
pushd ..; git clone https://github.com/KhronosGroup/KTX-Specification.git; popd | ||
- name: Configure CMake build | ||
run: cmake -B ${{ env.BUILD_DIR }} -DKTX_GENERATE_VK_FILES=ON -DKTX_FEATURE_TESTS=OFF -DKTX_FEATURE_TOOLS=OFF -DKTX_WERROR=${{ env.WERROR }} | ||
- name: Test file generation | ||
run: | | ||
cmake --build ${{ env.BUILD_DIR }} --target mkvk --clean-first | ||
git diff --quiet HEAD | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.