aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/glide/fxdd.c
diff options
context:
space:
mode:
authorDaniel Borca <[email protected]>2004-01-14 07:10:12 +0000
committerDaniel Borca <[email protected]>2004-01-14 07:10:12 +0000
commit43ed92b3a1abceb03dd2c0bcc05f466e9a3f620a (patch)
treeb3fe21fa2fc4dcff0246e07085161e216a272bbb /src/mesa/drivers/glide/fxdd.c
parent067603db91072fc3b02e1583195641972f81168f (diff)
fixed a bug in texture memory manager when in UMA mode
Diffstat (limited to 'src/mesa/drivers/glide/fxdd.c')
-rw-r--r--src/mesa/drivers/glide/fxdd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/drivers/glide/fxdd.c b/src/mesa/drivers/glide/fxdd.c
index d7d347abae6..0ee4216cb1f 100644
--- a/src/mesa/drivers/glide/fxdd.c
+++ b/src/mesa/drivers/glide/fxdd.c
@@ -1347,14 +1347,16 @@ fxDDInitFxMesaContext(fxMesaContext fxMesa)
do {
textureLevels++;
} while ((textureSize >>= 0x1) & 0x7ff);
- fxMesa->textureMaxLod = textureLevels - 1;
ctx->Const.MaxTextureLevels = textureLevels;
+#if 1||FX_RESCALE_BIG_TEXURES
+ fxMesa->textureMaxLod = textureLevels - 1;
if ((env = getenv("MESA_FX_MAXLOD")) != NULL) {
int maxLevels = atoi(env) + 1;
if ((maxLevels <= MAX_TEXTURE_LEVELS) && (maxLevels > textureLevels)) {
ctx->Const.MaxTextureLevels = maxLevels;
}
}
+#endif
}
ctx->Const.MaxTextureCoordUnits =
ctx->Const.MaxTextureImageUnits = fxMesa->haveTwoTMUs ? 2 : 1;