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@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9827>
This commit is contained in:
Boris Brezillon
2021-03-25 10:18:35 +01:00
parent a1c0cc3fdd
commit 7c08bb5ad0
+10
View File
@@ -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"/>