asahi: Add layout enum to XML
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Sun, 30 May 2021 21:49:35 +0000 (03:19 +0530)
committerMarge Bot <eric+marge@anholt.net>
Tue, 1 Jun 2021 01:31:02 +0000 (01:31 +0000)
Used for textures and render targets. There are more values here, probably for
other tiling schemes and compression.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11086>

src/asahi/lib/cmdbuf.xml

index 74c2795..c1a9feb 100644 (file)
     <value name="Quad strip" value="15"/> <!-- guess, confirm with piglit later XXX -->
   </enum>
 
+  <enum name="Layout">
+    <value name="Linear" value="0"/>
+    <!-- Morton order with 64x64 tiles -->
+    <value name="Tiled 64x64" value="2"/>
+  </enum>
+
   <struct name="Varying header" size="8">
     <field name="Slots 1" size="8" start="0:0" type="uint"/>
     <field name="Slots 2" size="8" start="0:8" type="uint"/>