From fd94a458234d21f5f43b88ae8edb095b4c01e626 Mon Sep 17 00:00:00 2001 From: Caio Marcelo de Oliveira Filho Date: Thu, 4 Apr 2019 13:42:26 -0700 Subject: [PATCH] spirv: Trivially handle new 1.4 loop controls Reviewed-by: Karol Herbst --- src/compiler/spirv/vtn_cfg.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 { -- 2.30.2