diff options
-rw-r--r-- | src/mesa/drivers/dri/mga/mga_texstate.c | 11 | ||||
-rw-r--r-- | src/mesa/drivers/dri/mga/mga_xmesa.c | 2 |
2 files changed, 5 insertions, 8 deletions
diff --git a/src/mesa/drivers/dri/mga/mga_texstate.c b/src/mesa/drivers/dri/mga/mga_texstate.c index d925a9f46d..b9163ffe78 100644 --- a/src/mesa/drivers/dri/mga/mga_texstate.c +++ b/src/mesa/drivers/dri/mga/mga_texstate.c @@ -150,15 +150,12 @@ mgaSetTexImages( mgaContextPtr mmesa, t->base.totalSize = totalSize; /* setup hardware register values */ - t->setup.texctl &= (TMC_tformat_MASK & TMC_tpitch_MASK - & TMC_tpitchext_MASK); + t->setup.texctl &= (TMC_tformat_MASK & TMC_tpitchext_MASK); t->setup.texctl |= txformat; - if ( baseImage->WidthLog2 >= 3 ) - t->setup.texctl |= ((baseImage->WidthLog2 - 3) << TMC_tpitch_SHIFT); - else - t->setup.texctl |= (TMC_tpitchlin_enable | - (baseImage->Width << TMC_tpitchext_SHIFT)); + t->setup.texctl |= TMC_tpitchlin_enable; + if ( baseImage->Width < 2048 ) + t->setup.texctl |= (baseImage->Width << TMC_tpitchext_SHIFT); /* G400 specifies the number of mip levels in a strange way. Since there * are up to 12 levels, it requires 4 bits. Three of the bits are at the diff --git a/src/mesa/drivers/dri/mga/mga_xmesa.c b/src/mesa/drivers/dri/mga/mga_xmesa.c index ef080b77e5..2ea5e54b4b 100644 --- a/src/mesa/drivers/dri/mga/mga_xmesa.c +++ b/src/mesa/drivers/dri/mga/mga_xmesa.c @@ -367,7 +367,7 @@ mgaCreateContext( const __GLcontextModes *mesaVis, mmesa->nr_heaps, & ctx->Const, 4, - 10, /* max 2D texture size is 1024x1024 */ + 11, /* max 2D texture size is 2048x2048 */ 0, /* 3D textures unsupported. */ 0, /* cube textures unsupported. */ 0, /* texture rectangles unsupported. */ |