From: Brian Date: Thu, 8 Mar 2007 00:40:57 +0000 (-0700) Subject: more DEBUG_PROG X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9637c963f59192aaccf68e7690f5ffb1e17ba077;p=mesa.git more DEBUG_PROG --- 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 */