summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/i915simple/i915_state.c
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-11-08 10:10:35 -0700
committerBrian <brian.paul@tungstengraphics.com>2007-11-08 10:10:35 -0700
commit89b7b187dda26f7c7cc5e80360d49fa32f89b6fd (patch)
treeb6c5a74b6b6461cd498103ea9b12c4dce600515f /src/mesa/pipe/i915simple/i915_state.c
parent548eddc964c99e24f45ce88cd69f3d9af5aeab1a (diff)
tweak anisotropic filtering code
Diffstat (limited to 'src/mesa/pipe/i915simple/i915_state.c')
-rw-r--r--src/mesa/pipe/i915simple/i915_state.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/pipe/i915simple/i915_state.c b/src/mesa/pipe/i915simple/i915_state.c
index bfd2f8894e..70b8195bf1 100644
--- a/src/mesa/pipe/i915simple/i915_state.c
+++ b/src/mesa/pipe/i915simple/i915_state.c
@@ -212,6 +212,9 @@ i915_create_sampler_state(struct pipe_context *pipe,
if (sampler->max_anisotropy > 1.0) {
minFilt = FILTER_ANISOTROPIC;
magFilt = FILTER_ANISOTROPIC;
+ if (sampler->max_anisotropy > 2.0) {
+ cso->state[0] |= SS2_MAX_ANISO_4;
+ }
}
else {
minFilt = translate_img_filter( sampler->min_img_filter );