diff options
author | Kenneth Graunke <[email protected]> | 2018-08-16 23:49:31 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:08 -0800 |
commit | 630d602900f8e9e101659c34061dc85db3f0be48 (patch) | |
tree | 3ab40076dce9b65a4fdc76ce7828fd32c2498359 /src/gallium/drivers/iris/iris_bufmgr.c | |
parent | ad6ba5a7122c1f9f05857ed36200a9592b3c82f7 (diff) |
iris: port non-bucket alignment bugfix
Sergii's 24839663a40257e0468406d72c48d431b5ae2bd4
Diffstat (limited to 'src/gallium/drivers/iris/iris_bufmgr.c')
-rw-r--r-- | src/gallium/drivers/iris/iris_bufmgr.c | 4 |
1 files changed, 1 insertions, 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; } |