draw: added some inf/nan debug code (disabled)
authorBrian Paul <brianp@vmware.com>
Fri, 1 May 2009 23:52:23 +0000 (17:52 -0600)
committerBrian Paul <brianp@vmware.com>
Sat, 2 May 2009 00:35:59 +0000 (18:35 -0600)
src/gallium/auxiliary/draw/draw_vs_exec.c

index dbbc33fffa72fce4d41e93ffbb75676ce0a96245..f2368dde5c291771d4ab34d69c943b6b971e7631 100644 (file)
@@ -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];