Module: Mesa Branch: master Commit: 8afe12b2123cca006df6d0eaa45eb89c36f63a98 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8afe12b2123cca006df6d0eaa45eb89c36f63a98
Author: Thomas Hellstrom <[email protected]> Date: Tue Jan 21 10:58:25 2020 +0100 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 <[email protected]> Reviewed-by: Roland Scheidegger <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3614> --- src/gallium/winsys/svga/drm/vmw_screen_ioctl.c | 1 + 1 file changed, 1 insertion(+) 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; } _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
