https://bugs.winehq.org/show_bug.cgi?id=42919
--- Comment #4 from Paul Gofman gofmanp@gmail.com --- Thanks for testing it.
It is a straightforward and simple fix (apart from I managed to make it a bit buggy in this quick test patch), so I hope to suggest it (fixed) upstream somewhere soon. I just wanted to send a few other things first, like d3dx9_get_pass_desc shader returns which pops through a few bugs, they can't go all at once.