nir/spirv/cfg: Allow breaking from the continue block
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 12 Jan 2016 01:03:16 +0000 (17:03 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 12 Jan 2016 01:03:16 +0000 (17:03 -0800)
src/glsl/nir/spirv/vtn_cfg.c

index bc71e8afa7cb2b85480f02310f52434cd7c478ab..a927fb728c1521b17b571952923902c172f41cb9 100644 (file)
@@ -276,7 +276,7 @@ vtn_cfg_walk_blocks(struct vtn_builder *b, struct list_head *cf_list,
          vtn_cfg_walk_blocks(b, &loop->body, block, switch_case, NULL,
                              new_loop_break, new_loop_cont, NULL );
          vtn_cfg_walk_blocks(b, &loop->cont_body, new_loop_cont, NULL, NULL,
-                             NULL, NULL, block);
+                             new_loop_break, NULL, block);
 
          block = new_loop_break;
          continue;