From 0334ba150f429b7d6b0bdc003c4301e0ad5fa21d Mon Sep 17 00:00:00 2001 From: Nicolai Hähnle Date: Tue, 27 Sep 2016 19:06:13 +0200 Subject: freedreno: use the new parent/child pools for transfers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Marek Olšák --- src/gallium/drivers/freedreno/freedreno_screen.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gallium/drivers/freedreno/freedreno_screen.c') diff --git a/src/gallium/drivers/freedreno/freedreno_screen.c b/src/gallium/drivers/freedreno/freedreno_screen.c index 598a81126e8..bc54539c676 100644 --- a/src/gallium/drivers/freedreno/freedreno_screen.c +++ b/src/gallium/drivers/freedreno/freedreno_screen.c @@ -138,6 +138,8 @@ fd_screen_destroy(struct pipe_screen *pscreen) fd_bc_fini(&screen->batch_cache); + slab_destroy_parent(&screen->transfer_pool); + pipe_mutex_destroy(screen->lock); free(screen); @@ -696,6 +698,8 @@ fd_screen_create(struct fd_device *dev) pscreen->fence_reference = fd_screen_fence_ref; pscreen->fence_finish = fd_screen_fence_finish; + slab_create_parent(&screen->transfer_pool, sizeof(struct fd_transfer), 16); + util_format_s3tc_init(); return pscreen; -- cgit v1.2.3