From 9637c963f59192aaccf68e7690f5ffb1e17ba077 Mon Sep 17 00:00:00 2001 From: Brian Date: Wed, 7 Mar 2007 17:40:57 -0700 Subject: [PATCH] more DEBUG_PROG --- src/mesa/shader/prog_execute.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mesa/shader/prog_execute.c b/src/mesa/shader/prog_execute.c index 828a90db441..092c07f7b65 100644 --- 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 */ -- 2.30.2