diff options
author | Brian Paul <brianp@vmware.com> | 2009-05-01 17:52:23 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-05-01 18:35:59 -0600 |
commit | 986d4a9ec60ee52067b2d6f81c05f8ec3b8dc8b1 (patch) | |
tree | 57e56971b5de79fd49ebded89d5e7e48800ed4c4 | |
parent | 08bc3d175069988dd41433fdb7362863bcf67573 (diff) |
draw: added some inf/nan debug code (disabled)
-rw-r--r-- | 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 dbbc33fffa..f2368dde5c 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]; |