From: Alyssa Rosenzweig Date: Wed, 6 May 2020 18:17:34 +0000 (-0400) Subject: pan/mdg: Set types for derivatives X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bac29316b06a5bbee396c70c53ed0640af67c064;p=mesa.git pan/mdg: Set types for derivatives Closes #2900 Signed-off-by: Alyssa Rosenzweig Part-of: --- 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,