freedreno/layout: layout simplifications and pitch from level 0 pitch
[mesa.git] / src / freedreno / registers / a4xx.xml
index 596f722e94faf58beb0a2c794b7da55cdefe295c..634e808d3d1b382807786fa5b072bf2176c400cf 100644 (file)
@@ -268,18 +268,6 @@ xsi:schemaLocation="http://nouveau.freedesktop.org/ rules-ng.xsd">
        <value name="TFMT4_NONE"                  value="0xff"/>
 </enum>
 
-<enum name="a4xx_tex_fetchsize">
-       <doc>
-               Size pixel to fetch, in bytes.  Doesn't seem to be required, setting
-               it to 0x0 seems to work ok, but may be less optimal.
-       </doc>
-       <value name="TFETCH4_1_BYTE"  value="0"/>
-       <value name="TFETCH4_2_BYTE"  value="1"/>
-       <value name="TFETCH4_4_BYTE"  value="2"/>
-       <value name="TFETCH4_8_BYTE"  value="3"/>
-       <value name="TFETCH4_16_BYTE" value="4"/>
-</enum>
-
 <enum name="a4xx_depth_format">
        <value name="DEPTH4_NONE" value="0"/>
        <value name="DEPTH4_16" value="1"/>
@@ -2346,7 +2334,8 @@ perhaps they should be taken with a grain of salt
                <bitfield name="WIDTH" low="15" high="29" type="uint"/>
        </reg32>
        <reg32 offset="2" name="2">
-               <bitfield name="FETCHSIZE" low="0" high="3" type="a4xx_tex_fetchsize"/>
+               <!-- minimum pitch (for mipmap levels): log2(pitchalign / 32) -->
+               <bitfield name="PITCHALIGN" low="0" high="3" type="uint"/>
                <doc>Pitch in bytes (so actually stride)</doc>
                <bitfield name="PITCH" low="9" high="29" type="uint"/>
                <bitfield name="SWAP" low="30" high="31" type="a3xx_color_swap"/>