* [PATCH] machine/qemu: Fix OpenGL/GLX support with xserver-xorg.
@ 2015-10-06 15:00 Carlos Alberto Lopez Perez
2015-10-06 16:12 ` Burton, Ross
0 siblings, 1 reply; 3+ messages in thread
From: Carlos Alberto Lopez Perez @ 2015-10-06 15:00 UTC (permalink / raw)
To: openembedded-core
* The Xorg server needs to load the GLX extension in order to
enable proper OpenGL support.
* Before this patch, glxinfo aborted with:
root@qemux86:~# glxinfo
name of display: :0.0
Error: couldn't find RGB GLX visual or fbconfig
* After this patch, it works as expected:
root@qemux86:~# glxinfo | grep " render"
direct rendering: Yes
OpenGL renderer string: Software Rasterizer
Signed-off-by: Carlos Alberto Lopez Perez <clopez@igalia.com>
---
meta/conf/machine/include/qemu.inc | 2 +-
meta/conf/machine/qemux86-64.conf | 2 +-
meta/conf/machine/qemux86.conf | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/meta/conf/machine/include/qemu.inc b/meta/conf/machine/include/qemu.inc
index d5c0b37..16e9469 100644
--- a/meta/conf/machine/include/qemu.inc
+++ b/meta/conf/machine/include/qemu.inc
@@ -5,7 +5,7 @@ PREFERRED_PROVIDER_virtual/libgles1 ?= "mesa"
PREFERRED_PROVIDER_virtual/libgles2 ?= "mesa"
XSERVER ?= "xserver-xorg \
- ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'mesa-driver-swrast', '', d)} \
+ ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'mesa-driver-swrast xserver-xorg-extension-glx', '', d)} \
xf86-input-evdev \
xf86-input-mouse \
xf86-video-fbdev \
diff --git a/meta/conf/machine/qemux86-64.conf b/meta/conf/machine/qemux86-64.conf
index a4fd43c..489194a 100644
--- a/meta/conf/machine/qemux86-64.conf
+++ b/meta/conf/machine/qemux86-64.conf
@@ -16,7 +16,7 @@ KERNEL_IMAGETYPE = "bzImage"
SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS1"
XSERVER = "xserver-xorg \
- ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'mesa-driver-swrast', '', d)} \
+ ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'mesa-driver-swrast xserver-xorg-extension-glx', '', d)} \
xf86-input-vmmouse \
xf86-input-keyboard \
xf86-input-evdev \
diff --git a/meta/conf/machine/qemux86.conf b/meta/conf/machine/qemux86.conf
index 96cea66..3cc8091 100644
--- a/meta/conf/machine/qemux86.conf
+++ b/meta/conf/machine/qemux86.conf
@@ -15,7 +15,7 @@ KERNEL_IMAGETYPE = "bzImage"
SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS1"
XSERVER = "xserver-xorg \
- ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'mesa-driver-swrast', '', d)} \
+ ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'mesa-driver-swrast xserver-xorg-extension-glx', '', d)} \
xf86-input-vmmouse \
xf86-input-keyboard \
xf86-input-evdev \
--
2.1.4
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] machine/qemu: Fix OpenGL/GLX support with xserver-xorg.
2015-10-06 15:00 [PATCH] machine/qemu: Fix OpenGL/GLX support with xserver-xorg Carlos Alberto Lopez Perez
@ 2015-10-06 16:12 ` Burton, Ross
2015-10-06 16:18 ` Carlos Alberto Lopez Perez
0 siblings, 1 reply; 3+ messages in thread
From: Burton, Ross @ 2015-10-06 16:12 UTC (permalink / raw)
To: Carlos Alberto Lopez Perez; +Cc: OE-core
[-- Attachment #1: Type: text/plain, Size: 306 bytes --]
On 6 October 2015 at 16:00, Carlos Alberto Lopez Perez <clopez@igalia.com>
wrote:
> root@qemux86:~# glxinfo | grep " render"
> direct rendering: Yes
> OpenGL renderer string: Software Rasterizer
>
"Works" being a relative term for the old non-LLVM software renderer ;)
Ross
[-- Attachment #2: Type: text/html, Size: 742 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] machine/qemu: Fix OpenGL/GLX support with xserver-xorg.
2015-10-06 16:12 ` Burton, Ross
@ 2015-10-06 16:18 ` Carlos Alberto Lopez Perez
0 siblings, 0 replies; 3+ messages in thread
From: Carlos Alberto Lopez Perez @ 2015-10-06 16:18 UTC (permalink / raw)
To: OE-core
[-- Attachment #1: Type: text/plain, Size: 574 bytes --]
On 06/10/15 18:12, Burton, Ross wrote:
> On 6 October 2015 at 16:00, Carlos Alberto Lopez Perez <clopez@igalia.com>
> wrote:
>
>> root@qemux86:~# glxinfo | grep " render"
>> direct rendering: Yes
>> OpenGL renderer string: Software Rasterizer
>>
>
> "Works" being a relative term for the old non-LLVM software renderer ;)
>
> Ross
>
Indeed, that is something that I also would like to fix.
In any case, now I'm able to execute GL apps within qemu using the
runqemu script, so is quite an improvement from the previous status-quo.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 901 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-10-06 16:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-06 15:00 [PATCH] machine/qemu: Fix OpenGL/GLX support with xserver-xorg Carlos Alberto Lopez Perez
2015-10-06 16:12 ` Burton, Ross
2015-10-06 16:18 ` Carlos Alberto Lopez Perez
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.