diff options
author | Nicolai Hähnle <[email protected]> | 2016-09-27 19:12:24 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2016-10-05 15:42:22 +0200 |
commit | 8a943564fd7ebacd2437bb907535b7765ff448e4 (patch) | |
tree | 1b44f125781f42057ca4cef1c27fbe7074c851b4 /src/gallium/drivers/virgl/virgl_context.c | |
parent | 2a83036fe29262c8761812c65d6e81c7198da54e (diff) |
virgl: use the new parent/child pools for transfers
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/virgl/virgl_context.c')
-rw-r--r-- | src/gallium/drivers/virgl/virgl_context.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gallium/drivers/virgl/virgl_context.c b/src/gallium/drivers/virgl/virgl_context.c index a6c05975986..e693a733a89 100644 --- a/src/gallium/drivers/virgl/virgl_context.c +++ b/src/gallium/drivers/virgl/virgl_context.c @@ -862,7 +862,7 @@ virgl_context_destroy( struct pipe_context *ctx ) u_upload_destroy(vctx->uploader); util_primconvert_destroy(vctx->primconvert); - slab_destroy(&vctx->texture_transfer_pool); + slab_destroy_child(&vctx->texture_transfer_pool); FREE(vctx); } @@ -943,8 +943,7 @@ struct pipe_context *virgl_context_create(struct pipe_screen *pscreen, virgl_init_so_functions(vctx); list_inithead(&vctx->to_flush_bufs); - slab_create(&vctx->texture_transfer_pool, sizeof(struct virgl_transfer), - 16); + slab_create_child(&vctx->texture_transfer_pool, rs->texture_transfer_pool); vctx->primconvert = util_primconvert_create(&vctx->base, rs->caps.caps.v1.prim_mask); vctx->uploader = u_upload_create(&vctx->base, 1024 * 1024, |