mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
freedreno: Use buffer replacement limit
Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29507>
This commit is contained in:
parent
4c469b7cf0
commit
27dd3807a8
1 changed files with 4 additions and 1 deletions
|
|
@ -755,8 +755,11 @@ fd_context_init_tc(struct pipe_context *pctx, unsigned flags)
|
|||
},
|
||||
&ctx->tc);
|
||||
|
||||
if (tc && tc != pctx)
|
||||
if (tc && tc != pctx) {
|
||||
threaded_context_init_bytes_mapped_limit((struct threaded_context *)tc, 16);
|
||||
((struct threaded_context *)tc)->bytes_replaced_limit =
|
||||
((struct threaded_context *)tc)->bytes_mapped_limit / 4;
|
||||
}
|
||||
|
||||
return tc;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue