pan/mdg: Set types for derivatives
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 6 May 2020 18:17:34 +0000 (14:17 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 12 May 2020 22:30:42 +0000 (22:30 +0000)
Closes #2900

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5014>

src/panfrost/midgard/midgard_derivatives.c

index cfb3c08b295d3f0db5d73051fffe71b3aa2340fe..c9c6c028658402d22f02555e47376030bc442787 100644 (file)
@@ -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,