freedreno: use new tc util for setting bytes_mapped_limit

Acked-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11853>
This commit is contained in:
Mike Blumenkrantz 2021-07-14 13:46:42 -04:00 committed by Marge Bot
parent c3914bb2e8
commit 1132df843c
1 changed files with 2 additions and 4 deletions

View File

@ -706,10 +706,8 @@ fd_context_init_tc(struct pipe_context *pctx, unsigned flags)
false,
&ctx->tc);
uint64_t total_ram;
if (tc && tc != pctx && os_get_total_physical_memory(&total_ram)) {
((struct threaded_context *)tc)->bytes_mapped_limit = total_ram / 16;
}
if (tc && tc != pctx)
threaded_context_init_bytes_mapped_limit((struct threaded_context *)tc, 16);
return tc;
}