iris: slab allocate transfers

apparently we need this for u_threaded_context
This commit is contained in:
Kenneth Graunke
2018-07-06 11:29:51 -07:00
parent 5165308169
commit a3f77eceb4
6 changed files with 29 additions and 15 deletions

View File

@@ -84,6 +84,8 @@ iris_destroy_context(struct pipe_context *ctx)
u_upload_destroy(ice->state.surface_uploader);
u_upload_destroy(ice->state.dynamic_uploader);
slab_destroy_child(&ice->transfer_pool);
iris_batch_free(&ice->render_batch);
ralloc_free(ice);
@@ -138,6 +140,8 @@ iris_create_context(struct pipe_screen *pscreen, void *priv, unsigned flags)
iris_init_program_cache(ice);
iris_init_border_color_pool(ice);
slab_create_child(&ice->transfer_pool, &screen->transfer_pool);
ice->state.surface_uploader =
u_upload_create(&ice->ctx, 16384, PIPE_BIND_CUSTOM, PIPE_USAGE_IMMUTABLE,
IRIS_RESOURCE_FLAG_SURFACE_MEMZONE);