| ctx->Const.MaxTextureLevels = 13; /* 4K by 4K? Is that right? */ | ctx->Const.MaxTextureLevels = 13; /* 4K by 4K? Is that right? */ | ||||
| ctx->Const.MaxTextureUnits = 1; /* Permedia 3 */ | ctx->Const.MaxTextureUnits = 1; /* Permedia 3 */ | ||||
| ctx->Const.MaxTextureImageUnits = 1; | |||||
| ctx->Const.MaxTextureCoordUnits = 1; | |||||
| ctx->Const.MinLineWidth = 0.0; | ctx->Const.MinLineWidth = 0.0; | ||||
| ctx->Const.MaxLineWidth = 255.0; | ctx->Const.MaxLineWidth = 255.0; |
| ctx = imesa->glCtx; | ctx = imesa->glCtx; | ||||
| ctx->Const.MaxTextureUnits = 2; | ctx->Const.MaxTextureUnits = 2; | ||||
| ctx->Const.MaxTextureImageUnits = 2; | |||||
| ctx->Const.MaxTextureCoordUnits = 2; | |||||
| /* FIXME: driCalcualteMaxTextureLevels assumes that mipmaps are tightly | /* FIXME: driCalcualteMaxTextureLevels assumes that mipmaps are tightly |
| ctx = imesa->glCtx; | ctx = imesa->glCtx; | ||||
| ctx->Const.MaxTextureUnits = 2; | ctx->Const.MaxTextureUnits = 2; | ||||
| ctx->Const.MaxTextureImageUnits = 2; | |||||
| ctx->Const.MaxTextureCoordUnits = 2; | |||||
| /* FIXME: driCalcualteMaxTextureLevels assumes that mipmaps are tightly | /* FIXME: driCalcualteMaxTextureLevels assumes that mipmaps are tightly | ||||
| * FIXME: packed, but they're not in Intel graphics hardware. | * FIXME: packed, but they're not in Intel graphics hardware. |
| ctx = mmesa->glCtx; | ctx = mmesa->glCtx; | ||||
| if ( mgaScreen->chipset == MGA_CARD_TYPE_G200 ) { | if ( mgaScreen->chipset == MGA_CARD_TYPE_G200 ) { | ||||
| ctx->Const.MaxTextureUnits = 1; | ctx->Const.MaxTextureUnits = 1; | ||||
| ctx->Const.MaxTextureImageUnits = 1; | |||||
| ctx->Const.MaxTextureCoordUnits = 1; | |||||
| maxlevels = G200_TEX_MAXLEVELS; | maxlevels = G200_TEX_MAXLEVELS; | ||||
| } | } | ||||
| else { | else { | ||||
| ctx->Const.MaxTextureUnits = 2; | ctx->Const.MaxTextureUnits = 2; | ||||
| ctx->Const.MaxTextureImageUnits = 2; | |||||
| ctx->Const.MaxTextureCoordUnits = 2; | |||||
| maxlevels = G400_TEX_MAXLEVELS; | maxlevels = G400_TEX_MAXLEVELS; | ||||
| } | } | ||||
| */ | */ | ||||
| ctx->Const.MaxTextureUnits = 2; | ctx->Const.MaxTextureUnits = 2; | ||||
| ctx->Const.MaxTextureImageUnits = 2; | |||||
| ctx->Const.MaxTextureCoordUnits = 2; | |||||
| driCalculateMaxTextureLevels( rmesa->texture_heaps, | driCalculateMaxTextureLevels( rmesa->texture_heaps, | ||||
| rmesa->nr_heaps, | rmesa->nr_heaps, |
| ctx = rmesa->glCtx; | ctx = rmesa->glCtx; | ||||
| ctx->Const.MaxTextureUnits = 2; | ctx->Const.MaxTextureUnits = 2; | ||||
| ctx->Const.MaxTextureImageUnits = 2; | |||||
| ctx->Const.MaxTextureCoordUnits = 2; | |||||
| driCalculateMaxTextureLevels( rmesa->texture_heaps, | driCalculateMaxTextureLevels( rmesa->texture_heaps, | ||||
| rmesa->nr_heaps, | rmesa->nr_heaps, |
| ctx = rmesa->glCtx; | ctx = rmesa->glCtx; | ||||
| ctx->Const.MaxTextureUnits = 2; | ctx->Const.MaxTextureUnits = 2; | ||||
| ctx->Const.MaxTextureImageUnits = 2; | |||||
| ctx->Const.MaxTextureCoordUnits = 2; | |||||
| driCalculateMaxTextureLevels( rmesa->texture_heaps, | driCalculateMaxTextureLevels( rmesa->texture_heaps, | ||||
| rmesa->nr_heaps, | rmesa->nr_heaps, |
| ctx->Const.MaxTextureLevels = 9; | ctx->Const.MaxTextureLevels = 9; | ||||
| } | } | ||||
| ctx->Const.MaxTextureUnits = TDFX_IS_BANSHEE( fxMesa ) ? 1 : 2; | ctx->Const.MaxTextureUnits = TDFX_IS_BANSHEE( fxMesa ) ? 1 : 2; | ||||
| ctx->Const.MaxTextureImageUnits = ctx->Const.MaxTextureUnits; | |||||
| ctx->Const.MaxTextureCoordUnits = ctx->Const.MaxTextureUnits; | |||||
| /* No wide points. | /* No wide points. | ||||
| */ | */ |