summaryrefslogtreecommitdiffstats
path: root/src/panfrost/midgard
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-08-30 10:44:42 -0700
committerAlyssa Rosenzweig <[email protected]>2019-08-30 15:50:25 -0700
commitb56399fcd2f074f92954fdeacf760022350aaf90 (patch)
treee1c3300102f2a44c3c5c0d71d629440c62d2e159 /src/panfrost/midgard
parent28622f90882d9e13530bea9547a0793b1f4e7236 (diff)
pan/midgard: csel_swizzle with mir get swizzle
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/panfrost/midgard')
-rw-r--r--src/panfrost/midgard/mir.c3
1 files changed, 3 insertions, 0 deletions
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 =