mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
parent
ad6ba5a712
commit
630d602900
1 changed files with 1 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue