mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-29 17:02:56 +02:00
mesa: enable drivers more liberally (AMD on ARM, etc)
This commit is contained in:
parent
77187176dd
commit
a96999fdcf
1 changed files with 9 additions and 15 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'mesa'
|
# Template file for 'mesa'
|
||||||
pkgname=mesa
|
pkgname=mesa
|
||||||
version=20.1.4
|
version=20.1.4
|
||||||
revision=1
|
revision=2
|
||||||
wrksrc="mesa-${version}"
|
wrksrc="mesa-${version}"
|
||||||
build_style=meson
|
build_style=meson
|
||||||
configure_args="-Dglvnd=true -Dshared-glapi=true -Dgbm=true -Degl=true
|
configure_args="-Dglvnd=true -Dshared-glapi=true -Dgbm=true -Degl=true
|
||||||
|
@ -41,29 +41,23 @@ replaces="libGL>=10_1<19.2.5_2 libEGL>=10_1<19.2.5_2 libGLES>=10_1<19.2.5_2"
|
||||||
# swrast always present
|
# swrast always present
|
||||||
_gallium_drivers=" -Dgallium-drivers=swrast"
|
_gallium_drivers=" -Dgallium-drivers=swrast"
|
||||||
_vulkan_drivers=" -Dvulkan-drivers="
|
_vulkan_drivers=" -Dvulkan-drivers="
|
||||||
# legacy drivers only on x86 and ppc in general
|
# pre-gallium drivers are mostly for old ati + i915/965
|
||||||
_dri_drivers=" -Ddri-drivers="
|
_dri_drivers=" -Ddri-drivers="
|
||||||
|
|
||||||
# amd drivers only on x86 and ppc
|
# amd and nvidia drivers on all platforms except where it makes no sense
|
||||||
# this also enables clover opencl
|
# amd implicitly enables clover opencl, also enable hwdec and virgl too
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
i686*|x86_64*|ppc*) _have_amd=yes ;;
|
armv5*|mips*) ;;
|
||||||
esac
|
*)
|
||||||
|
|
||||||
# hardware video decoding on x86, ppc, aarch64
|
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
|
||||||
i686*|x86_64*|ppc*|aarch64*) _have_hwdec=yes ;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# most platforms get nvidia and virgl
|
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
|
||||||
i686*|x86_64*|ppc*|armv[67]*|aarch64*)
|
|
||||||
_have_nv=yes
|
_have_nv=yes
|
||||||
|
_have_amd=yes
|
||||||
|
_have_hwdec=yes
|
||||||
_have_virgl=yes
|
_have_virgl=yes
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# x86 additionally gets intel, vmware and gallium nine
|
# x86 additionally gets intel, vmware and gallium nine
|
||||||
|
# arm gets its own drivers (for mali, tegra etc.)
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
i686*|x86_64*)
|
i686*|x86_64*)
|
||||||
_have_intel=yes
|
_have_intel=yes
|
||||||
|
|
Loading…
Add table
Reference in a new issue