nir: Add neg, abs, and sat opcodes
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 14 Nov 2014 01:19:20 +0000 (17:19 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 15 Jan 2015 15:20:20 +0000 (07:20 -0800)
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/glsl/nir/nir_opcodes.h

index 35d4634ec9ab9e16574b41d131b65d157089d04e..c8230b32df01b4c9472687b2ae14ec67e2c310ba 100644 (file)
 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)