diff options
author | Jason Ekstrand <[email protected]> | 2014-11-13 17:19:20 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-01-15 07:20:20 -0800 |
commit | 1d83a8eb7af0c4b2cf71642cd901686d508a3aa1 (patch) | |
tree | b283483bd90c9447828d163b382e61aeca5dd0e0 /src | |
parent | a1c259d6668bf934a79e7815dff3636783adea9f (diff) |
nir: Add neg, abs, and sat opcodes
Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/glsl/nir/nir_opcodes.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/glsl/nir/nir_opcodes.h b/src/glsl/nir/nir_opcodes.h index 35d4634ec9a..c8230b32df0 100644 --- a/src/glsl/nir/nir_opcodes.h +++ b/src/glsl/nir/nir_opcodes.h @@ -59,10 +59,15 @@ UNOP(fmov, nir_type_float) UNOP(imov, nir_type_int) +UNOP(ineg, nir_type_int) +UNOP(fneg, nir_type_float) UNOP(inot, nir_type_int) /* invert every bit of the integer */ UNOP(fnot, nir_type_float) /* (src == 0.0) ? 1.0 : 0.0 */ UNOP(fsign, nir_type_float) UNOP(isign, nir_type_int) +UNOP(iabs, nir_type_int) +UNOP(fabs, nir_type_float) +UNOP(fsat, nir_type_float) UNOP(frcp, nir_type_float) UNOP(frsq, nir_type_float) UNOP(fsqrt, nir_type_float) |