<div class="gmail_quote">On Wed, Feb 18, 2009 at 2:11 AM, Roderick Colenbrander <span dir="ltr">&lt;<a href="mailto:thunderbird2k@gmx.net">thunderbird2k@gmx.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="Wj3C7c">&gt; On Mon, Feb 16, 2009 at 1:26 PM, Chris Robinson<br>
&gt; &lt;<a href="mailto:chris.kcat@gmail.com">chris.kcat@gmail.com</a>&gt;wrote:<br>
&gt;<br>
&gt; &gt; On Monday 16 February 2009 9:38:19 am Seth Shelnutt wrote:<br>
&gt; &gt; &gt; I had an interesting thought the other day, and that is to having some<br>
&gt; &gt; &gt; built in support for forwarding windows dlls to linux .so&#39;s.<br>
&gt; &gt;<br>
&gt; &gt; IIRC, this kind of thing is generally discouraged, except in cases where<br>
&gt; &gt; needed (eg. opengl32). Part of the problem is internal differences.. for<br>
&gt; &gt; example, what would a Linux .so do if it&#39;s given a Win32 filename path?<br>
&gt; &gt; Other<br>
&gt; &gt; problems would be if the Linux equivalent wants a Window for a function<br>
&gt; &gt; argument and the DLL wants an HWND instead, or if the DLL has<br>
&gt; &gt; more/different<br>
&gt; &gt; functions (eg. CUDA on Win32 has functions for dealing with D3D objects;<br>
&gt; &gt; CUDA<br>
&gt; &gt; on Linux doesn&#39;t, and it wouldn&#39;t be straight forward to even implement<br>
&gt; &gt; them<br>
&gt; &gt; through wined3d).<br>
&gt; &gt;<br>
&gt; &gt; Something like OpenGL, and even OpenAL to some degree, would directly<br>
&gt; &gt; benefit<br>
&gt; &gt; from having the DLLs forwarded to their host equivalents as it provides<br>
&gt; &gt; better<br>
&gt; &gt; access to the hardware and better integration with the host system.<br>
&gt; &gt; Something<br>
&gt; &gt; like zlib or ogg/vorbis and stuff wouldn&#39;t though, since the code should<br>
&gt; &gt; largely be the same, and save for some bugs/inefficiencies in Wine<br>
&gt; (which<br>
&gt; &gt; should be fixed), would work identically.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; Does Wine yet have the capability to interface with HAL for Win32 hardware<br>
&gt; access similar to NT? It looks like it doesn&#39;t from all this talk of<br>
&gt; forwarding DLLs. What we should do instead of trying to forward DLLs,<br>
&gt; which<br>
&gt; is asking for more trouble than its worth, is try to get the NT layer to<br>
&gt; connect to UNIX HAL so that DLLs can link directly to HAL and operate the<br>
&gt; hardware.<br>
<br>
</div></div>This can&#39;t be done. You would be writing your own operating system and hardware can&#39;t be shared. It is not that hard to write wrapper libraries. Second even if libraries look similar between OSes take for instance Cuda it does offer OS-specific functionality like e.g. Direct3D integration.<br>

<br>
Roderick<br>
<font color="#888888">--<br>
Jetzt 1 Monat kostenlos! GMX FreeDSL - Telefonanschluss + DSL<br>
f�r nur 17,95 Euro/mtl.!* <a href="http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a" target="_blank">http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a</a><br>
</font></blockquote></div><br><div>So it wouldn&#39;t be possible to hook Wine&#39;s Direct3D implementation into Gallium3D on Linux and use the hardware directly instead of translating it to OpenGL and then sending it to the hardware?</div>