summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2007-10-29 11:51:04 +0000
committerJosé Fonseca <[email protected]>2007-10-29 12:15:57 +0000
commita9e1fcf98a871b182f82dc37c15d0f69bf1a3187 (patch)
treecb08695c8a4c592122f044fb7440e6d4e3ce41a4
parent46aeff5814ae16544874ceafa5bd1e9d6577ca9d (diff)
Enable the vertex buffer stage according to the I915_VBUF environment var.
-rw-r--r--src/mesa/pipe/i915simple/i915_context.c7
1 files changed, 6 insertions, 1 deletions
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);