ATI has released software called HLSL2GLSL which converts D3D9 High Level Shader Language (HLSL) into the OpenGL equivalent GLSL.
It's open source, and appears to be under a BSD license, so may be possible to integrate into WINE (I'm not sure if it's old or new BSD license).
The source code is here: http://sourceforge.net/projects/hlsl2glsl
Press releases and news about it are here: http://www.macworld.com/news/2006/11/10/hlsl2glsl/index.php http://www.theinquirer.net/default.aspx?article=35742
Hope this is of interest,
Regards,
Ian