i965: Make the CONT instruction point to the WHILE instruction.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 30 Apr 2011 08:30:55 +0000 (01:30 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 18 May 2011 06:33:02 +0000 (23:33 -0700)
commit6e918163dfbdc829f31a0aefc07248c49b890d1d
tree1fab53bd8226d346dbda7a35f5c3596d2fd42d4f
parent77397ef96edbc17a698ae2a02ec4807b1059c036
i965: Make the CONT instruction point to the WHILE instruction.

This fixes piglit test glsl-fs-loop-continue.shader_test on Ivybridge.
According to the documentation, the CONT instruction's UIP field should
point to the WHILE instruction on both Sandybridge and Ivybridge.

The previous code made UIP point to the implicit DO instruction, which
seems incorrect.  I'm not sure how it could have worked on Sandybridge.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_eu_emit.c