pan/bi: Fix duplicated source in ADD.v2f16
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 1 Apr 2020 20:51:17 +0000 (16:51 -0400)
committerMarge Bot <eric+marge@anholt.net>
Sun, 5 Apr 2020 23:26:04 +0000 (23:26 +0000)
Typo.

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

src/panfrost/bifrost/bi_pack.c

index 9ec31044f71507998967a89deab8017fc1c09e18..8e83358e54696e513ba86111ed2307d39e56bd16 100644 (file)
@@ -551,7 +551,7 @@ bi_pack_fma_addmin_f16(bi_instruction *ins, struct bi_registers *regs)
 
         unsigned abs_0 = ins->src_abs[0], abs_1 = ins->src_abs[1];
         unsigned src_0 = bi_get_src(ins, regs, 0, true);
-        unsigned src_1 = bi_get_src(ins, regs, 0, true);
+        unsigned src_1 = bi_get_src(ins, regs, 1, true);
         bool l = false;
 
         if (!abs_0 && !abs_1) {