Mesa (main): panfrost: Flesh out tiler heap descriptor
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Feb 8 20:35:40 UTC 2022
Module: Mesa
Branch: main
Commit: d70a48a706a750a1e8f86f73a757e4af43d563b0
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d70a48a706a750a1e8f86f73a757e4af43d563b0
Author: Alyssa Rosenzweig <alyssa at collabora.com>
Date: Wed Feb 2 18:22:36 2022 -0500
panfrost: Flesh out tiler heap descriptor
Merged with the Buffer descriptor, hence why it shares a type nibble. However,
Bifrost uses a dedicated tiler heap descriptor, and I see no benefit to merging.
So pretending it's a dedicated descriptor on Valhall too allows us to reuse the
Bifrost code with no modifications.
Signed-off-by: Alyssa Rosenzweig <alyssa at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14935>
---
src/panfrost/lib/genxml/v9.xml | 20 +++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)
diff --git a/src/panfrost/lib/genxml/v9.xml b/src/panfrost/lib/genxml/v9.xml
index e2a2c8b0624..0b8500ec8ec 100644
--- a/src/panfrost/lib/genxml/v9.xml
+++ b/src/panfrost/lib/genxml/v9.xml
@@ -1173,8 +1173,26 @@
<field name="Clear" size="128" start="12:0" type="RT Clear"/>
</struct>
+ <enum name="Chunk Size">
+ <value name="256 KiB" value="0"/>
+ <value name="512 KiB" value="1"/>
+ <value name="1 MiB" value="2"/>
+ <value name="2 MiB" value="3"/>
+ </enum>
+
+ <enum name="Chunk Partition">
+ <value name="Dynamic" value="0"/>
+ <value name="Static 25%" value="1"/>
+ <value name="Static 50%" value="2"/>
+ <value name="Static 75%" value="3"/>
+ </enum>
+
+ <!-- Actually a buffer descriptor, split out for backwards compatibility.-->
<struct name="Tiler Heap" align="32">
- <field name="Unknown" size="32" start="0:0" type="hex" default="0x329"/>
+ <field name="Type" size="4" start="0:0" type="Descriptor Type" default="Buffer"/>
+ <field name="Buffer type" size="4" start="0:4" type="Buffer Type" default="Tiler heap"/>
+ <field name="Chunk size" size="2" start="0:8" type="Chunk Size" default="2 MiB"/>
+ <field name="Partitioning" size="2" start="0:10" type="Chunk Partition" default="Dynamic"/>
<field name="Size" size="32" start="1:0" type="uint" modifier="align(4096)"/>
<field name="Base" size="64" start="2:0" type="address"/>
<field name="Bottom" size="64" start="4:0" type="address"/>
More information about the mesa-commit
mailing list