iris: slab allocate transfers
apparently we need this for u_threaded_context
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user