panfrost: Fix negative LOD bias support on Bifrost

The LOD bias can be negative, so mark it as signed in the XML.

The code in pan_cmdstream.c already calls FIXED_16 with
'allow_negative' set to true, so doesn't need to be adjusted.

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8130>
This commit is contained in:
Icecream95 2020-12-16 23:14:19 +13:00 committed by Marge Bot
parent 3a2a005404
commit 1baddfcff6

View file

@ -707,7 +707,7 @@
<field name="Minimum LOD" size="13" start="1:0" type="uint" default="0"/>
<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="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="Anisotropy" size="1" start="2:25" type="bool"/>
<field name="Border Color R" size="32" start="4:0" type="float" default="0.0"/>