commit:     f4e60367ba1fab9ab1f3323fc47a277506b409af
Author:     Kostadin Shishmanov <kocelfc <AT> tutanota <DOT> com>
AuthorDate: Wed Sep  4 19:02:14 2024 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Wed Sep  4 19:46:05 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4e60367

media-libs/mesa: merge USE=vulkan and USE=vulkan-overlay

This commit removes USE=vulkan-overlay and enables the
overlay by just toggling USE=vulkan, the former USE flag isn't
needed, since the overlay has no additional dependencies.

Closes: https://github.com/gentoo/gentoo/pull/38440
Signed-off-by: Kostadin Shishmanov <kocelfc <AT> tutanota.com>
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>

 media-libs/mesa/mesa-9999.ebuild | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/media-libs/mesa/mesa-9999.ebuild b/media-libs/mesa/mesa-9999.ebuild
index 2a22372153e4..172d1f066e10 100644
--- a/media-libs/mesa/mesa-9999.ebuild
+++ b/media-libs/mesa/mesa-9999.ebuild
@@ -60,7 +60,7 @@ IUSE="${IUSE_VIDEO_CARDS}
        cpu_flags_x86_sse2 d3d9 debug +llvm
        lm-sensors opencl +opengl osmesa +proprietary-codecs selinux
        test unwind vaapi valgrind vdpau vulkan
-       vulkan-overlay wayland +X xa +zstd"
+       wayland +X xa +zstd"
 RESTRICT="!test? ( test )"
 REQUIRED_USE="
        d3d9? (
@@ -77,7 +77,6 @@ REQUIRED_USE="
                )
        )
        llvm? ( ${LLVM_REQUIRED_USE} )
-       vulkan-overlay? ( vulkan )
        video_cards_lavapipe? ( llvm vulkan )
        video_cards_radeon? ( x86? ( llvm ) amd64? ( llvm ) )
        video_cards_r300?   ( x86? ( llvm ) amd64? ( llvm ) )
@@ -413,6 +412,8 @@ multilib_src_configure() {
                                )
                        fi
                fi
+
+               emesonargs+=(-Dvulkan-layers=device-select,overlay)
        fi
 
        driver_list() {
@@ -420,11 +421,6 @@ multilib_src_configure() {
                echo "${drivers//$'\n'/,}"
        }
 
-       local vulkan_layers
-       use vulkan && vulkan_layers+="device-select"
-       use vulkan-overlay && vulkan_layers+=",overlay"
-       emesonargs+=(-Dvulkan-layers=${vulkan_layers#,})
-
        if use opengl && use X; then
                emesonargs+=(-Dglx=dri)
        else

Reply via email to