projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
388ab9f
)
ir_constant_expression: Fix loop increments.
author
Kenneth Graunke
<kenneth@whitecape.org>
Wed, 7 Jul 2010 19:08:23 +0000
(12:08 -0700)
committer
Ian Romanick
<ian.d.romanick@intel.com>
Wed, 7 Jul 2010 19:41:26 +0000
(12:41 -0700)
src/glsl/ir_constant_expression.cpp
patch
|
blob
|
history
diff --git
a/src/glsl/ir_constant_expression.cpp
b/src/glsl/ir_constant_expression.cpp
index 98cbb6cec6cd75f570c16334769ddeba264703ea..0fe93adceadea8ed4c6bcd1076dd8e5a27eabcca 100644
(file)
--- a/
src/glsl/ir_constant_expression.cpp
+++ b/
src/glsl/ir_constant_expression.cpp
@@
-149,8
+149,8
@@
ir_constant_visitor::visit(ir_expression *ir)
/* When iterating over a vector or matrix's components, we want to increase
* the loop counter. However, for scalars, we want to stay at 0.
*/
- unsigned c0_inc = op0_scalar ?
1 : 0
;
- unsigned c1_inc = op1_scalar ?
1 : 0
;
+ unsigned c0_inc = op0_scalar ?
0 : 1
;
+ unsigned c1_inc = op1_scalar ?
0 : 1
;
unsigned components;
if (op1_scalar || !op[1]) {
components = op[0]->type->components();