gallivm: Fix BREAK/CONT translation.
authorJosé Fonseca <jfonseca@vmware.com>
Sat, 8 May 2010 15:17:09 +0000 (16:17 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Sat, 8 May 2010 15:17:09 +0000 (16:17 +0100)
commit2d91903882e399e8ea7306fd37d5d214907247e6
treed3dceccd8874c00db8de6785581d9d0a3ca9ee17
parent852f7352361101f9f3c6900355fb0b9c20c44e4d
gallivm: Fix BREAK/CONT translation.

The cont_mask must be restored and exec mask recomputed in order to decide
whether to repeat the loop or not.

Unlike the continue mask, the break_mask must be preserved across loop
iterations.

Fixes several VShader DCT cases, and no regressions with glean.
src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c