crocus: add unsync transfer pool

Reviewed-by: Zoltán Böszörményi <zboszor@pr.hu>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11710>
This commit is contained in:
Dave Airlie
2021-07-05 15:59:42 +10:00
parent 902eaa9382
commit 86368a5fa2
3 changed files with 12 additions and 1 deletions

View File

@@ -1580,7 +1580,12 @@ crocus_transfer_map(struct pipe_context *ctx,
(usage & PIPE_MAP_DIRECTLY))
return NULL;
struct crocus_transfer *map = slab_alloc(&ice->transfer_pool);
struct crocus_transfer *map;
if (usage & TC_TRANSFER_MAP_THREADED_UNSYNC)
map = slab_alloc(&ice->transfer_pool_unsync);
else
map = slab_alloc(&ice->transfer_pool);
struct pipe_transfer *xfer = &map->base.b;
if (!map)