http://bugs.winehq.org/show_bug.cgi?id=30498
Bug #: 30498 Summary: Shadows broken on many games because of wrong depth formats Product: Wine Version: 1.5.2 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-d3d AssignedTo: wine-bugs@winehq.org ReportedBy: tizbac2@gmail.com Classification: Unclassified
D3DCMP_EQUAL and D3DCMP_NOTEQUAL are broken when used with incompatible depth format, and that breaks shadows on all CryEngine games, on MAFIA 2, and probably many other games
On the logs the line "fixme:d3d:state_zfunc D3DCMP_NOTEQUAL and D3DCMP_EQUAL do not work correctly yet." will appear when this bug is causing problems
http://bugs.winehq.org/show_bug.cgi?id=30498
Christian christian.frank@gmx.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |christian.frank@gmx.de
--- Comment #1 from Christian christian.frank@gmx.de 2013-01-27 08:35:45 CST --- i can confirm that shadows are broken on crysis 1, crysis wh and crysis 2.
Using Nvidia gtx 560ti with 313.09 rivers and wine 1.5.22 .
https://bugs.winehq.org/show_bug.cgi?id=30498
--- Comment #2 from Austin English austinenglish@gmail.com --- Is this still an issue in current (1.7.36 or newer) wine? If so, please attach terminal output.
https://bugs.winehq.org/show_bug.cgi?id=30498
super_man@post.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |stefan@codeweavers.com, | |super_man@post.com
https://bugs.winehq.org/show_bug.cgi?id=30498
Stefan Dösinger stefandoesinger@gmx.at changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|stefan@codeweavers.com |stefandoesinger@gmx.at
https://bugs.winehq.org/show_bug.cgi?id=30498
Oto Šťáva oto.stava@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |oto.stava@gmail.com
--- Comment #3 from Oto Šťáva oto.stava@gmail.com --- In wine-1.9.13 this is still a problem for Mafia 2. I get this message continuously (with depth texture number changing):
fixme:d3d:wined3d_debug_callback 0x710dc828: "Program undefined behavior warning: Sampler object 11 has depth compare enabled. It is being used with depth texture 943, by a program that samples it with a regular sampler. This is undefined beahvior.".
https://bugs.winehq.org/show_bug.cgi?id=30498
Wylda wylda@volny.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |wylda@volny.cz
--- Comment #4 from Wylda wylda@volny.cz --- I don't have such fixmes in wine-2.17, but shadows do not appear in Mafia 2. duplicate of bug 28251 ?
https://bugs.winehq.org/show_bug.cgi?id=30498
Sven Arvidsson sa@whiz.se changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sa@whiz.se
https://bugs.winehq.org/show_bug.cgi?id=30498
tokktokk fdsfgs@krutt.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fdsfgs@krutt.org
https://bugs.winehq.org/show_bug.cgi?id=30498
Miklós Máté mtmkls@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mtmkls@gmail.com
--- Comment #5 from Miklós Máté mtmkls@gmail.com --- There are no shadows in Crysis 2 when using wined3d, but when using gallium nine the shadows are drawn correctly.
https://bugs.winehq.org/show_bug.cgi?id=30498
exposight exposight@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |exposight@gmail.com
--- Comment #6 from exposight exposight@gmail.com --- On wine 4.18 shadows work both in Mafia 2 and Crysis 2, haven't noticed problems with them. The mentioned 'fixme' messages are not present in the console.
https://bugs.winehq.org/show_bug.cgi?id=30498
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #7 from joaopa jeremielapuree@yahoo.fr --- Reported fixed by the last comment. Can an administrator close this bug as FIXED?
https://bugs.winehq.org/show_bug.cgi?id=30498
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
--- Comment #8 from Austin English austinenglish@gmail.com --- (In reply to exposight from comment #6)
On wine 4.18 shadows work both in Mafia 2 and Crysis 2, haven't noticed problems with them. The mentioned 'fixme' messages are not present in the console.
Fixed
https://bugs.winehq.org/show_bug.cgi?id=30498
Stefan Dösinger stefan@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |stefan@codeweavers.com
--- Comment #9 from Stefan Dösinger stefan@codeweavers.com --- Reported fixed.
The EQUAL and NOTEQUAL trouble was a fairly wishy-washy problem anyway. We couldn't (and in some cases still can't) get the depth values to perfectly match what happens on Windows, breaking some games. GL_ARB_clip_control made this situation a lot better, but it is not available everywhere.
https://bugs.winehq.org/show_bug.cgi?id=30498
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #10 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 6.22.