http://bugs.winehq.org/show_bug.cgi?id=30885
--- Comment #4 from Ralf Jung ralfjung-e@gmx.de 2012-06-11 12:42:23 CDT --- Created attachment 40495 --> http://bugs.winehq.org/attachment.cgi?id=40495 A patch fixing the issue here
With attached patch (a partial revert of the "first bad commit") applied on top of Wine 1.5.6, TrackMania is working again. This confirms that it's really the D3D compiler which is breaking the game here.