Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add missing sources/headers #1

Merged
merged 36 commits into from
Nov 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
fbf047c
Roll external/re2/ 24d460a9d..974f44c8d (4 commits) (#5470)
github-actions[bot] Nov 9, 2023
6b1e609
Support missing git in update_build_version.py (#5473)
sudonatalie Nov 10, 2023
d88742f
fix(build): git describe all tagged versions (#5447)
sethp Nov 13, 2023
c91e9d0
opt: add StorageImageReadWithoutFormat to cap trim (#5475)
Keenuts Nov 14, 2023
f43c464
opt: add PhysicalStorageBufferAddresses to trim (#5476)
Keenuts Nov 14, 2023
8ee3ae5
Add comment to --inst-debug-printf option (#5466)
spencer-lunarg Nov 14, 2023
c8510a5
Fix python warning seen on Fedora 39 (#5474)
ncesario-lunarg Nov 15, 2023
560eea6
build(deps): bump the github-actions group with 1 update (#5478)
dependabot[bot] Nov 15, 2023
fb91e6f
Flush stdout before changing mode back to text (#5477)
jenatali Nov 15, 2023
0df791f
Fix nullptr argument in MarkInsertChain (#5465)
ChristianReinbold Nov 16, 2023
246e6d4
spirv-val: Loosen restriction on base type of DebugTypePointer and De…
sajjadmirzanv Nov 17, 2023
2a238ed
Roll external/spirv-headers/ 38f39dae5..cca08c63c (2 commits) (#5480)
github-actions[bot] Nov 18, 2023
7d2a618
build(deps): bump the github-actions group with 1 update (#5484)
dependabot[bot] Nov 27, 2023
3f9a1d4
Roll external/re2/ 24d460a9d..974f44c8d (4 commits) (#5470)
github-actions[bot] Nov 9, 2023
1956a38
Support missing git in update_build_version.py (#5473)
sudonatalie Nov 10, 2023
b65fd62
fix(build): git describe all tagged versions (#5447)
sethp Nov 13, 2023
1af0554
opt: add StorageImageReadWithoutFormat to cap trim (#5475)
Keenuts Nov 14, 2023
7ce5006
opt: add PhysicalStorageBufferAddresses to trim (#5476)
Keenuts Nov 14, 2023
6417f26
Add comment to --inst-debug-printf option (#5466)
spencer-lunarg Nov 14, 2023
2b99ace
Fix python warning seen on Fedora 39 (#5474)
ncesario-lunarg Nov 15, 2023
bbfbf0f
build(deps): bump the github-actions group with 1 update (#5478)
dependabot[bot] Nov 15, 2023
4f8f264
Flush stdout before changing mode back to text (#5477)
jenatali Nov 15, 2023
f6d8c83
Fix nullptr argument in MarkInsertChain (#5465)
ChristianReinbold Nov 16, 2023
b7304f5
spirv-val: Loosen restriction on base type of DebugTypePointer and De…
sajjadmirzanv Nov 17, 2023
2e7fa6d
Roll external/spirv-headers/ 38f39dae5..cca08c63c (2 commits) (#5480)
github-actions[bot] Nov 18, 2023
e29b181
build(deps): bump the github-actions group with 1 update (#5484)
dependabot[bot] Nov 27, 2023
fd07a77
add missing sources/headers
alichraghi Nov 28, 2023
afaf8fd
Fix iOS / Android CMake builds (#5482)
juan-lunarg Nov 28, 2023
ffe6450
Add iOS build to CI (#5490)
juan-lunarg Nov 29, 2023
f4a73dd
std::system requires include of <cstdlib> (#5486)
dneto0 Nov 29, 2023
41534dc
Merge remote-tracking branch 'upstream/main'
alichraghi Nov 28, 2023
bb5da9b
Merge remote-tracking branch 'upstream/main'
alichraghi Nov 29, 2023
eda2ca7
update.sh: pinned clone
alichraghi Nov 29, 2023
148d5fe
prevent update.sh from being non-deterministic; fix macOS/BSD compati…
emidoots Nov 29, 2023
91b5d57
find . | grep CMake | xargs rm
emidoots Nov 29, 2023
f0fa7e6
README: make update.sh usage accurate
emidoots Nov 29, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
413 changes: 0 additions & 413 deletions CMakeLists.txt

This file was deleted.

5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ This is a fork of [SPIRV-Tools](https://github.com/KhronosGroup/SPIRV-Tools/), p

## Updating

To update this repository, run `./update.sh` followed by `./verify.sh` to verify the repository contents.
To update this repository:

1. Update `SPIRV_TOOLS_REV` in the `update.sh` script to the latest revision of the upstream.
2. Run `./update.sh` followed by `./verify.sh` to verify the repository contents.

## Verifying repository contents

Expand Down
76 changes: 76 additions & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,39 @@ pub fn build(b: *std.Build) void {
lib.addCSourceFiles(.{ .files = sources });
lib.addIncludePath(.{ .path = "." });
lib.addIncludePath(.{ .path = "include" });
lib.addIncludePath(.{ .path = "include-generated" });
lib.addIncludePath(spirv_headers.path("include"));
lib.addIncludePath(spirv_headers.path("include/spirv/unified1"));
lib.installHeadersDirectory("include/spirv-tools", "spirv-tools");
b.installArtifact(lib);
}

const sources = &[_][]const u8{
"source/assembly_grammar.cpp",
"source/binary.cpp",
"source/diagnostic.cpp",
"source/disassemble.cpp",
"source/enum_string_mapping.cpp",
"source/extensions.cpp",
"source/ext_inst.cpp",
"source/libspirv.cpp",
"source/name_mapper.cpp",
"source/opcode.cpp",
"source/operand.cpp",
"source/parsed_operand.cpp",
"source/pch_source.cpp",
"source/print.cpp",
"source/software_version.cpp",
"source/spirv_endian.cpp",
"source/spirv_fuzzer_options.cpp",
"source/spirv_optimizer_options.cpp",
"source/spirv_reducer_options.cpp",
"source/spirv_target_env.cpp",
"source/spirv_validator_options.cpp",
"source/table.cpp",
"source/text.cpp",
"source/text_handler.cpp",

"source/opt/aggressive_dead_code_elim_pass.cpp",
"source/opt/amd_ext_to_khr.cpp",
"source/opt/analyze_live_input_pass.cpp",
Expand Down Expand Up @@ -138,4 +164,54 @@ const sources = &[_][]const u8{
"source/opt/vector_dce.cpp",
"source/opt/workaround1209.cpp",
"source/opt/wrap_opkill.cpp",

"source/val/validate_ray_query.cpp",
"source/val/validate_instruction.cpp",
"source/val/validate_derivatives.cpp",
"source/val/validate_primitives.cpp",
"source/val/validate_debug.cpp",
"source/val/validate_cfg.cpp",
"source/val/validate_bitwise.cpp",
"source/val/validate_non_uniform.cpp",
"source/val/validate_scopes.cpp",
"source/val/validate_interfaces.cpp",
"source/val/validation_state.cpp",
"source/val/validate_function.cpp",
"source/val/validate_builtins.cpp",
"source/val/validate_ray_tracing_reorder.cpp",
"source/val/construct.cpp",
"source/val/validate_mesh_shading.cpp",
"source/val/function.cpp",
"source/val/validate_memory.cpp",
"source/val/validate_composites.cpp",
"source/val/validate_misc.cpp",
"source/val/validate_atomics.cpp",
"source/val/validate_conversion.cpp",
"source/val/basic_block.cpp",
"source/val/validate_type.cpp",
"source/val/validate_extensions.cpp",
"source/val/validate_execution_limitations.cpp",
"source/val/validate.cpp",
"source/val/validate_logicals.cpp",
"source/val/validate_small_type_uses.cpp",
"source/val/validate_annotation.cpp",
"source/val/validate_arithmetics.cpp",
"source/val/validate_barriers.cpp",
"source/val/validate_ray_tracing.cpp",
"source/val/validate_capability.cpp",
"source/val/validate_constants.cpp",
"source/val/validate_layout.cpp",
"source/val/instruction.cpp",
"source/val/validate_image.cpp",
"source/val/validate_literals.cpp",
"source/val/validate_adjacency.cpp",
"source/val/validate_decorations.cpp",
"source/val/validate_id.cpp",
"source/val/validate_mode_setting.cpp",
"source/val/validate_memory_semantics.cpp",

"source/util/bit_vector.cpp",
"source/util/string_utils.cpp",
"source/util/parse_number.cpp",
"source/util/timer.cpp",
};
1 change: 1 addition & 0 deletions include-generated/build-version.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"v2023.5", "SPIRV-Tools v2023.5 f4a73dd7a0cadfa9a9ea384b609e0e6a2cb71f5b"
844 changes: 844 additions & 0 deletions include-generated/core.insts-unified1.inc

Large diffs are not rendered by default.

38 changes: 38 additions & 0 deletions include-generated/debuginfo.insts.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@


static const spv_ext_inst_desc_t debuginfo_entries[] = {
{"DebugInfoNone", 0, 0, nullptr, {SPV_OPERAND_TYPE_NONE}},
{"DebugCompilationUnit", 1, 0, nullptr, {SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_LITERAL_INTEGER, SPV_OPERAND_TYPE_LITERAL_INTEGER, SPV_OPERAND_TYPE_NONE}},
{"DebugTypeBasic", 2, 0, nullptr, {SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_DEBUG_BASE_TYPE_ATTRIBUTE_ENCODING, SPV_OPERAND_TYPE_NONE}},
{"DebugTypePointer", 3, 0, nullptr, {SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_STORAGE_CLASS, SPV_OPERAND_TYPE_DEBUG_INFO_FLAGS, SPV_OPERAND_TYPE_NONE}},
{"DebugTypeQualifier", 4, 0, nullptr, {SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_DEBUG_TYPE_QUALIFIER, SPV_OPERAND_TYPE_NONE}},
{"DebugTypeArray", 5, 0, nullptr, {SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_VARIABLE_ID, SPV_OPERAND_TYPE_NONE}},
{"DebugTypeVector", 6, 0, nullptr, {SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_LITERAL_INTEGER, SPV_OPERAND_TYPE_NONE}},
{"DebugTypedef", 7, 0, nullptr, {SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_LITERAL_INTEGER, SPV_OPERAND_TYPE_LITERAL_INTEGER, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_NONE}},
{"DebugTypeFunction", 8, 0, nullptr, {SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_VARIABLE_ID, SPV_OPERAND_TYPE_NONE}},
{"DebugTypeEnum", 9, 0, nullptr, {SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_LITERAL_INTEGER, SPV_OPERAND_TYPE_LITERAL_INTEGER, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_DEBUG_INFO_FLAGS, SPV_OPERAND_TYPE_VARIABLE_ID, SPV_OPERAND_TYPE_NONE}},
{"DebugTypeComposite", 10, 0, nullptr, {SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_DEBUG_COMPOSITE_TYPE, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_LITERAL_INTEGER, SPV_OPERAND_TYPE_LITERAL_INTEGER, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_DEBUG_INFO_FLAGS, SPV_OPERAND_TYPE_VARIABLE_ID, SPV_OPERAND_TYPE_NONE}},
{"DebugTypeMember", 11, 0, nullptr, {SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_LITERAL_INTEGER, SPV_OPERAND_TYPE_LITERAL_INTEGER, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_DEBUG_INFO_FLAGS, SPV_OPERAND_TYPE_OPTIONAL_ID, SPV_OPERAND_TYPE_NONE}},
{"DebugTypeInheritance", 12, 0, nullptr, {SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_DEBUG_INFO_FLAGS, SPV_OPERAND_TYPE_NONE}},
{"DebugTypePtrToMember", 13, 0, nullptr, {SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_NONE}},
{"DebugTypeTemplate", 14, 0, nullptr, {SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_VARIABLE_ID, SPV_OPERAND_TYPE_NONE}},
{"DebugTypeTemplateParameter", 15, 0, nullptr, {SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_LITERAL_INTEGER, SPV_OPERAND_TYPE_LITERAL_INTEGER, SPV_OPERAND_TYPE_NONE}},
{"DebugTypeTemplateTemplateParameter", 16, 0, nullptr, {SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_LITERAL_INTEGER, SPV_OPERAND_TYPE_LITERAL_INTEGER, SPV_OPERAND_TYPE_NONE}},
{"DebugTypeTemplateParameterPack", 17, 0, nullptr, {SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_LITERAL_INTEGER, SPV_OPERAND_TYPE_LITERAL_INTEGER, SPV_OPERAND_TYPE_VARIABLE_ID, SPV_OPERAND_TYPE_NONE}},
{"DebugGlobalVariable", 18, 0, nullptr, {SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_LITERAL_INTEGER, SPV_OPERAND_TYPE_LITERAL_INTEGER, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_DEBUG_INFO_FLAGS, SPV_OPERAND_TYPE_OPTIONAL_ID, SPV_OPERAND_TYPE_NONE}},
{"DebugFunctionDeclaration", 19, 0, nullptr, {SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_LITERAL_INTEGER, SPV_OPERAND_TYPE_LITERAL_INTEGER, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_DEBUG_INFO_FLAGS, SPV_OPERAND_TYPE_NONE}},
{"DebugFunction", 20, 0, nullptr, {SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_LITERAL_INTEGER, SPV_OPERAND_TYPE_LITERAL_INTEGER, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_DEBUG_INFO_FLAGS, SPV_OPERAND_TYPE_LITERAL_INTEGER, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_OPTIONAL_ID, SPV_OPERAND_TYPE_NONE}},
{"DebugLexicalBlock", 21, 0, nullptr, {SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_LITERAL_INTEGER, SPV_OPERAND_TYPE_LITERAL_INTEGER, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_OPTIONAL_ID, SPV_OPERAND_TYPE_NONE}},
{"DebugLexicalBlockDiscriminator", 22, 0, nullptr, {SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_LITERAL_INTEGER, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_NONE}},
{"DebugScope", 23, 0, nullptr, {SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_OPTIONAL_ID, SPV_OPERAND_TYPE_NONE}},
{"DebugNoScope", 24, 0, nullptr, {SPV_OPERAND_TYPE_NONE}},
{"DebugInlinedAt", 25, 0, nullptr, {SPV_OPERAND_TYPE_LITERAL_INTEGER, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_OPTIONAL_ID, SPV_OPERAND_TYPE_NONE}},
{"DebugLocalVariable", 26, 0, nullptr, {SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_LITERAL_INTEGER, SPV_OPERAND_TYPE_LITERAL_INTEGER, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_OPTIONAL_LITERAL_INTEGER, SPV_OPERAND_TYPE_NONE}},
{"DebugInlinedVariable", 27, 0, nullptr, {SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_NONE}},
{"DebugDeclare", 28, 0, nullptr, {SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_NONE}},
{"DebugValue", 29, 0, nullptr, {SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_VARIABLE_ID, SPV_OPERAND_TYPE_NONE}},
{"DebugOperation", 30, 0, nullptr, {SPV_OPERAND_TYPE_DEBUG_OPERATION, SPV_OPERAND_TYPE_VARIABLE_LITERAL_INTEGER, SPV_OPERAND_TYPE_NONE}},
{"DebugExpression", 31, 0, nullptr, {SPV_OPERAND_TYPE_VARIABLE_ID, SPV_OPERAND_TYPE_NONE}},
{"DebugMacroDef", 32, 0, nullptr, {SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_LITERAL_INTEGER, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_OPTIONAL_ID, SPV_OPERAND_TYPE_NONE}},
{"DebugMacroUndef", 33, 0, nullptr, {SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_LITERAL_INTEGER, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_NONE}}
};
Loading
Loading