Mesa (main): pan/bi: Model MKVEC.v2i8

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jun 21 22:55:23 UTC 2022


Module: Mesa
Branch: main
Commit: 2833d0472af6ee29f25e863e765d85cadc33ad0a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2833d0472af6ee29f25e863e765d85cadc33ad0a

Author: Alyssa Rosenzweig <alyssa at collabora.com>
Date:   Fri Jun 17 11:53:53 2022 -0400

pan/bi: Model MKVEC.v2i8

Valhall does not have Bifrost's 4-source MKVEC.v4i8. Instead, it has a (somewhat
limtied) 3-source MKVEC.v2i8. The full MKVEC.v4i8 may be lowered to a pair of
MKVEC.v2i8 instructions.

For good code quality on both Bifrost and Valhall, we need to model both
instructions in their full generality.

Signed-off-by: Alyssa Rosenzweig <alyssa at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17101>

---

 src/panfrost/bifrost/ISA.xml | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/src/panfrost/bifrost/ISA.xml b/src/panfrost/bifrost/ISA.xml
index 5456153f5e2..85ec0b2c364 100644
--- a/src/panfrost/bifrost/ISA.xml
+++ b/src/panfrost/bifrost/ISA.xml
@@ -8817,6 +8817,24 @@
     </mod>
   </ins>
 
+  <ins name="*MKVEC.v2i8" pseudo="true">
+    <src start="0"/>
+    <src start="3"/>
+    <src start="6"/>
+    <mod name="lane0" start="12" size="2" default="b0">
+      <opt>b0</opt>
+      <opt>b1</opt>
+      <opt>b2</opt>
+      <opt>b3</opt>
+    </mod>
+    <mod name="lane1" start="13" size="2" default="b0">
+      <opt>b0</opt>
+      <opt>b1</opt>
+      <opt>b2</opt>
+      <opt>b3</opt>
+    </mod>
+  </ins>
+
   <ins name="+COLLECT.i32" pseudo="true"/>
 
   <ins name="+SPLIT.i32" pseudo="true">



More information about the mesa-commit mailing list