diff options
author | Marek Olšák <[email protected]> | 2019-01-30 14:29:36 -0500 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-02-06 11:17:21 -0500 |
commit | d72c3198677c8bc276db3f75bc84fd25cf0293f5 (patch) | |
tree | 0e633c81f6d40477978f0f49180d8e364cfd1d7d /src/gallium | |
parent | 5068dec5deb3d02693a7d7b1579b1738237e3b6d (diff) |
radeonsi: make allocator_zeroed_memory unmappable and use bigger buffers
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_pipe.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |