[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] Experimental initial patch providingaccelerated

From: Kazu
Subject: Re: [Qemu-devel] [PATCH] Experimental initial patch providingaccelerated OpenGL for Linux i386 (2nd attempt to post)
Date: Mon, 20 Nov 2006 12:48:39 +0900

Sent: Friday, November 17, 2006 5:34 AM Even Rounault wrote:

> How to use it ? (ONLY on Linux i386 and with only i386-softmmu as
> * Apply the patch and recompile QEMU
> * Lauch QEMU with -enable-gl option
> * Get the compiled libGL.so from ./i386-softmmu and copy it to the guest
> * In the guest OS : LD_LIBRARY_PATH=/path/to/replacement/libGL.so glxgears

I tried your patch and found some problems.

j<=4 should be j<4 in is_known_arg_vector function.
There are local and global attribDouble[] in helper_opengl.c so that I can't
compile the program on Fedora Core 4/gcc 3.2 host. I think it is probably a
bug of gcc. I deleted the local one to compile it. I can't compile
helper_opengl.c by using -O2 option.

I attached a patch that fix above and more fix warnings. It can be applied
by patch -p1 on my FC4 and gcc32 host.

I copied libGL.so to a FC3 guest and made a link to libGL.so.1 because
glxgears demands libGL.so.1.

guest >$ ln -s libGL.so libGL.so.1

And LD_LIBRARY_PATH sets path to library. So if libGL.so.1 is in current
directory, commands should be '.'  or directory name.

guest >$ LD_LIBRARY_PATH=. glxgears

When there is no acceleration, glxgears is 24 FPS. When accelerated, it
becomes 170 FPS. On host, it is 670 FPS.
It is about 1/4 of host OS. Good work!


Attachment: qemu-20061120-gl.patch.bz2
Description: Binary data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]