i965/fs: Don't generate saturates over existing variable values.
authorEric Anholt <eric@anholt.net>
Mon, 26 Nov 2012 22:22:12 +0000 (14:22 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 30 Jan 2013 20:15:38 +0000 (12:15 -0800)
commit0ba14013f66c03c6a3cc0a5e3ef74e92bfe5afb9
tree427500fccffb13138e2303e4bdb4362d2a3e8816
parenta474b455ac046cf308015d82ea998e7bc06be1fb
i965/fs: Don't generate saturates over existing variable values.

Fixes a crash in http://workshop.chromeexperiments.com/stars/ on i965,
and the new piglit test glsl-fs-clamp-5.
We were trying to emit a saturating move into a uniform, which the code
generator appropriately choked on.  This was broken in the change in
32ae8d3b321185a85b73ff703d8fc26bd5f48fa7.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=57166
NOTE: This is a candidate for the 9.0 branch.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
(cherry picked from commit b9b033d8e456228fb05c5e28f85323de40f3292f)

Conflicts: 9.0 doesn't have the MOV() helper.  Convert to old style.
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp