summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/r300
diff options
context:
space:
mode:
authorJerome Glisse <[email protected]>2009-05-20 16:34:06 +0200
committerJerome Glisse <[email protected]>2009-05-20 16:34:06 +0200
commitc696dd0f62c195d71cf7ecbdd04d9b156dd0da0b (patch)
treed06337610f0eb1b5c68ae4522ad787fadbeb024c /src/mesa/drivers/dri/r300
parent8308bf9ee155b405ad42e6621daf33a108330418 (diff)
radeon: set max texture size
This still need some work to actually report somethings reasonable if no memory manager is available.
Diffstat (limited to 'src/mesa/drivers/dri/r300')
-rw-r--r--src/mesa/drivers/dri/r300/r300_context.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_context.c b/src/mesa/drivers/dri/r300/r300_context.c
index be8d480c1cb..dbd5ce589e3 100644
--- a/src/mesa/drivers/dri/r300/r300_context.c
+++ b/src/mesa/drivers/dri/r300/r300_context.c
@@ -268,6 +268,10 @@ 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;