https://bugs.winehq.org/show_bug.cgi?id=39080
--- Comment #13 from Paul Gofman gofmanp@gmail.com --- Created attachment 63336 --> https://bugs.winehq.org/attachment.cgi?id=63336 wined3d: Ignore multisample quality for MULTISAMPLE_NONE in context_find_fbo_entry().
I tested the demo and could reproduce broken faces but not broken terrain. I did not go deep inside the game though.
At least broken faces are because the game creates depth / stencil surface with no multisample, but with multisample quality 1:
0009:trace:d3d9:d3d9_device_CreateDepthStencilSurface iface 0x409e6c8, width 512, height 512, format 0x4b, multisample_type 0, multisample_quality 1.
And later:
003a:warn:d3d:context_find_fbo_entry Color multisample type 0 and quality 0, depth stencil has 0 and 1, disabling ds buffer.
Multisample quality check should probably be ignored for no multisample. I am attaching a patch (with a test which I run on Windows 7) which fixes the issue with faces for me. It might be that issue with terrain is fixed this way too (the pictures attach to the bug may be explained by missing Z-test also), but I could not check that as did not find issue with terrain on demo.