mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
winsys/svga: Enable transhuge pages for buffer objects
If the kernel supports it, enable transhuge pages for graphics buffer objects. Except for the syscall itself, this is never expected to cause any negative performance implications. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3614>
This commit is contained in:
parent
3b3c2daf3a
commit
8afe12b212
1 changed files with 1 additions and 0 deletions
|
|
@ -694,6 +694,7 @@ vmw_ioctl_region_map(struct vmw_region *region)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
(void) madvise(map, region->size, MADV_HUGEPAGE);
|
||||
region->data = map;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue