diff --git a/srcpkgs/mesa/template b/srcpkgs/mesa/template index 014107d2541..fd26e52dc85 100644 --- a/srcpkgs/mesa/template +++ b/srcpkgs/mesa/template @@ -75,6 +75,7 @@ esac if [ "$_have_amd" ]; then # amd cards can use clover _have_opencl=yes + _have_vulkan=yes _gallium_drivers+=",r300,r600,radeonsi" _vulkan_drivers+=",amd" _dri_drivers+=",r100,r200" @@ -84,6 +85,7 @@ if [ "$_have_amd" ]; then fi if [ "$_have_intel" ]; then + _have_vulkan=yes _gallium_drivers+=",iris" _vulkan_drivers+=",intel" _dri_drivers+=",i915,i965" @@ -149,7 +151,7 @@ fi configure_args+=" ${_gallium_drivers} ${_vulkan_drivers} ${_dri_drivers}" -if [ "$_vulkan_drivers" ]; then +if [ "$_have_vulkan" ]; then configure_args+=" -Dvulkan-overlay-layer=true" subpackages+=" mesa-vulkan-overlay-layer" fi