mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 01:20:17 +01:00
radeonsi: make allocator_zeroed_memory unmappable and use bigger buffers
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
5068dec5de
commit
d72c319867
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue