summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-01-04 17:16:44 -0800
committerJason Ekstrand <[email protected]>2016-01-04 17:37:10 -0800
commit01ba96e0593251aed33bc44960d8f3ae0013b9a2 (patch)
tree87677b1d0ba54adff4443a988da39309512f494d
parentf32370a5362107a1bd6b1392724b2fb0f39a6e8a (diff)
nir/spirv: Add support for msb/lsb opcodes
-rw-r--r--src/glsl/nir/spirv/vtn_glsl450.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/glsl/nir/spirv/vtn_glsl450.c b/src/glsl/nir/spirv/vtn_glsl450.c
index 2d22e37de2a..fd8ec3eb2dc 100644
--- a/src/glsl/nir/spirv/vtn_glsl450.c
+++ b/src/glsl/nir/spirv/vtn_glsl450.c
@@ -270,6 +270,10 @@ handle_glsl450_alu(struct vtn_builder *b, enum GLSLstd450 entrypoint,
return;
}
+ case GLSLstd450FindILsb: op = nir_op_find_lsb; break;
+ case GLSLstd450FindSMsb: op = nir_op_ifind_msb; break;
+ case GLSLstd450FindUMsb: op = nir_op_ufind_msb; break;
+
case GLSLstd450Asin:
case GLSLstd450Acos:
case GLSLstd450Atan:
@@ -277,9 +281,6 @@ handle_glsl450_alu(struct vtn_builder *b, enum GLSLstd450 entrypoint,
case GLSLstd450ModfStruct:
case GLSLstd450Frexp:
case GLSLstd450FrexpStruct:
- case GLSLstd450FindILsb:
- case GLSLstd450FindSMsb:
- case GLSLstd450FindUMsb:
case GLSLstd450PackDouble2x32:
case GLSLstd450UnpackDouble2x32:
case GLSLstd450IMix: