r300: add R300_NO_TCL to allow testing of non-tcl on tcl cards
authorDave Airlie <airlied@linux.ie>
Sat, 3 May 2008 11:31:22 +0000 (21:31 +1000)
committerDave Airlie <airlied@linux.ie>
Sat, 3 May 2008 11:31:22 +0000 (21:31 +1000)
src/mesa/drivers/dri/radeon/radeon_screen.c

index 0f716a0..d840e22 100644 (file)
@@ -827,6 +827,9 @@ radeonCreateScreen( __DRIscreenPrivate *sPriv )
       return NULL;
    }
 
+   if (getenv("R300_NO_TCL"))
+     screen->chip_flags &= ~RADEON_CHIPSET_TCL;
+
    if (screen->chip_family <= CHIP_FAMILY_RS200)
       screen->chip_flags |= RADEON_CLASS_R100;
    else if (screen->chip_family <= CHIP_FAMILY_RV280)