nir/opcodes: Fix the folding expression for usub_borrow
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 6 Jan 2016 22:46:31 +0000 (14:46 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 6 Jan 2016 23:30:53 +0000 (15:30 -0800)
src/glsl/nir/nir_opcodes.py

index 1cd01a4fe92bd4d633272283973dd1658102a75b..4bc6d16cbad7bd879a84d48d0429ae5c7d64b1b3 100644 (file)
@@ -366,7 +366,7 @@ binop_convert("uadd_carry", tbool, tuint, commutative, "src0 + src1 < src0")
 # returns a boolean representing the borrow resulting from the subtraction
 # of the two unsigned arguments.
 
-binop_convert("usub_borrow", tbool, tuint, "", "src1 < src0")
+binop_convert("usub_borrow", tbool, tuint, "", "src0 < src1")
 
 binop("fmod", tfloat, "", "src0 - src1 * floorf(src0 / src1)")
 binop("umod", tuint, "", "src1 == 0 ? 0 : src0 % src1")