From: Brian Paul Date: Wed, 1 Sep 2010 18:46:57 +0000 (-0600) Subject: mesa: more prog_execute.c debug code X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fd7f2ae085ea55649089b29515e143eed43c177e;p=mesa.git mesa: more prog_execute.c debug code --- 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: