mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 07:58:07 +02:00
radeon: set max texture size
This still need some work to actually report somethings reasonable if no memory manager is available.
This commit is contained in:
parent
8308bf9ee1
commit
c696dd0f62
3 changed files with 13 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -283,6 +283,11 @@ r100CreateContext( 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 */
|
||||
/* FIXME: does r100 support 2048x2048 texture ? */
|
||||
ctx->Const.MaxTextureLevels = 12;
|
||||
|
||||
ctx->Const.MaxTextureMaxAnisotropy = 16.0;
|
||||
|
||||
/* No wide points.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue