mesa: add zink gallium driver

This commit is contained in:
Arda Demir 2021-08-06 13:38:14 +03:00 committed by Érico Nogueira Rolim
parent 7e4ec89b0c
commit 7df9f89482
1 changed files with 10 additions and 2 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'mesa' # Template file for 'mesa'
pkgname=mesa pkgname=mesa
version=21.1.6 version=21.1.6
revision=1 revision=2
wrksrc="mesa-${version}" wrksrc="mesa-${version}"
build_style=meson build_style=meson
configure_args="-Dglvnd=true -Dshared-glapi=enabled -Dgbm=enabled -Degl=enabled configure_args="-Dglvnd=true -Dshared-glapi=enabled -Dgbm=enabled -Degl=enabled
@ -152,9 +152,10 @@ fi
_vulkan_drivers=${_vulkan_drivers/=,/=} _vulkan_drivers=${_vulkan_drivers/=,/=}
_dri_drivers=${_dri_drivers/=,/=} _dri_drivers=${_dri_drivers/=,/=}
configure_args+=" ${_gallium_drivers} ${_vulkan_drivers} ${_dri_drivers}" configure_args+=" ${_vulkan_drivers} ${_dri_drivers}"
if [ "$_have_vulkan" ]; then if [ "$_have_vulkan" ]; then
_have_zink=yes
configure_args+=" -Dvulkan-layers=device-select,overlay" configure_args+=" -Dvulkan-layers=device-select,overlay"
if [ "$_have_intel" ]; then if [ "$_have_intel" ]; then
configure_args+=",intel-nullhw" configure_args+=",intel-nullhw"
@ -162,6 +163,13 @@ if [ "$_have_vulkan" ]; then
subpackages+=" mesa-vulkan-overlay-layer" subpackages+=" mesa-vulkan-overlay-layer"
fi fi
if [ "$_have_zink" ]; then
_gallium_drivers+=",zink"
makedepends+=" vulkan-loader"
fi
configure_args+=" ${_gallium_drivers}"
# must be the last one for proper order # must be the last one for proper order
subpackages+=" mesa-dri MesaLib-devel" subpackages+=" mesa-dri MesaLib-devel"