pan/bi: Model Valhall image loads
authorAlyssa Rosenzweig <alyssa@collabora.com>
Wed, 30 Mar 2022 19:52:09 +0000 (15:52 -0400)
committerAlyssa Rosenzweig <alyssa@collabora.com>
Thu, 7 Apr 2022 13:27:32 +0000 (09:27 -0400)
Like LD_ATTR_TEX.

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

src/panfrost/bifrost/ISA.xml

index 1767090811784ea6b1c31ba48a9095fb7f6c543b..c69be0b3203d2e729fa19de3b03d09deda63226f 100644 (file)
     </mod>
   </ins>
 
+  <ins name="+LD_TEX" pseudo="true" staging="w=format" message="attribute">
+    <src start="0"/>
+    <src start="3"/>
+    <src start="6"/>
+    <mod name="register_format" size="4">
+      <opt>f16</opt>
+      <opt>f32</opt>
+      <opt>s32</opt>
+      <opt>u32</opt>
+      <opt>s16</opt>
+      <opt>u16</opt>
+      <opt>f64</opt>
+      <opt>i64</opt>
+      <opt>auto</opt>
+    </mod>
+    <mod name="vecsize" start="11" size="2">
+      <opt>none</opt>
+      <opt>v2</opt>
+      <opt>v3</opt>
+      <opt>v4</opt>
+    </mod>
+  </ins>
+
+  <ins name="+LD_TEX_IMM" pseudo="true" staging="w=format" message="attribute">
+    <src start="0"/>
+    <src start="3"/>
+    <immediate name="texture_index" start="6" size="4"/>
+    <mod name="register_format" size="4">
+      <opt>f16</opt>
+      <opt>f32</opt>
+      <opt>s32</opt>
+      <opt>u32</opt>
+      <opt>s16</opt>
+      <opt>u16</opt>
+      <opt>f64</opt>
+      <opt>i64</opt>
+      <opt>auto</opt>
+    </mod>
+    <mod name="vecsize" start="11" size="2">
+      <opt>none</opt>
+      <opt>v2</opt>
+      <opt>v3</opt>
+      <opt>v4</opt>
+    </mod>
+  </ins>
+
 </bifrost>