mesa: enable svga gallium driver on aarch64#61072
Merged
Merged
Conversation
VMware Fusion on Apple Silicon creates aarch64 VMs that use the vmwgfx kernel driver. The svga gallium driver provides 3D accelerated graphics via OpenGL 4.3 in these VMs but was only being built for x86. The driver builds cleanly on aarch64 (Arch Linux ARM ships it) and the vmwgfx kernel module already supports aarch64 upstream. Without it, aarch64 VMware guests fall back to software rendering (llvmpipe). Split the armv[67]*/aarch64* case to add _have_vmware=yes for aarch64 while leaving armv6/armv7 unchanged.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Testing the changes
Local build testing
vmwgfx_dri.sopresent in/usr/lib64/dri/glxinforeports:OpenGL renderer string: SVGA3D; build: RELEASE; LLVM;Description
Enable the VMware svga gallium driver (
vmwgfx_dri.so) for aarch64targets by adding
_have_vmware=yesto the aarch64 case.VMware Fusion on Apple Silicon creates aarch64 Linux VMs that use the
vmwgfxkernel driver (SVGA version 3, shader model SM_5_1X). The svgagallium driver provides hardware-accelerated OpenGL 4.3 in these VMs but
is currently only built for x86. Without it, aarch64 VMware guests fall
back to llvmpipe software rendering — glamor detects llvmpipe and refuses
to initialize, so X runs unaccelerated.
VMware documents 3D acceleration support for arm64 Linux guests with
kernel >= 5.19 and Mesa >= 22.1.1, both satisfied by current Void.
Splits the
armv[67]*|aarch64*case to add_have_vmware=yesforaarch64 while leaving armv6/armv7 unchanged.
Arch Linux ARM ships the svga driver for aarch64:
https://github.com/archlinuxarm/PKGBUILDs/blob/master/extra/mesa/PKGBUILD