From: Alyssa Rosenzweig Date: Tue, 26 Mar 2019 04:36:58 +0000 (+0000) Subject: panfrost/midgard: Handle i2b constant X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=12d1d99feeaf52cd144c0c428b8cde6e815242be;p=mesa.git panfrost/midgard: Handle i2b constant Fixes dEQP-GLES2.functional.shaders.conversions.scalar_to_scalar.int_to_bool_fragment Signed-off-by: Alyssa Rosenzweig --- diff --git a/src/gallium/drivers/panfrost/midgard/midgard_compile.c b/src/gallium/drivers/panfrost/midgard/midgard_compile.c index d6ed0008596..3dd21d0390d 100644 --- a/src/gallium/drivers/panfrost/midgard/midgard_compile.c +++ b/src/gallium/drivers/panfrost/midgard/midgard_compile.c @@ -1174,7 +1174,7 @@ emit_alu(compiler_context *ctx, nir_alu_instr *instr) } ins.alu.src2 = vector_alu_srco_unsigned(blank_alu_src_xxxx); - } else if (instr->op == nir_op_f2b32) { + } else if (instr->op == nir_op_f2b32 || instr->op == nir_op_i2b32) { ins.ssa_args.inline_constant = false; ins.ssa_args.src1 = SSA_FIXED_REGISTER(REGISTER_CONSTANT); ins.has_constants = true;