* [PATCH 1/2] default-providers: fix GLX / EGL providers
@ 2026-03-24 8:44 Dmitry Baryshkov
2026-03-24 8:44 ` [PATCH 2/2] default-providers: use Mesa a a default provider for OpenCL and Vulkan Dmitry Baryshkov
0 siblings, 1 reply; 5+ messages in thread
From: Dmitry Baryshkov @ 2026-03-24 8:44 UTC (permalink / raw)
To: openembedded-core
DEFAULT_RPROVIDER is expected to list runtime package names rather than
recipes. Fix runtime providers for EGL and GLX ICD virtual packages.
Fixes: c2b4971e79ec ("default-providers: fix GLVND providers to be selected at runtime")
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
---
meta/conf/distro/include/default-providers.inc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/meta/conf/distro/include/default-providers.inc b/meta/conf/distro/include/default-providers.inc
index 5101ad78f880..883ea2f8af8c 100644
--- a/meta/conf/distro/include/default-providers.inc
+++ b/meta/conf/distro/include/default-providers.inc
@@ -64,6 +64,6 @@ PREFERRED_RPROVIDER_initd-functions ?= "initscripts"
PREFERRED_PROVIDER_nativesdk-mesa ?= "nativesdk-mesa"
PREFERRED_PROVIDER_virtual/nativesdk-libsdl2 ?= "nativesdk-libsdl2"
-PREFERRED_RPROVIDER_virtual-libegl-icd ?= "mesa"
-PREFERRED_RPROVIDER_virtual-libglx-icd ?= "mesa"
+PREFERRED_RPROVIDER_virtual-libegl-icd ?= "libegl-mesa"
+PREFERRED_RPROVIDER_virtual-libglx-icd ?= "libglx-mesa"
PREFERRED_RPROVIDER_virtual-x-terminal-emulator ?= "rxvt-unicode"
--
2.47.3
^ permalink raw reply related [flat|nested] 5+ messages in thread* [PATCH 2/2] default-providers: use Mesa a a default provider for OpenCL and Vulkan
2026-03-24 8:44 [PATCH 1/2] default-providers: fix GLX / EGL providers Dmitry Baryshkov
@ 2026-03-24 8:44 ` Dmitry Baryshkov
2026-03-24 11:46 ` [OE-core] " Richard Purdie
0 siblings, 1 reply; 5+ messages in thread
From: Dmitry Baryshkov @ 2026-03-24 8:44 UTC (permalink / raw)
To: openembedded-core
Without DEFAULT_RPROVIDERs for the virtual packages OE behaviour is not
deterministic, it's not always obvious, which package will be selected
to fulfill the dependency.
Add DEFAULT_RPROVIDERs for OpenCL and Vulkan ICDs (installable client
drivers) and specify Mesa packages by default. It is a weak assignment,
so the distributions can override those settings.
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
---
meta/conf/distro/include/default-providers.inc | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta/conf/distro/include/default-providers.inc b/meta/conf/distro/include/default-providers.inc
index 883ea2f8af8c..aeff8afe0119 100644
--- a/meta/conf/distro/include/default-providers.inc
+++ b/meta/conf/distro/include/default-providers.inc
@@ -66,4 +66,6 @@ PREFERRED_PROVIDER_virtual/nativesdk-libsdl2 ?= "nativesdk-libsdl2"
PREFERRED_RPROVIDER_virtual-libegl-icd ?= "libegl-mesa"
PREFERRED_RPROVIDER_virtual-libglx-icd ?= "libglx-mesa"
+PREFERRED_RPROVIDER_virtual-opencl-icd ?= "libopencl-mesa"
+PREFERRED_RPROVIDER_virtual-vulkan-icd ?= "mesa-vulkan-drivers"
PREFERRED_RPROVIDER_virtual-x-terminal-emulator ?= "rxvt-unicode"
--
2.47.3
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [OE-core] [PATCH 2/2] default-providers: use Mesa a a default provider for OpenCL and Vulkan
2026-03-24 8:44 ` [PATCH 2/2] default-providers: use Mesa a a default provider for OpenCL and Vulkan Dmitry Baryshkov
@ 2026-03-24 11:46 ` Richard Purdie
2026-03-24 18:22 ` Dmitry Baryshkov
0 siblings, 1 reply; 5+ messages in thread
From: Richard Purdie @ 2026-03-24 11:46 UTC (permalink / raw)
To: dmitry.baryshkov, openembedded-core
On Tue, 2026-03-24 at 10:44 +0200, Dmitry Baryshkov via lists.openembedded.org wrote:
> Without DEFAULT_RPROVIDERs for the virtual packages OE behaviour is
> not deterministic, it's not always obvious, which package will be
> selected to fulfill the dependency.
Can you be more specific about how it isn't deterministic? We should
fix that.
Ideally we shouldn't need to set RPROVIDERS, they're a source of issues
and I'd prefer not to have them at all...
Cheers,
Richard
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [OE-core] [PATCH 2/2] default-providers: use Mesa a a default provider for OpenCL and Vulkan
2026-03-24 11:46 ` [OE-core] " Richard Purdie
@ 2026-03-24 18:22 ` Dmitry Baryshkov
2026-03-24 20:40 ` Dmitry Baryshkov
0 siblings, 1 reply; 5+ messages in thread
From: Dmitry Baryshkov @ 2026-03-24 18:22 UTC (permalink / raw)
To: Richard Purdie; +Cc: openembedded-core
On Tue, Mar 24, 2026 at 11:46:34AM +0000, Richard Purdie wrote:
> On Tue, 2026-03-24 at 10:44 +0200, Dmitry Baryshkov via lists.openembedded.org wrote:
> > Without DEFAULT_RPROVIDERs for the virtual packages OE behaviour is
> > not deterministic, it's not always obvious, which package will be
> > selected to fulfill the dependency.
>
> Can you be more specific about how it isn't deterministic? We should
> fix that.
I'm sorry for being not explicit. It is not deterministic if the layer
includes other ICD implementations (meta-qcom, meta-freescale, etc.)
You can point out that it's the layer's reposnsibility to handle
providers in this case. However I think that having a predefined default
would be benefitable (and at least would force those layers to override
those providers instead of depending on the undefined behaviour).
In particular, I stumbled upon this in meta-qcom when the package
manager (rpm) was happily selecting the Adreno Vulkan ICD just because
it ended up being the first one.
> Ideally we shouldn't need to set RPROVIDERS, they're a source of issues
> and I'd prefer not to have them at all...
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [OE-core] [PATCH 2/2] default-providers: use Mesa a a default provider for OpenCL and Vulkan
2026-03-24 18:22 ` Dmitry Baryshkov
@ 2026-03-24 20:40 ` Dmitry Baryshkov
0 siblings, 0 replies; 5+ messages in thread
From: Dmitry Baryshkov @ 2026-03-24 20:40 UTC (permalink / raw)
To: Richard Purdie; +Cc: openembedded-core
On Tue, Mar 24, 2026 at 08:22:40PM +0200, Dmitry Baryshkov wrote:
> On Tue, Mar 24, 2026 at 11:46:34AM +0000, Richard Purdie wrote:
> > On Tue, 2026-03-24 at 10:44 +0200, Dmitry Baryshkov via lists.openembedded.org wrote:
> > > Without DEFAULT_RPROVIDERs for the virtual packages OE behaviour is
> > > not deterministic, it's not always obvious, which package will be
> > > selected to fulfill the dependency.
> >
> > Can you be more specific about how it isn't deterministic? We should
> > fix that.
>
> I'm sorry for being not explicit. It is not deterministic if the layer
> includes other ICD implementations (meta-qcom, meta-freescale, etc.)
> You can point out that it's the layer's reposnsibility to handle
> providers in this case. However I think that having a predefined default
> would be benefitable (and at least would force those layers to override
> those providers instead of depending on the undefined behaviour).
>
> In particular, I stumbled upon this in meta-qcom when the package
> manager (rpm) was happily selecting the Adreno Vulkan ICD just because
> it ended up being the first one.
And I was misunderstanding the DEFAULT_RPROVIDERs story. Please ignore
this.
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-03-24 20:40 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-24 8:44 [PATCH 1/2] default-providers: fix GLX / EGL providers Dmitry Baryshkov
2026-03-24 8:44 ` [PATCH 2/2] default-providers: use Mesa a a default provider for OpenCL and Vulkan Dmitry Baryshkov
2026-03-24 11:46 ` [OE-core] " Richard Purdie
2026-03-24 18:22 ` Dmitry Baryshkov
2026-03-24 20:40 ` Dmitry Baryshkov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox