From: Jason Ekstrand Date: Wed, 6 Jan 2016 22:46:31 +0000 (-0800) Subject: nir/opcodes: Fix the folding expression for usub_borrow X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1f503603d3b41c2f4b502dbb8c31916c5b521f14;p=mesa.git nir/opcodes: Fix the folding expression for usub_borrow --- diff --git a/src/glsl/nir/nir_opcodes.py b/src/glsl/nir/nir_opcodes.py index 1cd01a4fe92..4bc6d16cbad 100644 --- a/src/glsl/nir/nir_opcodes.py +++ b/src/glsl/nir/nir_opcodes.py @@ -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")