i965: Force VMA alignment to be a multiple of the page size.

This should happen regardless, but let's be paranoid.

Fixes: 01058a5522 i965: Add virtual memory allocator infrastructure to brw_bufmgr.
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
Kenneth Graunke 2019-04-26 18:52:45 -07:00
parent 15f134c628
commit 17210c63a9
1 changed files with 2 additions and 0 deletions

View File

@ -402,6 +402,8 @@ vma_alloc(struct brw_bufmgr *bufmgr,
/* Without softpin support, we let the kernel assign addresses. */
assert(brw_using_softpin(bufmgr));
alignment = ALIGN(alignment, PAGE_SIZE);
struct bo_cache_bucket *bucket = get_bucket_allocator(bufmgr, size);
uint64_t addr;