iris: fix memzone_for_address since multibinder changes
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 14 Sep 2018 22:12:36 +0000 (15:12 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:08 +0000 (10:26 -0800)
src/gallium/drivers/iris/iris_bufmgr.c

index 50e7d4f715da4b11774e4b5ea3b32f5f79deb8bd..30f9746a30833eaeac3d56103a3deb6210a93fbc 100644 (file)
@@ -259,12 +259,12 @@ memzone_for_address(uint64_t address)
    if (address > IRIS_MEMZONE_DYNAMIC_START)
       return IRIS_MEMZONE_DYNAMIC;
 
-   if (address > IRIS_MEMZONE_BINDER_START)
-      return IRIS_MEMZONE_BINDER;
-
    if (address > IRIS_MEMZONE_SURFACE_START)
       return IRIS_MEMZONE_SURFACE;
 
+   if (address > IRIS_MEMZONE_BINDER_START)
+      return IRIS_MEMZONE_BINDER;
+
    return IRIS_MEMZONE_SHADER;
 }