nir/vtn: fix emitting code after loops
authorConnor Abbott <cwabbott0@gmail.com>
Mon, 22 Jun 2015 20:53:08 +0000 (13:53 -0700)
committerConnor Abbott <cwabbott0@gmail.com>
Mon, 22 Jun 2015 20:53:08 +0000 (13:53 -0700)
commit9a3dda101e88142cb3b3eebb18883edecb21b375
tree3052badfc62ba2edbfecbfd79c5a6ff231c9fb05
parente9c21d0ca01eaada2d61bd73e97f59cd2835a0b0
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.
src/glsl/nir/spirv_to_nir.c