projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0181385
)
mesa: more prog_execute.c debug code
author
Brian Paul
<brianp@vmware.com>
Wed, 1 Sep 2010 18:46:57 +0000
(12:46 -0600)
committer
Brian Paul
<brianp@vmware.com>
Wed, 1 Sep 2010 19:24:26 +0000
(13:24 -0600)
src/mesa/program/prog_execute.c
patch
|
blob
|
history
diff --git
a/src/mesa/program/prog_execute.c
b/src/mesa/program/prog_execute.c
index ff8c20c4cf56c86c74b27fe07ca6bf564904f6a4..2ae5bc572af3ec08f402601408160f92b7ff9e12 100644
(file)
--- a/
src/mesa/program/prog_execute.c
+++ b/
src/mesa/program/prog_execute.c
@@
-771,6
+771,13
@@
_mesa_execute_program(GLcontext * ctx,
result[2] = a[2] < 0.0F ? b[2] : c[2];
result[3] = a[3] < 0.0F ? b[3] : c[3];
store_vector4(inst, machine, result);
+ if (DEBUG_PROG) {
+ printf("CMP (%g %g %g %g) = (%g %g %g %g) < 0 ? (%g %g %g %g) : (%g %g %g %g)\n",
+ result[0], result[1], result[2], result[3],
+ a[0], a[1], a[2], a[3],
+ b[0], b[1], b[2], b[3],
+ c[0], c[1], c[2], c[3]);
+ }
}
break;
case OPCODE_COS: