remove the redundant textureSize field, use tex.size instead, it's always the same...
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 9 Sep 2005 22:57:05 +0000 (22:57 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 9 Sep 2005 22:57:05 +0000 (22:57 +0000)
src/mesa/drivers/dri/i915/i830_context.c
src/mesa/drivers/dri/i915/i830_texstate.c
src/mesa/drivers/dri/i915/i915_context.c
src/mesa/drivers/dri/i915/i915_texstate.c
src/mesa/drivers/dri/i915/intel_screen.c
src/mesa/drivers/dri/i915/intel_screen.h
src/mesa/drivers/dri/i915/intel_tex.c

index 6088db67e2084ce12dfe2d07dc3675c4473e5865..3979f531a8b42e498a2611d4637f6b2be5637686 100644 (file)
@@ -79,7 +79,7 @@ GLboolean i830CreateContext( const __GLcontextModes *mesaVis,
    intel->nr_heaps = 1;
    intel->texture_heaps[0] = 
       driCreateTextureHeap( 0, intel,
-                           intel->intelScreen->textureSize,
+                           intel->intelScreen->tex.size,
                            12,
                            I830_NR_TEX_REGIONS,
                            intel->sarea->texList,
index ba452279baf2b695442c40ddf69cbfd8284916ba..55a5a174030725b77a6ae85db54f82137a994e52 100644 (file)
@@ -436,7 +436,7 @@ static GLboolean i830UpdateTexUnit( GLcontext *ctx, GLuint unit )
    struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit];
 
    if (texUnit->_ReallyEnabled &&
-       INTEL_CONTEXT(ctx)->intelScreen->textureSize < 2048 * 1024)
+       INTEL_CONTEXT(ctx)->intelScreen->tex.size < 2048 * 1024)
       return GL_FALSE;
 
    switch(texUnit->_ReallyEnabled) {
index 42f91241b263a6677733740cd85fa168d818f2e5..6e6af35c7602aef19ce9e3ac6b9eb750e52103e8 100644 (file)
@@ -122,7 +122,7 @@ GLboolean i915CreateContext( const __GLcontextModes *mesaVis,
    intel->nr_heaps = 1;
    intel->texture_heaps[0] = 
       driCreateTextureHeap( 0, intel,
-                           intel->intelScreen->textureSize,
+                           intel->intelScreen->tex.size,
                            12,
                            I830_NR_TEX_REGIONS,
                            intel->sarea->texList,
index 7a274bb692922a64757c20b9e6c4f42229488dfa..22f38a92397fa4925948f4ac8ce6ca5387e6fb45 100644 (file)
@@ -879,7 +879,7 @@ static GLboolean i915UpdateTexUnit( GLcontext *ctx, GLuint unit )
    struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit];
 
    if (texUnit->_ReallyEnabled &&
-       INTEL_CONTEXT(ctx)->intelScreen->textureSize < 2048 * 1024)
+       INTEL_CONTEXT(ctx)->intelScreen->tex.size < 2048 * 1024)
       return GL_FALSE;
 
    switch (texUnit->_ReallyEnabled) {
index 98b9b2ee6b6887835d603bb88c33b34573529f32..2f4f083a87e342fce975f7e6c254a98581241213 100644 (file)
@@ -66,7 +66,7 @@ static void intelPrintDRIInfo(intelScreenPrivate *intelScreen,
    fprintf(stderr, "Back offset : 0x%x\n", intelScreen->backOffset);
    fprintf(stderr, "Depth size : 0x%x\n", intelScreen->depth.size);
    fprintf(stderr, "Depth offset : 0x%x\n", intelScreen->depthOffset);
-   fprintf(stderr, "Texture size : 0x%x\n", intelScreen->textureSize);
+   fprintf(stderr, "Texture size : 0x%x\n", intelScreen->tex.size);
    fprintf(stderr, "Texture offset : 0x%x\n", intelScreen->textureOffset);
    fprintf(stderr, "Memory : 0x%x\n", gDRIPriv->mem);
 }
@@ -116,7 +116,6 @@ static GLboolean intelInitDriver(__DRIscreenPrivate *sPriv)
    intelScreen->depthOffset = gDRIPriv->depthOffset;
    intelScreen->depthPitch = gDRIPriv->depthPitch;
    intelScreen->textureOffset = gDRIPriv->textureOffset;
-   intelScreen->textureSize = gDRIPriv->textureSize;
    intelScreen->logTextureGranularity = gDRIPriv->logTextureGranularity;
    intelScreen->back.handle = gDRIPriv->backbuffer;
    intelScreen->back.size = gDRIPriv->backbufferSize;
index f2fb1c6bc9510dcb5a65b7fcd253c2667559e10a..f41d7480e36ec913069b1bef12b0cb2d83b53658 100644 (file)
@@ -66,7 +66,6 @@ typedef struct
    
    
    int textureOffset;
-   int textureSize;
    int logTextureGranularity;
    
    __DRIscreenPrivate *driScrnPriv;
index 5fc904e601c1259b3a23c6421735d4b4f93d1f2c..ad0a2675569f2efc46db3401df5b4d9be5447435 100644 (file)
@@ -453,7 +453,7 @@ intelChooseTextureFormat( GLcontext *ctx, GLint internalFormat,
 {
    intelContextPtr intel = INTEL_CONTEXT( ctx );
    const GLboolean do32bpt = ( intel->intelScreen->cpp == 4 &&
-                              intel->intelScreen->textureSize > 4*1024*1024);
+                              intel->intelScreen->tex.size > 4*1024*1024);
 
    switch ( internalFormat ) {
    case 4: