Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/KhronosGroup/SPIRV-Cross.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Kristian Arntzen <post@arntzen-software.no>2020-01-06 13:47:26 +0300
committerHans-Kristian Arntzen <post@arntzen-software.no>2020-01-06 13:47:26 +0300
commit9012a39b6090ee2237ca56f25c99368a487613fc (patch)
tree0012347d8a7ce60679a2ef3917b6775537a2f6d5 /test_shaders.py
parent437b9ad2e92bb5c1100162340452eebcd54793a3 (diff)
Basic implementation of OpCopyLogical.
Diffstat (limited to 'test_shaders.py')
-rwxr-xr-xtest_shaders.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/test_shaders.py b/test_shaders.py
index 52a344f5..da94b7cc 100755
--- a/test_shaders.py
+++ b/test_shaders.py
@@ -178,7 +178,9 @@ def cross_compile_msl(shader, spirv, opt, iterations, paths):
spirv_path = create_temporary()
msl_path = create_temporary(os.path.basename(shader))
- spirv_cmd = [paths.spirv_as, '--target-env', 'vulkan1.1', '-o', spirv_path, shader]
+ spirv_env = 'vulkan1.1spv1.4' if ('.spv14.' in shader) else 'vulkan1.1'
+
+ spirv_cmd = [paths.spirv_as, '--target-env', spirv_env, '-o', spirv_path, shader]
if '.preserve.' in shader:
spirv_cmd.append('--preserve-numeric-ids')
@@ -249,7 +251,7 @@ def cross_compile_msl(shader, spirv, opt, iterations, paths):
subprocess.check_call(msl_args)
if not shader_is_invalid_spirv(msl_path):
- subprocess.check_call([paths.spirv_val, '--scalar-block-layout', '--target-env', 'vulkan1.1', spirv_path])
+ subprocess.check_call([paths.spirv_val, '--scalar-block-layout', '--target-env', spirv_env, spirv_path])
return (spirv_path, msl_path)
@@ -388,10 +390,12 @@ 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_env = 'vulkan1.1spv1.4' if ('.spv14.' in shader) else 'vulkan1.1'
+
if vulkan or spirv:
vulkan_glsl_path = create_temporary('vk' + os.path.basename(shader))
- spirv_cmd = [paths.spirv_as, '--target-env', 'vulkan1.1', '-o', spirv_path, shader]
+ spirv_cmd = [paths.spirv_as, '--target-env', spirv_env, '-o', spirv_path, shader]
if '.preserve.' in shader:
spirv_cmd.append('--preserve-numeric-ids')
@@ -404,7 +408,7 @@ def cross_compile(shader, vulkan, spirv, invalid_spirv, eliminate, is_legacy, fl
subprocess.check_call([paths.spirv_opt, '--skip-validation', '-O', '-o', spirv_path, spirv_path])
if not invalid_spirv:
- subprocess.check_call([paths.spirv_val, '--scalar-block-layout', '--target-env', 'vulkan1.1', spirv_path])
+ subprocess.check_call([paths.spirv_val, '--scalar-block-layout', '--target-env', spirv_env, spirv_path])
extra_args = ['--iterations', str(iterations)]
if eliminate: