mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
iris: Force VMA alignment to be a multiple of the page size.
This should happen regardless, but let's be paranoid.
This commit is contained in:
parent
068a700195
commit
bd4b18d255
1 changed files with 3 additions and 0 deletions
|
|
@ -410,6 +410,9 @@ vma_alloc(struct iris_bufmgr *bufmgr,
|
|||
uint64_t size,
|
||||
uint64_t alignment)
|
||||
{
|
||||
/* Force alignment to be some number of pages */
|
||||
alignment = ALIGN(alignment, PAGE_SIZE);
|
||||
|
||||
if (memzone == IRIS_MEMZONE_BORDER_COLOR_POOL)
|
||||
return IRIS_BORDER_COLOR_POOL_ADDRESS;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue