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:
@@ -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"/>
|
||||
|
||||
Reference in New Issue
Block a user