public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
From: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH 7/7] mesa: hanlde svga Gallium driver through PACKAGECONFIG too
Date: Sat, 12 Apr 2025 01:09:16 +0300	[thread overview]
Message-ID: <20250412-mesa-25-fixes-v1-7-791840391271@oss.qualcomm.com> (raw)
In-Reply-To: <20250412-mesa-25-fixes-v1-0-791840391271@oss.qualcomm.com>

For the sake of uniformity add the svga PACKAGECONFIG and use it to
guard inclusion of the svga Gallium driver.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
---
 meta/recipes-graphics/mesa/mesa.inc | 16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)

diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
index 8ab9af9887ef567925563247b88d96aca3fcfb1c..c191e68b5841118d94574c243b74561484f39370 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -88,10 +88,10 @@ PACKAGECONFIG = " \
 # skip all Rust dependencies if we are not building OpenCL"
 INHIBIT_DEFAULT_RUST_DEPS = "${@bb.utils.contains('PACKAGECONFIG', 'opencl', '', '1', d)}"
 
-PACKAGECONFIG:append:x86 = " libclc gallium-llvm intel amd"
-PACKAGECONFIG:append:x86-64 = " libclc gallium-llvm intel amd"
-PACKAGECONFIG:append:i686 = " libclc gallium-llvm intel amd"
-PACKAGECONFIG:append:class-native = " libclc gallium-llvm amd"
+PACKAGECONFIG:append:x86 = " libclc gallium-llvm intel amd svga"
+PACKAGECONFIG:append:x86-64 = " libclc gallium-llvm intel amd svga"
+PACKAGECONFIG:append:i686 = " libclc gallium-llvm intel amd svga"
+PACKAGECONFIG:append:class-native = " libclc gallium-llvm amd svga"
 
 # "gbm" requires "opengl"
 PACKAGECONFIG[gbm] = "-Dgbm=enabled,-Dgbm=disabled"
@@ -173,13 +173,11 @@ GALLIUMDRIVERS_RADEONSI = "${@bb.utils.contains('PACKAGECONFIG', 'amd', ',radeon
 GALLIUMDRIVERS_LLVMPIPE = ",llvmpipe"
 # llvmpipe crashes on x32
 GALLIUMDRIVERS_LLVMPIPE:x86-x32 = ""
-GALLIUMDRIVERS_LLVM = ",r300,nouveau${GALLIUMDRIVERS_LLVMPIPE}${GALLIUMDRIVERS_IRIS}${GALLIUMDRIVERS_RADEONSI}"
-GALLIUMDRIVERS_LLVM:append:x86 = ",svga"
-GALLIUMDRIVERS_LLVM:append:x86-64 = ",svga"
-# i686 is a 32 bit override for mesa-native
-GALLIUMDRIVERS_LLVM:append:i686 = ",svga"
+GALLIUMDRIVERS_SVGA = "${@bb.utils.contains('PACKAGECONFIG', 'svga', ',svga', '', d)}"
+GALLIUMDRIVERS_LLVM = ",r300,nouveau${GALLIUMDRIVERS_LLVMPIPE}${GALLIUMDRIVERS_IRIS}${GALLIUMDRIVERS_RADEONSI}${GALLIUMDRIVERS_SVGA}"
 
 PACKAGECONFIG[amd] = ""
+PACKAGECONFIG[svga] = ""
 PACKAGECONFIG[virgl] = ""
 
 GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'gallium-llvm', '${GALLIUMDRIVERS_LLVM}', '', d)}"

-- 
2.39.5



      parent reply	other threads:[~2025-04-11 22:09 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-11 22:09 [PATCH 0/7] mesa: small improvements after 25.0 merge Dmitry Baryshkov
2025-04-11 22:09 ` [PATCH 1/7] mesa: drop kmsro PACKAGECONFIG Dmitry Baryshkov
2025-04-12 10:27   ` Martin Jansa
2025-04-12 13:52     ` Dmitry Baryshkov
2025-04-12 17:25       ` [OE-core] " Khem Raj
2025-04-12 18:46         ` Martin Jansa
2025-04-14 20:11           ` Khem Raj
2025-04-15  8:55             ` Dmitry Baryshkov
2025-04-11 22:09 ` [PATCH 2/7] meson: pass -target and -I to bindgen calls Dmitry Baryshkov
2025-04-11 22:53   ` [OE-core] " Khem Raj
2025-04-12 15:50     ` Dmitry Baryshkov
2025-04-12 16:29     ` Dmitry Baryshkov
2025-04-12 18:02       ` Khem Raj
2025-04-13 11:15         ` Dmitry Baryshkov
2025-04-11 22:09 ` [PATCH 3/7] mesa: drop the bindgen patch Dmitry Baryshkov
2025-04-11 22:09 ` [PATCH 4/7] mesa: update patch status Dmitry Baryshkov
2025-04-11 22:09 ` [PATCH 5/7] mesa: don't buid Intel drivers outside of x86 world Dmitry Baryshkov
2025-04-11 22:09 ` [PATCH 6/7] mesa: introduce amd PACKAGECONFIG Dmitry Baryshkov
2025-04-11 22:09 ` Dmitry Baryshkov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250412-mesa-25-fixes-v1-7-791840391271@oss.qualcomm.com \
    --to=dmitry.baryshkov@oss.qualcomm.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox