diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index f768d3085f9..ebba2ecdc2d 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c +++ b/src/gallium/drivers/radeonsi/si_pipe.c @@ -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; }