diff options
author | Jason Ekstrand <[email protected]> | 2015-09-15 16:54:56 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-09-17 17:44:20 -0700 |
commit | 8c6bc1e85d4b2eebf90a5ac862d650c9973bb126 (patch) | |
tree | 64df207f5fd7b4cfd047c7628d11465d6100fcc1 /src/vulkan/anv_private.h | |
parent | 74bf7aa07c0e87cafb1a9fb085a2fe99a548c8de (diff) |
anv/allocator: Create 2GB memfd up-front for the block pool
Diffstat (limited to 'src/vulkan/anv_private.h')
-rw-r--r-- | src/vulkan/anv_private.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vulkan/anv_private.h b/src/vulkan/anv_private.h index 5e4fa35e208..5931e0af98d 100644 --- a/src/vulkan/anv_private.h +++ b/src/vulkan/anv_private.h @@ -268,6 +268,9 @@ struct anv_block_pool { struct anv_block_state state; }; +/* Block pools are backed by a fixed-size 2GB memfd */ +#define BLOCK_POOL_MEMFD_SIZE (1ull << 32) + static inline uint32_t anv_block_pool_size(struct anv_block_pool *pool) { |