iris: port non-bucket alignment bugfix

Sergii's 24839663a4
This commit is contained in:
Kenneth Graunke 2018-08-16 23:49:31 -07:00
parent ad6ba5a712
commit 630d602900

View file

@ -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;
}