summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/r200
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/r200
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/r200')
-rw-r--r--src/mesa/drivers/dri/r200/r200_context.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r200/r200_context.c b/src/mesa/drivers/dri/r200/r200_context.c
index f80f0d8ac73..8924849d082 100644
--- a/src/mesa/drivers/dri/r200/r200_context.c
+++ b/src/mesa/drivers/dri/r200/r200_context.c
@@ -354,6 +354,10 @@ GLboolean r200CreateContext( const __GLcontextModes *glVisual,
i = driQueryOptioni( &rmesa->radeon.optionCache, "allow_large_textures");
+ /* FIXME: When no memory manager is available we should set this
+ * to some reasonable value based on texture memory pool size */
+ ctx->Const.MaxTextureLevels = 12;
+
ctx->Const.MaxTextureMaxAnisotropy = 16.0;
/* No wide AA points.