http://bugs.winehq.org/show_bug.cgi?id=35876
Bug ID: 35876 Summary: Hard Reset renders incorrectly with GLSL enabled Product: Wine Version: 1.7.15 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-d3d Assignee: wine-bugs@winehq.org Reporter: kmaterka@wp.pl
Game renders incorrectly with GLSL enabled. Disabling GLSL lowers amount of video defects considerably, unfortunately it is not fixing all of them. Take a look at screenshots submitted here: http://appdb.winehq.org/screenshots.php?iAppId=13518&iVersionId=25131
Whatever GLSL is enabled or disabled in log you can find a LOT of such errors (this pack of messages in loop):
fixme:d3d:gl_stencil_op Unrecognized stencil op 0. fixme:d3d:gl_stencil_op Unrecognized stencil op 0. fixme:d3d:gl_stencil_op Unrecognized stencil op 0. fixme:d3d:gl_stencil_op Unrecognized stencil op 0. fixme:d3d:gl_stencil_op Unrecognized stencil op 0. fixme:d3d:gl_stencil_op Unrecognized stencil op 0. fixme:d3d:gl_stencil_op Unrecognized stencil op 0. fixme:d3d:gl_stencil_op Unrecognized stencil op 0. fixme:d3d:gl_stencil_op Unrecognized stencil op 0. err:d3d:wined3d_debug_callback 0x2337b80: "GL_INVALID_VALUE error generated. Point size must not be negative.". err:d3d:state_pscale >>>>>>>>>>>>>>>>> GL_INVALID_VALUE (0x501) from glPointSize(...); @ state.c / 1568 err:d3d:wined3d_debug_callback 0x2337b80: "GL_INVALID_VALUE error generated. Point size must not be negative.". err:d3d:state_pscale >>>>>>>>>>>>>>>>> GL_INVALID_VALUE (0x501) from glPointSize(...); @ state.c / 1568 fixme:d3d:gl_stencil_op Unrecognized stencil op 0. fixme:d3d:gl_stencil_op Unrecognized stencil op 0.
You can download demo using Steam: http://store.steampowered.com/app/98400/ or from: http://video.cloudfront.bit-tech.net/bitgamer-demo/hardresetdemo_en.exe
http://bugs.winehq.org/show_bug.cgi?id=35876
Konrad Materka kmaterka@wp.pl changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |http://store.steampowered.c | |om/app/98400/ CC| |kmaterka@wp.pl
http://bugs.winehq.org/show_bug.cgi?id=35876
Henri Verbeet hverbeet@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download
http://bugs.winehq.org/show_bug.cgi?id=35876
Ronny Schmatzler schmatzler@googlemail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |schmatzler@googlemail.com
--- Comment #1 from Ronny Schmatzler schmatzler@googlemail.com --- This bug can be closed. I get the same error messages as Konrad in the console output, but I don't have any graphical errors.
The game works flawless out of the box on Ultra settings.
I use an AMD Radeon HD 6800 and the latest mesa trunk (20140610).
Proof: http://www11.pic-upload.de/11.06.14/5l28x6n39jio.jpg
http://bugs.winehq.org/show_bug.cgi?id=35876
--- Comment #2 from Konrad Materka kmaterka@wp.pl --- I am still experiencing this problem. Maybe it is specific to NVIDIA? Can you test in using Catalyst drivers? Can you take a look at the sky? Do you have this weird looking black "shadow"? https://www.dropbox.com/s/b2doc4yvw9gyvmc/hard_reset1.jpeg
That was with GLSL disabled, it is much worse when I enable GLSL: https://www.dropbox.com/s/j58cmdohtcatifp/hard_reset2.jpeg
I tested it with Wine: 1.7.19 and NVIDIA Driver Version: 331.38
http://bugs.winehq.org/show_bug.cgi?id=35876
--- Comment #3 from Ronny Schmatzler schmatzler@googlemail.com --- I guess you should try out the MESA drivers, it really looks like an Nvidia problem to me.
I compiled the latest MESA drivers yesterday (20140620) and ran Hard Reset, no problems with any shadows:
http://www11.pic-upload.de/21.06.14/cgqerwi8dv66.jpg
http://www11.pic-upload.de/21.06.14/ik1e35u7to5.jpg
P.S.: I can't test with fglrx, can't get it to work for 32bit applications. The closed source drivers from AMD are horrible.
https://bugs.winehq.org/show_bug.cgi?id=35876
--- Comment #4 from Konrad Materka kmaterka@wp.pl --- I retested using MESA drivers (Nouveau) and it works as NVIDIA binary with GLSL disabled. I've got only minor corruptions on the sky, but walls and everything else was fine. So this problem occurs only with GLSL enabled on NVIDIA proprietary driver. I don't know if it affect FGLRX to.
MESA Nouveau, GLSL enabled: https://www.dropbox.com/s/4w7437c7e4zpjsu/hard_reset3.jpeg
NVIDIA proprietary, GLSL disabled: https://www.dropbox.com/s/b2doc4yvw9gyvmc/hard_reset1.jpeg
NVIDIA proprietary, GLSL enabled: https://www.dropbox.com/s/j58cmdohtcatifp/hard_reset2.jpeg
https://bugs.winehq.org/show_bug.cgi?id=35876
Alessandro Pezzoni alessandro.pezzoni@runbox.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |alessandro.pezzoni@runbox.c | |om
--- Comment #5 from Alessandro Pezzoni alessandro.pezzoni@runbox.com --- This bug is still present in wine 1.7.42. Tested with nVidia closed source driver v349.16 and a GeForce GTX 560 Ti adapter.
https://bugs.winehq.org/show_bug.cgi?id=35876
--- Comment #6 from Alessandro Pezzoni alessandro.pezzoni@runbox.com --- This bug is still present in wine 1.9.4. Tested with nVidia closed source driver v361.28 and a GeForce GTX 560 Ti adapter.
https://bugs.winehq.org/show_bug.cgi?id=35876
Konrad Materka kmaterka@wp.pl changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|1.7.15 |4.0-rc1 Summary|Hard Reset renders |Hard Reset renders |incorrectly with GLSL |incorrectly - black shaders |enabled |
https://bugs.winehq.org/show_bug.cgi?id=35876
--- Comment #7 from Konrad Materka kmaterka@wp.pl --- Created attachment 63005 --> https://bugs.winehq.org/attachment.cgi?id=63005 WINEDEBUG=+d3d_shader
GLSL is working fine now, but weird black area remained. It might be NVIDIA specific. I'm attaching a log with WINEDEBUG=+d3d_shader flag, hope this helps. There are errors like this one: 002d:fixme:d3d_shader:print_glsl_info_log Info log received from GLSL shader #3: 002d:fixme:d3d_shader:print_glsl_info_log Vertex info 002d:fixme:d3d_shader:print_glsl_info_log ----------- 002d:fixme:d3d_shader:print_glsl_info_log 0(23) : warning C7050: "vs_out[2]" might be used before being initialized 002d:fixme:d3d_shader:print_glsl_info_log 0(23) : warning C7050: "vs_out[3]" might be used before being initialized 002d:fixme:d3d_shader:print_glsl_info_log 0(23) : warning C7050: "vs_out[4]" might be used before being initialized
https://bugs.winehq.org/show_bug.cgi?id=35876
--- Comment #8 from Matteo Bruni matteo.mystral@gmail.com --- It might be related to bug 34266.
https://bugs.winehq.org/show_bug.cgi?id=35876
Paul Gofman gofmanp@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gofmanp@gmail.com
--- Comment #9 from Paul Gofman gofmanp@gmail.com --- If it is somewhat similar to bug #34266, but reproducible on Nvidia prop driver only, setting HKEY_CURRENT_USER/Software/Wine/Direct3D/strict_shader_math to 1 (DWORD value) should likely workaround this (see Bug #35207).
https://bugs.winehq.org/show_bug.cgi?id=35876
--- Comment #10 from Konrad Materka kmaterka@wp.pl --- Created attachment 65156 --> https://bugs.winehq.org/attachment.cgi?id=65156 Wine 4.14 - new redering bug
I checked with latest Wine 4.14 (and also Staging version). Artifacts from my original report are no longer visible, but there is new problem. When I look up rectangle covering top-left quarter of the screen appears, with a lot of graphical issues. I guess I need to run bisects to find which commit caused that... Will do that next month.
https://bugs.winehq.org/show_bug.cgi?id=35876
--- Comment #11 from Konrad Materka kmaterka@wp.pl --- Created attachment 65239 --> https://bugs.winehq.org/attachment.cgi?id=65239 Artifact still visible, Wine 4.15, NVIDIA 435.21
I just tested with 4.15, it fixed regressions introduced in some earlier version (I don't know which one exactly). These regressions were pretty bad, not only it "fixed" atricats on the sky, but all shadows and lighting were distorted. Please ignore my last comment and screenshot.
Artifacts are still visible, as in the attachment.
I tried: CheckFloatConstants strict_shader_math didn't help.
NVIDIA driver 430.40 and 435.21
https://bugs.winehq.org/show_bug.cgi?id=35876
--- Comment #12 from Paul Gofman gofmanp@gmail.com --- Could you please test it with Wine-Staging 4.16, setting 'multiply_special' to 2 and to 1 if possible? See https://bugs.winehq.org/show_bug.cgi?id=34266#c34 for details.
https://bugs.winehq.org/show_bug.cgi?id=35876
--- Comment #13 from Konrad Materka kmaterka@wp.pl --- Created attachment 65260 --> https://bugs.winehq.org/attachment.cgi?id=65260 Wine-Staging 4.16, 'multiply_special' = 1
OK, I tested it with Wine-Staging 4.16, 'multiply_special' set to 2 and to 1. Both renders correctly now, but with value 2 performance dropped significantly - game stutters, especially on explosions etc. After setting 'multiply_special' back to 0 there are graphical issues.
https://bugs.winehq.org/show_bug.cgi?id=35876
--- Comment #14 from Paul Gofman gofmanp@gmail.com --- So it looks now as a confirmed duplicate of bug #34266.
https://bugs.winehq.org/show_bug.cgi?id=35876
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |z.figura12@gmail.com Resolution|--- |DUPLICATE
--- Comment #15 from Zebediah Figura z.figura12@gmail.com --- (In reply to Paul Gofman from comment #14)
So it looks now as a confirmed duplicate of bug #34266.
*** This bug has been marked as a duplicate of bug 34266 ***
https://bugs.winehq.org/show_bug.cgi?id=35876
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #16 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- Closing Duplicate.