summaryrefslogtreecommitdiff
path: root/media-libs/mesa
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-11-10 03:03:09 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-11-10 03:03:09 +0000
commitbe94ae04eee564451203d45977c2ef7c7ace1580 (patch)
tree616ffc0ad9aee18dc7d5e9e62bf62394e8e520ba /media-libs/mesa
parent2be329ae14bbf99f0fc4de7567e2386bbb529fdc (diff)
gentoo auto-resync : 10:11:2024 - 03:03:09
Diffstat (limited to 'media-libs/mesa')
-rw-r--r--media-libs/mesa/Manifest13
-rw-r--r--media-libs/mesa/files/24.2.6-dril-Fixup-order-of-pixel-formats-in-drilConfigs.patch85
-rw-r--r--media-libs/mesa/mesa-24.1.7-r1.ebuild (renamed from media-libs/mesa/mesa-24.1.7.ebuild)11
-rw-r--r--media-libs/mesa/mesa-24.2.3-r1.ebuild (renamed from media-libs/mesa/mesa-24.2.6.ebuild)11
-rw-r--r--media-libs/mesa/mesa-24.2.4-r1.ebuild (renamed from media-libs/mesa/mesa-24.2.3.ebuild)11
-rw-r--r--media-libs/mesa/mesa-24.2.5-r1.ebuild (renamed from media-libs/mesa/mesa-24.2.4.ebuild)11
-rw-r--r--media-libs/mesa/mesa-24.2.6-r2.ebuild (renamed from media-libs/mesa/mesa-24.2.5.ebuild)17
-rw-r--r--media-libs/mesa/mesa-9999.ebuild11
8 files changed, 151 insertions, 19 deletions
diff --git a/media-libs/mesa/Manifest b/media-libs/mesa/Manifest
index 3ffd2fe4fe7f..9d41d2c30122 100644
--- a/media-libs/mesa/Manifest
+++ b/media-libs/mesa/Manifest
@@ -1,3 +1,4 @@
+AUX 24.2.6-dril-Fixup-order-of-pixel-formats-in-drilConfigs.patch 3329 BLAKE2B e388372041292e744971d1af24a54a900a6050c71d2cd330bd041be838eec4e4afa3abbee33fc1108a8e54159b5c5865f454bf4ed0830563a8cc2c5b81b74ab6 SHA512 3ceb474d6750ace4c93db12d3f33d83fae541a2508cf5eb8a38f486d954f4c279181848a9981cb49a9e73bafb521b58be8ca72a4443cf8802c970adc02a479d0
DIST mesa-24.1.7.tar.xz 29206724 BLAKE2B b3102fcf96c032d07826186c2d60dc93e5c17b26f725c20cf1e402d1cfbaaba9809bff7a04d3df0179d2ec8606bc9fb391761d17a148671b9270cf2aaca0324d SHA512 890f6387963bbb86a85305ea963cca326a3b3f8f8758ae2082fd62c52df77c2883a359341e91f36614fea59219394ef78f799a334080699a0bb71d984a68cb01
DIST mesa-24.2.3.tar.xz 29465732 BLAKE2B 3c480bd9f5948ae4d66a833cfc059b1b872fca989296a070deaa46aeb72298eaca6a3fa9d13574859623cec4a6af978f44d2c9562b9757be2257364c27600be6 SHA512 7a1ace23568d1907b778a2859f97c8988a414ba74e02e1fb5af6f95f768e1b1a2dfdaf412b0d655678ed915d28273953fd1236ebcd87553a1880f1a7f3ea4d44
DIST mesa-24.2.4.tar.xz 29510040 BLAKE2B a0a977e5032e1c9a5b59dc9212d50b6f023fb9d42d325e692a3c680e77a06e2ccd66843b9eaeeadbf3614b65798c5c4649fb0bb74f134334e662ee9dd47ac21f SHA512 f0f1c23591cce85966efaf3988afdb14b64ceb7216b3994e8fc50e8ddc62c35a84b2013285c84080d963aec2afb94dac345f5f00e7ccf9ae7e9ab3f5b9ba0bcb
@@ -10,10 +11,10 @@ DIST quote-1.0.33.crate 28090 BLAKE2B 77c4b166f1200e1ee2ab94a5014acd334c1fe4b7d7
DIST syn-2.0.39.crate 244129 BLAKE2B 2cff6626624d03f70f1662af45a8644c28a9f92e2dfe38999bef3ba4a4c1ce825ae598277e9cb7abd5585eebfb17b239effc8d0bbf1c6ac196499f0d288e5e01 SHA512 96cc347cfdb0f9ca0b6c7289279a1cad8fc401625783742292564f7ceca8237ced8d9a3f62069696f6132ed06092dff2baaf4be09ef53b21260d93785b0e27c3
DIST syn-2.0.68.crate 265035 BLAKE2B 8bc6f68ed286bea617a2cfaf3949bb699d3a0466faeca735314a51596ce950e4ee57eda88154bd562c1728cfaff4cdb5bc1ba701b9d47a9c50d4c4f011bee975 SHA512 7b781f8ea2b0d01c06f47d165da99cd96e3b44a33de1d77c78a2cb37ebe3f8304f426ba3d0d1cf766241dcc0537908774504df7d455d63bf89ec22ac0499d372
DIST unicode-ident-1.0.12.crate 42168 BLAKE2B 4cede03c08758ccd6bf53a0d0057d7542dfdd0c93d342e89f3b90460be85518a9fd24958d8b1da2b5a09b5ddbee8a4263982194158e171c2bba3e394d88d6dac SHA512 bc1824e1e4452a40732fc69874d7e1a66f7803717a314790dcf48867eba34bc9441331ef031e386912e52c385645c25b6ed39d4f149973b5b97371b1b96b1920
-EBUILD mesa-24.1.7.ebuild 13660 BLAKE2B e94987284b4be2c8030f619a527d3b71f619db647ecacdf3316f7b0892f42faf5790fe491051c3b56c53fe494748244b7d6e1ae9732b4642759045370bec2ec3 SHA512 1955c9012fbb3b193ac0308a3a96510378ee122a309f43d5cd41a5fa167068a533ad05664a38fd362c414f8679b78c86c95e06519166e98fd9ffe9193c65be93
-EBUILD mesa-24.2.3.ebuild 13593 BLAKE2B d5bf49de60cc31698f6f80726f29248ed0be82586a6a99d90de07888a65f2864a34a29214f8b085f906ca3d10f0b710b1b01c1e828e5c16e1753fc43bc101380 SHA512 400a78f879b0ed486ae9e784ed7c54dceb508d61e6059b30131481eafa72f7491f7203236fdb559e41f2f17620f20569003ec88c5758fea4a2993d45c0feffaf
-EBUILD mesa-24.2.4.ebuild 13593 BLAKE2B d5bf49de60cc31698f6f80726f29248ed0be82586a6a99d90de07888a65f2864a34a29214f8b085f906ca3d10f0b710b1b01c1e828e5c16e1753fc43bc101380 SHA512 400a78f879b0ed486ae9e784ed7c54dceb508d61e6059b30131481eafa72f7491f7203236fdb559e41f2f17620f20569003ec88c5758fea4a2993d45c0feffaf
-EBUILD mesa-24.2.5.ebuild 13593 BLAKE2B d5bf49de60cc31698f6f80726f29248ed0be82586a6a99d90de07888a65f2864a34a29214f8b085f906ca3d10f0b710b1b01c1e828e5c16e1753fc43bc101380 SHA512 400a78f879b0ed486ae9e784ed7c54dceb508d61e6059b30131481eafa72f7491f7203236fdb559e41f2f17620f20569003ec88c5758fea4a2993d45c0feffaf
-EBUILD mesa-24.2.6.ebuild 13593 BLAKE2B d5bf49de60cc31698f6f80726f29248ed0be82586a6a99d90de07888a65f2864a34a29214f8b085f906ca3d10f0b710b1b01c1e828e5c16e1753fc43bc101380 SHA512 400a78f879b0ed486ae9e784ed7c54dceb508d61e6059b30131481eafa72f7491f7203236fdb559e41f2f17620f20569003ec88c5758fea4a2993d45c0feffaf
-EBUILD mesa-9999.ebuild 13421 BLAKE2B 141a670665141bfe0cdd11b88d991999092de8e391b4f18cf1a214adb5fcc68335b0443b05e67a8e9843579a9ae048824baa706049667391d837590580de1a29 SHA512 e8b1da20412c87131fc58abaa05b2e01e24e199ca2ffb7cfb627f15a48c97cc9ce2dffd181d98bb65476338d8b2ed350bb069c134acd156d9df197c0f4d15427
+EBUILD mesa-24.1.7-r1.ebuild 13767 BLAKE2B f76b17d363c4844428b0f71f0c1e23119d2dee61782c5f4887e0670dfdb8937806e5e6396a56c575ad2a5274f0fc2a89ca18e8000dff7743372b8eda44760867 SHA512 ec6e2b506ee8b39b31720f097a589cc9c66509e5e812228490e5528d5372c3c4cd9db8638098e75db0d631c960ed74e54d2bc1c1fc1fbb467b81fe3f03d81f29
+EBUILD mesa-24.2.3-r1.ebuild 13700 BLAKE2B e6a3a22762ac8951b9ef1ea3f4eeba42aec616e5f0c26ea0f527ded7d925071f255486e372a5a4c685a4c2090a8e574683fd9fefaec927453735e7548a9430d0 SHA512 5b81996aaa5cc12b6926fc5a2cf90d21d7d8fc8715e0fa54b86d752e3322965c591fc254167a65d865ed203b35078475564af69f5369c42418b5067538a5c543
+EBUILD mesa-24.2.4-r1.ebuild 13700 BLAKE2B e6a3a22762ac8951b9ef1ea3f4eeba42aec616e5f0c26ea0f527ded7d925071f255486e372a5a4c685a4c2090a8e574683fd9fefaec927453735e7548a9430d0 SHA512 5b81996aaa5cc12b6926fc5a2cf90d21d7d8fc8715e0fa54b86d752e3322965c591fc254167a65d865ed203b35078475564af69f5369c42418b5067538a5c543
+EBUILD mesa-24.2.5-r1.ebuild 13700 BLAKE2B e6a3a22762ac8951b9ef1ea3f4eeba42aec616e5f0c26ea0f527ded7d925071f255486e372a5a4c685a4c2090a8e574683fd9fefaec927453735e7548a9430d0 SHA512 5b81996aaa5cc12b6926fc5a2cf90d21d7d8fc8715e0fa54b86d752e3322965c591fc254167a65d865ed203b35078475564af69f5369c42418b5067538a5c543
+EBUILD mesa-24.2.6-r2.ebuild 13788 BLAKE2B ce28dfef9ba39e16239736543ea23033aa838508e8388a3dbac584840dd6a0f467aa06da378de06e9c1db78bb86b6807bcf11d39a96234646dfd07399b48c2e5 SHA512 fb8245c9e60822fd3fd1587764dcb9bed1385291832cf7a8152db95f2003968d062dd118f63eb1fe01d09f3d5fb4e9af49767305b606070e1fb41237e18b1d79
+EBUILD mesa-9999.ebuild 13528 BLAKE2B 321db8f541b45e4ffa9d54f6e4338d52aa7b8173964b4669e35ea290a45baf9f7e609e068a9fb79237761d45e96f2996a0b0b62bb1bc3031061131fdec5d36ce SHA512 a54a3acdb1f9a8c9043ea6cec25e40c7a35998070ab99d0da32afe0793f6646b9a8a18b0f5b299c0f67ea3c92a91d7f124d55eb5481501797d4776a9ac7f3b65
MISC metadata.xml 1303 BLAKE2B 348e84a15156bd8ae4634c1866f83f1b283b77f8478e66e57dd3f047a6346d1cc67a7c808ce159b82d292dfab62e8b6c4d17cefcae7aea6fa38739667947258b SHA512 448c3d73ded90117f38cec7c80eead4bdac1599c563798c91c96bca8543b9db2e5c2a06f26f9b7496af085a964aff51ed8b0882aa88f18404b64447de2f65598
diff --git a/media-libs/mesa/files/24.2.6-dril-Fixup-order-of-pixel-formats-in-drilConfigs.patch b/media-libs/mesa/files/24.2.6-dril-Fixup-order-of-pixel-formats-in-drilConfigs.patch
new file mode 100644
index 000000000000..a0d3ef1af912
--- /dev/null
+++ b/media-libs/mesa/files/24.2.6-dril-Fixup-order-of-pixel-formats-in-drilConfigs.patch
@@ -0,0 +1,85 @@
+https://bugs.gentoo.org/939429
+
+From e1098310da6b9fa7e66dc3fe382ae08d88fd1352 Mon Sep 17 00:00:00 2001
+From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
+Date: Mon, 4 Nov 2024 17:45:45 +1100
+Subject: [PATCH] dril: Fixup order of pixel formats in drilConfigs
+
+Having the RGB* formats before the BGR* formats in the table causes
+problems where under some circumstances, some applications end up
+with the wrong colors.
+
+The repro case for me is: Xvnc + mutter + chromium
+
+There was an existing comment in dri_fill_in_modes() which explained
+the problem. This was lost when dril_target.c was created.
+
+Fixes: ec7afd2c24c ("dril: rework config creation")
+Fixes: 3de62b2f9a6 ("gallium/dril: Compatibility stub for the legacy DRI loader interface")
+
+Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
+Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31950>
+---
+ src/gallium/targets/dril/dril_target.c | 36 +++++++++++++++++++-------
+ 1 file changed, 27 insertions(+), 9 deletions(-)
+
+diff --git ./src/gallium/targets/dril/dril_target.c ./src/gallium/targets/dril/dril_target.c
+index 672d50a4182..583728e4093 100644
+--- ./src/gallium/targets/dril/dril_target.c
++++ ./src/gallium/targets/dril/dril_target.c
+@@ -47,25 +47,43 @@
+ CONFIG_ZS(color, PIPE_FORMAT_Z16_UNORM), \
+ CONFIG_ZS(color, PIPE_FORMAT_NONE) \
+
++/*
++ * (copy of a comment in dri_screen.c:dri_fill_in_modes())
++ *
++ * The 32-bit RGBA format must not precede the 32-bit BGRA format.
++ * Likewise for RGBX and BGRX. Otherwise, the GLX client and the GLX
++ * server may disagree on which format the GLXFBConfig represents,
++ * resulting in swapped color channels.
++ *
++ * The problem, as of 2017-05-30:
++ * When matching a GLXFBConfig to a __DRIconfig, GLX ignores the channel
++ * order and chooses the first __DRIconfig with the expected channel
++ * sizes. Specifically, GLX compares the GLXFBConfig's and __DRIconfig's
++ * __DRI_ATTRIB_{CHANNEL}_SIZE but ignores __DRI_ATTRIB_{CHANNEL}_MASK.
++ *
++ * EGL does not suffer from this problem. It correctly compares the
++ * channel masks when matching EGLConfig to __DRIconfig.
++ */
++
+ static const struct gl_config drilConfigs[] = {
+- CONFIG(PIPE_FORMAT_R8G8B8A8_UNORM),
+- CONFIG(PIPE_FORMAT_R8G8B8X8_UNORM),
+ CONFIG(PIPE_FORMAT_B8G8R8A8_UNORM),
+ CONFIG(PIPE_FORMAT_B8G8R8X8_UNORM),
+- CONFIG(PIPE_FORMAT_R10G10B10A2_UNORM),
+- CONFIG(PIPE_FORMAT_R10G10B10X2_UNORM),
++ CONFIG(PIPE_FORMAT_R8G8B8A8_UNORM),
++ CONFIG(PIPE_FORMAT_R8G8B8X8_UNORM),
+ CONFIG(PIPE_FORMAT_B10G10R10A2_UNORM),
+ CONFIG(PIPE_FORMAT_B10G10R10X2_UNORM),
+- CONFIG(PIPE_FORMAT_R5G6B5_UNORM),
+- CONFIG(PIPE_FORMAT_R5G5B5A1_UNORM),
+- CONFIG(PIPE_FORMAT_R5G5B5X1_UNORM),
+- CONFIG(PIPE_FORMAT_R4G4B4A4_UNORM),
+- CONFIG(PIPE_FORMAT_R4G4B4X4_UNORM),
++ CONFIG(PIPE_FORMAT_R10G10B10A2_UNORM),
++ CONFIG(PIPE_FORMAT_R10G10B10X2_UNORM),
+ CONFIG(PIPE_FORMAT_B5G6R5_UNORM),
+ CONFIG(PIPE_FORMAT_B5G5R5A1_UNORM),
+ CONFIG(PIPE_FORMAT_B5G5R5X1_UNORM),
+ CONFIG(PIPE_FORMAT_B4G4R4A4_UNORM),
+ CONFIG(PIPE_FORMAT_B4G4R4X4_UNORM),
++ CONFIG(PIPE_FORMAT_R5G6B5_UNORM),
++ CONFIG(PIPE_FORMAT_R5G5B5A1_UNORM),
++ CONFIG(PIPE_FORMAT_R5G5B5X1_UNORM),
++ CONFIG(PIPE_FORMAT_R4G4B4A4_UNORM),
++ CONFIG(PIPE_FORMAT_R4G4B4X4_UNORM),
+ };
+
+ #define RGB UTIL_FORMAT_COLORSPACE_RGB
+--
+2.45.2
+
diff --git a/media-libs/mesa/mesa-24.1.7.ebuild b/media-libs/mesa/mesa-24.1.7-r1.ebuild
index af5ee095a972..ebfcea5d7aac 100644
--- a/media-libs/mesa/mesa-24.1.7.ebuild
+++ b/media-libs/mesa/mesa-24.1.7-r1.ebuild
@@ -20,6 +20,9 @@ CRATES="
paste@1.0.14
"
+RUST_MIN_VER="1.74.1"
+RUST_OPTIONAL=1
+
inherit cargo
DESCRIPTION="OpenGL-like graphic library for Linux"
@@ -154,7 +157,7 @@ DEPEND="${RDEPEND}
BDEPEND="
${PYTHON_DEPS}
opencl? (
- >=virtual/rust-1.62.0
+ ${RUST_DEPEND}
>=dev-util/bindgen-0.58.0
)
>=dev-build/meson-1.4.1
@@ -175,7 +178,7 @@ BDEPEND="
video_cards_nvk? (
>=dev-util/bindgen-0.68.1
>=dev-util/cbindgen-0.26.0
- >=virtual/rust-1.74.1
+ ${RUST_DEPEND}
)
)
wayland? ( dev-util/wayland-scanner )
@@ -291,6 +294,10 @@ pkg_setup() {
use llvm && llvm-r1_pkg_setup
python-any-r1_pkg_setup
+
+ if use opencl || (use vulkan && use video_cards_nvk); then
+ rust_pkg_setup
+ fi
}
src_prepare() {
diff --git a/media-libs/mesa/mesa-24.2.6.ebuild b/media-libs/mesa/mesa-24.2.3-r1.ebuild
index a58a2652340e..3dd7cb3ad57b 100644
--- a/media-libs/mesa/mesa-24.2.6.ebuild
+++ b/media-libs/mesa/mesa-24.2.3-r1.ebuild
@@ -20,6 +20,9 @@ CRATES="
paste@1.0.14
"
+RUST_MIN_VER="1.74.1"
+RUST_OPTIONAL=1
+
inherit cargo
DESCRIPTION="OpenGL-like graphic library for Linux"
@@ -156,7 +159,7 @@ DEPEND="${RDEPEND}
BDEPEND="
${PYTHON_DEPS}
opencl? (
- >=virtual/rust-1.62.0
+ ${RUST_DEPEND}
>=dev-util/bindgen-0.58.0
)
>=dev-build/meson-1.4.1
@@ -178,7 +181,7 @@ BDEPEND="
video_cards_nvk? (
>=dev-util/bindgen-0.68.1
>=dev-util/cbindgen-0.26.0
- >=virtual/rust-1.74.1
+ ${RUST_DEPEND}
)
)
wayland? ( dev-util/wayland-scanner )
@@ -295,6 +298,10 @@ pkg_setup() {
use llvm && llvm-r1_pkg_setup
python-any-r1_pkg_setup
+
+ if use opencl || (use vulkan && use video_cards_nvk); then
+ rust_pkg_setup
+ fi
}
src_prepare() {
diff --git a/media-libs/mesa/mesa-24.2.3.ebuild b/media-libs/mesa/mesa-24.2.4-r1.ebuild
index a58a2652340e..3dd7cb3ad57b 100644
--- a/media-libs/mesa/mesa-24.2.3.ebuild
+++ b/media-libs/mesa/mesa-24.2.4-r1.ebuild
@@ -20,6 +20,9 @@ CRATES="
paste@1.0.14
"
+RUST_MIN_VER="1.74.1"
+RUST_OPTIONAL=1
+
inherit cargo
DESCRIPTION="OpenGL-like graphic library for Linux"
@@ -156,7 +159,7 @@ DEPEND="${RDEPEND}
BDEPEND="
${PYTHON_DEPS}
opencl? (
- >=virtual/rust-1.62.0
+ ${RUST_DEPEND}
>=dev-util/bindgen-0.58.0
)
>=dev-build/meson-1.4.1
@@ -178,7 +181,7 @@ BDEPEND="
video_cards_nvk? (
>=dev-util/bindgen-0.68.1
>=dev-util/cbindgen-0.26.0
- >=virtual/rust-1.74.1
+ ${RUST_DEPEND}
)
)
wayland? ( dev-util/wayland-scanner )
@@ -295,6 +298,10 @@ pkg_setup() {
use llvm && llvm-r1_pkg_setup
python-any-r1_pkg_setup
+
+ if use opencl || (use vulkan && use video_cards_nvk); then
+ rust_pkg_setup
+ fi
}
src_prepare() {
diff --git a/media-libs/mesa/mesa-24.2.4.ebuild b/media-libs/mesa/mesa-24.2.5-r1.ebuild
index a58a2652340e..3dd7cb3ad57b 100644
--- a/media-libs/mesa/mesa-24.2.4.ebuild
+++ b/media-libs/mesa/mesa-24.2.5-r1.ebuild
@@ -20,6 +20,9 @@ CRATES="
paste@1.0.14
"
+RUST_MIN_VER="1.74.1"
+RUST_OPTIONAL=1
+
inherit cargo
DESCRIPTION="OpenGL-like graphic library for Linux"
@@ -156,7 +159,7 @@ DEPEND="${RDEPEND}
BDEPEND="
${PYTHON_DEPS}
opencl? (
- >=virtual/rust-1.62.0
+ ${RUST_DEPEND}
>=dev-util/bindgen-0.58.0
)
>=dev-build/meson-1.4.1
@@ -178,7 +181,7 @@ BDEPEND="
video_cards_nvk? (
>=dev-util/bindgen-0.68.1
>=dev-util/cbindgen-0.26.0
- >=virtual/rust-1.74.1
+ ${RUST_DEPEND}
)
)
wayland? ( dev-util/wayland-scanner )
@@ -295,6 +298,10 @@ pkg_setup() {
use llvm && llvm-r1_pkg_setup
python-any-r1_pkg_setup
+
+ if use opencl || (use vulkan && use video_cards_nvk); then
+ rust_pkg_setup
+ fi
}
src_prepare() {
diff --git a/media-libs/mesa/mesa-24.2.5.ebuild b/media-libs/mesa/mesa-24.2.6-r2.ebuild
index a58a2652340e..4441b6cb0714 100644
--- a/media-libs/mesa/mesa-24.2.5.ebuild
+++ b/media-libs/mesa/mesa-24.2.6-r2.ebuild
@@ -20,6 +20,9 @@ CRATES="
paste@1.0.14
"
+RUST_MIN_VER="1.74.1"
+RUST_OPTIONAL=1
+
inherit cargo
DESCRIPTION="OpenGL-like graphic library for Linux"
@@ -32,7 +35,7 @@ else
SRC_URI="
https://archive.mesa3d.org/${MY_P}.tar.xz
"
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-solaris"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-solaris"
fi
# This should be {CARGO_CRATE_URIS//.crate/.tar.gz} to correspond to the wrap files,
@@ -156,7 +159,7 @@ DEPEND="${RDEPEND}
BDEPEND="
${PYTHON_DEPS}
opencl? (
- >=virtual/rust-1.62.0
+ ${RUST_DEPEND}
>=dev-util/bindgen-0.58.0
)
>=dev-build/meson-1.4.1
@@ -178,12 +181,16 @@ BDEPEND="
video_cards_nvk? (
>=dev-util/bindgen-0.68.1
>=dev-util/cbindgen-0.26.0
- >=virtual/rust-1.74.1
+ ${RUST_DEPEND}
)
)
wayland? ( dev-util/wayland-scanner )
"
+PATCHES=(
+ "${FILESDIR}"/${PV}-dril-Fixup-order-of-pixel-formats-in-drilConfigs.patch
+)
+
QA_WX_LOAD="
x86? (
usr/lib/libglapi.so.0.0.0
@@ -295,6 +302,10 @@ pkg_setup() {
use llvm && llvm-r1_pkg_setup
python-any-r1_pkg_setup
+
+ if use opencl || (use vulkan && use video_cards_nvk); then
+ rust_pkg_setup
+ fi
}
src_prepare() {
diff --git a/media-libs/mesa/mesa-9999.ebuild b/media-libs/mesa/mesa-9999.ebuild
index e6207cf1ea28..ceba860297d1 100644
--- a/media-libs/mesa/mesa-9999.ebuild
+++ b/media-libs/mesa/mesa-9999.ebuild
@@ -20,6 +20,9 @@ CRATES="
paste@1.0.14
"
+RUST_MIN_VER="1.74.1"
+RUST_OPTIONAL=1
+
inherit cargo
DESCRIPTION="OpenGL-like graphic library for Linux"
@@ -155,7 +158,7 @@ DEPEND="${RDEPEND}
BDEPEND="
${PYTHON_DEPS}
opencl? (
- >=virtual/rust-1.62.0
+ ${RUST_DEPEND}
>=dev-util/bindgen-0.58.0
)
>=dev-build/meson-1.4.1
@@ -177,7 +180,7 @@ BDEPEND="
video_cards_nvk? (
>=dev-util/bindgen-0.68.1
>=dev-util/cbindgen-0.26.0
- >=virtual/rust-1.74.1
+ ${RUST_DEPEND}
)
)
wayland? ( dev-util/wayland-scanner )
@@ -294,6 +297,10 @@ pkg_setup() {
use llvm && llvm-r1_pkg_setup
python-any-r1_pkg_setup
+
+ if use opencl || (use vulkan && use video_cards_nvk); then
+ rust_pkg_setup
+ fi
}
src_prepare() {