From: Brian Paul Date: Tue, 31 Mar 2009 22:12:17 +0000 (-0600) Subject: draw: added Nan/Inf assertion in debug code X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ef6f1027ff0b6027976a7467b8461ffdd53ce2a8;p=mesa.git draw: added Nan/Inf assertion in debug code --- diff --git a/src/gallium/auxiliary/draw/draw_vs_exec.c b/src/gallium/auxiliary/draw/draw_vs_exec.c index b3200df8112..dbbc33fffa7 100644 --- a/src/gallium/auxiliary/draw/draw_vs_exec.c +++ b/src/gallium/auxiliary/draw/draw_vs_exec.c @@ -151,6 +151,7 @@ vs_exec_run_linear( struct draw_vertex_shader *shader, output[slot][1], output[slot][2], output[slot][3]); + assert(!util_is_inf_or_nan(output[slot][0])); } #endif