mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
tweak anisotropic filtering code
This commit is contained in:
parent
548eddc964
commit
89b7b187dd
2 changed files with 4 additions and 1 deletions
|
|
@ -158,7 +158,7 @@ i915_get_paramf(struct pipe_context *pipe, int param)
|
|||
return 255.0;
|
||||
|
||||
case PIPE_CAP_MAX_TEXTURE_ANISOTROPY:
|
||||
return 0.0;
|
||||
return 4.0;
|
||||
|
||||
case PIPE_CAP_MAX_TEXTURE_LOD_BIAS:
|
||||
return 16.0;
|
||||
|
|
|
|||
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue