projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb3f0be
)
more DEBUG_PROG
author
Brian
<brian@yutani.localnet.net>
Thu, 8 Mar 2007 00:40:57 +0000
(17:40 -0700)
committer
Brian
<brian@yutani.localnet.net>
Thu, 8 Mar 2007 00:40:57 +0000
(17:40 -0700)
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 828a90db44162ef0ad7b7c861268398ab697cc8d..092c07f7b65a4fd7c18eeb65960f08f0599a7bb6 100644
(file)
--- a/
src/mesa/shader/prog_execute.c
+++ b/
src/mesa/shader/prog_execute.c
@@
-1651,6
+1651,11
@@
_mesa_execute_program(GLcontext * ctx,
result[2] = a[0] * b[1] - a[1] * b[0];
result[3] = 1.0;
store_vector4(inst, machine, result);
+ if (DEBUG_PROG) {
+ printf("XPD (%g %g %g %g) = (%g %g %g) X (%g %g %g)\n",
+ result[0], result[1], result[2], result[3],
+ a[0], a[1], a[2], b[0], b[1], b[2]);
+ }
}
break;
case OPCODE_X2D: /* 2-D matrix transform */