v3d/packet: fixing TMU_Config_Parameter_2 definition
authorAlejandro Piñeiro <apinheiro@igalia.com>
Sat, 18 Apr 2020 22:12:03 +0000 (00:12 +0200)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Wed, 22 Apr 2020 21:39:41 +0000 (23:39 +0200)
v41 interchanged the size and start values for the Padding, and it
seems that v42 inherited it when adding the LOD Query bit.

Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4677>

src/broadcom/cle/v3d_packet_v33.xml

index b26966bcfe5f5e5efb082df5ada0846896f999ac..a5bac1091d3e5e9efb1b00c5d23ce841c035b274 100644 (file)
   </struct>
 
   <struct name="TMU Config Parameter 2" min_ver="41" max_ver="41">
-    <field name="Pad" size="24" start="8" type="uint"/>
+    <field name="Pad" size="8" start="24" type="uint"/>
     <field name="Op" size="4" start="20" type="TMU Op"/>
     <field name="Offset R" size="4" start="16" type="int"/>
     <field name="Offset T" size="4" start="12" type="int"/>
   </struct>
 
   <struct name="TMU Config Parameter 2" min_ver="42">
-    <field name="Pad" size="23" start="9" type="uint"/>
-    <field name="LOD Query" size="1" start="8" type="bool"/>
+    <field name="Pad" size="7" start="25" type="uint"/>
+    <field name="LOD Query" size="1" start="24" type="bool"/>
     <field name="Op" size="4" start="20" type="TMU Op"/>
     <field name="Offset R" size="4" start="16" type="int"/>
     <field name="Offset T" size="4" start="12" type="int"/>