projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
scons: Add uniform_query.cpp to SConscript.
[mesa.git]
/
src
/
glsl
/
lower_variable_index_to_cond_assign.cpp
diff --git
a/src/glsl/lower_variable_index_to_cond_assign.cpp
b/src/glsl/lower_variable_index_to_cond_assign.cpp
index 7792e6e624fcc0cbcc138d439209262b07584801..f8e4a1de428a1566bb90d2921d318adc3798df01 100644
(file)
--- a/
src/glsl/lower_variable_index_to_cond_assign.cpp
+++ b/
src/glsl/lower_variable_index_to_cond_assign.cpp
@@
-525,10
+525,12
@@
lower_variable_index_to_cond_assign(exec_list *instructions,
* matrix columns of an array of matrix), each pass will only lower one
* level of indirection.
*/
* matrix columns of an array of matrix), each pass will only lower one
* level of indirection.
*/
+ bool progress_ever = false;
do {
v.progress = false;
visit_list_elements(&v, instructions);
do {
v.progress = false;
visit_list_elements(&v, instructions);
+ progress_ever = v.progress || progress_ever;
} while (v.progress);
} while (v.progress);
- return
v.progress
;
+ return
progress_ever
;
}
}