Module: Mesa Branch: master Commit: bd4b18d255581e71c152cdef0f475091f6a2a132 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=bd4b18d255581e71c152cdef0f475091f6a2a132
Author: Kenneth Graunke <[email protected]> Date: Fri Apr 26 18:53:57 2019 -0700 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; _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
