aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/r300/r300_context.c
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2009-06-12 11:35:10 +1000
committerDave Airlie <[email protected]>2009-06-12 11:35:10 +1000
commita5d92d7ed208d20c788889640503fa61b2d38851 (patch)
tree0254ffc774a6f1c5ec53adb4f1432b16ed2fe19f /src/mesa/drivers/dri/r300/r300_context.c
parent7f223ff89172069dbad987f592aea2a8ba16355f (diff)
radeon/r200/r300: fix max texture levels assert
use the actual value set in the context
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_context.c')
-rw-r--r--src/mesa/drivers/dri/r300/r300_context.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_context.c b/src/mesa/drivers/dri/r300/r300_context.c
index 9004a3ffab5..394521a051f 100644
--- a/src/mesa/drivers/dri/r300/r300_context.c
+++ b/src/mesa/drivers/dri/r300/r300_context.c
@@ -265,10 +265,7 @@ static void r300InitConstValues(GLcontext *ctx, radeonScreenPtr screen)
driQueryOptioni(&r300->radeon.optionCache, "texture_coord_units");
ctx->Const.MaxTextureUnits = MIN2(ctx->Const.MaxTextureImageUnits,
ctx->Const.MaxTextureCoordUnits);
- /* FIXME: When no memory manager is available we should set this
- * to some reasonable value based on texture memory pool size */
- /* FIXME: r5xx limit is 4096 */
- ctx->Const.MaxTextureLevels = 12;
+
ctx->Const.MaxTextureMaxAnisotropy = 16.0;
ctx->Const.MaxTextureLodBias = 16.0;