summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/prog_execute.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-08-31 14:57:59 -0600
committerBrian Paul <[email protected]>2009-08-31 19:34:47 -0600
commitc0633ddabbcc91dcf06fd4452eb7516c624752c0 (patch)
treebcef800634815b6475d1ab33cd0bd06ecaf61020 /src/mesa/shader/prog_execute.c
parentb3232e9280ff7104d68b7e4f229604f574a4e37a (diff)
mesa: debug printf for KIL
Diffstat (limited to 'src/mesa/shader/prog_execute.c')
-rw-r--r--src/mesa/shader/prog_execute.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/shader/prog_execute.c b/src/mesa/shader/prog_execute.c
index f4beb9a78b6..c8a762f8ff7 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;
}