spirv: Trivially handle new 1.4 loop controls

Reviewed-by: Karol Herbst <kherbst@redhat.com>
This commit is contained in:
Caio Marcelo de Oliveira Filho 2019-04-04 13:42:26 -07:00
parent e21dee6c21
commit fd94a45823
1 changed files with 6 additions and 1 deletions

View File

@ -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 {