tgsi/exec: fix the udiv and umod instructions
authorZack Rusin <zackr@vmware.com>
Wed, 10 Apr 2013 22:25:18 +0000 (15:25 -0700)
committerZack Rusin <zackr@vmware.com>
Wed, 17 Apr 2013 06:38:46 +0000 (23:38 -0700)
commit88db6f0a73cd988b14e95e5f506b4e5ac355f065
treed7362df706fc849127b4ff45a3e38603e54f16ea
parentb8f6858fcb762b47ca2ad30efd286bd203042f17
tgsi/exec: fix the udiv and umod instructions

Same as with llvmpipe: we can't be divind/moding by zero and we
need to make sure that dividing/moding by zero produces 0xffffffff.

Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/tgsi/tgsi_exec.c