Mesa (master): panfrost: Define the Surface and Surface-with-stride descriptors

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Mar 26 08:18:54 UTC 2021


Module: Mesa
Branch: master
Commit: 7c08bb5ad0dccd3128b6ad238e0bd6217603ad99
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7c08bb5ad0dccd3128b6ad238e0bd6217603ad99

Author: Boris Brezillon <boris.brezillon at collabora.com>
Date:   Thu Mar 25 10:18:35 2021 +0100

panfrost: Define the Surface and Surface-with-stride descriptors

Right now the code manipulates mali_ptr, but having surface descriptors
properly defined will allow us to use the descriptors allocator when
allocating a midgard texture.

Signed-off-by: Boris Brezillon <boris.brezillon at collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9827>

---

 src/panfrost/lib/midgard.xml | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/panfrost/lib/midgard.xml b/src/panfrost/lib/midgard.xml
index ecab9624645..2645960a406 100644
--- a/src/panfrost/lib/midgard.xml
+++ b/src/panfrost/lib/midgard.xml
@@ -683,6 +683,16 @@
   <struct name="Draw Padding" size="2">
   </struct>
 
+  <struct name="Surface" align="8">
+    <field name="Pointer" size="64" start="0:0" type="address"/>
+  </struct>
+
+  <struct name="Surface With Stride" align="8">
+    <field name="Pointer" size="64" start="0:0" type="address"/>
+    <field name="Row stride" size="32" start="2:0" type="int"/>
+    <field name="Surface stride" size="32" start="3:0" type="int"/>
+  </struct>
+
   <struct name="Midgard Sampler" align="32">
     <field name="Magnify Nearest" size="1" start="0" type="bool" default="true"/>
     <field name="Minify Nearest" size="1" start="1" type="bool" default="true"/>



More information about the mesa-commit mailing list