Commit d72c3198 authored by Marek Olšák's avatar Marek Olšák
Browse files

radeonsi: make allocator_zeroed_memory unmappable and use bigger buffers


Reviewed-by: default avatarNicolai Hähnle <nicolai.haehnle@amd.com>
parent 5068dec5
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment