summaryrefslogtreecommitdiffstats
path: root/src/mesa/program
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-09-01 12:46:57 -0600
committerBrian Paul <[email protected]>2010-09-01 13:24:26 -0600
commitfd7f2ae085ea55649089b29515e143eed43c177e (patch)
tree5720ee608422467d8862675969b22fba4e3e4073 /src/mesa/program
parent0181385f36463ff03f4ed657b180acd8567c05d4 (diff)
mesa: more prog_execute.c debug code
Diffstat (limited to 'src/mesa/program')
-rw-r--r--src/mesa/program/prog_execute.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/program/prog_execute.c b/src/mesa/program/prog_execute.c
index ff8c20c4cf5..2ae5bc572af 100644
--- 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: