radeonsi: make allocator_zeroed_memory unmappable and use bigger buffers
authorMarek Olšák <marek.olsak@amd.com>
Wed, 30 Jan 2019 19:29:36 +0000 (14:29 -0500)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 6 Feb 2019 16:17:21 +0000 (11:17 -0500)
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_pipe.c

index 98059dd..c6f93e7 100644 (file)
@@ -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;