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:
Rob Clark 2024-05-31 13:09:38 -07:00 committed by Marge Bot
parent 4c469b7cf0
commit 27dd3807a8

View file

@ -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;
}