Has anyone ever seriously thought about implementing a 3d acceleration driver for windows (or linux too I guess)? I imagine that you would need the following components: 1. a windows frontend driver that handles directx calls from Windows and puts them on a ring for the backend 2. a linux backend driver that gets these requests and passes them to a userspace application 3. a special linux X xen console driver (eg not VNC) that handles these requests and converts them to GL calls Doesn''t sound like a particularly small job... James _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
At 11:40 +1100 on 12 Mar (1205322029), James Harper wrote:> Has anyone ever seriously thought about implementing a 3d acceleration > driver for windows (or linux too I guess)?Have you seen http://www.diku.dk/hjemmesider/ansatte/jacobg/gfx/ ? Cheers, Tim. -- Tim Deegan <Tim.Deegan@citrix.com> Principal Software Engineer, Citrix Systems (R&D) Ltd. [Company #02300071, SL9 0DZ, UK.] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Samuel Thibault
2008-Mar-13 11:10 UTC
Re: [Xen-devel] Accellerated windows graphics drivers
Hello, James Harper, le Wed 12 Mar 2008 11:40:29 +1100, a écrit :> Has anyone ever seriously thought about implementing a 3d acceleration > driver for windows (or linux too I guess)?We''ve been thinking about it here yes, but just thinking :)> 1. a windows frontend driver that handles directx calls from Windows and > puts them on a ring for the backend > 2. a linux backend driver that gets these requests and passes them to a > userspace application > 3. a special linux X xen console driver (eg not VNC) that handles these > requests and converts them to GL calls > > Doesn''t sound like a particularly small job...In the meanwhile, there is an alternative: chromium www.sf.net/projects/chromium which packs OpenGL over TCP & other networks. Actually, maybe that could be used as is, with a "shared memory" driver. Samuel _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Pasi Kärkkäinen
2008-Mar-13 11:27 UTC
Re: [Xen-devel] Accellerated windows graphics drivers
On Wed, Mar 12, 2008 at 11:40:29AM +1100, James Harper wrote:> Has anyone ever seriously thought about implementing a 3d acceleration > driver for windows (or linux too I guess)? I imagine that you would need > the following components: > > 1. a windows frontend driver that handles directx calls from Windows and > puts them on a ring for the backend > 2. a linux backend driver that gets these requests and passes them to a > userspace application > 3. a special linux X xen console driver (eg not VNC) that handles these > requests and converts them to GL calls > > Doesn''t sound like a particularly small job... >I think wine can already do this.. ie. convert d3d calls to GL calls. Maybe this is interesting too: http://www.cs.toronto.edu/~andreslc/xen-gl/ "VMGL: OpenGL Hardware 3D Acceleration for Virtual Machines" -- Pasi _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
> At 11:40 +1100 on 12 Mar (1205322029), James Harper wrote: > > Has anyone ever seriously thought about implementing a 3dacceleration> > driver for windows (or linux too I guess)? > > Have you seen http://www.diku.dk/hjemmesider/ansatte/jacobg/gfx/ ? >That looks interesting, but it appears that to do nothing to accelerate 3D calls in the DomU, it just exposes the DomU framebuffers into Dom0''s texture buffer memory. I''m not sure I completely understand it though, so I may have got it completely wrong. James _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
At 22:52 +1100 on 13 Mar (1205448755), James Harper wrote:> > At 11:40 +1100 on 12 Mar (1205322029), James Harper wrote: > > > Has anyone ever seriously thought about implementing a 3d > acceleration > > > driver for windows (or linux too I guess)? > > > > Have you seen http://www.diku.dk/hjemmesider/ansatte/jacobg/gfx/ ? > > > > That looks interesting, but it appears that to do nothing to accelerate > 3D calls in the DomU, it just exposes the DomU framebuffers into Dom0''s > texture buffer memory. I''m not sure I completely understand it though, > so I may have got it completely wrong.ISTR Jacob did some GL passthrough as well, but that might have been a separate project. Also relevant: http://xen.xensource.com/files/xensummit_4/vmgl_Cavilla.pdf Cheers, Tim. -- Tim Deegan <Tim.Deegan@citrix.com> Principal Software Engineer, Citrix Systems (R&D) Ltd. [Company #02300071, SL9 0DZ, UK.] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
James Harper wrote:> Has anyone ever seriously thought about implementing a 3d acceleration > driver for windows (or linux too I guess)? I imagine that you would need > the following components: > > 1. a windows frontend driver that handles directx calls from Windows and > puts them on a ring for the backend > 2. a linux backend driver that gets these requests and passes them to a > userspace application > 3. a special linux X xen console driver (eg not VNC) that handles these > requests and converts them to GL calls > > Doesn''t sound like a particularly small job... > > James > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel >You might want to check out this thread. http://lists.gnu.org/archive/html/qemu-devel/2008-01/msg00786.html I found the patch here: http://www.mail-archive.com/qemu-devel@nongnu.org/msg07425.html Pat _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Andrés Lagar Cavilla
2008-Mar-13 13:13 UTC
[Xen-devel] Re: Accellerated windows graphics drivers
James, VMGL should hit the ground running for your UNIXes, but I haven''t done any work towards Windows compatibility. You might find this more immediately useful http://qemu-forum.ipi.fi/viewtopic.php?f=2&t=2984&start=0&st=0&sk=t&sd=a&sid=95ec25d08ccdaddbe46c33264aa1797f Your mileage will vary, and is only OpenGL, but looks promising. No easy solution for Direct 3D. dxgl and wined3d claim to translate Direct3D calls into OpenGL. They look scary. But you need something like this sooner rather than later, as dom0 is UNIX. And don''t forget getting your GPU drivers to work in dom0... Andres On Wed, Mar 12, 2008 at 11:40:29AM +1100, James Harper wrote:>> Has anyone ever seriously thought about implementing a 3d acceleration >> driver for windows (or linux too I guess)? I imagine that you would need >> the following components: >> >> 1. a windows frontend driver that handles directx calls from Windows and >> puts them on a ring for the backend >> 2. a linux backend driver that gets these requests and passes them to a >> userspace application >> 3. a special linux X xen console driver (eg not VNC) that handles these >> requests and converts them to GL calls >> >> Doesn''t sound like a particularly small job... >> > >I think wine can already do this.. ie. convert d3d calls to GL calls. Maybe this is interesting too: http://www.cs.toronto.edu/~andreslc/xen-gl/ "VMGL: OpenGL Hardware 3D Acceleration for Virtual Machines" -- Pasi _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel