http://bugs.winehq.org/show_bug.cgi?id=18401
Summary: Cars won't be renderer with PC3 shaders Product: Wine Version: 1.1.21 Platform: Other OS/Version: other Status: UNCONFIRMED Severity: minor Priority: P2 Component: directx-d3d AssignedTo: wine-bugs@winehq.org ReportedBy: ape3000@gmail.com
This is a new bug in 1.1.21. It was working on 1.1.20, but generally 1.1.21 with PC3 works better. Some effects look better in 1.1.21. The only problem is that you wont see any cars. Ghost cars are working and you can see all of the car shadows.
This has to do something with the new shader code in 1.1.21. It did a step to the right direction, but caused this minor regression.
http://bugs.winehq.org/show_bug.cgi?id=18401
--- Comment #1 from Austin English austinenglish@gmail.com 2009-05-09 17:39:17 --- Regression test? http://wiki.winehq.org/RegressionTesting
http://bugs.winehq.org/show_bug.cgi?id=18401
Lauri Niskanen ape3000@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |stefan@codeweavers.com
--- Comment #2 from Lauri Niskanen ape3000@gmail.com 2009-05-10 02:02:36 --- Regression testing didn't give any clear results. I marked 1.1.20 as good, 1.1.21 as bad and limited the search to dlls/wined3d. I got only bad results till there were only 8 patches left for testing. At that point the game looked just like 1.1.20. I marked it as a good one. The next one was also a "good" one. Then there was only two patches left. Then I got bad cases and the only patch left was '[8513f64a0117ee7a6a15cb174a3c0c76e2f2b071] wined3d: Emulate R16G16F and R32G32F if GL_ARB_texture_rg is not supported.'
1.1.20 isn't really the good one since it seems render PC3 as PC2. With 1.1.21 the bug appears on (real) PC3, but it works on PC2. 1.1.21 works just like 1.1.20, if you use PC2 so the problem is in the new PC3 rendering that didn't exists at all on the 1.1.20.
The patch was made by Stefan Dösinger stefan@codeweavers.com, so he might know something about this problem. I added him to this bug.
http://bugs.winehq.org/show_bug.cgi?id=18401
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|stefan@codeweavers.com |
--- Comment #3 from Austin English austinenglish@gmail.com 2009-05-10 02:31:31 --- (In reply to comment #2)
Regression testing didn't give any clear results. I marked 1.1.20 as good, 1.1.21 as bad and limited the search to dlls/wined3d. I got only bad results till there were only 8 patches left for testing. At that point the game looked just like 1.1.20. I marked it as a good one. The next one was also a "good" one. Then there was only two patches left. Then I got bad cases and the only patch left was '[8513f64a0117ee7a6a15cb174a3c0c76e2f2b071] wined3d: Emulate R16G16F and R32G32F if GL_ARB_texture_rg is not supported.'
If you're not sure that patch is to blame, don't make such claims.
Run the regression test on the whole tree, and verify the result by reverting that patch.
http://bugs.winehq.org/show_bug.cgi?id=18401
--- Comment #4 from Lauri Niskanen ape3000@gmail.com 2009-05-10 02:35:23 --- I just tried to say that really the problem isn't caused by that patch. There is no version where it is really working. 1.1.20 renders PC3 as PC2, so it isn't really the "good" version. 1.1.21 renders PC3 for real, but there is just this problem. I think this is not a regression.
http://bugs.winehq.org/show_bug.cgi?id=18401
--- Comment #5 from Stefan Dösinger stefandoesinger@gmx.at 2009-05-10 04:52:55 --- So enabling the two pixel formats made the game switch rendering modes, and the newly enabled better mode does not work correctly yet, that's how I understand it. This is quite expected with this patch - I wrote it to make Trackmania enable its shader model 3 codepath(which incidentally fails with similar symptoms due to uniform limits)
Is there any terminal output, especially GL errors? If there are gl errors in drawStridedFast, please attach a +d3d_shader log, otherwise just attach a log with the default fixme+all info(ie, no WINEDEBUG set)
http://bugs.winehq.org/show_bug.cgi?id=18401
--- Comment #6 from Lauri Niskanen ape3000@gmail.com 2009-05-10 05:18:01 --- Created an attachment (id=21004) --> (http://bugs.winehq.org/attachment.cgi?id=21004) Output
Stefan, yes you understood it correctly.
I couldn't find "drawStridedFast" from the +d3d_shader log. I attached the +all log (pc3.txt). I also looked up the logs with PC2. Then I compared the logs between PC3 and PC2 and attached the lines that were only in PC3 (pc3-only.txt).
http://bugs.winehq.org/show_bug.cgi?id=18401
--- Comment #7 from Lauri Niskanen ape3000@gmail.com 2009-05-10 05:18:56 --- Created an attachment (id=21006) --> (http://bugs.winehq.org/attachment.cgi?id=21006) New lines when moving from PC2 to PC3
http://bugs.winehq.org/show_bug.cgi?id=18401
--- Comment #8 from Lauri Niskanen ape@ape3000.com 2009-05-27 05:21:09 --- I got a new graphics card and this bug disappeared. I can't produce this bug with any recent wine version with the new card.
I had Geforce 7950 GT and now I have Geforce GTX 285. This isn't the first bug that only happens with certain graphic cards. Usually it's so that Geforce 7000-series and older has the bug, but Geforce 8000 and newer doesn't.
http://bugs.winehq.org/show_bug.cgi?id=18401
Gerry trick@icculus.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |trick@icculus.org
--- Comment #9 from Gerry trick@icculus.org 2009-06-23 15:36:50 --- I think I've got the same bug here after upgrading to wine 1.1.24 from 1.1.22 (which worked). In Trackmania United Forever, cars are now transparent. In the console, this line is repeated endlessly:
fixme:d3d_shader:shader_glsl_select >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0x502) from glUseProgramObjectARB @ glsl_shader.c / 4221
This is with a Geforce 6800 GS.
http://bugs.winehq.org/show_bug.cgi?id=18401
--- Comment #10 from Gerry trick@icculus.org 2009-06-24 10:20:09 --- I noticed that wine switched to use fbo by default in 1.2.23. Setting HKCU/Software/Wine/Direct3D/OffscreenRenderingMode to backbuffer fixes (or works around) the missing cars problem. This adds some line artifacts to the screen though.
http://bugs.winehq.org/show_bug.cgi?id=18401
--- Comment #11 from Gerry trick@icculus.org 2009-07-04 13:25:27 --- Still present in 1.1.25.
http://bugs.winehq.org/show_bug.cgi?id=18401
--- Comment #12 from Austin English austinenglish@gmail.com 2010-06-04 15:43:52 --- This is your friendly reminder that there has been no bug activity for 11 months. Is this still an issue in current (1.2-rc2 or newer) wine?
http://bugs.winehq.org/show_bug.cgi?id=18401
--- Comment #13 from Gerry trick@icculus.org 2010-06-06 16:13:05 --- Yes (tested 1.2 rc2). In fact it's gotten worse: Cars are still invisible, but now the screens are completely messed up as well, with images missing or bunched together at wrong locations (eg button icons, the title video, loading screen background actually moves along with the percent bar now, etc). This new problem doesn't happen with 1.1.44 (but cars are still missing).
Setting offscreen rendering mode to backbuffer works fine, like before.
http://bugs.winehq.org/show_bug.cgi?id=18401
--- Comment #14 from Gerry trick@icculus.org 2010-06-06 16:15:06 --- (to clarify, the image displacement and missing cars happen with both fbo and pbuffer, but not with backbuffer)
http://bugs.winehq.org/show_bug.cgi?id=18401
Lauri Niskanen ape@ape3000.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #15 from Lauri Niskanen ape@ape3000.com 2010-08-14 12:10:28 --- I don't have this issue with Wine 1.3.0.
http://bugs.winehq.org/show_bug.cgi?id=18401
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #16 from Alexandre Julliard julliard@winehq.org 2010-08-20 12:38:55 --- Closing bugs fixed in 1.3.1.