diff options
author | Hans-Kristian Arntzen <post@arntzen-software.no> | 2022-01-06 16:16:28 +0300 |
---|---|---|
committer | Hans-Kristian Arntzen <post@arntzen-software.no> | 2022-01-06 16:16:28 +0300 |
commit | 7c122283594d11c269c4e3d95ab6b5df5c182008 (patch) | |
tree | b83bf3790ac9687f06afe3db71fdadc3e5a6e525 /test_shaders.py | |
parent | eadca962c8ec5be3b55b96a23be1b766ca4a602d (diff) |
Add sanity test for SPIR-V 1.6 modules.
Just verify that we don't blow up on these modules.
Diffstat (limited to 'test_shaders.py')
-rwxr-xr-x | test_shaders.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test_shaders.py b/test_shaders.py index 8b88a81b..aaa5a55d 100755 --- a/test_shaders.py +++ b/test_shaders.py @@ -516,8 +516,14 @@ def cross_compile(shader, vulkan, spirv, invalid_spirv, eliminate, is_legacy, fl spirv_path = create_temporary() glsl_path = create_temporary(os.path.basename(shader)) + spirv_16 = '.spv16.' in shader spirv_14 = '.spv14.' in shader - spirv_env = 'vulkan1.1spv1.4' if spirv_14 else 'vulkan1.1' + if spirv_16: + spirv_env = 'spv1.6' + elif spirv_14: + spirv_env = 'vulkan1.1spv1.4' + else: + spirv_env = 'vulkan1.1' if vulkan or spirv: vulkan_glsl_path = create_temporary('vk' + os.path.basename(shader)) |