diff options
author | Michel Daenzer <michel@daenzer.net> | 2006-03-03 16:41:41 +0000 |
---|---|---|
committer | Michel Daenzer <michel@daenzer.net> | 2006-03-03 16:41:41 +0000 |
commit | e19ccfa18fee046c54d7a9401e4e0098b2300598 (patch) | |
tree | 0b211073b83ba8ed9a5e021b2b464d9ffeda4e3d /src/radeon_exa.c | |
parent | ca00035eccb6e3495b27f8e64f2d016d8d2a9ce2 (diff) |
Add Option "FBTexPercent" to override the amount of video RAM reserved for
OpenGL textures with EXA.
Diffstat (limited to 'src/radeon_exa.c')
-rw-r--r-- | src/radeon_exa.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/radeon_exa.c b/src/radeon_exa.c index 3cbadf01..56927c14 100644 --- a/src/radeon_exa.c +++ b/src/radeon_exa.c @@ -438,11 +438,9 @@ Bool RADEONSetupMemEXA (ScreenPtr pScreen) depth_size / 1024, info->depthOffset); } - /* Reserve approx. half of remaining offscreen memory for local - * textures. Round down to a whole number of texture regions. - */ - info->textureSize = (info->exa.card.memorySize - - info->exa.card.offScreenBase) / 2; + info->textureSize *= (info->exa.card.memorySize - + info->exa.card.offScreenBase) / 100; + l = RADEONLog2(info->textureSize / RADEON_NR_TEX_REGIONS); if (l < RADEON_LOG_TEX_GRANULARITY) l = RADEON_LOG_TEX_GRANULARITY; |