mesa: fix vulkan driver check
This commit is contained in:
parent
eb296ea869
commit
16680da895
|
@ -75,6 +75,7 @@ esac
|
||||||
if [ "$_have_amd" ]; then
|
if [ "$_have_amd" ]; then
|
||||||
# amd cards can use clover
|
# amd cards can use clover
|
||||||
_have_opencl=yes
|
_have_opencl=yes
|
||||||
|
_have_vulkan=yes
|
||||||
_gallium_drivers+=",r300,r600,radeonsi"
|
_gallium_drivers+=",r300,r600,radeonsi"
|
||||||
_vulkan_drivers+=",amd"
|
_vulkan_drivers+=",amd"
|
||||||
_dri_drivers+=",r100,r200"
|
_dri_drivers+=",r100,r200"
|
||||||
|
@ -84,6 +85,7 @@ if [ "$_have_amd" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$_have_intel" ]; then
|
if [ "$_have_intel" ]; then
|
||||||
|
_have_vulkan=yes
|
||||||
_gallium_drivers+=",iris"
|
_gallium_drivers+=",iris"
|
||||||
_vulkan_drivers+=",intel"
|
_vulkan_drivers+=",intel"
|
||||||
_dri_drivers+=",i915,i965"
|
_dri_drivers+=",i915,i965"
|
||||||
|
@ -149,7 +151,7 @@ fi
|
||||||
|
|
||||||
configure_args+=" ${_gallium_drivers} ${_vulkan_drivers} ${_dri_drivers}"
|
configure_args+=" ${_gallium_drivers} ${_vulkan_drivers} ${_dri_drivers}"
|
||||||
|
|
||||||
if [ "$_vulkan_drivers" ]; then
|
if [ "$_have_vulkan" ]; then
|
||||||
configure_args+=" -Dvulkan-overlay-layer=true"
|
configure_args+=" -Dvulkan-overlay-layer=true"
|
||||||
subpackages+=" mesa-vulkan-overlay-layer"
|
subpackages+=" mesa-vulkan-overlay-layer"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue