http://bugs.winehq.org/show_bug.cgi?id=12545
--- Comment #25 from joaopa jeremielapuree@yahoo.fr 2008-06-07 03:26:55 --- I assume that your wine-git folder is ~/wine.git. Then, you have to put these patches in the root of the tree (that is in ~/wine.git) , not in the d3dx8 folder.
Joaopa
PS: now to do a clean test, remove the wine-git folder and do the procedure again. PS2 instead of patch -p1<....., type patch -p1 < ......