diff options
author | Thomas Hellstrom <[email protected]> | 2020-01-21 10:58:25 +0100 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-01-29 10:56:06 +0000 |
commit | 8afe12b2123cca006df6d0eaa45eb89c36f63a98 (patch) | |
tree | 1020b69adffc81800b84d3edf9f8634fa8abdaa7 /src/gallium/winsys | |
parent | 3b3c2daf3a73bd8e9f5dc4780a9074aa55f7cd0c (diff) |
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>
Diffstat (limited to 'src/gallium/winsys')
-rw-r--r-- | src/gallium/winsys/svga/drm/vmw_screen_ioctl.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |