commit:     624de4844d6f83d901265368a581d5871570bc8c
Author:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 24 03:09:29 2025 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Thu Apr 24 03:29:35 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=624de484

media-libs/mesa: Depend on mesa_clc for VIDEO_CARDS=panfrost

Necessary since upstream commit 20970bcd965 ("panfrost: Add base of
OpenCL C infrastructure").

Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>

 media-libs/mesa/mesa-9999.ebuild | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/media-libs/mesa/mesa-9999.ebuild b/media-libs/mesa/mesa-9999.ebuild
index 168c3a5c292f..f70c18645616 100644
--- a/media-libs/mesa/mesa-9999.ebuild
+++ b/media-libs/mesa/mesa-9999.ebuild
@@ -179,6 +179,7 @@ BDEPEND="
                dev-python/pyyaml[\${PYTHON_USEDEP}]
        ")
        video_cards_intel? ( ${CLC_DEPSTRING} )
+       video_cards_panfrost? ( ${CLC_DEPSTRING} )
        vulkan? (
                dev-util/glslang
                video_cards_nvk? (
@@ -435,8 +436,9 @@ multilib_src_configure() {
                emesonargs+=($(meson_feature video_cards_intel intel-rt))
        fi
 
-       if use video_cards_intel; then
-               emesonargs+=(-Dmesa-clc=system)
+       if use video_cards_intel ||
+          use video_cards_panfrost; then
+          emesonargs+=(-Dmesa-clc=system)
        fi
 
        use debug && EMESON_BUILDTYPE=debug

Reply via email to