qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] OpenGL in qemu
@ 2008-04-29  6:02 Nik
  2008-04-29 17:19 ` Paul Brook
  0 siblings, 1 reply; 6+ messages in thread
From: Nik @ 2008-04-29  6:02 UTC (permalink / raw)
  To: qemu-devel

Hi,

I've just found the qemu opengl patch, and will try them shortly.

I have only just started considering how this would be made to work.
However, I don't really understand the reasons behind the choice of 
structure for the code.

My intentions had been to write a generic opengl video driver and have 
that forward all opengl calls to the host's opengl libraries. It seemed 
to me that this would work on linux without modifications of OS or 
applications.

On Windows, I'm less clear. If I've understood the opengl.org Wiki, then 
Windows doesn't really provide a real opengl implementation. and 
therefore each Video card provides its own drivers with (presumably) an 
opengl implementation inside. So the forwarding opengl driver would 
still work once we've got Windows to install the driver (with whatever 
that entails).

I must confess that I'm not really sure whether I would be providing 
this code as a driver to be called by the graphics library, or whether I 
would be providing an opengl library replacement (or whether those are 
actually much the same thing).

It seems that I could base any opengl driver or library on Mesa, and 
then take whatever pieces from the qemu vga drivers to support the 
non-opengl video calls.

I can see a number of ways to actually implement the forwarding to the 
host's opengl system:

1. link the qemu executable with the host's opengl libs. This seems to 
be the least flexible, but probably the fastest. Distros which supply 
qemu might prefer this.

2. use a network connection to an external daemon which is linked to the 
host's graphics system. Either X-forwarding (to X) or a specific 
protocol (to opengl) could be used.

3. Have qemu dynamically locate and link to the host's opengl system. I 
have very little idea how best to accomplish this nor how fast it might 
be, but it seems that using qemu's dynamic translationtechnology would 
be a reasonable approach.

Finally, I also found the vmgl project which is only linux<->linux, but 
seems interesting.

Can anyone comment on the relative merits of the approach I've just 
outlined compared to others, including the existing qemu opengl patch?

Cheers!
Nik

^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <E1Jr2fU-0005nS-UJ@pih-sunmxcore11.plus.net>]
[parent not found: <200804301644.m3UGiL5B004324@gate.internal>]

end of thread, other threads:[~2008-05-01  2:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-29  6:02 [Qemu-devel] OpenGL in qemu Nik
2008-04-29 17:19 ` Paul Brook
2008-04-30  1:07   ` Nik
2008-04-30  1:54     ` Dmitriy Kazimirov
     [not found] <E1Jr2fU-0005nS-UJ@pih-sunmxcore11.plus.net>
2008-05-01  1:03 ` Gervase Lam
     [not found] <200804301644.m3UGiL5B004324@gate.internal>
2008-05-01  2:26 ` Nik

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).