softpipe: enable vbuf by default
authorKeith Whitwell <keith@tungstengraphics.com>
Tue, 27 May 2008 22:23:37 +0000 (23:23 +0100)
committerKeith Whitwell <keith@tungstengraphics.com>
Tue, 27 May 2008 22:28:27 +0000 (23:28 +0100)
The non-vbuf option is going away...

src/gallium/drivers/softpipe/sp_context.c

index a48e546139157418763edfa402b1892f33b3f2b2..ed9322a1098d2f38afaecfa0a8262e5f77793433 100644 (file)
@@ -227,11 +227,13 @@ softpipe_create( struct pipe_screen *screen,
    if (GETENV( "SP_NO_RAST" ) != NULL)
       softpipe->no_rast = TRUE;
 
-   if (GETENV( "SP_VBUF" ) != NULL) {
-      sp_init_vbuf(softpipe);
+   if (GETENV( "SP_NO_VBUF" ) != NULL) {
+      /* Deprecated path -- vbuf is the intended interface to the draw module:
+       */
+      draw_set_rasterize_stage(softpipe->draw, softpipe->setup);
    }
    else {
-      draw_set_rasterize_stage(softpipe->draw, softpipe->setup);
+      sp_init_vbuf(softpipe);
    }
 
    /* plug in AA line/point stages */