Only print message about disabling HW TCL if the chip supports it in the
authorMichel Dänzer <michel@daenzer.net>
Sat, 28 Feb 2004 13:25:25 +0000 (13:25 +0000)
committerMichel Dänzer <michel@daenzer.net>
Sat, 28 Feb 2004 13:25:25 +0000 (13:25 +0000)
first place, and make the message a bit clearer.

+ Remove some extraneous whitespace.

src/mesa/drivers/dri/r200/r200_context.c
src/mesa/drivers/dri/radeon/radeon_context.c

index 99765341d65bc4eb70086b8eb351babd799f2593..977dcf38d41880e11f2a905b5906ea8197c8be7b 100644 (file)
@@ -463,8 +463,10 @@ GLboolean r200CreateContext( const __GLcontextModes *glVisual,
    }
    else if (tcl_mode == DRI_CONF_TCL_SW || getenv("R200_NO_TCL") ||
            !(rmesa->r200Screen->chipset & R200_CHIPSET_TCL)) {
-      rmesa->r200Screen->chipset &= ~R200_CHIPSET_TCL;
-      fprintf(stderr, "disabling TCL support\n");
+      if (rmesa->r200Screen->chipset & R200_CHIPSET_TCL) {
+        rmesa->r200Screen->chipset &= ~R200_CHIPSET_TCL;
+        fprintf(stderr, "Disabling HW TCL support\n");
+      }
       TCL_FALLBACK(rmesa->glCtx, R200_TCL_FALLBACK_TCL_DISABLE, 1);
    }
    if (rmesa->r200Screen->chipset & R200_CHIPSET_TCL) {
index c68bab5f3420abd3a25b128fee7c35811fbaefb5..0424ffc84ab21698e914fbce9fd743e02a405b86 100644 (file)
@@ -440,12 +440,14 @@ radeonCreateContext( const __GLcontextModes *glVisual,
    tcl_mode = driQueryOptioni(&rmesa->optionCache, "tcl_mode");
    if (driQueryOptionb(&rmesa->optionCache, "no_rast")) {
       fprintf(stderr, "disabling 3D acceleration\n");
-      FALLBACK(rmesa, RADEON_FALLBACK_DISABLE, 1); 
+      FALLBACK(rmesa, RADEON_FALLBACK_DISABLE, 1);
    } else if (tcl_mode == DRI_CONF_TCL_SW ||
              !(rmesa->radeonScreen->chipset & RADEON_CHIPSET_TCL)) {
-      rmesa->radeonScreen->chipset &= ~RADEON_CHIPSET_TCL;
-      fprintf(stderr, "disabling TCL support\n");
-      TCL_FALLBACK(rmesa->glCtx, RADEON_TCL_FALLBACK_TCL_DISABLE, 1); 
+      if (rmesa->radeonScreen->chipset & RADEON_CHIPSET_TCL) {
+        rmesa->radeonScreen->chipset &= ~RADEON_CHIPSET_TCL;
+        fprintf(stderr, "Disabling HW TCL support\n");
+      }
+      TCL_FALLBACK(rmesa->glCtx, RADEON_TCL_FALLBACK_TCL_DISABLE, 1);
    }
 
    if (rmesa->radeonScreen->chipset & RADEON_CHIPSET_TCL) {