Patchwork xorg-xserver: enable dri3 by default

login
register
mail settings
Submitter Valentin Popa
Date June 6, 2014, 3:31 p.m.
Message ID <1402068711-10161-1-git-send-email-valentin.popa@intel.com>
Download mbox | patch
Permalink /patch/73417/
State New
Headers show

Comments

Valentin Popa - June 6, 2014, 3:31 p.m.
Don't let xorg-xserver to automatically enable/disable
dri3.

[YOCTO #6402]

Signed-off-by: Valentin Popa <valentin.popa@intel.com>
---
 meta/recipes-graphics/xorg-xserver/xserver-xorg.inc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Ross Burton - June 9, 2014, 12:45 p.m.
After chatting with some colleagues in the graphics team I've decided
that we should have support for DRI3, but not enable it by default
(there's presently regressions compared to DRI2).

Ross

On 6 June 2014 16:31, Valentin Popa <valentin.popa@intel.com> wrote:
> Don't let xorg-xserver to automatically enable/disable
> dri3.
>
> [YOCTO #6402]
>
> Signed-off-by: Valentin Popa <valentin.popa@intel.com>
> ---
>  meta/recipes-graphics/xorg-xserver/xserver-xorg.inc | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xorg.inc b/meta/recipes-graphics/xorg-xserver/xserver-xorg.inc
> index 2e83d53..e4eaaa6 100644
> --- a/meta/recipes-graphics/xorg-xserver/xserver-xorg.inc
> +++ b/meta/recipes-graphics/xorg-xserver/xserver-xorg.inc
> @@ -116,10 +116,11 @@ EXTRA_OECONF += "--with-fop=no \
>                   ac_cv_file__usr_share_sgml_X11_defs_ent=no \
>  "
>
> -PACKAGECONFIG ??= "udev ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'dri dri2 glx', '', d)}"
> +PACKAGECONFIG ??= "udev ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'dri dri2 dri3 glx', '', d)}"
>  PACKAGECONFIG[udev] = "--enable-config-udev,--disable-config-udev,udev"
>  PACKAGECONFIG[dri] = "--enable-dri,--disable-dri,glproto virtual/mesa xf86driproto"
>  PACKAGECONFIG[dri2] = "--enable-dri2,--disable-dri2,dri2proto"
> +PACKAGECONFIG[dri3] = "--enable-dri3,--disable-dri3,dri3proto libxshmfence"
>  PACKAGECONFIG[glx] = "--enable-glx --enable-glx-tls,--disable-glx,glproto virtual/libgl virtual/libx11"
>
>  do_install_append () {
> --
> 1.9.1
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core

Patch

diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xorg.inc b/meta/recipes-graphics/xorg-xserver/xserver-xorg.inc
index 2e83d53..e4eaaa6 100644
--- a/meta/recipes-graphics/xorg-xserver/xserver-xorg.inc
+++ b/meta/recipes-graphics/xorg-xserver/xserver-xorg.inc
@@ -116,10 +116,11 @@  EXTRA_OECONF += "--with-fop=no \
                  ac_cv_file__usr_share_sgml_X11_defs_ent=no \
 "
 
-PACKAGECONFIG ??= "udev ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'dri dri2 glx', '', d)}"
+PACKAGECONFIG ??= "udev ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'dri dri2 dri3 glx', '', d)}"
 PACKAGECONFIG[udev] = "--enable-config-udev,--disable-config-udev,udev"
 PACKAGECONFIG[dri] = "--enable-dri,--disable-dri,glproto virtual/mesa xf86driproto"
 PACKAGECONFIG[dri2] = "--enable-dri2,--disable-dri2,dri2proto"
+PACKAGECONFIG[dri3] = "--enable-dri3,--disable-dri3,dri3proto libxshmfence"
 PACKAGECONFIG[glx] = "--enable-glx --enable-glx-tls,--disable-glx,glproto virtual/libgl virtual/libx11"
 
 do_install_append () {