radeonsi: use new tc util for setting bytes_mapped_limit
Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11853>
This commit is contained in:
committed by
Marge Bot
parent
671d579b46
commit
01414d435c
@@ -795,7 +795,6 @@ static struct pipe_context *si_pipe_create_context(struct pipe_screen *screen, v
|
||||
{
|
||||
struct si_screen *sscreen = (struct si_screen *)screen;
|
||||
struct pipe_context *ctx;
|
||||
uint64_t total_ram;
|
||||
|
||||
if (sscreen->debug_flags & DBG(CHECK_VM))
|
||||
flags |= PIPE_CONTEXT_DEBUG;
|
||||
@@ -831,9 +830,8 @@ static struct pipe_context *si_pipe_create_context(struct pipe_screen *screen, v
|
||||
true,
|
||||
&((struct si_context *)ctx)->tc);
|
||||
|
||||
if (tc && tc != ctx && os_get_total_physical_memory(&total_ram)) {
|
||||
((struct threaded_context *) tc)->bytes_mapped_limit = total_ram / 4;
|
||||
}
|
||||
if (tc && tc != ctx)
|
||||
threaded_context_init_bytes_mapped_limit((struct threaded_context *)tc, 4);
|
||||
|
||||
return tc;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user