http://bugs.winehq.org/show_bug.cgi?id=13297
--- Comment #51 from Michal Suchanek hramrach@centrum.cz 2010-08-28 17:30:08 CDT --- Thanks for working on this. Apparently this was once in shape to get into Wine it has diverged since then and parts already implemented and parts were changed incompatibly.
I could not find the original patches that introduce this function because they are buried in the history due to merges.
Merges are useless with git unless what you want is managing a fork forever because git does not manage merged branches.
The Merge branch in your repo does not build for me as I posted above. Either way, the d3dxloadsurfacefrommemorySUBMIT has the same texture.c and does build but does not work probably because the d3d in that wine is ancient.
I just tried to get something working and I could run the demo with the simple version of the function.
Anyway, all file formats except DDS have only one level and DDS is broken.
I tried to rebase all the patches that could reasonably apply on top of current wine but once I apply the DDS patch the tests crash.
http://repo.or.cz/w/wine/hramrach.git/shortlog/refs/heads/surf3