| @@ -106,6 +106,8 @@ GLboolean gammaCreateContext( const __GLcontextModes *glVisual, | |||
| ctx->Const.MaxTextureLevels = 13; /* 4K by 4K? Is that right? */ | |||
| ctx->Const.MaxTextureUnits = 1; /* Permedia 3 */ | |||
| ctx->Const.MaxTextureImageUnits = 1; | |||
| ctx->Const.MaxTextureCoordUnits = 1; | |||
| ctx->Const.MinLineWidth = 0.0; | |||
| ctx->Const.MaxLineWidth = 255.0; | |||
| @@ -204,6 +204,8 @@ i810CreateContext( const __GLcontextModes *mesaVis, | |||
| ctx = imesa->glCtx; | |||
| ctx->Const.MaxTextureUnits = 2; | |||
| ctx->Const.MaxTextureImageUnits = 2; | |||
| ctx->Const.MaxTextureCoordUnits = 2; | |||
| /* FIXME: driCalcualteMaxTextureLevels assumes that mipmaps are tightly | |||
| @@ -263,6 +263,8 @@ GLboolean i830CreateContext( const __GLcontextModes *mesaVis, | |||
| ctx = imesa->glCtx; | |||
| ctx->Const.MaxTextureUnits = 2; | |||
| ctx->Const.MaxTextureImageUnits = 2; | |||
| ctx->Const.MaxTextureCoordUnits = 2; | |||
| /* FIXME: driCalcualteMaxTextureLevels assumes that mipmaps are tightly | |||
| * FIXME: packed, but they're not in Intel graphics hardware. | |||
| @@ -411,11 +411,15 @@ mgaCreateContext( const __GLcontextModes *mesaVis, | |||
| ctx = mmesa->glCtx; | |||
| if ( mgaScreen->chipset == MGA_CARD_TYPE_G200 ) { | |||
| ctx->Const.MaxTextureUnits = 1; | |||
| ctx->Const.MaxTextureImageUnits = 1; | |||
| ctx->Const.MaxTextureCoordUnits = 1; | |||
| maxlevels = G200_TEX_MAXLEVELS; | |||
| } | |||
| else { | |||
| ctx->Const.MaxTextureUnits = 2; | |||
| ctx->Const.MaxTextureImageUnits = 2; | |||
| ctx->Const.MaxTextureCoordUnits = 2; | |||
| maxlevels = G400_TEX_MAXLEVELS; | |||
| } | |||
| @@ -196,6 +196,8 @@ GLboolean r128CreateContext( const __GLcontextModes *glVisual, | |||
| */ | |||
| ctx->Const.MaxTextureUnits = 2; | |||
| ctx->Const.MaxTextureImageUnits = 2; | |||
| ctx->Const.MaxTextureCoordUnits = 2; | |||
| driCalculateMaxTextureLevels( rmesa->texture_heaps, | |||
| rmesa->nr_heaps, | |||
| @@ -338,6 +338,8 @@ GLboolean r200CreateContext( const __GLcontextModes *glVisual, | |||
| ctx = rmesa->glCtx; | |||
| ctx->Const.MaxTextureUnits = 2; | |||
| ctx->Const.MaxTextureImageUnits = 2; | |||
| ctx->Const.MaxTextureCoordUnits = 2; | |||
| driCalculateMaxTextureLevels( rmesa->texture_heaps, | |||
| rmesa->nr_heaps, | |||
| @@ -327,6 +327,8 @@ radeonCreateContext( const __GLcontextModes *glVisual, | |||
| ctx = rmesa->glCtx; | |||
| ctx->Const.MaxTextureUnits = 2; | |||
| ctx->Const.MaxTextureImageUnits = 2; | |||
| ctx->Const.MaxTextureCoordUnits = 2; | |||
| driCalculateMaxTextureLevels( rmesa->texture_heaps, | |||
| rmesa->nr_heaps, | |||
| @@ -209,6 +209,8 @@ GLboolean tdfxCreateContext( const __GLcontextModes *mesaVis, | |||
| ctx->Const.MaxTextureLevels = 9; | |||
| } | |||
| ctx->Const.MaxTextureUnits = TDFX_IS_BANSHEE( fxMesa ) ? 1 : 2; | |||
| ctx->Const.MaxTextureImageUnits = ctx->Const.MaxTextureUnits; | |||
| ctx->Const.MaxTextureCoordUnits = ctx->Const.MaxTextureUnits; | |||
| /* No wide points. | |||
| */ | |||