projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd3b835
)
ir_to_mesa: Check the right element for matrix * scalar multiplication.
author
Eric Anholt
<eric@anholt.net>
Mon, 28 Jun 2010 04:07:21 +0000
(21:07 -0700)
committer
Eric Anholt
<eric@anholt.net>
Mon, 28 Jun 2010 18:14:47 +0000
(11:14 -0700)
src/mesa/shader/ir_to_mesa.cpp
patch
|
blob
|
history
diff --git
a/src/mesa/shader/ir_to_mesa.cpp
b/src/mesa/shader/ir_to_mesa.cpp
index a0217bf8d92721520266e015ed42ea2a85ddaa50..8541906ca64a818041ec1878c1c920ad42f8dbab 100644
(file)
--- a/
src/mesa/shader/ir_to_mesa.cpp
+++ b/
src/mesa/shader/ir_to_mesa.cpp
@@
-579,7
+579,7
@@
ir_to_mesa_visitor::visit(ir_expression *ir)
case ir_binop_mul:
if (ir->operands[0]->type->is_matrix() &&
!ir->operands[1]->type->is_matrix()) {
- if (ir->operands[
0
]->type->is_scalar()) {
+ if (ir->operands[
1
]->type->is_scalar()) {
ir_to_mesa_dst_reg dst_column = result_dst;
ir_to_mesa_src_reg src_column = op[0];
for (int i = 0; i < ir->operands[0]->type->matrix_columns; i++) {