media-libs/mesa: Add REQUIRED_USE For USE=d3d9

The new Meson build requires a suitable driver to be enabled, and
ignoring the d3d9 USE flag isn't safe since WINE has a dependency on
mesa[d3d9].

Closes: https://bugs.gentoo.org/670737
Signed-off-by: Matt Turner <mattst88@gentoo.org>
This commit is contained in:
Matt Turner
2018-11-10 10:46:56 -08:00
parent 15ff1a16f2
commit 4d352ccbca
2 changed files with 2 additions and 24 deletions
+1 -12
View File
@@ -41,7 +41,7 @@ IUSE="${IUSE_VIDEO_CARDS}
vulkan wayland xa xvmc"
REQUIRED_USE="
d3d9? ( dri3 )
d3d9? ( dri3 || ( video_cards_r300 video_cards_r600 video_cards_radeonsi video_cards_nouveau video_cards_vmware ) )
gles1? ( egl )
gles2? ( egl )
vulkan? ( dri3
@@ -250,16 +250,6 @@ llvm_check_deps() {
}
pkg_pretend() {
if use d3d9; then
if ! use video_cards_r300 &&
! use video_cards_r600 &&
! use video_cards_radeonsi &&
! use video_cards_nouveau &&
! use video_cards_vmware; then
ewarn "Ignoring USE=d3d9 since VIDEO_CARDS does not contain r300, r600, radeonsi, nouveau, or vmware"
fi
fi
if use opencl; then
if ! use video_cards_r600 &&
! use video_cards_radeonsi; then
@@ -300,7 +290,6 @@ pkg_pretend() {
fi
if ! use gallium; then
use d3d9 && ewarn "Ignoring USE=d3d9 since USE does not contain gallium"
use lm_sensors && ewarn "Ignoring USE=lm_sensors since USE does not contain gallium"
use llvm && ewarn "Ignoring USE=llvm since USE does not contain gallium"
use opencl && ewarn "Ignoring USE=opencl since USE does not contain gallium"
+1 -12
View File
@@ -41,7 +41,7 @@ IUSE="${IUSE_VIDEO_CARDS}
vulkan wayland xa xvmc"
REQUIRED_USE="
d3d9? ( dri3 )
d3d9? ( dri3 || ( video_cards_r300 video_cards_r600 video_cards_radeonsi video_cards_nouveau video_cards_vmware ) )
gles1? ( egl )
gles2? ( egl )
vulkan? ( dri3
@@ -245,16 +245,6 @@ llvm_check_deps() {
}
pkg_pretend() {
if use d3d9; then
if ! use video_cards_r300 &&
! use video_cards_r600 &&
! use video_cards_radeonsi &&
! use video_cards_nouveau &&
! use video_cards_vmware; then
ewarn "Ignoring USE=d3d9 since VIDEO_CARDS does not contain r300, r600, radeonsi, nouveau, or vmware"
fi
fi
if use opencl; then
if ! use video_cards_r600 &&
! use video_cards_radeonsi; then
@@ -295,7 +285,6 @@ pkg_pretend() {
fi
if ! use gallium; then
use d3d9 && ewarn "Ignoring USE=d3d9 since USE does not contain gallium"
use lm_sensors && ewarn "Ignoring USE=lm_sensors since USE does not contain gallium"
use llvm && ewarn "Ignoring USE=llvm since USE does not contain gallium"
use opencl && ewarn "Ignoring USE=opencl since USE does not contain gallium"