Commit 4f0a3c9f authored by Jonathan Marek's avatar Jonathan Marek Committed by Jason Ekstrand
Browse files

nir: add missing vec opcodes in lower_bool_to_float

Signed-off-by: Jonathan Marek's avatarJonathan Marek <>
Reviewed-by: default avatarIan Romanick <>
Reviewed-by: Jason Ekstrand's avatarJason Ekstrand <>
parent b0b3de2b
......@@ -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 */
case nir_op_b2f32: alu->op = nir_op_fmov; break;
case nir_op_b2i32: alu->op = nir_op_fmov; break;
case nir_op_f2b1:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment