summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCaio Marcelo de Oliveira Filho <[email protected]>2019-04-04 13:42:26 -0700
committerCaio Marcelo de Oliveira Filho <[email protected]>2019-05-21 11:52:12 -0700
commitfd94a458234d21f5f43b88ae8edb095b4c01e626 (patch)
tree6f5c363100b64eb421f7d7ca59d4825f0f6fd120 /src
parente21dee6c215470b330cb9e13df48df87e2b5a874 (diff)
spirv: Trivially handle new 1.4 loop controls
Reviewed-by: Karol Herbst <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/compiler/spirv/vtn_cfg.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/compiler/spirv/vtn_cfg.c b/src/compiler/spirv/vtn_cfg.c
index 323e3da52c4..87c3fde3f31 100644
--- a/src/compiler/spirv/vtn_cfg.c
+++ b/src/compiler/spirv/vtn_cfg.c
@@ -889,7 +889,12 @@ vtn_loop_control(struct vtn_builder *b, struct vtn_loop *vtn_loop)
else if (vtn_loop->control & SpvLoopControlUnrollMask)
return nir_loop_control_unroll;
else if (vtn_loop->control & SpvLoopControlDependencyInfiniteMask ||
- vtn_loop->control & SpvLoopControlDependencyLengthMask) {
+ vtn_loop->control & SpvLoopControlDependencyLengthMask ||
+ vtn_loop->control & SpvLoopControlMinIterationsMask ||
+ vtn_loop->control & SpvLoopControlMaxIterationsMask ||
+ vtn_loop->control & SpvLoopControlIterationMultipleMask ||
+ vtn_loop->control & SpvLoopControlPeelCountMask ||
+ vtn_loop->control & SpvLoopControlPartialCountMask) {
/* We do not do anything special with these yet. */
return nir_loop_control_none;
} else {