pan/midgard: Add perspective ops to mir_get_swizzle
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 15 Oct 2019 20:19:08 +0000 (16:19 -0400)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 16 Oct 2019 01:41:12 +0000 (21:41 -0400)
I really need to just make this a table..

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/panfrost/midgard/mir.c

index 33337d723b68cde503ea86c7463918e295f306a4..b9df0527e3faa6121f412160aada510f0cc55199 100644 (file)
@@ -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;