mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
iris: Fix util_vma_heap_init size for IRIS_MEMZONE_SHADER
Fixes assertions when disabling bucket allocators.
This commit is contained in:
parent
9dd92d08a5
commit
a342f2deb1
1 changed files with 1 additions and 1 deletions
|
|
@ -1637,7 +1637,7 @@ iris_bufmgr_init(struct gen_device_info *devinfo, int fd)
|
||||||
const uint64_t _4GB = 1ull << 32;
|
const uint64_t _4GB = 1ull << 32;
|
||||||
|
|
||||||
util_vma_heap_init(&bufmgr->vma_allocator[IRIS_MEMZONE_SHADER],
|
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],
|
util_vma_heap_init(&bufmgr->vma_allocator[IRIS_MEMZONE_SURFACE],
|
||||||
IRIS_MEMZONE_SURFACE_START,
|
IRIS_MEMZONE_SURFACE_START,
|
||||||
_4GB - IRIS_MAX_BINDERS * IRIS_BINDER_SIZE);
|
_4GB - IRIS_MAX_BINDERS * IRIS_BINDER_SIZE);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue