From b56399fcd2f074f92954fdeacf760022350aaf90 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Fri, 30 Aug 2019 10:44:42 -0700 Subject: [PATCH] pan/midgard: csel_swizzle with mir get swizzle Signed-off-by: Alyssa Rosenzweig --- src/panfrost/midgard/mir.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/panfrost/midgard/mir.c b/src/panfrost/midgard/mir.c index 2e0a9af93c4..ff552397bf8 100644 --- a/src/panfrost/midgard/mir.c +++ b/src/panfrost/midgard/mir.c @@ -42,6 +42,9 @@ unsigned mir_get_swizzle(midgard_instruction *ins, unsigned idx) { if (ins->type == TAG_ALU_4) { + if (idx == 2) + return ins->csel_swizzle; + unsigned b = (idx == 0) ? ins->alu.src1 : ins->alu.src2; midgard_vector_alu_src s = -- 2.30.2