projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8d0a9f
)
mesa: Only complain about an infinite loop in a swrast program once.
author
Eric Anholt
<eric@anholt.net>
Thu, 22 Jul 2010 19:16:11 +0000
(12:16 -0700)
committer
Eric Anholt
<eric@anholt.net>
Thu, 22 Jul 2010 19:16:11 +0000
(12:16 -0700)
Chances are, if one fragment looped badly, others will too, and
debugging output gets overwhelmed by the looping complaints.
src/mesa/shader/prog_execute.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/prog_execute.c
b/src/mesa/shader/prog_execute.c
index
f85c651
..
b6da344
100644
(file)
--- a/
src/mesa/shader/prog_execute.c
+++ b/
src/mesa/shader/prog_execute.c
@@
-1788,7
+1788,11
@@
_mesa_execute_program(GLcontext * ctx,
numExec++;
if (numExec > maxExec) {
- _mesa_problem(ctx, "Infinite loop detected in fragment program");
+ static GLboolean reported = GL_FALSE;
+ if (!reported) {
+ _mesa_problem(ctx, "Infinite loop detected in fragment program");
+ reported = GL_TRUE;
+ }
return GL_TRUE;
}