From 7cdcee3bed2c8a0305f24cfabe13ecb69b55e7ac Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Tue, 29 Dec 2015 16:06:19 -0800 Subject: [PATCH] nir/spirv/glsl450: Enumerate more built-in opcodes. --- src/glsl/nir/spirv/vtn_glsl450.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/glsl/nir/spirv/vtn_glsl450.c b/src/glsl/nir/spirv/vtn_glsl450.c index d0e98577884..820aed7f66a 100644 --- a/src/glsl/nir/spirv/vtn_glsl450.c +++ b/src/glsl/nir/spirv/vtn_glsl450.c @@ -88,6 +88,7 @@ handle_glsl450_alu(struct vtn_builder *b, enum GLSLstd450 entrypoint, case GLSLstd450Trunc: op = nir_op_ftrunc; break; case GLSLstd450FAbs: op = nir_op_fabs; break; case GLSLstd450FSign: op = nir_op_fsign; break; + case GLSLstd450SSign: op = nir_op_isign; break; case GLSLstd450Floor: op = nir_op_ffloor; break; case GLSLstd450Ceil: op = nir_op_fceil; break; case GLSLstd450Fract: op = nir_op_ffract; break; @@ -272,7 +273,15 @@ handle_glsl450_alu(struct vtn_builder *b, enum GLSLstd450 entrypoint, case GLSLstd450Acos: case GLSLstd450Atan: case GLSLstd450Atan2: + case GLSLstd450ModfStruct: + case GLSLstd450NMin: + case GLSLstd450NMax: + case GLSLstd450NClamp: case GLSLstd450Frexp: + case GLSLstd450FrexpStruct: + case GLSLstd450FindILsb: + case GLSLstd450FindSMsb: + case GLSLstd450FindUMsb: case GLSLstd450PackDouble2x32: case GLSLstd450UnpackDouble2x32: case GLSLstd450IMix: -- 2.30.2