summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCorbin Simpson <MostAwesomeDude@gmail.com>2008-06-07 12:37:10 -0700
committerCorbin Simpson <MostAwesomeDude@gmail.com>2008-06-07 12:37:31 -0700
commit21f50818b09c1ab3b5b1dc797b34c23b9b1634dc (patch)
treea0919eaab3c310e33ab43fa698228bee307f6895 /src
parentcb1687660844d42f929e11a2261c0eeb3fe859be (diff)
r300: Allow driconf to set a default anisotropy.
If an app does not use GL_EXT_tex_filter_aniso, this lets driconf set it instead.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/r300/r300_tex.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_tex.c b/src/mesa/drivers/dri/r300/r300_tex.c
index a12b0293e5..2c3c28e638 100644
--- a/src/mesa/drivers/dri/r300/r300_tex.c
+++ b/src/mesa/drivers/dri/r300/r300_tex.c
@@ -191,13 +191,15 @@ static void r300SetTexFilter(r300TexObjPtr t, GLenum minf, GLenum magf, GLfloat
/* Note that EXT_texture_filter_anisotropic is extremely vague about
* how anisotropic filtering interacts with the "normal" filter modes.
* When anisotropic filtering is enabled, we override min and mag
- * filter settings.
+ * filter settings completely. This includes driconf's settings.
*/
- if (anisotropy >= 2.0 && (minf != GL_NEAREST && minf != GL_LINEAR)) {
+ if (anisotropy >= 2.0) {
t->filter |= R300_TX_MAG_FILTER_ANISO
| R300_TX_MIN_FILTER_ANISO
| R300_TX_MIN_FILTER_MIP_LINEAR
| aniso_filter(anisotropy);
+ if (RADEON_DEBUG & DEBUG_TEXTURE)
+ fprintf(stderr, "Using maximum anisotropy of %f\n", anisotropy);
return;
}