projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a77c3c
)
mesa: more program debug code
author
Brian Paul
<brianp@vmware.com>
Tue, 14 Dec 2010 19:46:01 +0000
(12:46 -0700)
committer
Brian Paul
<brianp@vmware.com>
Tue, 14 Dec 2010 19:46:01 +0000
(12:46 -0700)
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 1d97a077f525fc08eafbfa165f4f403f6e114667..dd15e9a1ccde689c743331af109415d5990d0d4a 100644
(file)
--- a/
src/mesa/program/prog_execute.c
+++ b/
src/mesa/program/prog_execute.c
@@
-1670,6
+1670,18
@@
_mesa_execute_program(struct gl_context * ctx,
fetch_texel(ctx, machine, inst, texcoord, lodBias, color);
+ if (DEBUG_PROG) {
+ printf("TXB (%g, %g, %g, %g) = texture[%d][%g %g %g %g]"
+ " bias %g\n",
+ color[0], color[1], color[2], color[3],
+ inst->TexSrcUnit,
+ texcoord[0],
+ texcoord[1],
+ texcoord[2],
+ texcoord[3],
+ lodBias);
+ }
+
store_vector4(inst, machine, color);
}
break;