svga: fix CMP translation for vertex shaders
authorBrian Paul <brianp@vmware.com>
Fri, 29 Jun 2012 23:10:58 +0000 (17:10 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 5 Jul 2012 14:03:19 +0000 (08:03 -0600)
commitd594f72e1615cda47b838046df4590316da3d1a9
tree2b1e4f367d8ff81b7fb340fda49041e7b0041132
parent30f8575fde673f2279aee1fbe89e7df07cb81081
svga: fix CMP translation for vertex shaders

Converting CMP to SLT+LRP didn't work when src2 or src3 was Inf/NaN.
That's the case for GLSL sqrt(0).  sqrt(0) actually happens in many
piglit auto-generated tests that use the distance() function.

v2: remove debug/devel code, per Jose

Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/gallium/drivers/svga/svga_tgsi_insn.c