From 01ba96e0593251aed33bc44960d8f3ae0013b9a2 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 4 Jan 2016 17:16:44 -0800 Subject: [PATCH] nir/spirv: Add support for msb/lsb opcodes --- src/glsl/nir/spirv/vtn_glsl450.c | 7 ++++--- 1 file 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: -- 2.30.2