draw: handle nan clipdistance
authorZack Rusin <zackr@vmware.com>
Thu, 15 Aug 2013 17:10:22 +0000 (13:10 -0400)
committerZack Rusin <zackr@vmware.com>
Thu, 15 Aug 2013 20:26:32 +0000 (16:26 -0400)
commit7115bc3940c4c1952d503d9d56ebe6fd1fb11645
tree53e95c9973f39b3baaf476b968725617c11ce02d
parent035bf2198368d3fa69387788a63039d71319f0bf
draw: handle nan clipdistance

If clipdistance for one of the vertices is nan (or inf) then the
entire primitive should be discarded.

Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/draw/draw_cliptest_tmp.h
src/gallium/auxiliary/draw/draw_llvm.c
src/gallium/auxiliary/draw/draw_pipe_clip.c
src/gallium/auxiliary/gallivm/lp_bld_arit.c
src/gallium/auxiliary/gallivm/lp_bld_arit.h