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