summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/radeon/radeon_context.c
diff options
context:
space:
mode:
authorDave Airlie <airliedfreedesktop.org>2005-02-26 05:24:04 +0000
committerDave Airlie <airliedfreedesktop.org>2005-02-26 05:24:04 +0000
commit4932ba28adc2694161ec3fa7964cd76e3742182a (patch)
tree4d70710c4952a66ed323a478cf38ba76397358ae /src/mesa/drivers/dri/radeon/radeon_context.c
parent8ca515097f4ea661fd7c2def5b608e2591cccf28 (diff)
Add a dri config option to enable the max texture level hack
make ycbcr depend on a CHIPSET define .. needs to be filled in though
Diffstat (limited to 'src/mesa/drivers/dri/radeon/radeon_context.c')
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_context.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_context.c b/src/mesa/drivers/dri/radeon/radeon_context.c
index 6a2f3dc353..fb00e59b46 100644
--- a/src/mesa/drivers/dri/radeon/radeon_context.c
+++ b/src/mesa/drivers/dri/radeon/radeon_context.c
@@ -342,6 +342,13 @@ radeonCreateContext( const __GLcontextModes *glVisual,
12,
GL_FALSE );
+ /* adjust max texture size a bit. Hack, but I really want to use larger textures
+ which will work just fine in 99.999999% of all cases, especially with texture compression... */
+ if (driQueryOptionb( &rmesa->optionCache, "texture_level_hack" ))
+ {
+ if (ctx->Const.MaxTextureLevels < 12) ctx->Const.MaxTextureLevels += 1;
+ }
+
ctx->Const.MaxTextureMaxAnisotropy = 16.0;
/* No wide points.