From: Marek Olšák Date: Wed, 30 Jan 2019 19:29:36 +0000 (-0500) Subject: radeonsi: make allocator_zeroed_memory unmappable and use bigger buffers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d72c3198677c8bc276db3f75bc84fd25cf0293f5;p=mesa.git radeonsi: make allocator_zeroed_memory unmappable and use bigger buffers Reviewed-by: Nicolai Hähnle --- diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index 98059ddbf8b..c6f93e7b15e 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c +++ b/src/gallium/drivers/radeonsi/si_pipe.c @@ -430,8 +430,9 @@ static struct pipe_context *si_create_context(struct pipe_screen *screen, } sctx->allocator_zeroed_memory = - u_suballocator_create(&sctx->b, sscreen->info.gart_page_size, + u_suballocator_create(&sctx->b, 128 * 1024, 0, PIPE_USAGE_DEFAULT, + SI_RESOURCE_FLAG_UNMAPPABLE | SI_RESOURCE_FLAG_CLEAR, false); if (!sctx->allocator_zeroed_memory) goto fail;