panfrost: Fix the Maximum anisotropy field in the XML
authorIcecream95 <ixn@disroot.org>
Wed, 16 Dec 2020 10:50:33 +0000 (23:50 +1300)
committerMarge Bot <eric+marge@anholt.net>
Mon, 21 Dec 2020 22:49:28 +0000 (22:49 +0000)
It needs a a minus(1) modifier.

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8149>

src/panfrost/lib/midgard.xml

index 1117674bb02b453c4e85c844c624e0db87e3a77a..ecf82fc1297aece454a0cd4e3a537fbd7adf5149 100644 (file)
     <field name="Compare Function" size="3" start="1:13" type="Func" default="Never"/>
     <field name="Maximum LOD" size="13" start="1:16" type="uint" default="0"/>
     <field name="LOD bias" size="16" start="2:0" type="int" default="0"/>
-    <field name="Maximum anisotropy" size="5" start="2:16" type="uint"/>
+    <field name="Maximum anisotropy" size="5" start="2:16" type="uint" default="1" modifier="minus(1)"/>
     <field name="LOD algorithm" size="2" start="2:24" type="LOD Algorithm" default="Isotropic"/>
     <field name="Border Color R" size="32" start="4:0" type="float" default="0.0"/>
     <field name="Border Color G" size="32" start="5:0" type="float" default="0.0"/>