ir_to_mesa: Don't assertion fail on integer modulus.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 29 Sep 2011 00:37:50 +0000 (17:37 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 3 Oct 2011 00:00:00 +0000 (17:00 -0700)
commite66fc1cb035caa5375c4ef3578420476ea94d371
tree1e43d051a0c6337f89be92ef2121652cefe068f0
parentd64c6d2ffc086bde7a025269b80c0980f7d908f1
ir_to_mesa: Don't assertion fail on integer modulus.

Drivers implementing GLSL 1.30 want to do integer modulus, and until we
can stop generating code via ir_to_mesa, it's easier to make it silently
generate rubbish code.  Multiply will do.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Tested-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/program/ir_to_mesa.cpp