http://bugs.winehq.org/show_bug.cgi?id=28044
--- Comment #3 from Emanuele emanuele.emalele@gmail.com 2011-08-10 09:38:22 CDT --- I made some other discoveries.
I modified the directx.c file to set by default the HW_AMD_VENDOR and by recompiling all Wine sets it up correctly. Anyway in my opinion this is a bug and mine is NOT a fix because it's a forcing for ATI only.
So the bug could come from the fact that GL_VENDOR "X.Org" is not recognized and so NVIDIA is set.
By speaking about registry device id error in the Exec_log, I checked the wined3d_private.h 'supposedly' the GPU database (I do not know if I'm right) just to find that 6899 as device id is for ATI 5870 but it's false because as per lspci -n my HD5850 is reported as 6899.
Anyway as of now I've forced in the registry the value 6898 to adhere to wined3d_private.h for the HD5850 but the value is wrong or not all 5850 board has 6898, of course.
Now my custom Wine build complains only for the GL_VENDOR but sets AMD_VENDOR correctly and it seems to recognize HD5850.
Unfortunately the graphic corruption is still present but I can see a little improvement: something is moving in the screen and I cannot distinguish the objects but I can see more colours.