* [PATCH 0/1] qemugl fix
@ 2012-03-16 11:57 edwin.zhai
2012-03-16 11:57 ` [PATCH 1/1] qemugl: Hide some GLX extensions by default edwin.zhai
2012-03-19 16:27 ` [PATCH 0/1] qemugl fix Saul Wold
0 siblings, 2 replies; 3+ messages in thread
From: edwin.zhai @ 2012-03-16 11:57 UTC (permalink / raw)
To: openembedded-core
From: Zhai Edwin <edwin.zhai@intel.com>
RP,
This fixed [YOCTO #1927]. Pls. help to review and pull.
Thanks,
Edwin
The following changes since commit be0f9dd483af2a2f55b2ae8ef9ca172e7c90819c:
python-imaging: bring in fixes from meta-oe (2012-03-16 10:57:09 +0000)
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
Zhai Edwin (1):
qemugl: Hide some GLX extensions by default
.../mesa/qemugl/extensions_emulation.patch | 34 ++++++++++++++++++++
meta/recipes-graphics/mesa/qemugl_git.bb | 5 ++-
2 files changed, 37 insertions(+), 2 deletions(-)
create mode 100644 meta/recipes-graphics/mesa/qemugl/extensions_emulation.patch
--
1.7.5.4
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/1] qemugl: Hide some GLX extensions by default
2012-03-16 11:57 [PATCH 0/1] qemugl fix edwin.zhai
@ 2012-03-16 11:57 ` edwin.zhai
2012-03-19 16:27 ` [PATCH 0/1] qemugl fix Saul Wold
1 sibling, 0 replies; 3+ messages in thread
From: edwin.zhai @ 2012-03-16 11:57 UTC (permalink / raw)
To: openembedded-core
From: Zhai Edwin <edwin.zhai@intel.com>
Exporting these extensions make guest call some missing GLX API then crash.
It's hacky to implement these APIs, so hide these extensions as fix.
[YOCTO #1927] got fixed
Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
---
.../mesa/qemugl/extensions_emulation.patch | 34 ++++++++++++++++++++
meta/recipes-graphics/mesa/qemugl_git.bb | 5 ++-
2 files changed, 37 insertions(+), 2 deletions(-)
create mode 100644 meta/recipes-graphics/mesa/qemugl/extensions_emulation.patch
diff --git a/meta/recipes-graphics/mesa/qemugl/extensions_emulation.patch b/meta/recipes-graphics/mesa/qemugl/extensions_emulation.patch
new file mode 100644
index 0000000..08418c2
--- /dev/null
+++ b/meta/recipes-graphics/mesa/qemugl/extensions_emulation.patch
@@ -0,0 +1,34 @@
+Hide some GLX extensions by default to avoid guest call missing GLX API. It's
+hacky to implement these APIs, so hide these extensions as fix.
+
+Upstream-Status: Pending
+
+Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
+
+Index: git/opengl_client.c
+===================================================================
+--- git.orig/opengl_client.c 2012-03-16 18:22:27.000000000 +0800
++++ git/opengl_client.c 2012-03-16 18:52:06.000000000 +0800
+@@ -105,6 +105,12 @@
+ "NO_MOVE", /* default : set if TCP/IP communication */
+ };
+
++/* Hiding some GLX extensions from guest */
++static const char* hiding_extensions =
++ "GLX_MESA_copy_sub_buffer,\
++ GLX_MESA_multithread_makecurrent,\
++ GLX_MESA_swap_control,\
++ ";
+
+ #ifdef WIN32
+
+@@ -3516,7 +3522,8 @@
+ static void removeUnwantedExtensions(char* ret)
+ {
+ char* toBeRemoved = getenv("GL_REMOVE_EXTENSIONS");
+- if (toBeRemoved == NULL) return;
++ if (toBeRemoved == NULL)
++ toBeRemoved = hiding_extensions;
+ toBeRemoved = strdup(toBeRemoved);
+ char* iterToBeRemoved = toBeRemoved;
+ while(*iterToBeRemoved)
diff --git a/meta/recipes-graphics/mesa/qemugl_git.bb b/meta/recipes-graphics/mesa/qemugl_git.bb
index 66f4e17..378aa65 100644
--- a/meta/recipes-graphics/mesa/qemugl_git.bb
+++ b/meta/recipes-graphics/mesa/qemugl_git.bb
@@ -12,13 +12,14 @@ COMPATIBLE_HOST = '(x86_64.*|i.86.*)-(linux|freebsd.*)'
SRC_URI = "git://git.yoctoproject.org/qemugl;protocol=git \
file://versionfix.patch \
file://remove-x11r6-lib-dir.patch \
- file://call_opengl_fix.patch"
+ file://call_opengl_fix.patch \
+ file://extensions_emulation.patch"
S = "${WORKDIR}/git"
SRCREV = "d888bbc723c00d197d34a39b5b7448660ec1b1c0"
PV = "0.0+git${SRCPV}"
-PR = "r9"
+PR = "r10"
DEFAULT_PREFERENCE = "-1"
--
1.7.5.4
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH 0/1] qemugl fix
2012-03-16 11:57 [PATCH 0/1] qemugl fix edwin.zhai
2012-03-16 11:57 ` [PATCH 1/1] qemugl: Hide some GLX extensions by default edwin.zhai
@ 2012-03-19 16:27 ` Saul Wold
1 sibling, 0 replies; 3+ messages in thread
From: Saul Wold @ 2012-03-19 16:27 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On 03/16/2012 04:57 AM, edwin.zhai@intel.com wrote:
> From: Zhai Edwin<edwin.zhai@intel.com>
>
> RP,
> This fixed [YOCTO #1927]. Pls. help to review and pull.
>
> Thanks,
> Edwin
>
> The following changes since commit be0f9dd483af2a2f55b2ae8ef9ca172e7c90819c:
>
> python-imaging: bring in fixes from meta-oe (2012-03-16 10:57:09 +0000)
>
> 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
>
> Zhai Edwin (1):
> qemugl: Hide some GLX extensions by default
>
> .../mesa/qemugl/extensions_emulation.patch | 34 ++++++++++++++++++++
> meta/recipes-graphics/mesa/qemugl_git.bb | 5 ++-
> 2 files changed, 37 insertions(+), 2 deletions(-)
> create mode 100644 meta/recipes-graphics/mesa/qemugl/extensions_emulation.patch
>
Merged into OE-Core
Thanks
Sau!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-03-19 16:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-16 11:57 [PATCH 0/1] qemugl fix edwin.zhai
2012-03-16 11:57 ` [PATCH 1/1] qemugl: Hide some GLX extensions by default edwin.zhai
2012-03-19 16:27 ` [PATCH 0/1] qemugl fix Saul Wold
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox