r600g/sb: Update last_cf for loops
authorGlenn Kennard <glenn.kennard@gmail.com>
Thu, 26 Mar 2015 01:56:50 +0000 (02:56 +0100)
committerDave Airlie <airlied@redhat.com>
Tue, 7 Apr 2015 22:18:17 +0000 (08:18 +1000)
commit06bb68da4a58403e678b51511e40a7f752dfc046
tree076a211b5a8b3d7e82d70e71d5ed00454fbcdaf9
parent61393bdcdc3b63624bf6e9730444f5e9deeedfc8
r600g/sb: Update last_cf for loops

CF_END could end up emitted in the middle of a shader on cayman
when there was a loop at the very end.

Fixes glsl-1.50-geometry-end-primitive and
ext_transform_feedback-geometry-shaders-basic piglit tests.

Signed-off-by: Glenn Kennard <glenn.kennard@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/sb/sb_bc_finalize.cpp