Mesa (main): panfrost: Add empty tile flags to GenXML

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Nov 30 15:56:07 UTC 2021


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

Author: Alyssa Rosenzweig <alyssa at collabora.com>
Date:   Mon Nov 29 14:28:45 2021 -0500

panfrost: Add empty tile flags to GenXML

These flags control special CRC handling for empty tiles using the CRC
clear colour field added on Bifrost. Their use depends on CRC being
used. We missed these flags earlier; let's add them since they are used
by the Valhall DDK but are not new to Valhall.

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

---

 src/panfrost/lib/genxml/v6.xml | 2 ++
 src/panfrost/lib/genxml/v7.xml | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/src/panfrost/lib/genxml/v6.xml b/src/panfrost/lib/genxml/v6.xml
index d9004e293f6..84d891e08aa 100644
--- a/src/panfrost/lib/genxml/v6.xml
+++ b/src/panfrost/lib/genxml/v6.xml
@@ -1024,6 +1024,8 @@
     <field name="Z Preload Enable" size="1" start="12:19" type="bool"/>
     <field name="Z Unload Enable" size="1" start="12:20" type="bool"/>
     <field name="Has ZS CRC Extension" size="1" start="12:21" type="bool"/>
+    <field name="Empty Tile Read Enable" size="1" start="12:28" type="bool"/>
+    <field name="Empty Tile Write Enable" size="1" start="12:29" type="bool"/>
     <field name="CRC Read Enable" size="1" start="12:30" type="bool"/>
     <field name="CRC Write Enable" size="1" start="12:31" type="bool"/>
     <field name="Z Clear" size="32" start="13:0" type="float"/>
diff --git a/src/panfrost/lib/genxml/v7.xml b/src/panfrost/lib/genxml/v7.xml
index 027b3c532c5..5a07dad3b5c 100644
--- a/src/panfrost/lib/genxml/v7.xml
+++ b/src/panfrost/lib/genxml/v7.xml
@@ -1072,6 +1072,8 @@
     <field name="Z Preload Enable" size="1" start="12:19" type="bool"/>
     <field name="Z Unload Enable" size="1" start="12:20" type="bool"/>
     <field name="Has ZS CRC Extension" size="1" start="12:21" type="bool"/>
+    <field name="Empty Tile Read Enable" size="1" start="12:28" type="bool"/>
+    <field name="Empty Tile Write Enable" size="1" start="12:29" type="bool"/>
     <field name="CRC Read Enable" size="1" start="12:30" type="bool"/>
     <field name="CRC Write Enable" size="1" start="12:31" type="bool"/>
     <field name="Z Clear" size="32" start="13:0" type="float"/>



More information about the mesa-commit mailing list