[Bug 34630] New: Drakan demo sees two display drivers and only one of them supports Windowed Mode
http://bugs.winehq.org/show_bug.cgi?id=34630 Bug #: 34630 Summary: Drakan demo sees two display drivers and only one of them supports Windowed Mode Product: Wine Version: 1.7.3 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: trivial Priority: P2 Component: -unknown AssignedTo: wine-bugs(a)winehq.org ReportedBy: winebugs140(a)gmail.com Classification: Unclassified Created attachment 46148 --> http://bugs.winehq.org/attachment.cgi?id=46148 Drakan Demo Log In a preferences window that shows up when you launch the game there are two display drivers (instead of one), and they're named DirectDraw HAL, and not the same as your graphics card (which is the case on Windows). Only one of them supports Windowed Mode. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=34630 WineBuG <winebugs140(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download URL| |http://www.fileplanet.com/1 | |1604/download/Drakan-Demo --- Comment #1 from WineBuG <winebugs140(a)gmail.com> 2013-09-30 06:33:25 CDT --- Tested with: Windows Vista (without Wine), GeForce 9600M GS--the program works fine here Ubuntu 13.04, GeForce 9600M GS (NVIDIA driver 313) Mac OS X 10.7.5, ATI HD 2600 Pro, Mac Driver/X11 -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=34630 WineBuG <winebugs140(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |http://bugs.winehq.org/show | |_bug.cgi?id=22268 Summary|Drakan demo sees two |Some games don't detect the |display drivers and only |correct number of display |one of them supports |drivers (graphic cards) and |Windowed Mode |their names --- Comment #2 from WineBuG <winebugs140(a)gmail.com> 2013-10-05 13:49:04 CDT --- It seems that this bug affects not only this game. I get a different number of display drivers for example in Evil Islands, Star Wars Racer, or Soul Reaver (here there are 6 display drivers instead of 4 on Windows Vista). I'm changing the name of this report to something more appropriate. I wonder whether the fact that some games, for instance Serious Sam HD and SWKOTOR (bug 22268), report that your graphic drivers are outdated is connected with this issue. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=34630 WineBuG <winebugs140(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |http://bugs.winehq.org/show | |_bug.cgi?id=32581 -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=34630 WineBuG <winebugs140(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |http://bugs.winehq.org/show | |_bug.cgi?id=19153 -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=34630 WineBuG <winebugs140(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |http://bugs.winehq.org/show | |_bug.cgi?id=6946 -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=34630 WineBuG <winebugs140(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|trivial |minor --- Comment #3 from WineBuG <winebugs140(a)gmail.com> 2013-10-19 16:46:48 CDT --- Because many older applications are affected by this bug, and it possibly might cause other problems than just the wrong number of display drivers and strange naming of these, I'm changing importance to 'minor'. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=34630 GyB <gyebro69(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression Status|UNCONFIRMED |NEW CC| |erich.e.hoover(a)gmail.com, | |gyebro69(a)gmail.com Component|-unknown |directx-d3d Ever Confirmed|0 |1 Regression SHA1| |b0cefe897c6dbd846b0525e3f3a | |ab59cae75eb6d --- Comment #4 from GyB <gyebro69(a)gmail.com> 2013-11-29 00:31:31 CST --- I can reproduce the problem in Drakan demo and in other games as well. The problem is present since b0cefe897c6dbd846b0525e3f3aab59cae75eb6d is the first bad commit commit b0cefe897c6dbd846b0525e3f3aab59cae75eb6d Author: Erich Hoover <ehoover(a)mines.edu> Date: Mon Sep 17 14:18:39 2012 -0600 ddraw: Enumerate wined3d interfaces with DirectDrawEnumerateEx. :040000 040000 a13b9ad2954682911591a3bb020c32dd69d6cb9e 3a7e575a6c27386a3d93bf318ce5953aca1f1f65 M dlls wine-1.7.7-86-g6d0d018 Fedora 19 X.Org X Server 1.14.4 Nvidia gfx card / binary drivers 325.15 -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=34630 --- Comment #5 from Erich Hoover <erich.e.hoover(a)gmail.com> 2013-11-29 11:22:43 CST --- (In reply to comment #4)
I can reproduce the problem in Drakan demo and in other games as well. The problem is present since ... ddraw: Enumerate wined3d interfaces with DirectDrawEnumerateEx. ...
Thanks GyB for making me aware of this issue, I'll try to take a look this weekend and see what I can find out. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=34630 --- Comment #6 from Erich Hoover <erich.e.hoover(a)gmail.com> 2013-11-29 11:30:02 CST --- It would be helpful to me if I could get a couple of lists from people: 1) What Windows returns 2) What Wine currently returns I suspect that the problem may just be that we're returning "DirectDraw HAL" for everything. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=34630 Erich Hoover <erich.e.hoover(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|wine-bugs(a)winehq.org |erich.e.hoover(a)gmail.com --- Comment #7 from Erich Hoover <erich.e.hoover(a)gmail.com> 2013-12-08 19:12:10 CST --- Created attachment 46808 --> http://bugs.winehq.org/attachment.cgi?id=46808 ddraw: Make DirectDrawEnumerateEx only enumerate secondary display devices when requested. I've finally had some time to look into this a bit. Please try the attached patch, it should correct the problem :) -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=34630 --- Comment #8 from GyB <gyebro69(a)gmail.com> --- (In reply to comment #7)
Created attachment 46808 [details] ddraw: Make DirectDrawEnumerateEx only enumerate secondary display devices when requested.
I've finally had some time to look into this a bit. Please try the attached patch, it should correct the problem :)
The patch indeed fixes the issue in Drakan2 demo, but other games still show multiple instances of the display driver in their configuration tool (e.g. Simon the Sorcerer 3D). -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=34630 --- Comment #9 from Erich Hoover <erich.e.hoover(a)gmail.com> --- (In reply to comment #8)
...
The patch indeed fixes the issue in Drakan2 demo, but other games still show multiple instances of the display driver in their configuration tool (e.g. Simon the Sorcerer 3D).
Could you send me a WINEDEBUG="+ddraw" trace from one of these applications? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=34630 --- Comment #10 from GyB <gyebro69(a)gmail.com> --- Created attachment 46831 --> http://bugs.winehq.org/attachment.cgi?id=46831&action=edit +ddraw log (without patch) This is the +ddraw log when running Simon the Sorcerer 3D without your patch. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=34630 --- Comment #11 from GyB <gyebro69(a)gmail.com> --- Created attachment 46832 --> http://bugs.winehq.org/attachment.cgi?id=46832&action=edit +ddraw log (patch applied) This is the +ddraw log with your patch applied. There are 2 instances of <Directdraw HAL> display driver in the game setup screen, whether your patch applied or not. I tried the game in Virtualbox, and there's only one <Primary display driver> option is present there. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=34630 --- Comment #12 from Erich Hoover <erich.e.hoover(a)gmail.com> --- (In reply to comment #11)
Created attachment 46832 [details] +ddraw log (patch applied)
This is the +ddraw log with your patch applied. There are 2 instances of <Directdraw HAL> display driver in the game setup screen, whether your patch applied or not. I tried the game in Virtualbox, and there's only one <Primary display driver> option is present there.
What that probably means is that the VirtualBox driver does not support 3D graphics features (so only one driver should be displayed). What we should display is: 1) DirectDraw HAL (equivalent to "Primary display driver") 2) <3D drivers> (currently reports "DirectDraw HAL") I can easily add a fix that reports roughly the correct driver string, but to my knowledge there's not currently a way in Wine to detect whether a graphics card supports 3D graphics features. Would it be sufficient for your application to report two display drivers ("DirectDraw HAL" and whatever is appropriate for the graphics card)? If the application requests DDENUM_ATTACHEDSECONDARYDEVICES (which this one does) then, to my knowledge, it _should_ report more than one driver on any system that supports 3D. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=34630 --- Comment #13 from Erich Hoover <erich.e.hoover(a)gmail.com> --- This should now be fixed by commit 639f9335c2405832b9962a4bc5b95b053bf596a9 and eba5132bfa351b52fdec513a532450497306b09e. Please note that: 1) Wine uses "DirectDraw HAL" instead of "Primary display driver" for compatibility with QuickTime 2) Wine should always display at least one secondary device (now named appropriately), but this should not interfere with any normal application behavior* * Windows does not always show a secondary device, but this seems to only occur when the display driver does not support accelerated 3D rendering. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=34630 Henri Verbeet <hverbeet(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |eba5132bfa351b52fdec513a532 | |450497306b09e Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #14 from Henri Verbeet <hverbeet(a)gmail.com> --- Resolving FIXED. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=34630 WineBuG <winebugs140(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hverbeet(a)gmail.com --- Comment #15 from WineBuG <winebugs140(a)gmail.com> --- In Drakan I now get one display driver instead of two. But it is still named DirectDraw HAL, and on Windows I get the name of my GPU here. Are SURE it is fixed? Maybe it should be like that, I don't know. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=34630 WineBuG <winebugs140(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- URL|http://www.fileplanet.com/1 |https://archive.org/downloa |1604/download/Drakan-Demo |d/DrakanOrderOfTheFlame/Dra | |kanOrderOfTheFlameDemo.zip -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=34630 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #16 from Alexandre Julliard <julliard(a)winehq.org> --- Closing bugs fixed in 1.7.12. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=34630 --- Comment #17 from Erich Hoover <erich.e.hoover(a)gmail.com> --- Created attachment 47464 --> http://bugs.winehq.org/attachment.cgi?id=47464 ddraw: Return the appropriate identifier for GetDeviceIdentifier. (In reply to comment #15)
... Are SURE it is fixed? Maybe it should be like that, I don't know.
Hi WineBuG, it looks like that application uses DirectDrawEnumerateA instead of DirectDrawEnumerateExA. I just ran some tests and this is what I see: **DirectDrawEnumerateA** 1) Primary Display Driver **DirectDrawEnumerateExA** 1) Primary Display Driver 2) Intel(R) HD Graphics This matches Wine (except that we report "DirectDraw HAL" instead of "Primary Display Driver" for compatibility reasons). So, this is bug is pretty much fixed. However, downloading your application and giving it a try appears to display: Primary Display Driver (Intel(R) HD Graphics) where Wine reports: DirectDraw HAL (DirectDraw HAL) Investigating this shows that the problem is in GetDeviceIdentifier when it is _not_ passed the DDGDI_GETHOSTIDENTIFIER flag. I've attached a patch that corrects this information, if you could please give that a try (and open a new bug to report the results) then I would really appreciate it. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
wine-bugs@winehq.org