diff options
author | Kenneth Graunke <[email protected]> | 2019-03-21 14:56:12 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-03-21 19:07:17 -0700 |
commit | a342f2deb132cd92d4e48c88132e400cefbcbec7 (patch) | |
tree | 1c5de4955b2f9da5893d38d49b8a06008abd77de /src | |
parent | 9dd92d08a5522e4385f00a0ed37a12a64255d4fb (diff) |
iris: Fix util_vma_heap_init size for IRIS_MEMZONE_SHADER
Fixes assertions when disabling bucket allocators.
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/iris/iris_bufmgr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/iris/iris_bufmgr.c b/src/gallium/drivers/iris/iris_bufmgr.c index ae335163d45..e0d167913d2 100644 --- a/src/gallium/drivers/iris/iris_bufmgr.c +++ b/src/gallium/drivers/iris/iris_bufmgr.c @@ -1637,7 +1637,7 @@ iris_bufmgr_init(struct gen_device_info *devinfo, int fd) const uint64_t _4GB = 1ull << 32; util_vma_heap_init(&bufmgr->vma_allocator[IRIS_MEMZONE_SHADER], - PAGE_SIZE, _4GB); + PAGE_SIZE, _4GB - PAGE_SIZE); util_vma_heap_init(&bufmgr->vma_allocator[IRIS_MEMZONE_SURFACE], IRIS_MEMZONE_SURFACE_START, _4GB - IRIS_MAX_BINDERS * IRIS_BINDER_SIZE); |