envvars to control run-time
authorDaniel Borca <dborca@users.sourceforge.net>
Thu, 8 Jan 2004 07:37:21 +0000 (07:37 +0000)
committerDaniel Borca <dborca@users.sourceforge.net>
Thu, 8 Jan 2004 07:37:21 +0000 (07:37 +0000)
src/mesa/drivers/glide/fxapi.c
src/mesa/drivers/glide/fxvbtmp.h

index 12b919b2e6044c7bc2d9e774eeec3a1ddbb7fc32..c1dea541e21cd72c974b5e4531990f680c899238 100644 (file)
@@ -345,17 +345,17 @@ fxMesaCreateContext(GLuint win,
  }
 
  fxMesa->type = voodoo->type;
- fxMesa->HavePalExt = voodoo->HavePalExt;
- fxMesa->HavePixExt = voodoo->HavePixExt;
- fxMesa->HaveTexFmt = voodoo->HaveTexFmt;
- fxMesa->HaveCmbExt = voodoo->HaveCmbExt;
- fxMesa->HaveMirExt = voodoo->HaveMirExt;
- fxMesa->HaveTexUma = voodoo->HaveTexUma;
+ fxMesa->HavePalExt = voodoo->HavePalExt && !getenv("MESA_FX_IGNORE_PALEXT");
+ fxMesa->HavePixExt = voodoo->HavePixExt && !getenv("MESA_FX_IGNORE_PIXEXT");
+ fxMesa->HaveTexFmt = voodoo->HaveTexFmt && !getenv("MESA_FX_IGNORE_TEXFMT");
+ fxMesa->HaveCmbExt = voodoo->HaveCmbExt && !getenv("MESA_FX_IGNORE_CMBEXT");
+ fxMesa->HaveMirExt = voodoo->HaveMirExt && !getenv("MESA_FX_IGNORE_MIREXT");
+ fxMesa->HaveTexUma = voodoo->HaveTexUma && !getenv("MESA_FX_IGNORE_TEXUMA");
  fxMesa->Glide = glbHWConfig.Glide;
  Glide = &fxMesa->Glide;
  fxMesa->HaveTexus2 = Glide->txImgQuantize &&
                       Glide->txMipQuantize &&
-                      Glide->txPalToNcc;
+                      Glide->txPalToNcc && !getenv("MESA_FX_IGNORE_TEXUS2");
 
  /*
   * Pixel tables are used during pixel read-back
@@ -588,7 +588,7 @@ fxMesaCreateContext(GLuint win,
   }
   END_BOARD_LOCK();
 
-  sprintf(fxMesa->rendererString, "Mesa %s v0.51 %s %dMB FB, %dMB TM, %d TMU, %s",
+  sprintf(fxMesa->rendererString, "Mesa %s v0.60 %s %dMB FB, %dMB TM, %d TMU, %s",
                            grGetString(GR_RENDERER),
                            grGetString(GR_HARDWARE),
                            fbRam,
index 9e46f755957162fb23dac16bf075b5c803652e68..188a71263a9bc6cc334ad74b767499be0f6505f7 100644 (file)
@@ -248,16 +248,16 @@ static void TAG(interp)( GLcontext *ctx,
    }
 
    if (IND & SETUP_TMU0) {
-      INTERP_F( t, 
-               dst->tmuvtx[0].sow, 
-               out->tmuvtx[0].sow * wout, 
+      INTERP_F( t,
+               dst->tmuvtx[0].sow,
+               out->tmuvtx[0].sow * wout,
                in->tmuvtx[0].sow * win );
       INTERP_F( t,
                dst->tmuvtx[0].tow,
-               out->tmuvtx[0].tow * wout, 
+               out->tmuvtx[0].tow * wout,
                in->tmuvtx[0].tow * win );
       if (IND & SETUP_PTEX) {
-        INTERP_F( t, 
+        INTERP_F( t,
                   dst->tmuvtx[0].oow, 
                   out->tmuvtx[0].oow * wout, 
                   in->tmuvtx[0].oow * win );
@@ -265,16 +265,16 @@ static void TAG(interp)( GLcontext *ctx,
    }
 
    if (IND & SETUP_TMU1) {
-      INTERP_F( t, 
-               dst->tmuvtx[1].sow, 
-               out->tmuvtx[1].sow * wout, 
+      INTERP_F( t,
+               dst->tmuvtx[1].sow,
+               out->tmuvtx[1].sow * wout,
                in->tmuvtx[1].sow * win );
       INTERP_F( t,
                dst->tmuvtx[1].tow,
-               out->tmuvtx[1].tow * wout, 
+               out->tmuvtx[1].tow * wout,
                in->tmuvtx[1].tow * win );
       if (IND & SETUP_PTEX) {
-        INTERP_F( t, 
+        INTERP_F( t,
                   dst->tmuvtx[1].oow, 
                   out->tmuvtx[1].oow * wout, 
                   in->tmuvtx[1].oow * win );