freedreno/a6xx: Fix non-mipmap filtering selection.
authorEric Anholt <eric@anholt.net>
Wed, 28 Aug 2019 17:13:29 +0000 (10:13 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 28 Aug 2019 20:14:41 +0000 (13:14 -0700)
commit973b49386caff501b76089de7a20d4d0ff7a32ba
tree46ea4c606159255024807afdee897199bab13a3d
parentb418269d7dd576a7c9afd728bf8a883b4da98b30
freedreno/a6xx: Fix non-mipmap filtering selection.

We were clamping the LOD to force non-mipmap filtering, but that means
that the HW doesn't get to select between the min and mag filters.
Setting MIPFILTER_LINEAR_FAR appears to force non-mipmap filtering.

Fixes all failures in dEQP-GLES2.functional.texture.filtering.2d.*

Reviewed-by: Rob Clark <robdclark@chromium.org>
src/gallium/drivers/freedreno/a6xx/fd6_texture.c