From 4f0a3c9f9eda65c77b295de9a6e7ff17b4658e57 Mon Sep 17 00:00:00 2001 From: Jonathan Marek Date: Tue, 29 Jan 2019 09:09:07 -0500 Subject: [PATCH] nir: add missing vec opcodes in lower_bool_to_float Signed-off-by: Jonathan Marek Reviewed-by: Ian Romanick Reviewed-by: Jason Ekstrand --- src/compiler/nir/nir_lower_bool_to_float.c | 6 ++++++ 1 file changed, 6 insertions(+) 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: -- 2.30.2