summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorConnor Abbott <[email protected]>2015-06-22 13:53:08 -0700
committerConnor Abbott <[email protected]>2015-06-22 13:53:08 -0700
commit9a3dda101e88142cb3b3eebb18883edecb21b375 (patch)
tree3052badfc62ba2edbfecbfd79c5a6ff231c9fb05 /src
parente9c21d0ca01eaada2d61bd73e97f59cd2835a0b0 (diff)
nir/vtn: fix emitting code after loops
When we're done emitting the code for a loop, we need to visit the new break block, which is the merge block of the current loop, rather than the old merge block, which is the merge block of the loop containing the one we just emitted code for.
Diffstat (limited to 'src')
-rw-r--r--src/glsl/nir/spirv_to_nir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/nir/spirv_to_nir.c b/src/glsl/nir/spirv_to_nir.c
index e0f280ceaae..4aabf3cc4e0 100644
--- a/src/glsl/nir/spirv_to_nir.c
+++ b/src/glsl/nir/spirv_to_nir.c
@@ -2095,7 +2095,7 @@ vtn_walk_blocks(struct vtn_builder *b, struct vtn_block *start,
vtn_walk_blocks(b, block, new_break_block, new_cont_block, NULL);
nir_builder_insert_after_cf_list(&b->nb, old_list);
- block = break_block;
+ block = new_break_block;
continue;
}