diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-03-26 04:36:58 +0000 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-03-26 23:36:09 +0000 |
commit | 12d1d99feeaf52cd144c0c428b8cde6e815242be (patch) | |
tree | 16753222a5bcb9e75194c0cc703c31a7153a096f /src/gallium | |
parent | 7b78af8e00271ff7f52b04591bbf3bec6c382c98 (diff) |
panfrost/midgard: Handle i2b constant
Fixes
dEQP-GLES2.functional.shaders.conversions.scalar_to_scalar.int_to_bool_fragment
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/panfrost/midgard/midgard_compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |