summaryrefslogtreecommitdiffstats
path: root/meta/packages/qemu/qemu_0.12.4.bb
diff options
context:
space:
mode:
authorKevin Tian <kevin.tian@intel.com>2010-06-29 08:54:03 +0800
committerRichard Purdie <rpurdie@linux.intel.com>2010-06-29 12:34:38 +0100
commit9207cd40153148f71788d30697a055fe846e8927 (patch)
tree08d8c79bdfd8eb6078822df36f60ab79c20b6506 /meta/packages/qemu/qemu_0.12.4.bb
parentbb3e4dda5d85402fadcecc97589ea4e452c36c98 (diff)
downloadpoky-9207cd40153148f71788d30697a055fe846e8927.tar.gz
qemu: fix VMware VGA depth calculation error
VMware SVGA presents to the guest with the depth of the host surface it renders to, and rejects to work if the two sides are mismatched. One problem is that current VMware VGA may calculate a wrong host depth, and then memcpy from virtual framebuffer to host surface may trigger segmentation fault. For example, when launching Qemu in a VNC connection, VMware SVGA thinks depth as '32', however the actual depth of VNC is '16'. The fault also happens when the host depth is not 32 bit. Qemu <4b5db3749c5fdba93e1ac0e8748c9a9a1064319f> tempts to fix a similar issue, by changing from hard-coded 24bit depth to instead query the surface allocator (e.g. sdl). However it doesn't really work, because the point where query is invoked is earlier than the point where sdl is initialized. At query time, qemu uses a default surface allocator which, again, provides another hard-coded depth value - 32bit. So it happens to make VMware SVGA working on some hosts, but still fails in others. To solve this issue, this commit introduces a postcall interface to display surface, which is walked after surface allocators are actually initialized. At that point it's then safe to query host depth and present to the guest. Signed-off-by Kevin Tian <kevin.tian@intel.com>
Diffstat (limited to 'meta/packages/qemu/qemu_0.12.4.bb')
-rw-r--r--meta/packages/qemu/qemu_0.12.4.bb5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/packages/qemu/qemu_0.12.4.bb b/meta/packages/qemu/qemu_0.12.4.bb
index 20cc8e8a5a..7d158bf863 100644
--- a/meta/packages/qemu/qemu_0.12.4.bb
+++ b/meta/packages/qemu/qemu_0.12.4.bb
@@ -1,6 +1,6 @@
1require qemu.inc 1require qemu.inc
2 2
3PR = "r15" 3PR = "r16"
4 4
5FILESPATH = "${FILE_DIRNAME}/qemu-${PV}" 5FILESPATH = "${FILE_DIRNAME}/qemu-${PV}"
6FILESDIR = "${WORKDIR}" 6FILESDIR = "${WORKDIR}"
@@ -14,6 +14,7 @@ SRC_URI = "\
14 file://fix-nogl.patch \ 14 file://fix-nogl.patch \
15 file://qemugl-allow-glxcontext-release.patch \ 15 file://qemugl-allow-glxcontext-release.patch \
16 file://linker-flags.patch \ 16 file://linker-flags.patch \
17 file://init-info.patch" 17 file://init-info.patch \
18 file://qemu-vmware-vga-depth.patch"
18 19
19S = "${WORKDIR}/qemu-${PV}" 20S = "${WORKDIR}/qemu-${PV}"