[Freedreno] [PATCH v2] a4xx: nail down lod_bias

Ilia Mirkin imirkin at alum.mit.edu
Wed Nov 18 20:53:27 PST 2015


For a3xx, it was 1 more bit (for the sign) than min/max lod. Do the same
here. This also matches the 1.4.8 format used on nv50/nvc0, which is
probably the expectation of DX10/DX11 applications.
---
 rnndb/adreno/a4xx.xml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/rnndb/adreno/a4xx.xml b/rnndb/adreno/a4xx.xml
index 2cebccb..43a1379 100644
--- a/rnndb/adreno/a4xx.xml
+++ b/rnndb/adreno/a4xx.xml
@@ -1378,6 +1378,7 @@ xsi:schemaLocation="http://nouveau.freedesktop.org/ rules-ng.xsd">
 		<bitfield name="WRAP_T" low="8" high="10" type="a4xx_tex_clamp"/>
 		<bitfield name="WRAP_R" low="11" high="13" type="a4xx_tex_clamp"/>
 		<bitfield name="ANISO" low="14" high="16" type="a4xx_tex_aniso"/>
+		<bitfield name="LOD_BIAS" low="19" high="31" type="fixed" radix="8"/><!-- no idea how many bits for real -->
 	</reg32>
 	<reg32 offset="1" name="1">
 		<bitfield name="COMPARE_FUNC" low="1" high="3" type="adreno_compare_func"/>
-- 
2.4.10



More information about the Freedreno mailing list