summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i915/i830_texstate.c
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2014-07-08 15:34:27 +0300
committerVille Syrjälä <ville.syrjala@linux.intel.com>2014-11-13 19:13:27 +0200
commita071425817f8ea79336c08f0c4bf1576e0726b68 (patch)
tree6bd56a9fcfb1292039d21ef1799c3bdd30beb37b /src/mesa/drivers/dri/i915/i830_texstate.c
parent40a08e0d6a57cc79ee72a62aeedec20cae774ed5 (diff)
downloadexternal_mesa3d-a071425817f8ea79336c08f0c4bf1576e0726b68.zip
external_mesa3d-a071425817f8ea79336c08f0c4bf1576e0726b68.tar.gz
external_mesa3d-a071425817f8ea79336c08f0c4bf1576e0726b68.tar.bz2
i915: Override mip filter to nearest with aniso
gen2 doesn't supporte linear mip filter with anisotropic min/mag filtering. The hardware would automagically downgrade the min/mag filters to linear in such cases, which IMO looks worse than forcing the mip filter to nearest. Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'src/mesa/drivers/dri/i915/i830_texstate.c')
-rw-r--r--src/mesa/drivers/dri/i915/i830_texstate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i915/i830_texstate.c b/src/mesa/drivers/dri/i915/i830_texstate.c
index b1414c7..00731e6 100644
--- a/src/mesa/drivers/dri/i915/i830_texstate.c
+++ b/src/mesa/drivers/dri/i915/i830_texstate.c
@@ -225,6 +225,8 @@ i830_update_tex_unit(struct intel_context *intel, GLuint unit, GLuint ss3)
if (sampler->MaxAnisotropy > 1.0) {
minFilt = FILTER_ANISOTROPIC;
magFilt = FILTER_ANISOTROPIC;
+ /* no trilinear + anisotropic */
+ mipFilt = MIPFILTER_NEAREST;
}
else {
switch (sampler->MagFilter) {