It doesnt look like filter constants in r300_reg.h would define number of
levels.
fprintf(stderr, "Activating texture unit %d\n", i);
max_texture_unit=i;
r300->hw.txe.cmd[R300_TXE_ENABLE]|=(1<<i);
-
- t->filter &= R300_TX_MAG_FILTER_MASK | R300_TX_MIN_FILTER_MASK | R300_TX_MAX_ANISO_MASK
- | R300_TX_WRAP_S_MASK | R300_TX_WRAP_T_MASK | R300_TX_WRAP_Q_MASK;
r300->hw.tex.filter.cmd[R300_TEX_VALUE_0+i]=t->filter;
if (VALID_FORMAT(baseImage->TexFormat->MesaFormat)) {
t->format =
tx_table[baseImage->TexFormat->MesaFormat].format;
-#if 1
+#if 1
t->filter |=
tx_table[baseImage->TexFormat->MesaFormat].filter;
#endif
/* Hardware state:
*/
-#if 1
+#if 0
t->filter &= ~R200_MAX_MIP_LEVEL_MASK;
t->filter |= (numLevels - 1) << R200_MAX_MIP_LEVEL_SHIFT;
#endif