Show Your Support: This site is primarily supported by advertisements. Ads are what have allowed this site to be maintained on a daily basis for the past 18+ years. We do our best to ensure only clean, relevant ads are shown, when any nasty ads are detected, we work to remove them ASAP. If you would like to view the site without ads while still supporting our work, please consider our ad-free Phoronix Premium.
Virtual GEM Is Coming For Linux 4.1
Virtual GEM (vGEM) is coming! VGEM can increase Mesa's software rasterizer performance and this fake GEM memory management support was devised by a Google engineer, Zach Reizner.
Reizer's patch has been committed to DRM-Next, meaning it will land in mainline for the Linux 4.1 kernel merge window. The patch explains, "This patch implements the virtual GEM driver with PRIME sharing which allows vgem to import a gem object from other drivers for the purpose of mmap-ing them to userspace. The mmap is done using the mmap operation exported by other drivers."
This virtual GEM provider adds just over 500 lines of new code to the kernel's DRM subsystem. The DRM_VGEM option adds, "Choose this option to get a virtual graphics memory manager, as used by Mesa's software renderer for enhanced performance. If M is selected the module will be called vgem."