From: José Fonseca Date: Mon, 29 Oct 2007 11:51:04 +0000 (+0000) Subject: Enable the vertex buffer stage according to the I915_VBUF environment var. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a9e1fcf98a871b182f82dc37c15d0f69bf1a3187;p=mesa.git Enable the vertex buffer stage according to the I915_VBUF environment var. --- diff --git a/src/mesa/pipe/i915simple/i915_context.c b/src/mesa/pipe/i915simple/i915_context.c index 6541f0e8484..fc878c175c3 100644 --- a/src/mesa/pipe/i915simple/i915_context.c +++ b/src/mesa/pipe/i915simple/i915_context.c @@ -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);