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:
parent
c3914bb2e8
commit
1132df843c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue