summaryrefslogtreecommitdiffstats
path: root/src/broadcom/cle
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2017-11-02 12:19:10 -0700
committerEric Anholt <[email protected]>2017-11-07 09:40:25 -0800
commita266f78741bfdf6802b49df77d4611d6084408e9 (patch)
treec2dacd7f259b047844e25468ad7865b436ce5b91 /src/broadcom/cle
parent73ec70bf13a939e687ddf9c2a7e08962042a09eb (diff)
broadcom/vc5: Fix mipmap filtering enums.
The ordering of the values was even less obvious than I thought, with both the mip filter and the min filter being in different bits depending on whether the mip filter is none. Fixes piglit fs-textureLod-miplevels.shader_test
Diffstat (limited to 'src/broadcom/cle')
-rw-r--r--src/broadcom/cle/v3d_packet_v33.xml26
1 files changed, 24 insertions, 2 deletions
diff --git a/src/broadcom/cle/v3d_packet_v33.xml b/src/broadcom/cle/v3d_packet_v33.xml
index c5f7a3d2514..2b0665537e8 100644
--- a/src/broadcom/cle/v3d_packet_v33.xml
+++ b/src/broadcom/cle/v3d_packet_v33.xml
@@ -69,6 +69,29 @@
<value name="TRIANGLE_FAN_TF" value="22"/>
</enum>
+ <enum name="TMU Filter" prefix="V3D_TMU_FILTER">
+ <!-- Names are mip filter, min filter, mag filter -->
+ <value name="MIN_LIN_MIP_NONE_MAG_LIN" value="0"/>
+ <value name="MIN_LIN_MIP_NONE_MAG_NEAR" value="1"/>
+ <value name="MIN_NEAR_MIP_NONE_MAG_LIN" value="2"/>
+ <value name="MIN_NEAR_MIP_NONE_MAG_NEAR" value="3"/>
+
+ <value name="MIN_NEAR_MIP_NEAR_MAG_LIN" value="4"/>
+ <value name="MIN_NEAR_MIP_NEAR_MAG_NEAR" value="5"/>
+ <value name="MIN_NEAR_MIP_LIN_MAG_LIN" value="6"/>
+ <value name="MIN_NEAR_MIP_LIN_MAG_NEAR" value="7"/>
+
+ <value name="MIN_LIN_MIP_NEAR_MAG_LIN" value="8"/>
+ <value name="MIN_LIN_MIP_NEAR_MAG_NEAR" value="9"/>
+ <value name="MIN_LIN_MIP_LIN_MAG_LIN" value="10"/>
+ <value name="MIN_LIN_MIP_LIN_MAG_NEAR" value="11"/>
+
+ <value name="ANISOTROPIC_2_1" value="12"/>
+ <value name="ANISOTROPIC_4_1" value="13"/>
+ <value name="ANISOTROPIC_8_1" value="14"/>
+ <value name="ANISOTROPIC_16_1" value="15"/>
+ </enum>
+
<packet code="0" name="Halt"/>
<packet code="1" name="NOP"/>
<packet code="4" name="Flush"/>
@@ -836,8 +859,7 @@
<field name="Texture base pointer" size="30" start="2" type="address"/>
- <field name="Minification Filter" size="3" start="1" type="uint"/>
- <field name="Magnification Filter" size="1" start="0" type="uint"/>
+ <field name="Filter" size="4" start="0" type="TMU Filter"/>
</struct>
<enum name="Texture Data Formats">