diff options
author | Roland Scheidegger <sroland@vmware.com> | 2009-04-22 17:37:18 +0200 |
---|---|---|
committer | Roland Scheidegger <sroland@vmware.com> | 2009-04-22 17:38:06 +0200 |
commit | 50853be894aa3edd1e9271f7d625f319209e340f (patch) | |
tree | 9ec361fae781d3968f436e075326df73752f2a52 /src/mesa/drivers/dri/i965/brw_wm_sampler_state.c | |
parent | 7843243deedd66b0c94c8874e732ed7e8c6617ff (diff) |
intel: fix max anisotropy supported
i915 actually supports up to 4 (according to header file - not tested),
i965 up to 16 (code already handled this but slightly broken), so don't use 2
for all chips, even though angular dependency is very high.
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_wm_sampler_state.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_wm_sampler_state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm_sampler_state.c b/src/mesa/drivers/dri/i965/brw_wm_sampler_state.c index 1fc9f01372..c604ef0162 100644 --- a/src/mesa/drivers/dri/i965/brw_wm_sampler_state.c +++ b/src/mesa/drivers/dri/i965/brw_wm_sampler_state.c @@ -152,7 +152,7 @@ static void brw_update_sampler_state(struct wm_sampler_entry *key, sampler->ss0.mag_filter = BRW_MAPFILTER_ANISOTROPIC; if (key->max_aniso > 2.0) { - sampler->ss3.max_aniso = MAX2((key->max_aniso - 2) / 2, + sampler->ss3.max_aniso = MIN2((key->max_aniso - 2) / 2, BRW_ANISORATIO_16); } } |