Support SPIR-V 1.3 and Vulkan 1.1
authorDavid Neto <dneto@google.com>
Fri, 9 Feb 2018 19:29:02 +0000 (14:29 -0500)
committerDavid Neto <dneto@google.com>
Tue, 6 Mar 2018 20:17:31 +0000 (15:17 -0500)
commit00fa39318f8bef3c3a587c1fa4da086064166d16
treeb2185d7694ce2ba805a311ea62e64f9a716fe1f3
parent5f50e6209c815e93733f4d58906b86a50ff2af32
Support SPIR-V 1.3 and Vulkan 1.1

The default target is SPIR-V 1.3.

For example, spirv-as will generate a SPIR-V 1.3 binary by default.
Use command line option "--target-env spv1.0" if you want to make a SPIR-V
1.0 binary or validate against SPIR-V 1.0 rules.

Example:
        # Generate a SPIR-V 1.0 binary instead of SPIR-V 1.3
spirv-as --target-env spv1.0 a.spvasm -o a.spv
spirv-as --target-env vulkan1.0 a.spvasm -o a.spv

        # Validate as SPIR-V 1.0.
spirv-val --target-env spv1.0 a.spv
        # Validate as Vulkan 1.0
spirv-val --target-env vulkan1.0 a.spv
17 files changed:
Android.mk
include/spirv-tools/libspirv.h
source/CMakeLists.txt
source/ext_inst.cpp
source/opcode.cpp
source/operand.cpp
source/spirv_target_env.cpp
source/table.cpp
test/binary_header_get_test.cpp
test/binary_to_text_test.cpp
test/target_env_test.cpp
test/text_to_binary.extension_test.cpp
test/unit_spirv.h
tools/as/as.cpp
tools/dis/dis.cpp
tools/opt/opt.cpp
tools/val/val.cpp