Mesa (master): mesa: debug printf for KIL

Brian Paul brianp at kemper.freedesktop.org
Tue Sep 1 01:36:10 UTC 2009


Module: Mesa
Branch: master
Commit: c0633ddabbcc91dcf06fd4452eb7516c624752c0
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c0633ddabbcc91dcf06fd4452eb7516c624752c0

Author: Brian Paul <brianp at vmware.com>
Date:   Mon Aug 31 14:57:59 2009 -0600

mesa: debug printf for KIL

---

 src/mesa/shader/prog_execute.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/mesa/shader/prog_execute.c b/src/mesa/shader/prog_execute.c
index f4beb9a..c8a762f 100644
--- a/src/mesa/shader/prog_execute.c
+++ b/src/mesa/shader/prog_execute.c
@@ -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;
             }




More information about the mesa-commit mailing list