summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/r300/r300_state.c
diff options
context:
space:
mode:
authorNicolai Haehnle <nhaehnle@gmail.com>2008-06-06 21:28:08 +0200
committerNicolai Haehnle <nhaehnle@gmail.com>2008-06-06 21:34:34 +0200
commit03a1144cd1de9425a0bc5ceec98f9c49fa19ac6d (patch)
treecccf239026b700d136518286d1397e23637ba8f0 /src/mesa/drivers/dri/r300/r300_state.c
parent665605234d2aed2baa22fa621fa02478b2c08a4d (diff)
r300: Cleanup TX_MIN_FILTER defines
This commit should not affect the functionality at all, just cleanup some of the original texture filter guesswork using information from the register documentation.
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_state.c')
-rw-r--r--src/mesa/drivers/dri/r300/r300_state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_state.c b/src/mesa/drivers/dri/r300/r300_state.c
index 550f710854..7602f12d81 100644
--- a/src/mesa/drivers/dri/r300/r300_state.c
+++ b/src/mesa/drivers/dri/r300/r300_state.c
@@ -1284,7 +1284,7 @@ static unsigned long gen_fixed_filter(unsigned long f)
return f;
mag = f & R300_TX_MAG_FILTER_MASK;
- min = f & R300_TX_MIN_FILTER_MASK;
+ min = f & (R300_TX_MIN_FILTER_MASK|R300_TX_MIN_FILTER_MIP_MASK);
/* TODO: Check for anisto filters too */
if ((mag != R300_TX_MAG_FILTER_NEAREST)