summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_context.c
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2016-09-27 18:59:56 +0200
committerNicolai Hähnle <[email protected]>2016-10-05 15:42:13 +0200
commit616e36674a1079dcfa131b3c9155cc473441b3de (patch)
tree329382b2958e2fbb03e296906f6c7498082ae1a9 /src/gallium/drivers/r300/r300_context.c
parente56e1f8119f28eebbe6fbe7040c80a6dd884f5fd (diff)
r300: use the new parent/child pools for transfers (v2)
v2: slab_alloc_st -> slab_alloc Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r300/r300_context.c')
-rw-r--r--src/gallium/drivers/r300/r300_context.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gallium/drivers/r300/r300_context.c b/src/gallium/drivers/r300/r300_context.c
index 3e5f1d69fd4..b914cdb919b 100644
--- a/src/gallium/drivers/r300/r300_context.c
+++ b/src/gallium/drivers/r300/r300_context.c
@@ -100,7 +100,7 @@ static void r300_destroy_context(struct pipe_context* context)
rc_destroy_regalloc_state(&r300->fs_regalloc_state);
/* XXX: No way to tell if this was initialized or not? */
- slab_destroy(&r300->pool_transfers);
+ slab_destroy_child(&r300->pool_transfers);
/* Free the structs allocated in r300_setup_atoms() */
if (r300->aa_state.state) {
@@ -385,8 +385,7 @@ struct pipe_context* r300_create_context(struct pipe_screen* screen,
r300->context.destroy = r300_destroy_context;
- slab_create(&r300->pool_transfers,
- sizeof(struct pipe_transfer), 64);
+ slab_create_child(&r300->pool_transfers, &r300screen->pool_transfers);
r300->ctx = rws->ctx_create(rws);
if (!r300->ctx)