updated spirv-tools to latest version

Bug: skia:
Change-Id: I6a6ee1a3d7e63981e6e9c45cf2672060e31a6213
Reviewed-on: https://skia-review.googlesource.com/25020
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
This commit is contained in:
Ethan Nicholas 2017-07-20 10:26:28 -04:00 committed by Skia Commit-Bot
parent b3f6ac44db
commit 0d67fafa3e
2 changed files with 87 additions and 2 deletions

4
DEPS
View File

@ -17,8 +17,8 @@ deps = {
"third_party/externals/piex" : "https://android.googlesource.com/platform/external/piex.git@8f540f64b6c170a16fb7e6e52d61819705c1522a",
"third_party/externals/sdl" : "https://skia.googlesource.com/third_party/sdl@5d7cfcca344034aff9327f77fc181ae3754e7a90",
"third_party/externals/sfntly" : "https://chromium.googlesource.com/external/github.com/googlei18n/sfntly.git@b18b09b6114b9b7fe6fc2f96d8b15e8a72f66916",
"third_party/externals/spirv-headers" : "https://github.com/KhronosGroup/SPIRV-Headers.git@2d6ba39368a781edd82eff5df2b6bc614e892329",
"third_party/externals/spirv-tools" : "https://github.com/KhronosGroup/SPIRV-Tools.git@1fb8c37b5718118b49eec59dc383cfa3f98643c0",
"third_party/externals/spirv-headers" : "https://github.com/KhronosGroup/SPIRV-Headers.git@661ad91124e6af2272afd00f804d8aa276e17107",
"third_party/externals/spirv-tools" : "https://github.com/KhronosGroup/SPIRV-Tools.git@e9e4393b1c5aad7553c05782acefbe32b42644bd",
#"third_party/externals/v8" : "https://chromium.googlesource.com/v8/v8.git@5f1ae66d5634e43563b2d25ea652dfb94c31a3b4",
"third_party/externals/zlib" : "https://chromium.googlesource.com/chromium/src/third_party/zlib@4576304a4b9835aa8646c9735b079e1d96858633",
}

View File

