nir/spirv/GLSL450: Add support for SAbs
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 30 Dec 2015 22:41:13 +0000 (14:41 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 30 Dec 2015 22:41:49 +0000 (14:41 -0800)
src/glsl/nir/spirv/vtn_glsl450.c

index 8905bdfbddefe5fbd658f5ab1e8b6a052f290e24..2d22e37de2a0a723eb5a13c1a346df9a1b9bfc11 100644 (file)
@@ -87,6 +87,7 @@ handle_glsl450_alu(struct vtn_builder *b, enum GLSLstd450 entrypoint,
    case GLSLstd450RoundEven:   op = nir_op_fround_even;   break;
    case GLSLstd450Trunc:       op = nir_op_ftrunc;        break;
    case GLSLstd450FAbs:        op = nir_op_fabs;          break;
+   case GLSLstd450SAbs:        op = nir_op_iabs;          break;
    case GLSLstd450FSign:       op = nir_op_fsign;         break;
    case GLSLstd450SSign:       op = nir_op_isign;         break;
    case GLSLstd450Floor:       op = nir_op_ffloor;        break;