i965/fs: Put immediate operand as src2
authorMatt Turner <mattst88@gmail.com>
Fri, 1 Mar 2013 00:26:57 +0000 (16:26 -0800)
committerMatt Turner <mattst88@gmail.com>
Fri, 1 Mar 2013 00:29:30 +0000 (16:29 -0800)
commit4154ac066f2cdeddfe934884b59c8f1ff393545d
treebd2f9dbf8269a678e56368d399365568c3f1ce1f
parent809fdc211fbe8fb7e2a8f024a7ad1a38948be0d0
i965/fs: Put immediate operand as src2

Immediate operands can only be src2 in 2-source instructions. Fixes
piglit failures since 0a1d145e (oops!).

Spotted-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp