projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d9d036
)
i965/fs: Use different name for inner loop counter
author
Ian Romanick
<ian.d.romanick@intel.com>
Fri, 25 Mar 2011 01:01:37 +0000
(18:01 -0700)
committer
Ian Romanick
<ian.d.romanick@intel.com>
Fri, 25 Mar 2011 18:28:07 +0000
(11:28 -0700)
'i' is already used for the outer loop. This caused some problems
while doing other work in this area. No bug exists here... until you
want to use the outer loop counter in the inner loop.
src/mesa/drivers/dri/i965/brw_fs.cpp
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_fs.cpp
b/src/mesa/drivers/dri/i965/brw_fs.cpp
index ecc4d482b60a8952963ec4a61f63e6be9d75a67d..74596e91c3523d43a13811e1342a9198db83428f 100644
(file)
--- a/
src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/
src/mesa/drivers/dri/i965/brw_fs.cpp
@@
-440,8
+440,8
@@
fs_visitor::setup_builtin_uniform_values(ir_variable *ir)
* the array/matrix/structure we're trying to fill in.
*/
int last_swiz = -1;
- for (unsigned int
i = 0; i < 4; i
++) {
- int swiz = GET_SWZ(element->swizzle,
i
);
+ for (unsigned int
j = 0; j < 4; j
++) {
+ int swiz = GET_SWZ(element->swizzle,
j
);
if (swiz == last_swiz)
break;
last_swiz = swiz;