summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-12-14 12:46:01 -0700
committerBrian Paul <brianp@vmware.com>2010-12-14 12:46:01 -0700
commitbe2aa81f5f8f44be8c9c8854098d29635352c4f8 (patch)
tree25fdcb2bed06c0d336142774fc9d6ae2b6950009 /src/mesa
parent2a77c3cc0b5ea126e9e15d9a928f3dc944e3668f (diff)
mesa: more program debug code
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/program/prog_execute.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mesa/program/prog_execute.c b/src/mesa/program/prog_execute.c
index 1d97a077f5..dd15e9a1cc 100644
--- 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;