@ -28,10 +28,15 @@ template("spirv_core_tables") {
spirv_core_tables("1.0") {
version = "1.0"
}
spirv_core_tables("1.1") {
version = "1.1"
}
spirv_core_tables("1.2") {
version = "1.2"
}
action("spirv_glsl_tables") {
script = "../externals/spirv-tools/utils/generate_grammar_tables.py"
sources = [
@ -55,6 +60,28 @@ action("spirv_glsl_tables") {
]
}
action("spirv_extension_enum") {
script = "../externals/spirv-tools/utils/generate_grammar_tables.py"
sources = [
"../externals/spirv-headers/include/spirv/1.0/extinst.glsl.std.450.grammar.json",
"../externals/spirv-headers/include/spirv/1.0/spirv.core.grammar.json",
]
outputs = [
"$root_out_dir/spirv-tools/extension_enum.inc",
]
args = [
"--spirv-core-grammar=" + rebase_path(
"../externals/spirv-headers/include/spirv/1.0/spirv.core.grammar.json",
root_build_dir),
"--extension-enum-output=" +
rebase_path("$root_out_dir/spirv-tools/extension_enum.inc",
root_build_dir),
"--enum-string-mapping-output=" +
rebase_path("$root_out_dir/spirv-tools/enum_string_mapping.inc",
root_build_dir),
]
}
action("spirv_opencl_tables") {
script = "../externals/spirv-tools/utils/generate_grammar_tables.py"
sources = [
@ -78,6 +105,43 @@ action("spirv_opencl_tables") {
]
}
template("spirv_vendor_tables") {
vendor_table = invoker.vendor_table
action("spirv_vendor_tables_" + target_name) {
script = "../externals/spirv-tools/utils/generate_grammar_tables.py"
sources = [
"../externals/spirv-tools/source/extinst.$vendor_table.grammar.json",
]
outputs = [
"$root_out_dir/spirv-tools/$vendor_table.insts.inc",
]
args = [
"--extinst-vendor-grammar=" + rebase_path(
"../externals/spirv-tools/source/extinst.$vendor_table.grammar.json",
root_build_dir),
"--vendor-insts-output=" +
rebase_path("$root_out_dir/spirv-tools/$vendor_table.insts.inc",
root_build_dir),
]
}
}
spirv_vendor_tables("amd_shader_explicit_vertex_parameter") {
vendor_table = "spv-amd-shader-explicit-vertex-parameter"
}
spirv_vendor_tables("amd_shader_trinary_minmax") {
vendor_table = "spv-amd-shader-trinary-minmax"
}
spirv_vendor_tables("amd_shader_gcn_shader") {
vendor_table = "spv-amd-gcn-shader"
}
spirv_vendor_tables("amd_shader_ballot") {
vendor_table = "spv-amd-shader-ballot"
}
action("spirv_build_version") {
script = "../externals/spirv-tools/utils/update_build_version.py"
sources = [
@ -121,9 +185,15 @@ third_party("spirv-tools") {
":spirv_build_version",
":spirv_core_tables_1.0",
":spirv_core_tables_1.1",
":spirv_core_tables_1.2",
":spirv_extension_enum",
":spirv_generators",
":spirv_glsl_tables",
":spirv_opencl_tables",
":spirv_vendor_tables_amd_shader_ballot",
":spirv_vendor_tables_amd_shader_explicit_vertex_parameter",
":spirv_vendor_tables_amd_shader_gcn_shader",
":spirv_vendor_tables_amd_shader_trinary_minmax",
"//third_party/spirv-headers",
]
sources = [
@ -131,6 +201,7 @@ third_party("spirv-tools") {
"../externals/spirv-tools/source/binary.cpp",
"../externals/spirv-tools/source/diagnostic.cpp",
"../externals/spirv-tools/source/disassemble.cpp",
"../externals/spirv-tools/source/enum_string_mapping.cpp",
"../externals/spirv-tools/source/ext_inst.cpp",
"../externals/spirv-tools/source/extensions.cpp",
"../externals/spirv-tools/source/libspirv.cpp",
@ -138,14 +209,26 @@ third_party("spirv-tools") {
"../externals/spirv-tools/source/name_mapper.cpp",
"../externals/spirv-tools/source/opcode.cpp",
"../externals/spirv-tools/source/operand.cpp",
"../externals/spirv-tools/source/opt/aggressive_dead_code_elim_pass.cpp",
"../externals/spirv-tools/source/opt/basic_block.cpp",
"../externals/spirv-tools/source/opt/block_merge_pass.cpp",
"../externals/spirv-tools/source/opt/build_module.cpp",
"../externals/spirv-tools/source/opt/compact_ids_pass.cpp",
"../externals/spirv-tools/source/opt/dead_branch_elim_pass.cpp",
"../externals/spirv-tools/source/opt/def_use_manager.cpp",
"../externals/spirv-tools/source/opt/eliminate_dead_constant_pass.cpp",
"../externals/spirv-tools/source/opt/flatten_decoration_pass.cpp",
"../externals/spirv-tools/source/opt/fold_spec_constant_op_and_composite_pass.cpp",
"../externals/spirv-tools/source/opt/freeze_spec_constant_value_pass.cpp",
"../externals/spirv-tools/source/opt/function.cpp",
"../externals/spirv-tools/source/opt/inline_pass.cpp",
"../externals/spirv-tools/source/opt/insert_extract_elim.cpp",
"../externals/spirv-tools/source/opt/instruction.cpp",
"../externals/spirv-tools/source/opt/ir_loader.cpp",
"../externals/spirv-tools/source/opt/local_access_chain_convert_pass.cpp",
"../externals/spirv-tools/source/opt/local_single_block_elim_pass.cpp",
"../externals/spirv-tools/source/opt/local_single_store_elim_pass.cpp",
"../externals/spirv-tools/source/opt/local_ssa_elim_pass.cpp",
"../externals/spirv-tools/source/opt/module.cpp",
"../externals/spirv-tools/source/opt/optimizer.cpp",
"../externals/spirv-tools/source/opt/pass_manager.cpp",
@ -164,12 +247,14 @@ third_party("spirv-tools") {
"../externals/spirv-tools/source/text.cpp",
"../externals/spirv-tools/source/text_handler.cpp",
"../externals/spirv-tools/source/util/parse_number.cpp",
"../externals/spirv-tools/source/util/string_utils.cpp",
"../externals/spirv-tools/source/val/basic_block.cpp",
"../externals/spirv-tools/source/val/construct.cpp",
"../externals/spirv-tools/source/val/function.cpp",
"../externals/spirv-tools/source/val/instruction.cpp",
"../externals/spirv-tools/source/val/validation_state.cpp",
"../externals/spirv-tools/source/validate.cpp",
"../externals/spirv-tools/source/validate_capability.cpp",
"../externals/spirv-tools/source/validate_cfg.cpp",
"../externals/spirv-tools/source/validate_datarules.cpp",
"../externals/spirv-tools/source/validate_decorations.cpp",