mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
nir: Add a saturated unsigned integer add opcode
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
39198a1238
commit
090e282407
1 changed files with 2 additions and 0 deletions
|
|
@ -462,6 +462,8 @@ def binop_reduce(name, output_size, output_type, src_type, prereduce_expr,
|
|||
|
||||
binop("fadd", tfloat, commutative + associative, "src0 + src1")
|
||||
binop("iadd", tint, commutative + associative, "src0 + src1")
|
||||
binop("uadd_sat", tuint, commutative,
|
||||
"(src0 + src1) < src0 ? UINT64_MAX : (src0 + src1)")
|
||||
binop("fsub", tfloat, "", "src0 - src1")
|
||||
binop("isub", tint, "", "src0 - src1")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue