From: Chris Wilson Date: Fri, 14 Sep 2018 22:12:36 +0000 (-0700) Subject: iris: fix memzone_for_address since multibinder changes X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1a61a211f0a875050882bb050b170ecafb48faaf;p=mesa.git iris: fix memzone_for_address since multibinder changes --- diff --git a/src/gallium/drivers/iris/iris_bufmgr.c b/src/gallium/drivers/iris/iris_bufmgr.c index 50e7d4f715d..30f9746a308 100644 --- a/src/gallium/drivers/iris/iris_bufmgr.c +++ b/src/gallium/drivers/iris/iris_bufmgr.c @@ -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; }