From c3914bb2e891faa0409638c6f5f6a5b8a80176ae Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 14 Jul 2021 13:44:39 -0400 Subject: [PATCH] zink: use new tc util for setting bytes_mapped_limit Reviewed-by: Dave Airlie Part-of: --- src/gallium/drivers/zink/zink_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_context.c b/src/gallium/drivers/zink/zink_context.c index d92ddbe0542..e4599292dc2 100644 --- a/src/gallium/drivers/zink/zink_context.c +++ b/src/gallium/drivers/zink/zink_context.c @@ -3576,7 +3576,7 @@ zink_context_create(struct pipe_screen *pscreen, void *priv, unsigned flags) zink_context_is_resource_busy, true, &ctx->tc); if (tc && (struct zink_context*)tc != ctx) { - tc->bytes_mapped_limit = screen->total_mem / 4; + threaded_context_init_bytes_mapped_limit(tc, 4); ctx->base.set_context_param = zink_set_context_param; }