aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2013-02-28 16:26:57 -0800
committerMatt Turner <[email protected]>2013-02-28 16:29:30 -0800
commit4154ac066f2cdeddfe934884b59c8f1ff393545d (patch)
treebd2f9dbf8269a678e56368d399365568c3f1ce1f
parent809fdc211fbe8fb7e2a8f024a7ad1a38948be0d0 (diff)
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 <[email protected]> Reviewed-by: Matt Turner <[email protected]>
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_visitor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
index e6daf2f62e5..de08b0b6384 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
@@ -210,7 +210,7 @@ fs_visitor::emit_lrp(fs_reg dst, fs_reg x, fs_reg y, fs_reg a)
emit(MUL(y_times_a, y, a));
a.negate = !a.negate;
- emit(ADD(one_minus_a, fs_reg(1.0f), a));
+ emit(ADD(one_minus_a, a, fs_reg(1.0f)));
emit(MUL(x_times_one_minus_a, x, one_minus_a));
emit(ADD(dst, x_times_one_minus_a, y_times_a));