Skip to contentSkip to conversation

gl fix on qemuarm/qemumips

PATCH In review [email protected] 3 participants 9 messages Mar 28, 2012 – Mar 30, 2012

lore
Share & tools
lore
#0 lore raw

cover gl fix on qemuarm/qemumips

From: Zhai Edwin <[email protected]>

RP,
This fix make GL apps runs on qemuarm with emulated GLX interface from mesa-xlib. [YOCTO #2066] got fixed.

Thanks,
Edwin

The following changes since commit 265903bdffb10c95ceaf7a892151a50b67939c71:

procps: don't print error message with kernel 3.0+ (2012-03-28 10:16:30 +0100)

are available in the git repository at:
git://git.pokylinux.org/poky-contrib gzhai/fix2
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=gzhai/fix2

Martin Jansa (1):
virtual/libgl: switch back to mesa-xlib for qemuarm/qemumips

 meta/conf/distro/include/default-providers.inc |    2 +-
 meta/recipes-graphics/mesa/mesa-xlib.inc       |    2 ++
 2 files changed, 3 insertions(+), 1 deletions(-)
Signature · 1 line
1.7.5.4
#1 lore raw

PATCH 1/1 virtual/libgl: switch back to mesa-xlib for qemuarm/qemumips

From: Martin Jansa <[email protected]>

Still need mesa-xlib for emulation of GLX interface on qemuarm/qemumips, where mesa-dri doesn't work for pure qemu emulator.

[YOCTO #2066] fixed.

---
 meta/conf/distro/include/default-providers.inc |    2 +-
 meta/recipes-graphics/mesa/mesa-xlib.inc       |    2 ++
 2 files changed, 3 insertions(+), 1 deletions(-)
meta/conf/distro/include/default-providers.inc +1 -1
index 54c90d3..3850a2f 100644
@@ -5,7 +5,7 @@ PREFERRED_PROVIDER_virtual/db ?= "db"
 PREFERRED_PROVIDER_virtual/db-native ?= "db-native"
 PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg"
 PREFERRED_PROVIDER_virtual/xserver-xf86 ?= "xserver-xorg"
-PREFERRED_PROVIDER_virtual/libgl ?= "mesa-dri"
+PREFERRED_PROVIDER_virtual/libgl ?= "mesa-xlib"
 PREFERRED_PROVIDER_virtual/update-alternatives ?= "update-alternatives-cworth"
 PREFERRED_PROVIDER_virtual/update-alternatives-native ?= "opkg-native"
 PREFERRED_PROVIDER_virtual/libx11 ?= "libx11-trim"
meta/recipes-graphics/mesa/mesa-xlib.inc +2 -0
index b720e14..c431eab 100644
@@ -1 +1,3 @@
 EXTRA_OECONF += " --with-driver=xlib --without-gallium-drivers"
+
+COMPATIBLE_MACHINE = "(qemuarm|qemumips|qemuppc)"
Signature · 1 line
1.7.5.4
#2 lore raw

Re: [PATCH 1/1] virtual/libgl: switch back to mesa-xlib for qemuarm/qemumips

Quoted 1 line · On Wed, Mar 28, 2012 at 06:10:26PM +0800, [email protected] wrote:

From: Martin Jansa <[email protected]>

I don't think I've ever sent something like this. Actually I've sent patch:
default-providers: switch virtual/libgl from mesa-xlib to mesa-dri
* to match default virtual/xserver

And this just reverts it + adds suspicious COMPATIBLE_MACHINE..

Cheers,

Quoted 38 lines

Still need mesa-xlib for emulation of GLX interface on qemuarm/qemumips, where mesa-dri doesn't work for pure qemu emulator.

[YOCTO #2066] fixed.

---
 meta/conf/distro/include/default-providers.inc |    2 +-
 meta/recipes-graphics/mesa/mesa-xlib.inc       |    2 ++
 2 files changed, 3 insertions(+), 1 deletions(-)
meta/conf/distro/include/default-providers.inc +1 -1
index 54c90d3..3850a2f 100644
@@ -5,7 +5,7 @@ PREFERRED_PROVIDER_virtual/db ?= "db"
 PREFERRED_PROVIDER_virtual/db-native ?= "db-native"
 PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg"
 PREFERRED_PROVIDER_virtual/xserver-xf86 ?= "xserver-xorg"
-PREFERRED_PROVIDER_virtual/libgl ?= "mesa-dri"
+PREFERRED_PROVIDER_virtual/libgl ?= "mesa-xlib"
 PREFERRED_PROVIDER_virtual/update-alternatives ?= "update-alternatives-cworth"
 PREFERRED_PROVIDER_virtual/update-alternatives-native ?= "opkg-native"
 PREFERRED_PROVIDER_virtual/libx11 ?= "libx11-trim"
meta/recipes-graphics/mesa/mesa-xlib.inc +2 -0
index b720e14..c431eab 100644
@@ -1 +1,3 @@
 EXTRA_OECONF += " --with-driver=xlib --without-gallium-drivers"
+
+COMPATIBLE_MACHINE = "(qemuarm|qemumips|qemuppc)"
Signature · 7 lines
1.7.5.4


_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#3 lore raw

Re: [PATCH 1/1] virtual/libgl: switch back to mesa-xlib for qemuarm/qemumips

Quoted 34 lines · Martin Jansa
Quoted 1 line · On Wed, Mar 28, 2012 at 06:10:26PM +0800, [email protected] wrote:

From: Martin Jansa <[email protected]>

I don't think I've ever sent something like this. Actually I've sent patch:
default-providers: switch virtual/libgl from mesa-xlib to mesa-dri
* to match default virtual/xserver

And this just reverts it + adds suspicious COMPATIBLE_MACHINE..

Cheers,

Quoted 22 lines

Still need mesa-xlib for emulation of GLX interface on qemuarm/qemumips, where mesa-dri doesn't work for pure qemu emulator.

[YOCTO #2066] fixed.

---
 meta/conf/distro/include/default-providers.inc |    2 +-
 meta/recipes-graphics/mesa/mesa-xlib.inc       |    2 ++
 2 files changed, 3 insertions(+), 1 deletions(-)
meta/conf/distro/include/default-providers.inc +1 -1
index 54c90d3..3850a2f 100644
@@ -5,7 +5,7 @@ PREFERRED_PROVIDER_virtual/db ?= "db"
 PREFERRED_PROVIDER_virtual/db-native ?= "db-native"
 PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg"
 PREFERRED_PROVIDER_virtual/xserver-xf86 ?= "xserver-xorg"
-PREFERRED_PROVIDER_virtual/libgl ?= "mesa-dri"
+PREFERRED_PROVIDER_virtual/libgl ?= "mesa-xlib"
 PREFERRED_PROVIDER_virtual/update-alternatives ?= "update-alternatives-cworth"
 PREFERRED_PROVIDER_virtual/update-alternatives-native ?= "opkg-native"
 PREFERRED_PROVIDER_virtual/libx11 ?= "libx11-trim"
Quoted 8 lines

meta/recipes-graphics/mesa/mesa-xlib.inc line 3

Quoted 8 lines
meta/recipes-graphics/mesa/mesa-xlib.inc +2 -0
index b720e14..c431eab 100644
@@ -1 +1,3 @@
 EXTRA_OECONF += " --with-driver=xlib --without-gallium-drivers"
+
+COMPATIBLE_MACHINE = "(qemuarm|qemumips|qemuppc)"

I agree this COMPATIBLE_MACHINE is wrong.

I'd suggest we need to change both xserver-org to xserver-xorg-lite and libgl to meta-xlib and then this might work better and address Martin's concerns too.

I'd like to understand why dri can't work under qemu too though.

Cheers,

Richard

#4 lore raw

Re: [PATCH 1/1] virtual/libgl: switch back to mesa-xlib for qemuarm/qemumips

Quoted 9 lines · Richard Purdie
Quoted 8 lines · Martin Jansa
Quoted 1 line · On Wed, Mar 28, 2012 at 06:10:26PM +0800, [email protected] wrote:

From: Martin Jansa <[email protected]>

I don't think I've ever sent something like this. Actually I've sent patch:
default-providers: switch virtual/libgl from mesa-xlib to mesa-dri
* to match default virtual/xserver

Quoted 8 lines
Quoted 7 lines

And this just reverts it + adds suspicious COMPATIBLE_MACHINE..

Cheers,

Quoted 3 lines

Still need mesa-xlib for emulation of GLX interface on qemuarm/qemumips, where mesa-dri doesn't work for pure qemu emulator.

I agree this COMPATIBLE_MACHINE is wrong.

I just want to mesa-xlib only for qemumips/qemuppc/qemuarm.

Quoted 4 lines

I'd suggest we need to change both xserver-org to xserver-xorg-lite and libgl to meta-xlib and then this might work better and address Martin's concerns too.

You mean add "xserver-xorg-lite" as preferred virtual/xserver in meta/conf/machine/qemumips.conf?

Quoted 2 lines

I'd like to understand why dri can't work under qemu too though.

I think this requires: emulated graphic HW capability in qemumips/qemuarm, and an drm driver to match the emulated HW. With them, we can turn on "enable-dri" for mesa-dri and fight the build issue.

Quoted 10 lines

Cheers,

Richard

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Signature · 2 lines
best rgds,
edwin
#5 lore raw

Re: [PATCH 1/1] virtual/libgl: switch back to mesa-xlib for qemuarm/qemumips

Quoted 8 lines · Edwin
Quoted 2 lines · Richard Purdie

I'd like to understand why dri can't work under qemu too though.

I think this requires: emulated graphic HW capability in qemumips/qemuarm, and an drm driver to match the emulated HW. With them, we can turn on "enable-dri" for mesa-dri and fight the build issue.

Sorry, I mean Xfbdev.

Quoted 20 lines
Quoted 11 lines

Cheers,

Richard

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Signature · 7 lines
best rgds,
edwin

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Signature · 2 lines
best rgds,
edwin
#6 lore raw

Re: [PATCH 1/1] virtual/libgl: switch back to mesa-xlib for qemuarm/qemumips

In reply to Martin Jansa
Quoted 7 lines · Martin Jansa
Quoted 1 line · On Wed, Mar 28, 2012 at 06:10:26PM +0800, [email protected] wrote:

From: Martin Jansa <[email protected]>

I don't think I've ever sent something like this. Actually I've sent patch:
default-providers: switch virtual/libgl from mesa-xlib to mesa-dri
* to match default virtual/xserver

Yes, this is just a revert to fix the GL failure. Sorry, I don't notice that git keep the original author when you revert:(

Could you pls. explain why mesa-xlib doesn't match xserver-xorg?

Thanks,
Edwin

Quoted 53 lines

And this just reverts it + adds suspicious COMPATIBLE_MACHINE..

Cheers,

Quoted 38 lines

Still need mesa-xlib for emulation of GLX interface on qemuarm/qemumips, where mesa-dri doesn't work for pure qemu emulator.

[YOCTO #2066] fixed.

---
 meta/conf/distro/include/default-providers.inc |    2 +-
 meta/recipes-graphics/mesa/mesa-xlib.inc       |    2 ++
 2 files changed, 3 insertions(+), 1 deletions(-)
meta/conf/distro/include/default-providers.inc +1 -1
index 54c90d3..3850a2f 100644
@@ -5,7 +5,7 @@ PREFERRED_PROVIDER_virtual/db ?= "db"
 PREFERRED_PROVIDER_virtual/db-native ?= "db-native"
 PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg"
 PREFERRED_PROVIDER_virtual/xserver-xf86 ?= "xserver-xorg"
-PREFERRED_PROVIDER_virtual/libgl ?= "mesa-dri"
+PREFERRED_PROVIDER_virtual/libgl ?= "mesa-xlib"
 PREFERRED_PROVIDER_virtual/update-alternatives ?= "update-alternatives-cworth"
 PREFERRED_PROVIDER_virtual/update-alternatives-native ?= "opkg-native"
 PREFERRED_PROVIDER_virtual/libx11 ?= "libx11-trim"
meta/recipes-graphics/mesa/mesa-xlib.inc +2 -0
index b720e14..c431eab 100644
@@ -1 +1,3 @@
 EXTRA_OECONF += " --with-driver=xlib --without-gallium-drivers"
+
+COMPATIBLE_MACHINE = "(qemuarm|qemumips|qemuppc)"
Signature · 7 lines
1.7.5.4


_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Signature · 8 lines
Martin 'JaMa' Jansa     jabber: [email protected]



_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Signature · 2 lines
best rgds,
edwin
#7 lore raw

Re: [PATCH 1/1] virtual/libgl: switch back to mesa-xlib for qemuarm/qemumips

Quoted 11 lines · Edwin
Quoted 7 lines · Martin Jansa
Quoted 1 line · On Wed, Mar 28, 2012 at 06:10:26PM +0800, [email protected] wrote:

From: Martin Jansa <[email protected]>

I don't think I've ever sent something like this. Actually I've sent patch:
default-providers: switch virtual/libgl from mesa-xlib to mesa-dri
* to match default virtual/xserver

Yes, this is just a revert to fix the GL failure. Sorry, I don't notice that git keep the original author when you revert:(

FWIW: It doesn't keep the original author here, but maybe you have different git..

Quoted 1 line

Could you pls. explain why mesa-xlib doesn't match xserver-xorg?

see:
http://patches.openembedded.org/patch/13631/

Quoted 67 lines

Thanks,
Edwin

Quoted 53 lines

And this just reverts it + adds suspicious COMPATIBLE_MACHINE..

Cheers,

Quoted 38 lines

Still need mesa-xlib for emulation of GLX interface on qemuarm/qemumips, where mesa-dri doesn't work for pure qemu emulator.

[YOCTO #2066] fixed.

---
 meta/conf/distro/include/default-providers.inc |    2 +-
 meta/recipes-graphics/mesa/mesa-xlib.inc       |    2 ++
 2 files changed, 3 insertions(+), 1 deletions(-)
meta/conf/distro/include/default-providers.inc +1 -1
index 54c90d3..3850a2f 100644
@@ -5,7 +5,7 @@ PREFERRED_PROVIDER_virtual/db ?= "db"
 PREFERRED_PROVIDER_virtual/db-native ?= "db-native"
 PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg"
 PREFERRED_PROVIDER_virtual/xserver-xf86 ?= "xserver-xorg"
-PREFERRED_PROVIDER_virtual/libgl ?= "mesa-dri"
+PREFERRED_PROVIDER_virtual/libgl ?= "mesa-xlib"
 PREFERRED_PROVIDER_virtual/update-alternatives ?= "update-alternatives-cworth"
 PREFERRED_PROVIDER_virtual/update-alternatives-native ?= "opkg-native"
 PREFERRED_PROVIDER_virtual/libx11 ?= "libx11-trim"
meta/recipes-graphics/mesa/mesa-xlib.inc +2 -0
index b720e14..c431eab 100644
@@ -1 +1,3 @@
 EXTRA_OECONF += " --with-driver=xlib --without-gallium-drivers"
+
+COMPATIBLE_MACHINE = "(qemuarm|qemumips|qemuppc)"
Signature · 7 lines
1.7.5.4


_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Signature · 8 lines
Martin 'JaMa' Jansa     jabber: [email protected]



_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Signature · 7 lines
best rgds,
edwin

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#8 lore raw

Re: [PATCH 1/1] virtual/libgl: switch back to mesa-xlib for qemuarm/qemumips

Quoted 13 lines · Martin Jansa
Quoted 11 lines · Edwin
Quoted 7 lines · Martin Jansa
Quoted 1 line · On Wed, Mar 28, 2012 at 06:10:26PM +0800, [email protected] wrote:

From: Martin Jansa <[email protected]>

I don't think I've ever sent something like this. Actually I've sent patch:
default-providers: switch virtual/libgl from mesa-xlib to mesa-dri
* to match default virtual/xserver

Yes, this is just a revert to fix the GL failure. Sorry, I don't notice that git keep the original author when you revert:(

Quoted 7 lines

FWIW: It doesn't keep the original author here, but maybe you have different git..

Quoted 1 line

Could you pls. explain why mesa-xlib doesn't match xserver-xorg?

see:
http://patches.openembedded.org/patch/13631/

I see. But this build failure should occur on qemux86 or other BSP, not qemuarm/qemumips/qemuppc, right? qemuarm/mips/ppc use xorg-kdrive instead.

So can we add following to avoid wrong COMPATIBLE_MACHINE:
"PREFERRED_PROVIDER_virtual/libgl ?= mesa-xlib" in meta/conf/machine/include/qemu.inc and

"PEFERRED_PROVIDER_virtual/libgl ?= mesa-dri"
in meta/conf/machine/qemux86.conf/qemux86-64.conf

Thanks,
Edwin

Quoted 5 lines
Quoted 5 lines

Thanks,
Edwin