summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-10-15 16:19:08 -0400
committerAlyssa Rosenzweig <[email protected]>2019-10-15 21:41:12 -0400
commit47b58199f0d097a9e29bed58c4ddfc84d3bf1278 (patch)
tree9669d5b0a7cde764ee400b0eacb2cb5c90c5b35e /src
parent7db36d94affabd69aaafb2e5f5cdcc12afd1ea74 (diff)
pan/midgard: Add perspective ops to mir_get_swizzle
I really need to just make this a table.. Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/panfrost/midgard/mir.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/panfrost/midgard/mir.c b/src/panfrost/midgard/mir.c
index 33337d723b6..b9df0527e3f 100644
--- a/src/panfrost/midgard/mir.c
+++ b/src/panfrost/midgard/mir.c
@@ -76,6 +76,12 @@ mir_get_swizzle(midgard_instruction *ins, unsigned idx)
case midgard_op_ld_cubemap_coords:
components = 3;
break;
+ case midgard_op_ldst_perspective_division_z:
+ components = 3;
+ break;
+ case midgard_op_ldst_perspective_division_w:
+ components = 4;
+ break;
default:
components = 1;
break;