r300g: Don't use getenv; use debug_get_*_option instead.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Wed, 21 Oct 2009 12:54:49 +0000 (05:54 -0700)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Wed, 21 Oct 2009 13:52:24 +0000 (06:52 -0700)
src/gallium/drivers/r300/r300_chipset.c

index d138866..9b763e2 100644 (file)
@@ -31,7 +31,7 @@ void r300_parse_chipset(struct r300_capabilities* caps)
 {
     /* Reasonable defaults */
     caps->num_vert_fpus = 4;
-    caps->has_tcl = getenv("RADEON_NO_TCL") ? FALSE : TRUE;
+    caps->has_tcl = debug_get_bool_option("RADEON_NO_TCL", FALSE) ? FALSE : TRUE;
     caps->is_r500 = FALSE;
     caps->high_second_pipe = FALSE;