diff options
author | Marek Olšák <[email protected]> | 2017-12-05 20:04:11 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-12-06 15:19:02 +0100 |
commit | 7a6643fb4cace23c8aef260fed7f28685d236fd0 (patch) | |
tree | af1eb7d83a4305e7fa5a150e22e26e99e0328e37 /src/gallium/drivers/radeon/r600_pipe_common.c | |
parent | 3e1287caefed01a5f6218e2911ec8409c63ad397 (diff) |
radeonsi: use a separate allocator for fine fences
Tested-by: Dieter Nützel <[email protected]>
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon/r600_pipe_common.c')
-rw-r--r-- | src/gallium/drivers/radeon/r600_pipe_common.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/r600_pipe_common.c b/src/gallium/drivers/radeon/r600_pipe_common.c index d85f9f03110..9090e65aaa8 100644 --- a/src/gallium/drivers/radeon/r600_pipe_common.c +++ b/src/gallium/drivers/radeon/r600_pipe_common.c @@ -454,6 +454,11 @@ bool si_common_context_init(struct r600_common_context *rctx, if (!rctx->b.const_uploader) return false; + rctx->cached_gtt_allocator = u_upload_create(&rctx->b, 16 * 1024, + 0, PIPE_USAGE_STAGING, 0); + if (!rctx->cached_gtt_allocator) + return false; + rctx->ctx = rctx->ws->ctx_create(rctx->ws); if (!rctx->ctx) return false; @@ -498,6 +503,8 @@ void si_common_context_cleanup(struct r600_common_context *rctx) u_upload_destroy(rctx->b.stream_uploader); if (rctx->b.const_uploader) u_upload_destroy(rctx->b.const_uploader); + if (rctx->cached_gtt_allocator) + u_upload_destroy(rctx->cached_gtt_allocator); slab_destroy_child(&rctx->pool_transfers); slab_destroy_child(&rctx->pool_transfers_unsync); |