projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22804de
)
nir/opcodes: Fix the folding expression for usub_borrow
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Wed, 6 Jan 2016 22:46:31 +0000
(14:46 -0800)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Wed, 6 Jan 2016 23:30:53 +0000
(15:30 -0800)
src/glsl/nir/nir_opcodes.py
patch
|
blob
|
history
diff --git
a/src/glsl/nir/nir_opcodes.py
b/src/glsl/nir/nir_opcodes.py
index 1cd01a4fe92bd4d633272283973dd1658102a75b..4bc6d16cbad7bd879a84d48d0429ae5c7d64b1b3 100644
(file)
--- 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, "", "src
1 < src0
")
+binop_convert("usub_borrow", tbool, tuint, "", "src
0 < src1
")
binop("fmod", tfloat, "", "src0 - src1 * floorf(src0 / src1)")
binop("umod", tuint, "", "src1 == 0 ? 0 : src0 % src1")