diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-08-20 11:23:22 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-08-20 16:53:16 +0100 |
| commit | 2c43608f02ab00d4afc76e233d87e93b6b0b11fb (patch) | |
| tree | 67bdc5a0010ad4cb4724154d2301312face36b90 /meta/recipes-devtools/qemu/qemu-git/qemugl-allow-glxcontext-release.patch | |
| parent | 0b0db813a5cd549d4c82a27c440e268845c18cc5 (diff) | |
| download | poky-2c43608f02ab00d4afc76e233d87e93b6b0b11fb.tar.gz | |
qemu-git: Drop GL passthrough support
These patches are a maintenance nightmare and impacting our abaility to
keep up to date with qemu. They are also a source of various bugs.
Remove them until someone is willing to step up and maintain them,
or upstream gains GL support.
(From OE-Core rev: 30af78f0db16b9f51666341c9dad0123ccf8ac85)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/qemu/qemu-git/qemugl-allow-glxcontext-release.patch')
| -rw-r--r-- | meta/recipes-devtools/qemu/qemu-git/qemugl-allow-glxcontext-release.patch | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/meta/recipes-devtools/qemu/qemu-git/qemugl-allow-glxcontext-release.patch b/meta/recipes-devtools/qemu/qemu-git/qemugl-allow-glxcontext-release.patch deleted file mode 100644 index 837af5b9b6..0000000000 --- a/meta/recipes-devtools/qemu/qemu-git/qemugl-allow-glxcontext-release.patch +++ /dev/null | |||
| @@ -1,65 +0,0 @@ | |||
| 1 | Allow releasing the GLXContext/Drawable with glXMakeCurrent. | ||
| 2 | |||
| 3 | --- | ||
| 4 | commit d942ed4e853e08d2298f3e11e9a952c1d952bff5 | ||
| 5 | tree f0a934efd8a8ff48e2d96f0d6fc7d70bef106bfe | ||
| 6 | parent 93619e6be184f8de08759d347825ee0d678a6f9c | ||
| 7 | author Andrzej Zaborowski <andrew.zaborowski@intel.com> Tue, 16 Jun 2009 22:22:05 +0200 | ||
| 8 | committer Andrzej Zaborowski <andrew.zaborowski@intel.com> Tue, 16 Jun 2009 22:22:05 +0200 | ||
| 9 | |||
| 10 | target-i386/opengl_exec.c | 31 ++++++++++++++++--------------- | ||
| 11 | 1 files changed, 16 insertions(+), 15 deletions(-) | ||
| 12 | |||
| 13 | Upstream-Status: Inappropriate [configuration] | ||
| 14 | |||
| 15 | Index: qemu-0.14.0/target-i386/opengl_exec.c | ||
| 16 | =================================================================== | ||
| 17 | --- qemu-0.14.0.orig/target-i386/opengl_exec.c | ||
| 18 | +++ qemu-0.14.0/target-i386/opengl_exec.c | ||
| 19 | @@ -1600,10 +1600,9 @@ int do_function_call(int func_number, ar | ||
| 20 | fprintf(stderr, "client_drawable=%p fake_ctx=%d\n", | ||
| 21 | (void *) client_drawable, fake_ctxt); | ||
| 22 | |||
| 23 | - if (client_drawable == 0 && fake_ctxt == 0) { | ||
| 24 | + if (client_drawable == 0 && fake_ctxt == 0) | ||
| 25 | ret_int = glXMakeCurrent(dpy, 0, NULL); | ||
| 26 | - process->current_state = &process->default_state; | ||
| 27 | - } else if ((drawable = (GLXDrawable) | ||
| 28 | + else if ((drawable = (GLXDrawable) | ||
| 29 | get_association_fakepbuffer_pbuffer( | ||
| 30 | process, client_drawable))) { | ||
| 31 | GLXContext ctxt = get_association_fakecontext_glxcontext( | ||
| 32 | @@ -1651,19 +1650,21 @@ int do_function_call(int func_number, ar | ||
| 33 | } | ||
| 34 | |||
| 35 | if (ret_int) { | ||
| 36 | - for (i = 0; i < process->nb_states; i ++) { | ||
| 37 | - if (process->glstates[i]->fake_ctxt == fake_ctxt) { | ||
| 38 | - /* HACK !!! REMOVE */ | ||
| 39 | - process->current_state = process->glstates[i]; | ||
| 40 | - process->current_state->drawable = drawable; | ||
| 41 | - break; | ||
| 42 | - } | ||
| 43 | - } | ||
| 44 | + if (fake_ctxt) { | ||
| 45 | + for (i = 0; i < process->nb_states; i ++) | ||
| 46 | + if (process->glstates[i]->fake_ctxt == fake_ctxt) { | ||
| 47 | + /* HACK !!! REMOVE */ | ||
| 48 | + process->current_state = process->glstates[i]; | ||
| 49 | + process->current_state->drawable = drawable; | ||
| 50 | + break; | ||
| 51 | + } | ||
| 52 | |||
| 53 | - if (i == process->nb_states) { | ||
| 54 | - fprintf(stderr, "error remembering the new context\n"); | ||
| 55 | - exit(-1); | ||
| 56 | - } | ||
| 57 | + if (i == process->nb_states) { | ||
| 58 | + fprintf(stderr, "error remembering the new context\n"); | ||
| 59 | + exit(-1); | ||
| 60 | + } | ||
| 61 | + } else | ||
| 62 | + process->current_state = &process->default_state; | ||
| 63 | } | ||
| 64 | break; | ||
| 65 | } | ||
