diff options
author | Nicolai Hähnle <[email protected]> | 2016-09-27 19:06:13 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2016-10-05 15:42:17 +0200 |
commit | 0334ba150f429b7d6b0bdc003c4301e0ad5fa21d (patch) | |
tree | 93ae73889193213e9f8a0c1a487a900d28b9d965 /src/gallium/drivers/freedreno/freedreno_screen.c | |
parent | 616e36674a1079dcfa131b3c9155cc473441b3de (diff) |
freedreno: use the new parent/child pools for transfers
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_screen.c')
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_screen.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; |