commit: 86193d494297932eae2557de4fab96844e00762e Author: Mike Lothian <mike <AT> fireburn <DOT> co <DOT> uk> AuthorDate: Tue Jun 2 09:33:52 2020 +0000 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> CommitDate: Wed Jun 3 19:25:13 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86193d49
media-libs/mesa: Add device select vulkan layer This enables the device select vulkan layer which allows users to control which graphics card is used in multigraphics setup The current rules are to use a new MESA_VK_DEVICE_SELECT env var above all else, if that isn't set then it checks DRI_PRIME, which tries to match against the fd from DRI3 I don't think this requires an extra use-flag, as it doesn't require any external dependicies and there's no benefit to disabling this feature on single card systems, this just extends the DRI_PRIME option to vulkan Signed-off-by: Mike Lothian <mike <AT> fireburn.co.uk> Closes: https://github.com/gentoo/gentoo/pull/16050 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> media-libs/mesa/mesa-20.1.0.ebuild | 1 + media-libs/mesa/mesa-9999.ebuild | 1 + 2 files changed, 2 insertions(+) diff --git a/media-libs/mesa/mesa-20.1.0.ebuild b/media-libs/mesa/mesa-20.1.0.ebuild index ff719014070..00b4050b4e8 100644 --- a/media-libs/mesa/mesa-20.1.0.ebuild +++ b/media-libs/mesa/mesa-20.1.0.ebuild @@ -504,6 +504,7 @@ multilib_src_configure() { -Ddri-drivers=$(driver_list "${DRI_DRIVERS[*]}") -Dgallium-drivers=$(driver_list "${GALLIUM_DRIVERS[*]}") -Dvulkan-drivers=$(driver_list "${VULKAN_DRIVERS[*]}") + $(meson_use vulkan vulkan-device-select-layer) $(meson_use vulkan-overlay vulkan-overlay-layer) --buildtype $(usex debug debug plain) -Db_ndebug=$(usex debug false true) diff --git a/media-libs/mesa/mesa-9999.ebuild b/media-libs/mesa/mesa-9999.ebuild index ff719014070..00b4050b4e8 100644 --- a/media-libs/mesa/mesa-9999.ebuild +++ b/media-libs/mesa/mesa-9999.ebuild @@ -504,6 +504,7 @@ multilib_src_configure() { -Ddri-drivers=$(driver_list "${DRI_DRIVERS[*]}") -Dgallium-drivers=$(driver_list "${GALLIUM_DRIVERS[*]}") -Dvulkan-drivers=$(driver_list "${VULKAN_DRIVERS[*]}") + $(meson_use vulkan vulkan-device-select-layer) $(meson_use vulkan-overlay vulkan-overlay-layer) --buildtype $(usex debug debug plain) -Db_ndebug=$(usex debug false true)