diff options
author | Jerome Glisse <[email protected]> | 2009-05-20 16:34:06 +0200 |
---|---|---|
committer | Jerome Glisse <[email protected]> | 2009-05-20 16:34:06 +0200 |
commit | c696dd0f62c195d71cf7ecbdd04d9b156dd0da0b (patch) | |
tree | d06337610f0eb1b5c68ae4522ad787fadbeb024c /src/mesa/drivers/dri/r300 | |
parent | 8308bf9ee155b405ad42e6621daf33a108330418 (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.c | 4 |
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; |