qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Kazu" <kazoo@r3.dion.ne.jp>
To: qemu-devel@nongnu.org
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	[thread overview]
Message-ID: <000a01c70c56$c41aa5f0$0464a8c0@athlon> (raw)
In-Reply-To: 200611162134.48783.even.rouault@mines-paris.org

[-- Attachment #1: Type: text/plain, Size: 1319 bytes --]

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
target-list)
> * 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
OS
> * 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!

Regards,
Kazu

[-- Attachment #2: qemu-20061120-gl.patch.bz2 --]
[-- Type: application/octet-stream, Size: 24811 bytes --]

      parent reply	other threads:[~2006-11-20  3:48 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-16 20:34 [Qemu-devel] [PATCH] Experimental initial patch providing accelerated OpenGL for Linux i386 (2nd attempt to post) Even Rouault
2006-11-16 21:13 ` Even Rouault
2006-11-16 22:41 ` Fabrice Bellard
2006-11-17  1:25   ` Paul Brook
2006-11-18 12:59   ` Even Rouault
2006-11-18 17:40     ` Fabrice Bellard
2006-11-19 19:01     ` Avi Kivity
2006-11-17  7:16 ` Stefan Kombrink
2006-11-17  7:29 ` Laurent Desnogues
2006-11-20  3:48 ` Kazu [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000a01c70c56$c41aa5f0$0464a8c0@athlon' \
    --to=kazoo@r3.dion.ne.jp \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).