From bd4b18d255581e71c152cdef0f475091f6a2a132 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Fri, 26 Apr 2019 18:53:57 -0700 Subject: [PATCH] iris: Force VMA alignment to be a multiple of the page size. This should happen regardless, but let's be paranoid. --- src/gallium/drivers/iris/iris_bufmgr.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/iris/iris_bufmgr.c b/src/gallium/drivers/iris/iris_bufmgr.c index 221b21d029c..11b3885be29 100644 --- a/src/gallium/drivers/iris/iris_bufmgr.c +++ b/src/gallium/drivers/iris/iris_bufmgr.c @@ -410,6 +410,9 @@ vma_alloc(struct iris_bufmgr *bufmgr, uint64_t size, uint64_t alignment) { + /* Force alignment to be some number of pages */ + alignment = ALIGN(alignment, PAGE_SIZE); + if (memzone == IRIS_MEMZONE_BORDER_COLOR_POOL) return IRIS_BORDER_COLOR_POOL_ADDRESS; -- 2.30.2