* [PATCH 0/2] Improve DRI handling support flexibility
@ 2013-01-25 22:32 Otavio Salvador
2013-01-25 22:32 ` [PATCH 1/2] mesa: Add virtual/dri provides Otavio Salvador
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Otavio Salvador @ 2013-01-25 22:32 UTC (permalink / raw)
To: openembedded-core; +Cc: Otavio Salvador
There're some processors which provide binary blobs for DRI and GPU
support which need to be build in BSP; to avoid some dirt and ugly
hacks in BSP we ought to be flexible.
We splitted the glx and dri PACKAGECONFIG options and added a
virtual/dri provider so BSP can override it, if need.
Otavio Salvador (2):
mesa: Add virtual/dri provides
xserver-xorg: Split 'glx' and 'dri' PACKAGECONFIG options
meta/recipes-graphics/mesa/mesa-common.inc | 4 ++--
meta/recipes-graphics/xorg-xserver/xserver-xorg.inc | 13 ++++++++-----
2 files changed, 10 insertions(+), 7 deletions(-)
--
1.8.1
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 1/2] mesa: Add virtual/dri provides
2013-01-25 22:32 [PATCH 0/2] Improve DRI handling support flexibility Otavio Salvador
@ 2013-01-25 22:32 ` Otavio Salvador
2013-01-28 16:08 ` Burton, Ross
2013-01-25 22:32 ` [PATCH 2/2] xserver-xorg: Split 'glx' and 'dri' PACKAGECONFIG options Otavio Salvador
2013-01-25 23:07 ` [PATCH 0/2] Improve DRI handling support flexibility Richard Purdie
2 siblings, 1 reply; 6+ messages in thread
From: Otavio Salvador @ 2013-01-25 22:32 UTC (permalink / raw)
To: openembedded-core; +Cc: Otavio Salvador
This allow for use DRI alternative implementations as done in some ARM
SoCs.
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
meta/recipes-graphics/mesa/mesa-common.inc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/meta/recipes-graphics/mesa/mesa-common.inc b/meta/recipes-graphics/mesa/mesa-common.inc
index 1ff08fb..d93835c 100644
--- a/meta/recipes-graphics/mesa/mesa-common.inc
+++ b/meta/recipes-graphics/mesa/mesa-common.inc
@@ -11,12 +11,12 @@ BUGTRACKER = "https://bugs.freedesktop.org"
SECTION = "x11"
LICENSE = "MIT"
-INC_PR = "r9"
+INC_PR = "r10"
PE = "2"
DEPENDS = "expat makedepend-native flex-native bison-native"
-PROVIDES = "virtual/libgl virtual/libgles1 virtual/libgles2 virtual/egl"
+PROVIDES = "virtual/dri virtual/libgl virtual/libgles1 virtual/libgles2 virtual/egl"
# for mesa-dri and mesa-xlib
FILESEXTRAPATHS_append := "${THISDIR}/mesa:"
--
1.8.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 2/2] xserver-xorg: Split 'glx' and 'dri' PACKAGECONFIG options
2013-01-25 22:32 [PATCH 0/2] Improve DRI handling support flexibility Otavio Salvador
2013-01-25 22:32 ` [PATCH 1/2] mesa: Add virtual/dri provides Otavio Salvador
@ 2013-01-25 22:32 ` Otavio Salvador
2013-01-25 23:07 ` [PATCH 0/2] Improve DRI handling support flexibility Richard Purdie
2 siblings, 0 replies; 6+ messages in thread
From: Otavio Salvador @ 2013-01-25 22:32 UTC (permalink / raw)
To: openembedded-core; +Cc: Otavio Salvador
Some SoC need 'dri' support even when not building glx; this patch
splits it in two PACKAGECONFIG options ('glx' and 'dri') but does not
change the default (both enabled).
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
meta/recipes-graphics/xorg-xserver/xserver-xorg.inc | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xorg.inc b/meta/recipes-graphics/xorg-xserver/xserver-xorg.inc
index 5d5443c..0e3d180 100644
--- a/meta/recipes-graphics/xorg-xserver/xserver-xorg.inc
+++ b/meta/recipes-graphics/xorg-xserver/xserver-xorg.inc
@@ -13,7 +13,7 @@ PROVIDES = "virtual/xserver-xf86"
PROVIDES += "virtual/xserver"
PE = "2"
-INC_PR = "r8"
+INC_PR = "r9"
XORG_PN = "xorg-server"
SRC_URI = "${XORG_MIRROR}/individual/xserver/${XORG_PN}-${PV}.tar.bz2"
@@ -122,11 +122,14 @@ EXTRA_OECONF += "--with-fop=no \
ac_cv_file__usr_share_sgml_X11_defs_ent=no \
"
-PACKAGECONFIG ??= "udev ${@base_contains('DISTRO_FEATURES', 'opengl', 'glx', '', d)}"
+PACKAGECONFIG ??= "udev ${@base_contains('DISTRO_FEATURES', 'opengl', 'glx dri', '', d)}"
PACKAGECONFIG[udev] = "--enable-config-udev,--disable-config-udev,udev"
-PACKAGECONFIG[glx] = "--enable-dri --enable-dri2 --enable-glx --enable-glx-tls,\
- --disable-dri --disable-dri2 --disable-glx,\
- xf86driproto dri2proto mesa-dri"
+PACKAGECONFIG[glx] = "--enable-glx --enable-glx-tls,\
+ --disable-glx,\
+ virtual/libgl"
+PACKAGECONFIG[dri] = "--enable-dri --enable-dri2,\
+ --disable-dri --disable-dri2,\
+ virtual/dri xf86driproto dri2proto"
do_install_append () {
# Its assumed base-files creates this for us
--
1.8.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 0/2] Improve DRI handling support flexibility
2013-01-25 22:32 [PATCH 0/2] Improve DRI handling support flexibility Otavio Salvador
2013-01-25 22:32 ` [PATCH 1/2] mesa: Add virtual/dri provides Otavio Salvador
2013-01-25 22:32 ` [PATCH 2/2] xserver-xorg: Split 'glx' and 'dri' PACKAGECONFIG options Otavio Salvador
@ 2013-01-25 23:07 ` Richard Purdie
2013-01-26 15:16 ` Otavio Salvador
2 siblings, 1 reply; 6+ messages in thread
From: Richard Purdie @ 2013-01-25 23:07 UTC (permalink / raw)
To: Otavio Salvador; +Cc: openembedded-core
On Fri, 2013-01-25 at 20:32 -0200, Otavio Salvador wrote:
> There're some processors which provide binary blobs for DRI and GPU
> support which need to be build in BSP; to avoid some dirt and ugly
> hacks in BSP we ought to be flexible.
>
> We splitted the glx and dri PACKAGECONFIG options and added a
> virtual/dri provider so BSP can override it, if need.
>
> Otavio Salvador (2):
> mesa: Add virtual/dri provides
> xserver-xorg: Split 'glx' and 'dri' PACKAGECONFIG options
>
> meta/recipes-graphics/mesa/mesa-common.inc | 4 ++--
> meta/recipes-graphics/xorg-xserver/xserver-xorg.inc | 13 ++++++++-----
> 2 files changed, 10 insertions(+), 7 deletions(-)
I didn't see the patches here but this would suggest the xserver and
mesa plus anything that depends on them becomes machine specific.
Cheers,
Richard
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 0/2] Improve DRI handling support flexibility
2013-01-25 23:07 ` [PATCH 0/2] Improve DRI handling support flexibility Richard Purdie
@ 2013-01-26 15:16 ` Otavio Salvador
0 siblings, 0 replies; 6+ messages in thread
From: Otavio Salvador @ 2013-01-26 15:16 UTC (permalink / raw)
To: Richard Purdie; +Cc: Patches and discussions about the oe-core layer
On Fri, Jan 25, 2013 at 9:07 PM, Richard Purdie
<richard.purdie@linuxfoundation.org> wrote:
> On Fri, 2013-01-25 at 20:32 -0200, Otavio Salvador wrote:
>> There're some processors which provide binary blobs for DRI and GPU
>> support which need to be build in BSP; to avoid some dirt and ugly
>> hacks in BSP we ought to be flexible.
>>
>> We splitted the glx and dri PACKAGECONFIG options and added a
>> virtual/dri provider so BSP can override it, if need.
...
>
> I didn't see the patches here but this would suggest the xserver and
> mesa plus anything that depends on them becomes machine specific.
xserver-xorg yes; but not mesa. Mesa will just be one of alternatives
for virtual/dri. The default used one except if override by the BSP.
--
Otavio Salvador O.S. Systems
E-mail: otavio@ossystems.com.br http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 1/2] mesa: Add virtual/dri provides
2013-01-25 22:32 ` [PATCH 1/2] mesa: Add virtual/dri provides Otavio Salvador
@ 2013-01-28 16:08 ` Burton, Ross
0 siblings, 0 replies; 6+ messages in thread
From: Burton, Ross @ 2013-01-28 16:08 UTC (permalink / raw)
To: Otavio Salvador; +Cc: openembedded-core
On 25 January 2013 22:32, Otavio Salvador <otavio@ossystems.com.br> wrote:
> -PROVIDES = "virtual/libgl virtual/libgles1 virtual/libgles2 virtual/egl"
> +PROVIDES = "virtual/dri virtual/libgl virtual/libgles1 virtual/libgles2 virtual/egl"
Please also add an entry to default-providers.
Ross
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2013-01-28 16:24 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-25 22:32 [PATCH 0/2] Improve DRI handling support flexibility Otavio Salvador
2013-01-25 22:32 ` [PATCH 1/2] mesa: Add virtual/dri provides Otavio Salvador
2013-01-28 16:08 ` Burton, Ross
2013-01-25 22:32 ` [PATCH 2/2] xserver-xorg: Split 'glx' and 'dri' PACKAGECONFIG options Otavio Salvador
2013-01-25 23:07 ` [PATCH 0/2] Improve DRI handling support flexibility Richard Purdie
2013-01-26 15:16 ` Otavio Salvador
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox