From: Jason Ekstrand Date: Tue, 5 Jan 2016 01:16:44 +0000 (-0800) Subject: nir/spirv: Add support for msb/lsb opcodes X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=01ba96e0593251aed33bc44960d8f3ae0013b9a2;p=mesa.git nir/spirv: Add support for msb/lsb opcodes --- 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: