svga: properly implement TRUNC instruction
authorBrian Paul <brianp@vmware.com>
Fri, 29 Jun 2012 22:59:46 +0000 (16:59 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 5 Jul 2012 14:03:19 +0000 (08:03 -0600)
commit30f8575fde673f2279aee1fbe89e7df07cb81081
tree59625501e0f6949b05cafa1266a6f4014c3afccd
parent0bd3a75de9002e73214cde883691da558db7bc70
svga: properly implement TRUNC instruction

Was previously implemented with FLOOR.
Fixes quite a few piglit tests of float->int conversion, integer
division, etc.

v2: clean up left over debug/devel code, per Jose

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