nir/opcodes: Fix up uadd_carry and usub_borrow
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 6 Jan 2016 23:30:37 +0000 (15:30 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 8 Jan 2016 00:14:25 +0000 (16:14 -0800)
commitb0d4ee520e20444172d088d11260e656fc1cf12d
tree0a619398df5cec228947214a93d8a96f5b8a7308
parent67b31b3c59a3b950897709d6c472348c4e12951c
nir/opcodes: Fix up uadd_carry and usub_borrow

Both were defined as returning bool but the gpu_shader5 functions are
defined to return int.  Also, we had the parameters for usub borrwo
backwards in the folding expression.

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/glsl/nir/nir_opcodes.py