From 630d602900f8e9e101659c34061dc85db3f0be48 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Thu, 16 Aug 2018 23:49:31 -0700 Subject: [PATCH] iris: port non-bucket alignment bugfix Sergii's 24839663a40257e0468406d72c48d431b5ae2bd4 --- src/gallium/drivers/iris/iris_bufmgr.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gallium/drivers/iris/iris_bufmgr.c b/src/gallium/drivers/iris/iris_bufmgr.c index ebec10bf093..0a516b5f799 100644 --- a/src/gallium/drivers/iris/iris_bufmgr.c +++ b/src/gallium/drivers/iris/iris_bufmgr.c @@ -509,9 +509,7 @@ bo_alloc_internal(struct iris_bufmgr *bufmgr, * allocation up. */ if (bucket == NULL) { - bo_size = size; - if (bo_size < page_size) - bo_size = page_size; + bo_size = MAX2(ALIGN(size, page_size), page_size); } else { bo_size = bucket->size; } -- 2.30.2