zink: use new tc util for setting bytes_mapped_limit

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11853>
This commit is contained in:
Mike Blumenkrantz
2021-07-14 13:44:39 -04:00
committed by Marge Bot
parent 01414d435c
commit c3914bb2e8
+1 -1
View File
@@ -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;
}