From: Alyssa Rosenzweig Date: Fri, 30 Aug 2019 17:44:42 +0000 (-0700) Subject: pan/midgard: csel_swizzle with mir get swizzle X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b56399fcd2f074f92954fdeacf760022350aaf90;p=mesa.git pan/midgard: csel_swizzle with mir get swizzle Signed-off-by: Alyssa Rosenzweig --- 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 =