From 669270ca7e32afe7ed89f47f2c8f29eb83c41035 Mon Sep 17 00:00:00 2001 From: Job Noorman Date: Thu, 12 Jun 2025 12:14:47 +0200 Subject: [PATCH] ir3: add support for u2u64 Signed-off-by: Job Noorman Part-of: --- src/freedreno/ir3/ir3_compiler_nir.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/freedreno/ir3/ir3_compiler_nir.c b/src/freedreno/ir3/ir3_compiler_nir.c index fe1cb7462cd..4f5052e23a1 100644 --- a/src/freedreno/ir3/ir3_compiler_nir.c +++ b/src/freedreno/ir3/ir3_compiler_nir.c @@ -653,6 +653,12 @@ emit_alu(struct ir3_context *ctx, nir_alu_instr *alu) dst = create_cov(ctx, dst_sz, src[0], bs[0], alu->op); break; + case nir_op_u2u64: + assert(dst_sz == 1); + dst.rpts[0] = ir3_64b(b, ir3_MOV(b, src[0].rpts[0], TYPE_U32), + create_immed_shared(b, 0, use_shared)); + break; + case nir_op_fquantize2f16: dst = create_cov(ctx, dst_sz, create_cov(ctx, dst_sz, src[0], 32, nir_op_f2f16_rtne),