From bac29316b06a5bbee396c70c53ed0640af67c064 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 6 May 2020 14:17:34 -0400 Subject: [PATCH] pan/mdg: Set types for derivatives Closes #2900 Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/midgard/midgard_derivatives.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/panfrost/midgard/midgard_derivatives.c b/src/panfrost/midgard/midgard_derivatives.c index cfb3c08b295..c9c6c028658 100644 --- a/src/panfrost/midgard/midgard_derivatives.c +++ b/src/panfrost/midgard/midgard_derivatives.c @@ -102,7 +102,9 @@ midgard_emit_derivatives(compiler_context *ctx, nir_alu_instr *instr) .type = TAG_TEXTURE_4, .mask = mask_of(nr_components), .dest = nir_dest_index(&instr->dest.dest), + .dest_type = nir_type_float32, .src = { nir_src_index(ctx, &instr->src[0].src), ~0, ~0, ~0 }, + .src_types = { nir_type_float32, nir_type_float32 }, .texture = { .op = mir_derivative_op(instr->op), .format = MALI_TEX_2D, -- 2.30.2