iris: don't include binder in surface VMA range
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 28 Jun 2018 08:00:11 +0000 (01:00 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:07 +0000 (10:26 -0800)
src/gallium/drivers/iris/iris_binder.h
src/gallium/drivers/iris/iris_bufmgr.c
src/gallium/drivers/iris/iris_bufmgr.h

index bae548b9d73fcf3253940c0fdf6f086a94835254..dbb010693f50e3748b2174c4b05e1a387fd87b54 100644 (file)
@@ -33,8 +33,6 @@ struct iris_batch;
 struct iris_bufmgr;
 struct iris_compiled_shader;
 
-#define IRIS_BINDER_SIZE (64 * 1024)
-
 struct iris_binder
 {
    struct iris_bo *bo;
index 8919559ea9ec2a50a59747338ed3837162fc558d..8b7067dc87cd78ad4305100031af072990542e1f 100644 (file)
@@ -1549,7 +1549,8 @@ iris_bufmgr_init(struct gen_device_info *devinfo, int fd)
    util_vma_heap_init(&bufmgr->vma_allocator[IRIS_MEMZONE_SHADER],
                       PAGE_SIZE, _4GB);
    util_vma_heap_init(&bufmgr->vma_allocator[IRIS_MEMZONE_SURFACE],
-                      IRIS_MEMZONE_SURFACE_START, _4GB);
+                      IRIS_MEMZONE_SURFACE_START + IRIS_BINDER_SIZE,
+                      _4GB - IRIS_BINDER_SIZE);
    util_vma_heap_init(&bufmgr->vma_allocator[IRIS_MEMZONE_DYNAMIC],
                       IRIS_MEMZONE_DYNAMIC_START, _4GB);
    util_vma_heap_init(&bufmgr->vma_allocator[IRIS_MEMZONE_OTHER],
index d587314aa5fe149df66031e22324e8f91905e16e..6551f9e7890b75c0e0e068deebc8953bf930293c 100644 (file)
@@ -84,6 +84,7 @@ enum iris_memory_zone {
 #define IRIS_MEMZONE_OTHER_START      (3ull * (1ull << 32))
 
 #define IRIS_BINDER_ADDRESS IRIS_MEMZONE_SURFACE_START
+#define IRIS_BINDER_SIZE (64 * 1024)
 
 struct iris_bo {
    /**