mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 23:40:12 +01:00
zink: create separate upload mgr for constants
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9789>
This commit is contained in:
parent
a6b367a5af
commit
a3c65ffa3f
1 changed files with 2 additions and 1 deletions
|
|
@ -327,6 +327,7 @@ zink_context_destroy(struct pipe_context *pctx)
|
|||
|
||||
util_primconvert_destroy(ctx->primconvert);
|
||||
u_upload_destroy(pctx->stream_uploader);
|
||||
u_upload_destroy(pctx->const_uploader);
|
||||
slab_destroy_child(&ctx->transfer_pool);
|
||||
_mesa_hash_table_destroy(ctx->program_cache, NULL);
|
||||
_mesa_hash_table_destroy(ctx->compute_program_cache, NULL);
|
||||
|
|
@ -2392,7 +2393,7 @@ zink_context_create(struct pipe_screen *pscreen, void *priv, unsigned flags)
|
|||
slab_create_child(&ctx->transfer_pool, &screen->transfer_pool);
|
||||
|
||||
ctx->base.stream_uploader = u_upload_create_default(&ctx->base);
|
||||
ctx->base.const_uploader = ctx->base.stream_uploader;
|
||||
ctx->base.const_uploader = u_upload_create_default(&ctx->base);
|
||||
for (int i = 0; i < ARRAY_SIZE(ctx->fb_clears); i++)
|
||||
util_dynarray_init(&ctx->fb_clears[i].clears, ctx);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue