diff options
author | Nicolai Hähnle <[email protected]> | 2016-09-27 18:59:56 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2016-10-05 15:42:13 +0200 |
commit | 616e36674a1079dcfa131b3c9155cc473441b3de (patch) | |
tree | 329382b2958e2fbb03e296906f6c7498082ae1a9 /src/gallium/drivers/r300/r300_context.c | |
parent | e56e1f8119f28eebbe6fbe7040c80a6dd884f5fd (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.c | 5 |
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) |