From: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
To: openembedded-core@lists.openembedded.org
Cc: Khem Raj <raj.khem@gmail.com>
Subject: [PATCH v6 01/13] runqemu: also set GBM_BACKENDS_PATH
Date: Mon, 07 Apr 2025 12:48:06 +0300 [thread overview]
Message-ID: <20250407-mesa-25-v6-1-29bf4cae8d28@oss.qualcomm.com> (raw)
In-Reply-To: <20250407-mesa-25-v6-0-29bf4cae8d28@oss.qualcomm.com>
Newer Mesa dynamically loads GBM backends from the libdir. This is going
to cause issues with running native QEMU as the libdir
(mesa-native/recipes-sysroot-native) will not exist when it's executed.
Follow the LIBGL_DRIVERS_PATH approach and specify a path to GBM
backends via GBM_BACKENDS_PATH environment variable.
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
---
scripts/runqemu | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/scripts/runqemu b/scripts/runqemu
index 86124a4a6a327e8c522944fd2ff9fe645c200722..3d7704697285ff9a5da45644eef4b7b3fce93dbf 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -468,9 +468,11 @@ class BaseConfig(object):
self.set("IMAGE_LINK_NAME", image_link_name)
logger.debug('Using IMAGE_LINK_NAME = "%s"' % image_link_name)
- def set_dri_path(self):
+ def set_mesa_paths(self):
drivers_path = os.path.join(self.bindir_native, '../lib/dri')
- if not os.path.exists(drivers_path) or not os.listdir(drivers_path):
+ gbm_path = os.path.join(self.bindir_native, '../lib/gbm')
+ if not os.path.exists(drivers_path) or not os.listdir(drivers_path) \
+ or not os.path.exists(gbm_path) or not os.listdir(gbm_path):
raise RunQemuError("""
qemu has been built without opengl support and accelerated graphics support is not available.
To enable it, add:
@@ -479,6 +481,7 @@ DISTRO_FEATURES_NATIVESDK:append = " opengl"
to your build configuration.
""")
self.qemu_environ['LIBGL_DRIVERS_PATH'] = drivers_path
+ self.qemu_environ['GBM_BACKENDS_PATH'] = gbm_path
def check_args(self):
for debug in ("-d", "--debug"):
@@ -1461,7 +1464,7 @@ to your build configuration.
self.qemu_opt += ' -display '
if self.egl_headless == True:
self.check_render_nodes()
- self.set_dri_path()
+ self.set_mesa_paths()
self.qemu_opt += 'egl-headless,'
else:
if self.sdl == True:
@@ -1471,10 +1474,10 @@ to your build configuration.
self.qemu_opt += 'gtk,'
if self.gl == True:
- self.set_dri_path()
+ self.set_mesa_paths()
self.qemu_opt += 'gl=on,'
elif self.gl_es == True:
- self.set_dri_path()
+ self.set_mesa_paths()
self.qemu_opt += 'gl=es,'
self.qemu_opt += 'show-cursor=on'
--
2.39.5
next prev parent reply other threads:[~2025-04-07 9:48 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-07 9:48 [PATCH v6 00/13] mesa: upgrade to 25.0.2 Dmitry Baryshkov
2025-04-07 9:48 ` Dmitry Baryshkov [this message]
2025-04-07 9:48 ` [PATCH v6 02/13] llvm: move libLLVM.so.N.M to llvm-libllvm package Dmitry Baryshkov
2025-04-07 9:48 ` [PATCH v6 03/13] llvm: use OECMAKE_SOURCEPATH to specify cmake dir Dmitry Baryshkov
2025-04-07 9:48 ` [PATCH v6 04/13] llvm: handle libdir in llvm-config Dmitry Baryshkov
2025-04-07 9:48 ` [PATCH v6 05/13] llvm: also use llvm-config wrapper for nativesdk recipes Dmitry Baryshkov
2025-04-07 9:48 ` [PATCH v6 06/13] llvm: remove LLVM_LDFLAGS from llvm-config --ldflags output Dmitry Baryshkov
2025-04-07 9:48 ` [PATCH v6 07/13] llvm: forcibly disable __isoc23_strtol usage Dmitry Baryshkov
2025-04-07 11:22 ` [OE-core] " Alexander Kanavin
2025-04-07 11:58 ` Dmitry Baryshkov
2025-04-07 9:48 ` [PATCH v6 08/13] llvm: support building libclc Dmitry Baryshkov
2025-04-07 9:48 ` [PATCH v6 09/13] llvm: add SPIRV-LLVM-Translator support Dmitry Baryshkov
2025-04-07 9:48 ` [PATCH v6 10/13] llvm: enable more targets to build Dmitry Baryshkov
2025-04-07 9:48 ` [PATCH v6 11/13] mesa: upgrade 24.0.7 -> 25.0.2 Dmitry Baryshkov
2025-04-07 9:48 ` [PATCH v6 12/13] bindgen-cli: a tool to generate Rust bindings Dmitry Baryshkov
2025-04-07 9:48 ` [PATCH v6 13/13] mesa: add support for RustiCL under PACKAGECONFIG "opencl" Dmitry Baryshkov
2025-04-08 13:34 ` [OE-core] [PATCH v6 00/13] mesa: upgrade to 25.0.2 Mathieu Dubois-Briand
2025-04-08 19:08 ` Dmitry Baryshkov
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=20250407-mesa-25-v6-1-29bf4cae8d28@oss.qualcomm.com \
--to=dmitry.baryshkov@oss.qualcomm.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=raj.khem@gmail.com \
/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