mesa: debug printf for KIL
authorBrian Paul <brianp@vmware.com>
Mon, 31 Aug 2009 20:57:59 +0000 (14:57 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 1 Sep 2009 01:34:47 +0000 (19:34 -0600)
src/mesa/shader/prog_execute.c

index f4beb9a78b62d6b249621b9fabb049cde27094f9..c8a762f8ff7546898cf8353fecefd0c4a2e04a63 100644 (file)
@@ -922,6 +922,11 @@ _mesa_execute_program(GLcontext * ctx,
          {
             GLfloat a[4];
             fetch_vector4(&inst->SrcReg[0], machine, a);
+            if (DEBUG_PROG) {
+               printf("KIL if (%g %g %g %g) <= 0.0\n",
+                      a[0], a[1], a[2], a[3]);
+            }
+
             if (a[0] < 0.0F || a[1] < 0.0F || a[2] < 0.0F || a[3] < 0.0F) {
                return GL_FALSE;
             }