From: Thomas Hellstrom Date: Tue, 21 Jan 2020 09:58:25 +0000 (+0100) Subject: winsys/svga: Enable transhuge pages for buffer objects X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8afe12b2123cca006df6d0eaa45eb89c36f63a98;p=mesa.git 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 Reviewed-by: Roland Scheidegger Part-of: --- diff --git a/src/gallium/winsys/svga/drm/vmw_screen_ioctl.c b/src/gallium/winsys/svga/drm/vmw_screen_ioctl.c index 4ce953fee8d..6f987ba059d 100644 --- a/src/gallium/winsys/svga/drm/vmw_screen_ioctl.c +++ b/src/gallium/winsys/svga/drm/vmw_screen_ioctl.c @@ -694,6 +694,7 @@ vmw_ioctl_region_map(struct vmw_region *region) return NULL; } + (void) madvise(map, region->size, MADV_HUGEPAGE); region->data = map; }