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:
Thomas Hellstrom 2020-01-21 10:58:25 +01:00 committed by Marge Bot
parent 3b3c2daf3a
commit 8afe12b212

View file

@ -694,6 +694,7 @@ vmw_ioctl_region_map(struct vmw_region *region)
return NULL;
}
(void) madvise(map, region->size, MADV_HUGEPAGE);
region->data = map;
}