mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
media-libs/mesa: Replace vulkan REQUIRED_USE with pkg_pretend()
Ignore USE=vulkan if no supported VIDEO_CARDS are set, like we do with other USE flags. Signed-off-by: Matt Turner <mattst88@gentoo.org>
This commit is contained in:
@@ -44,7 +44,6 @@ REQUIRED_USE="
|
||||
gles1? ( egl )
|
||||
gles2? ( egl )
|
||||
vulkan? ( dri3
|
||||
|| ( video_cards_i965 video_cards_iris video_cards_radeonsi )
|
||||
video_cards_radeonsi? ( llvm ) )
|
||||
vulkan-overlay? ( vulkan )
|
||||
wayland? ( egl gbm )
|
||||
@@ -260,6 +259,14 @@ llvm_check_deps() {
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
if use vulkan; then
|
||||
if ! use video_cards_i965 &&
|
||||
! use video_cards_iris &&
|
||||
! use video_cards_radeonsi; then
|
||||
ewarn "Ignoring USE=vulkan since VIDEO_CARDS does not contain i965, irisi, or radeonsi"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use opencl; then
|
||||
if ! use video_cards_r600 &&
|
||||
! use video_cards_radeonsi; then
|
||||
|
||||
@@ -44,7 +44,6 @@ REQUIRED_USE="
|
||||
gles1? ( egl )
|
||||
gles2? ( egl )
|
||||
vulkan? ( dri3
|
||||
|| ( video_cards_i965 video_cards_iris video_cards_radeonsi )
|
||||
video_cards_radeonsi? ( llvm ) )
|
||||
vulkan-overlay? ( vulkan )
|
||||
wayland? ( egl gbm )
|
||||
@@ -261,6 +260,14 @@ llvm_check_deps() {
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
if use vulkan; then
|
||||
if ! use video_cards_i965 &&
|
||||
! use video_cards_iris &&
|
||||
! use video_cards_radeonsi; then
|
||||
ewarn "Ignoring USE=vulkan since VIDEO_CARDS does not contain i965, irisi, or radeonsi"
|
||||
fi
|
||||
fi
|
||||
|
||||
if use opencl; then
|
||||
if ! use video_cards_r600 &&
|
||||
! use video_cards_radeonsi; then
|
||||
|
||||
Reference in New Issue
Block a user