From: Jonathan Marek Date: Tue, 29 Jan 2019 14:09:07 +0000 (-0500) Subject: nir: add missing vec opcodes in lower_bool_to_float X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4f0a3c9f9eda65c77b295de9a6e7ff17b4658e57;p=mesa.git nir: add missing vec opcodes in lower_bool_to_float Signed-off-by: Jonathan Marek Reviewed-by: Ian Romanick Reviewed-by: Jason Ekstrand --- diff --git a/src/compiler/nir/nir_lower_bool_to_float.c b/src/compiler/nir/nir_lower_bool_to_float.c index 52fc55c6b4c..b1d7e4493e9 100644 --- a/src/compiler/nir/nir_lower_bool_to_float.c +++ b/src/compiler/nir/nir_lower_bool_to_float.c @@ -52,6 +52,12 @@ lower_alu_instr(nir_builder *b, nir_alu_instr *alu) /* Replacement SSA value */ nir_ssa_def *rep = NULL; switch (alu->op) { + case nir_op_vec2: + case nir_op_vec3: + case nir_op_vec4: + /* These we expect to have booleans but the opcode doesn't change */ + break; + case nir_op_b2f32: alu->op = nir_op_fmov; break; case nir_op_b2i32: alu->op = nir_op_fmov; break; case nir_op_f2b1: