diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-08-30 10:44:42 -0700 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-08-30 15:50:25 -0700 |
commit | b56399fcd2f074f92954fdeacf760022350aaf90 (patch) | |
tree | e1c3300102f2a44c3c5c0d71d629440c62d2e159 /src/panfrost/midgard | |
parent | 28622f90882d9e13530bea9547a0793b1f4e7236 (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.c | 3 |
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 = |