diff options
author | Jakob Bornecrantz <[email protected]> | 2009-10-05 18:11:25 -0700 |
---|---|---|
committer | Jakob Bornecrantz <[email protected]> | 2009-10-06 03:09:01 +0100 |
commit | ce3c2b51a23c1f674b7a6e862d238c3935d72ca3 (patch) | |
tree | b0a0b1420b59a5b1a1a42e3050610f4c6c39b871 /src/gallium/drivers/i915 | |
parent | 722ae91722342ae8d32244a0e0c3a8ad1fdae4e2 (diff) |
i915g: Tweek vertexbuffer size
Diffstat (limited to 'src/gallium/drivers/i915')
-rw-r--r-- | src/gallium/drivers/i915/i915_prim_vbuf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/drivers/i915/i915_prim_vbuf.c b/src/gallium/drivers/i915/i915_prim_vbuf.c index 8a3e466c845..a7e1d4b45e7 100644 --- a/src/gallium/drivers/i915/i915_prim_vbuf.c +++ b/src/gallium/drivers/i915/i915_prim_vbuf.c @@ -581,9 +581,9 @@ i915_vbuf_render_create(struct i915_context *i915) int i; i915_render->i915 = i915; - - i915_render->base.max_vertex_buffer_bytes = 128*1024; - + + i915_render->base.max_vertex_buffer_bytes = 16*4096; + /* NOTE: it must be such that state and vertices indices fit in a single * batch buffer. */ @@ -605,7 +605,7 @@ i915_vbuf_render_create(struct i915_context *i915) i915_render->vbo_offset = 0; i915_render->pool_used = FALSE; - i915_render->pool_buffer_size = 128 * 4096; + i915_render->pool_buffer_size = i915_render->base.max_vertex_buffer_bytes * 4; i915_render->pool_fifo = u_fifo_create(6); for (i = 0; i < 6; i++) u_fifo_add(i915_render->pool_fifo, |