diff options
author | Alastair Donaldson <afd@imperial.ac.uk> | 2021-03-03 22:29:57 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-03 22:29:57 +0000 |
commit | f7043c0de6712bc9afa8beabe0d10dcb40b1811e (patch) | |
tree | a6fbfa1a7ba7877ba437f719f581343779868022 /source/fuzz/transformation_set_loop_control.cpp | |
parent | 43cfa9bc1ddbe8bf0729fed3ac44da9bf37b3854 (diff) | |
download | spirv-tools-f7043c0de6712bc9afa8beabe0d10dcb40b1811e.tar.gz |
spirv-fuzz: Handle Vulkan SPIR-V versions (#4156)
Fixes #4155.
Diffstat (limited to 'source/fuzz/transformation_set_loop_control.cpp')
-rw-r--r-- | source/fuzz/transformation_set_loop_control.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/fuzz/transformation_set_loop_control.cpp b/source/fuzz/transformation_set_loop_control.cpp index b2180d8a..7e53911b 100644 --- a/source/fuzz/transformation_set_loop_control.cpp +++ b/source/fuzz/transformation_set_loop_control.cpp @@ -199,14 +199,16 @@ bool TransformationSetLoopControl::PartialCountIsSupported( bool TransformationSetLoopControl::PeelCountIsSupported( opt::IRContext* ir_context) { - // TODO(afd): We capture the universal environments for which this loop - // control is definitely not supported. The check should be refined on - // demand for other target environments. + // TODO(afd): We capture the environments for which this loop control is + // definitely not supported. The check should be refined on demand for other + // target environments. switch (ir_context->grammar().target_env()) { case SPV_ENV_UNIVERSAL_1_0: case SPV_ENV_UNIVERSAL_1_1: case SPV_ENV_UNIVERSAL_1_2: case SPV_ENV_UNIVERSAL_1_3: + case SPV_ENV_VULKAN_1_0: + case SPV_ENV_VULKAN_1_1: return false; default: return true; |