Enable the vertex buffer stage according to the I915_VBUF environment var.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Mon, 29 Oct 2007 11:51:04 +0000 (11:51 +0000)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Mon, 29 Oct 2007 12:15:57 +0000 (12:15 +0000)
src/mesa/pipe/i915simple/i915_context.c

index 6541f0e8484ea1cc1b8587709ca0c5e1151e5da4..fc878c175c3ba39294e62c1ce485aac4001e73b3 100644 (file)
@@ -320,7 +320,12 @@ struct pipe_context *i915_create( struct pipe_winsys *pipe_winsys,
     */
    i915->draw = draw_create();
    assert(i915->draw);
-   draw_set_rasterize_stage(i915->draw, i915_draw_render_stage(i915));
+   if (getenv("I915_VBUF")) {
+      draw_set_rasterize_stage(i915->draw, i915_draw_vbuf_stage(i915));
+   }
+   else {
+      draw_set_rasterize_stage(i915->draw, i915_draw_render_stage(i915));
+   }
 
    i915_init_region_functions(i915);
    i915_init_surface_functions(i915);