OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
809fdc2
)
i965/fs: Put immediate operand as src2
author
Matt Turner
<mattst88@gmail.com>
Fri, 1 Mar 2013 00:26:57 +0000
(16:26 -0800)
committer
Matt Turner
<mattst88@gmail.com>
Fri, 1 Mar 2013 00:29:30 +0000
(16:29 -0800)
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
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
index
e6daf2f
..
de08b0b
100644
(file)
--- 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));