diff options
author | Daniel Borca <[email protected]> | 2004-01-14 07:10:12 +0000 |
---|---|---|
committer | Daniel Borca <[email protected]> | 2004-01-14 07:10:12 +0000 |
commit | 43ed92b3a1abceb03dd2c0bcc05f466e9a3f620a (patch) | |
tree | b3fe21fa2fc4dcff0246e07085161e216a272bbb /src/mesa/drivers/glide/fxdd.c | |
parent | 067603db91072fc3b02e1583195641972f81168f (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.c | 4 |
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; |