Mesa (main): iris: Align buffer VMA to 2MiB for XeHP

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Dec 13 22:45:07 UTC 2021


Module: Mesa
Branch: main
Commit: abace2b8a454d4aa787a20eadef353d5f6a04592
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=abace2b8a454d4aa787a20eadef353d5f6a04592

Author: Jordan Justen <jordan.l.justen at intel.com>
Date:   Thu Dec  3 15:38:59 2020 -0800

iris: Align buffer VMA to 2MiB for XeHP

Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14155>

---

 src/gallium/drivers/iris/iris_bufmgr.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/iris/iris_bufmgr.c b/src/gallium/drivers/iris/iris_bufmgr.c
index a97409d12c3..05049838ded 100644
--- a/src/gallium/drivers/iris/iris_bufmgr.c
+++ b/src/gallium/drivers/iris/iris_bufmgr.c
@@ -2314,7 +2314,9 @@ iris_bufmgr_create(struct intel_device_info *devinfo, int fd, bool bo_reuse)
    bufmgr->handle_table =
       _mesa_hash_table_create(NULL, _mesa_hash_uint, _mesa_key_uint_equal);
 
-   bufmgr->vma_min_align = devinfo->has_local_mem ? 64 * 1024 : PAGE_SIZE;
+   bufmgr->vma_min_align =
+      devinfo->verx10 >= 125 ? 2 * 1024 * 1024 :
+      (devinfo->has_local_mem ? 64 * 1024 : PAGE_SIZE);
 
    if (devinfo->has_aux_map) {
       bufmgr->aux_map_ctx = intel_aux_map_init(bufmgr, &aux_map_allocator,



More information about the mesa-commit mailing list