Skip to content
Snippets Groups Projects
Commit faa7daa5 authored by Kenneth Graunke's avatar Kenneth Graunke Committed by Juan A. Suárez
Browse files

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


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

Fixes: 01058a55 i965: Add virtual memory allocator infrastructure to brw_bufmgr.
Reviewed-by: default avatarJason Ekstrand <jason@jlekstrand.net>
(cherry picked from commit 17210c63)
parent fd27561c
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment