anv: change BLOCK_POOL_MEMFD_SIZE to exactly 2GB

This is what comment above definition says and change fixes issue with
32bit build where BLOCK_POOL_MEMFD_SIZE is used as ftruncate parameter
and constant currently gets converted from 4294967296 to 0.

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Plamena Manolova <plamena.manolova@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
Tapani Pälli
2017-03-07 11:17:42 +02:00
parent 58b69eedd3
commit db5f9c3177

View File

@@ -378,7 +378,7 @@ struct anv_block_pool {
};
/* Block pools are backed by a fixed-size 2GB memfd */
#define BLOCK_POOL_MEMFD_SIZE (1ull << 32)
#define BLOCK_POOL_MEMFD_SIZE (1ul << 31)
/* The center of the block pool is also the middle of the memfd. This may
* change in the future if we decide differently for some reason.