http://bugs.winehq.org/show_bug.cgi?id=32821
Bug #: 32821 Summary: Some games runs extremally slow with Mesa >= 8.0 Product: Wine Version: 1.4.1 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: deveee@gmail.com Classification: Unclassified
I wrote about it in bugs.freedesktop.org, you can see there: https://bugs.freedesktop.org/show_bug.cgi?id=55396 https://bugs.freedesktop.org/show_bug.cgi?id=57338
But regression test shows, that it's probably problem in Wine, not in Mesa drivers.
First bug from freedesktop you can see in Sims 3 intro or Need for Speed Most Wanted intro. Video below:
http://imageshack.us/clip/my-videos/444/f5f.mp4/
Second bug may be problem in mesa, I'm not sure. You can see it in Star Wars Jedi Academy in multiplayer mode.
Configuration: intel 965GM xserver-xorg-video-intel 2.20.19 mesa 9.0.1 linux-image 3.7.4 wine 1.4.1
Lastest working configuration: mesa 7.11.2
http://bugs.winehq.org/show_bug.cgi?id=32821
--- Comment #1 from Henri Verbeet hverbeet@gmail.com 2013-01-26 13:57:35 CST --- (In reply to comment #0)
I wrote about it in bugs.freedesktop.org, you can see there: https://bugs.freedesktop.org/show_bug.cgi?id=55396
Yeah, I'm CC'd on that bug.
But regression test shows, that it's probably problem in Wine, not in Mesa drivers.
I'm not sure I really agree with that conclusion, but it doesn't really matter for fixing the bug. The most important thing to get at this point would be profiling information with proper call information. Unfortunately I don't have the required hardware to reproduce this myself. If you're unable to create a good profile yourself (or anyone else with the required hardware on this bug), your best bet may be to ask one of the Intel guys if they can reproduce it and create a profile.
http://bugs.winehq.org/show_bug.cgi?id=32821
--- Comment #2 from Henri Verbeet hverbeet@gmail.com 2013-01-26 13:59:51 CST --- Also, I'd recommend using wine 1.5.22 or later if at all possible, a lot has changed since wine 1.4.1, and profiling information for that version may not apply to 1.5.22.
http://bugs.winehq.org/show_bug.cgi?id=32821
--- Comment #3 from Deve deveee@gmail.com 2013-01-26 15:46:04 CST --- I tried to do sysprof log few times, but I really don't know what's wrong.
deve@deve:/home/Dokumenty/mesa$ ./configure --enable-debug --with-dri-drivers=i965 --with-gallium-drivers="" deve@deve:/home/Dokumenty/mesa$ make --quiet deve@deve:/home/Dokumenty/mesa$ export LIBGL_DRIVERS_PATH=/home/Dokumenty/mesa/lib deve@deve:/home/Dokumenty/mesa$ export LD_LIBRARY_PATH=/home/Dokumenty/mesa/lib deve@deve:/home/Dokumenty/mesa$ glxinfo | grep Open OpenGL vendor string: Intel Open Source Technology Center OpenGL renderer string: Mesa DRI Intel(R) 965GM x86/MMX/SSE2 OpenGL version string: 2.1 Mesa 9.1-devel (git-22233da) OpenGL shading language version string: 1.20 OpenGL extensions: deve@deve:/home/Dokumenty/mesa$ wine-1.5 --version WINEPREFIX: /home/deve/.wine-1.5 wine-1.5.21 deve@deve:/home/Dokumenty/mesa$ WINEPREFIX=~/.wine-1.5-sims/ wine-1.5 /home/Gry/Sims\ 3/Game/Bin/TS3.exe
root@deve:/home/deve# sysprof-cli /home/Dokumenty/sysprof_1
Wine was compiled with options: ./configure --prefix=/opt/wine-1.5 --disable-tests
You can see in attachment what I got.
http://bugs.winehq.org/show_bug.cgi?id=32821
--- Comment #4 from Deve deveee@gmail.com 2013-01-26 15:48:29 CST --- Created attachment 43349 --> http://bugs.winehq.org/attachment.cgi?id=43349 sysprof.zip
http://bugs.winehq.org/show_bug.cgi?id=32821
--- Comment #5 from Henri Verbeet hverbeet@gmail.com 2013-01-26 16:53:35 CST --- (In reply to comment #3)
I tried to do sysprof log few times, but I really don't know what's wrong.
That profile helps. It looks like the calls to unpack_ARGB8888() are caused by glGetTexImage(), which ends up hitting a fallback in _mesa_meta_GetTexImage() / _mesa_get_teximage().
As a guess, does setting MESA_EXTENSION_OVERRIDE="-GL_EXT_texture_sRGB_decode" make it any better? If not, could you create a log with WINEDEBUG="+tid,+d3d9,+d3d,+d3d_surface,+d3d_texture"?
http://bugs.winehq.org/show_bug.cgi?id=32821
--- Comment #6 from Deve deveee@gmail.com 2013-01-27 03:11:54 CST --- You are right. After disabling extension by MESA_EXTENSION_OVERRIDE="-GL_EXT_texture_sRGB_decode" intro runs smoothly. I will write about it with currnet sysprof log on bugs.freedesktop.org.
Could you help also with second bug? I attachment is sysprof log created with the same method.
http://bugs.winehq.org/show_bug.cgi?id=32821
--- Comment #7 from Deve deveee@gmail.com 2013-01-27 03:14:15 CST --- Created attachment 43355 --> http://bugs.winehq.org/attachment.cgi?id=43355 sysprof 2
http://bugs.winehq.org/show_bug.cgi?id=32821
--- Comment #8 from Deve deveee@gmail.com 2013-02-23 13:08:45 CST --- Created attachment 43683 --> http://bugs.winehq.org/attachment.cgi?id=43683 log from Star Wars Jedi Academy MP
WINEDEBUG="+tid,+d3d9,+d3d,+d3d_surface,+d3d_texture"
wine 1.5.24 mesa 9.1
http://bugs.winehq.org/show_bug.cgi?id=32821
--- Comment #9 from Deve deveee@gmail.com 2013-02-23 13:21:19 CST --- Created attachment 43684 --> http://bugs.winehq.org/attachment.cgi?id=43684 log from Sims 3
WINEDEBUG="+tid,+d3d9,+d3d,+d3d_surface,+d3d_texture"
wine 1.4.1 mesa 9.2-devel
I had troubles to run it under wine 1.5.24. If it's needed I can try to do it with new WINEPREFIX and game installation.
GLSL was disabled while creating a log, but with default options I have the same problem.
http://bugs.winehq.org/show_bug.cgi?id=32821
--- Comment #10 from Henri Verbeet hverbeet@gmail.com 2013-02-23 14:20:02 CST --- Created attachment 43685 --> http://bugs.winehq.org/attachment.cgi?id=43685 debug patch
(In reply to comment #8)
Created attachment 43683 [details] log from Star Wars Jedi Academy MP
WINEDEBUG="+tid,+d3d9,+d3d,+d3d_surface,+d3d_texture"
wine 1.5.24 mesa 9.1
Jedi Academy is an OpenGL application as far as I know, so wined3d doesn't have a lot of influence on performance there. The log seems to confirm that, all the D3D calls in there are just for getting hardware information like e.g. the amount of available video memory, it doesn't do any rendering using D3D. I'd say this one at least is purely a driver issue.
(In reply to comment #9)
Created attachment 43684 [details] log from Sims 3
Marek Olšák fixed some similar issues as my patches attached to those bugs did in commits 87f94e6f80dcdc3933edee24b1f7a6e355c4abaa and a0510fa7737eaaaafffd9748f603cf0231e8321a. (These should be in 9.1, but since my patches didn't help for you, these probably didn't either.) He also made the fallback quite a bit faster in commit ea63491629f48099371f725e7c3779f2982d7a52, but that's for Gallium3D based drivers only. Perhaps the attached (Mesa) debugging patch can give some more information about what formats are actually involved, but I really think the Mesa bugzilla is more appropriate for discussing this.
GLSL was disabled while creating a log, but with default options I have the same problem.
Disabling GLSL in general makes things worse for anything that isn't the proprietary NVIDIA driver, or cases where only reporting shader model 1 would improve performance. (And in the latter case there are other registry settings that are more appropriate.) But yeah, probably not the issue here.
https://bugs.winehq.org/show_bug.cgi?id=32821
--- Comment #11 from Austin English austinenglish@gmail.com --- This is your friendly reminder that there has been no bug activity for over 700 days. Is this still an issue in current (1.7.36 or newer) wine?
https://bugs.winehq.org/show_bug.cgi?id=32821
super_man@post.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |deveee@gmail.com, | |super_man@post.com
https://bugs.winehq.org/show_bug.cgi?id=32821
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |00cpxxx@gmail.com, | |winetest@luukku.com
--- Comment #12 from winetest@luukku.com --- External mesa bugs are pending since 2013 needinfo status and so is this...
https://bugs.winehq.org/show_bug.cgi?id=32821
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |xerox_xerox2000@yahoo.co.uk
https://bugs.winehq.org/show_bug.cgi?id=32821
--- Comment #13 from Deve deveee@gmail.com --- Just close the bug report because it's very old and I don't have any possibilities to test it anymore.
https://bugs.winehq.org/show_bug.cgi?id=32821
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |ABANDONED
--- Comment #14 from Austin English austinenglish@gmail.com --- Abandoned.
https://bugs.winehq.org/show_bug.cgi?id=32821
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #15 from Austin English austinenglish@gmail.com --- Closing.