mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
anv: change BLOCK_POOL_MEMFD_SIZE to 1GB
This allows us to run 32bit Vulkan apps on Android, ftruncate call would fail on 2GB (max size being 2GB - 1). Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
2398770c87
commit
3535b87a1a
1 changed files with 2 additions and 2 deletions
|
|
@ -377,8 +377,8 @@ struct anv_block_pool {
|
|||
struct anv_block_state back_state;
|
||||
};
|
||||
|
||||
/* Block pools are backed by a fixed-size 2GB memfd */
|
||||
#define BLOCK_POOL_MEMFD_SIZE (1ul << 31)
|
||||
/* Block pools are backed by a fixed-size 1GB memfd */
|
||||
#define BLOCK_POOL_MEMFD_SIZE (1ul << 30)
|
||||
|
||||
/* 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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue