Sfoglia il codice sorgente

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>
tags/19.2-branchpoint
Kenneth Graunke 7 anni fa
parent
commit
17210c63a9
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2
    0
      src/mesa/drivers/dri/i965/brw_bufmgr.c

+ 2
- 0
src/mesa/drivers/dri/i965/brw_bufmgr.c Vedi 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;


Loading…
Annulla
Salva