summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/i915/i915_context.c
diff options
context:
space:
mode:
authorJakob Bornecrantz <wallbraker@gmail.com>2010-12-03 19:42:45 +0100
committerJakob Bornecrantz <wallbraker@gmail.com>2011-01-21 20:53:29 +0100
commit7287964f944d7e2bcf409b758163ab75c61b0f8e (patch)
treed5a9c1a26bacb968e5df8c87a15368206af80b35 /src/gallium/drivers/i915/i915_context.c
parent484edfc8151ddf63d3e0e7be3b4c8fa3906a0ec9 (diff)
i915g: Use slab allocator for transfers
Also remove unused i915_transfer struct
Diffstat (limited to 'src/gallium/drivers/i915/i915_context.c')
-rw-r--r--src/gallium/drivers/i915/i915_context.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/i915/i915_context.c b/src/gallium/drivers/i915/i915_context.c
index 9be3161925..9d43381f7b 100644
--- a/src/gallium/drivers/i915/i915_context.c
+++ b/src/gallium/drivers/i915/i915_context.c
@@ -140,6 +140,10 @@ i915_create_context(struct pipe_screen *screen, void *priv)
i915->base.draw_vbo = i915_draw_vbo;
+ /* init this before draw */
+ util_slab_create(&i915->transfer_pool, sizeof(struct pipe_transfer),
+ 16, UTIL_SLAB_SINGLETHREADED);
+
/*
* Create drawing context and plug our rendering stage into it.
*/