asahi: Identify some more fields used with layered
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Mon, 28 Nov 2022 04:55:55 +0000 (23:55 -0500)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Sun, 11 Dec 2022 02:51:04 +0000 (21:51 -0500)
These values depend on the framebuffer width/height and maybe other
stuff. Maybe strides.

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

src/asahi/lib/cmdbuf.xml

index 5757071e51cfef5de77ed4ebe9911b5d1c393ef7..e84ca4de711db5e5a12c39d7dca2d5fbca5fde63 100644 (file)
     <field name="Depth width" start="170:0" size="15" type="uint" default="1" modifier="minus(1)"/>
     <field name="Depth height" start="170:15" size="15" type="uint" default="1" modifier="minus(1)"/>
     <field name="Depth buffer 1" start="172:7" size="33" type="address" modifier="shr(7)"/>
+    <!-- Normally 0, 0x38001 with layered -->
+    <field name="Depth unknown 1" start="176:0" size="32" type="hex"/>
     <field name="Depth acceleration buffer 1" start="178:7" size="33" type="address" modifier="shr(7)"/>
     <field name="Depth buffer 2" start="182:7" size="33" type="address" modifier="shr(7)"/>
     <field name="Depth acceleration buffer 2" start="188:7" size="33" type="address" modifier="shr(7)"/>
+    <!-- Normally 0, 0x38001 with layered -->
+    <field name="Depth unknown 2" start="186:0" size="32" type="hex"/>
     <field name="Stencil buffer 1" start="192:7" size="33" type="address" modifier="shr(7)"/>
+    <!-- Normally 0, 0x10001 with layered -->
+    <field name="Stencil unknown 1" start="196:0" size="32" type="hex"/>
     <field name="Stencil acceleration buffer 1" start="198:7" size="33" type="address" modifier="shr(7)"/>
     <field name="Stencil buffer 2" start="202:7" size="33" type="address" modifier="shr(7)"/>
+    <!-- Normally 0, 0x10001 with layered -->
+    <field name="Stencil unknown 2" start="206:0" size="32" type="hex"/>
     <field name="Stencil acceleration buffer 2" start="208:7" size="33" type="address" modifier="shr(7)"/>
     <!-- Proportional to tile width * tile height * sample count -->
     <field name="Unk 212" start="212:0" size="32" default="0x4" type="hex"/>