svga: check for NaN shader immediates
authorBrian Paul <brianp@vmware.com>
Thu, 31 Jan 2013 00:44:25 +0000 (17:44 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 1 Feb 2013 15:00:28 +0000 (08:00 -0700)
commit3cb491534493a52e9a88cb88d31727569afb8167
tree3306310583a86f1b959287781ceb956a06dde9d8
parent9eff5e905ff435c0bf4e00f8c05871d1aadfbbc9
svga: check for NaN shader immediates

The svga device doesn't handle them.  Replace with zeros.
Fixes several piglit tests, such as "glsl-const-builtin-inversesqrt".

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