Mesa (master): draw: added some inf/nan debug code (disabled)

Brian Paul brianp at kemper.freedesktop.org
Sat May 2 00:39:02 UTC 2009


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

Author: Brian Paul <brianp at vmware.com>
Date:   Fri May  1 17:52:23 2009 -0600

draw: added some inf/nan debug code (disabled)

---

 src/gallium/auxiliary/draw/draw_vs_exec.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/gallium/auxiliary/draw/draw_vs_exec.c b/src/gallium/auxiliary/draw/draw_vs_exec.c
index dbbc33f..f2368dd 100644
--- a/src/gallium/auxiliary/draw/draw_vs_exec.c
+++ b/src/gallium/auxiliary/draw/draw_vs_exec.c
@@ -114,6 +114,12 @@ vs_exec_run_linear( struct draw_vertex_shader *shader,
 #endif
 
          for (slot = 0; slot < shader->info.num_inputs; slot++) {
+#if 0
+            assert(!util_is_inf_or_nan(input[slot][0]));
+            assert(!util_is_inf_or_nan(input[slot][1]));
+            assert(!util_is_inf_or_nan(input[slot][2]));
+            assert(!util_is_inf_or_nan(input[slot][3]));
+#endif
             machine->Inputs[slot].xyzw[0].f[j] = input[slot][0];
             machine->Inputs[slot].xyzw[1].f[j] = input[slot][1];
             machine->Inputs[slot].xyzw[2].f[j] = input[slot][2];




More information about the mesa-commit mailing list