Mesa (master): tnl: added some clip debug/print code (disabled)
Brian Paul
brianp at kemper.freedesktop.org
Thu May 7 16:17:00 UTC 2009
Module: Mesa
Branch: master
Commit: ad32489987f3f65d37aee76083f466d674ada0c5
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ad32489987f3f65d37aee76083f466d674ada0c5
Author: Brian Paul <brianp at vmware.com>
Date: Wed May 6 09:45:24 2009 -0600
tnl: added some clip debug/print code (disabled)
---
src/mesa/tnl/t_vb_cliptmp.h | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/src/mesa/tnl/t_vb_cliptmp.h b/src/mesa/tnl/t_vb_cliptmp.h
index e1643c2..61b0a89 100644
--- a/src/mesa/tnl/t_vb_cliptmp.h
+++ b/src/mesa/tnl/t_vb_cliptmp.h
@@ -227,6 +227,25 @@ TAG(clip_tri)( GLcontext *ctx, GLuint v0, GLuint v1, GLuint v2, GLubyte mask )
}
}
+ if (0) {
+ /* print pre/post-clip vertex coords */
+ GLuint i, j;
+ _mesa_printf("pre clip\n");
+ for (i = 0; i < 3; i++) {
+ j = outlist[i];
+ _mesa_printf(" %u: %u: %f, %f, %f, %f\n",
+ i, j,
+ coord[j][0], coord[j][1], coord[j][2], coord[j][3]);
+ }
+ _mesa_printf("post clip\n");
+ for (i = 0; i < n; i++) {
+ j = inlist[i];
+ _mesa_printf(" %u: %u: %f, %f, %f, %f\n",
+ i, j,
+ coord[j][0], coord[j][1], coord[j][2], coord[j][3]);
+ }
+ }
+
tnl->Driver.Render.ClippedPolygon( ctx, inlist, n );
}
More information about the mesa-commit
mailing list