Mesa (main): asahi: Deflake addresses

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Nov 18 23:46:49 UTC 2021


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

Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Sat Nov 13 13:53:34 2021 -0500

asahi: Deflake addresses

Reported by Dougall.

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

---

 src/asahi/lib/cmdbuf.xml | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/asahi/lib/cmdbuf.xml b/src/asahi/lib/cmdbuf.xml
index 0ee4214eb65..f7e05c52aa0 100644
--- a/src/asahi/lib/cmdbuf.xml
+++ b/src/asahi/lib/cmdbuf.xml
@@ -479,7 +479,7 @@
     <value name="Depth" value="0xC"/>
   </enum>
 
-  <struct name="IOGPU Header" size="64">
+  <struct name="IOGPU Header" size="192">
     <field name="Unk 0" start="0:0" size="32" default="0x10000" type="hex"/>
     <field name="Total size" start="1:0" size="32" type="uint"/>
     <field name="Unk 2" start="2:0" size="32" default="0x7" type="hex"/>
@@ -490,6 +490,10 @@
     <field name="Unk 4" start="12:0" size="32" default="0x30" type="hex"/>
     <field name="Unk 5" start="13:0" size="32" default="0x01" type="hex"/>
     <field name="Encoder" start="14:0" size="64" type="address"/>
+    <!-- if either deflake address is null, rendering gets flaky for high
+         geometry counts -->
+    <field name="Deflake 1" start="38:0" size="64" type="address"/>
+    <field name="Deflake 2" start="40:0" size="64" type="address"/>
   </struct>
 
   <struct name="IOGPU Attachment" size="24">



More information about the mesa-commit mailing list