http://bugs.winehq.org/show_bug.cgi?id=17503
Summary: Diablo 2 refuses to detect D3D device Product: Wine Version: 1.1.15 Platform: PC-x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-d3d AssignedTo: wine-bugs@winehq.org ReportedBy: liquitsnake@gmx.net
Created an attachment (id=19604) --> (http://bugs.winehq.org/attachment.cgi?id=19604) Diablo's Videotest own log
A regression: Since July '08 (according to last comment stating that he uses D3d), Diablo 2 seems to have become unable to properly detect D3d in its Video Test. Only DDraw is offered. D3d however has the advantage that perspective Rendering can be used. I'm sure this mode would work just fine if it actually let me select it aswell.
See attachments for further info. Yes, I tried setting VideoPci[Vendor|Device]ID in the registry to no avail.
http://bugs.winehq.org/show_bug.cgi?id=17503
haarp liquitsnake@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression
http://bugs.winehq.org/show_bug.cgi?id=17503
--- Comment #1 from haarp liquitsnake@gmx.net 2009-02-22 05:06:13 --- Created an attachment (id=19605) --> (http://bugs.winehq.org/attachment.cgi?id=19605) Wine console log
Right the moment the D3d capabilities are tested
http://bugs.winehq.org/show_bug.cgi?id=17503
--- Comment #2 from joaopa jeremielapuree@yahoo.fr 2009-02-22 05:24:04 --- Please, do a regression test.
http://wiki.winehq.org/RegressionTesting
http://bugs.winehq.org/show_bug.cgi?id=17503
haarp liquitsnake@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hverbeet@gmail.com
--- Comment #3 from haarp liquitsnake@gmx.net 2009-02-24 05:42:14 --- Ok, the problem is that the bug occurs gradually. 1.1.0 works fine. 1.1.1 - 1.1.2 freezes at 100% CPU. 1.1.3 - 1.1.4 has some different behavior that I can't remember right now. 1.1.5 - 1.1.15 exhibits the current behavior as described earlier in this bug report.
So the first regression test I did was between 1.1.0 and 1.1.1. Console log at relevant moment with broken build:
fixme:d3d:WineD3D_ChoosePixelFormat Add OpenGL context recreation support to SetDepthStencilSurface (couple of times) err:d3d:WineD3D_ChoosePixelFormat Can't find a suitable iPixelFormat
Result of test:
4f77c29bcf58a88cea8fb833f770aa107960b34e is first bad commit commit 4f77c29bcf58a88cea8fb833f770aa107960b34e Author: H. Verbeet hverbeet@gmail.com Date: Wed Jul 2 23:00:41 2008 +0200
wined3d: Track depth stencil location per-surface.
This gets rid of depth_copy_state in the device, and instead tracks the most up to date location per-surface. This makes things a lot easier to follow, and allows us to make a copy when switching depth stencils in SetDepthStencilSurface().
:040000 040000 6ffe30fb8656592c511cb928c5760a4ff9efc9b9 03b4bce7f47f3a0d841f4829c8b43c748a4fc0fe M dlls
cc'ing author.
http://bugs.winehq.org/show_bug.cgi?id=17503
--- Comment #4 from H. Verbeet hverbeet@gmail.com 2009-02-24 07:28:39 --- You can't do the regression test like that, since you can't verify if that problem even still occurs in current Wine. You have to bisect the last problem first (ie, find the commit between 0.9.5 and 0.9.15 that causes the current behaviour).
http://bugs.winehq.org/show_bug.cgi?id=17503
haarp liquitsnake@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |stefan@codeweavers.com
--- Comment #5 from haarp liquitsnake@gmx.net 2009-02-26 07:31:39 --- Heh. I was going to bisect them all, but forgot about it :P Ok, there are 2 regressions: It breaks between 1.1.0 and 1.1.1: freezes at 100% CPU load Then again, starting with 1.1.3 up to current Wine: The D3d test simply fails, like described at the beginning of this bug. Second regression between 1.1.2 and 1.1.3 reveals:
c1bbab7c54618935d74b7d2b70421253018f5594 is first bad commit commit c1bbab7c54618935d74b7d2b70421253018f5594 Author: Stefan D��singer stefan@codeweavers.com Date: Thu Aug 7 14:09:19 2008 -0500
ddraw: Send the ddraw output to the clipper window, if any.
:040000 040000 4a60a1c2a59103c9cad3185898bbc59553289b35 f18be73670fd3c5b13d36a1b959fde64c8808fe7 M dlls
cc'ing author aswell
http://bugs.winehq.org/show_bug.cgi?id=17503
Walter walter@riseup.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |walter@riseup.net
http://bugs.winehq.org/show_bug.cgi?id=17503
pierre geier bloodywing@neocomy.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #6 from pierre geier bloodywing@neocomy.net 2009-04-08 14:53:27 --- *** This bug has been confirmed by popular vote. ***
http://bugs.winehq.org/show_bug.cgi?id=17503
--- Comment #7 from joaopa jeremielapuree@yahoo.fr 2009-04-08 16:12:04 --- Does the demo show the problem?
http://bugs.winehq.org/show_bug.cgi?id=17503
civil.over@gmail.com civil.over@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |civil.over@gmail.com
--- Comment #8 from civil.over@gmail.com 2009-05-03 23:16:47 --- Demo shows the problem. WIne 1.1.20 - still doesn't detect d3d.
http://bugs.winehq.org/show_bug.cgi?id=17503
haarp liquitsnake@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |http://www.gamershell.com/do | |wnload_4655.shtml
http://bugs.winehq.org/show_bug.cgi?id=17503
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download
http://bugs.winehq.org/show_bug.cgi?id=17503
Saulius K. saulius2@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |saulius2@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=17503
FalanxZealot@engineer.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |FalanxZealot@engineer.com
--- Comment #9 from FalanxZealot@engineer.com 2009-06-17 03:46:56 --- (In reply to comment #8)
Demo shows the problem. WIne 1.1.20 - still doesn't detect d3d.
Nor does 1.1.23. The only reason I upgraded at all was to make installing Sims 3 practicable... :(
http://bugs.winehq.org/show_bug.cgi?id=17503
Guillaume COEUGNET aliasprotect-bug@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |aliasprotect-bug@yahoo.fr
--- Comment #10 from Guillaume COEUGNET aliasprotect-bug@yahoo.fr 2009-10-13 02:33:08 --- Add the same problem with wine 1.1.31 on Kubuntu Jaunty
http://bugs.winehq.org/show_bug.cgi?id=17503
TehThyz thijs.vandenboogaard@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |thijs.vandenboogaard@gmail. | |com
--- Comment #11 from TehThyz thijs.vandenboogaard@gmail.com 2009-10-14 07:52:42 --- Same on Ubuntu Karmic x86_64. Can only use D2D without perspective.
http://bugs.winehq.org/show_bug.cgi?id=17503
--- Comment #12 from TehThyz thijs.vandenboogaard@gmail.com 2009-10-14 07:53:21 --- (In reply to comment #11)
Same on Ubuntu Karmic x86_64. Can only use D2D without perspective.
On 1.1.31, forgot to mention that.
http://bugs.winehq.org/show_bug.cgi?id=17503
Wylda wylda@volny.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |wylda@volny.cz
--- Comment #13 from Wylda wylda@volny.cz 2010-01-02 07:25:54 ---
To begin with i thought this is Stefan Dösinger's breakage, than it looked like Roderick will be also involved, but finally i think Roderick will be all alone in this...
Try to do my best to clarify this bug report. Regression test between 1.1.2 and 1.1.3 showed
wine-1.1.2-425-g3d49e8c --GOOD (3d49e8cd5e3872c06c5b86f8d2bb0cc41d5ddfa9) wine-1.1.2-426-gc1bbab7 --BAD (c1bbab7c54618935d74b7d2b70421253018f5594)
c1bbab7c54618935d74b7d2b70421253018f5594 is first bad commit commit c1bbab7c54618935d74b7d2b70421253018f5594 Author: Stefan Dösinger stefan@codeweavers.com Date: Thu Aug 7 14:09:19 2008 -0500
ddraw: Send the ddraw output to the clipper window, if any.
:040000 040000 4a60a1c2a59103c9cad3185898bbc59553289b35 f18be73670fd3c5b13d36a1b959fde64c8808fe7 M dlls
But to end up this bug report here would be mistake, because reverting c1bbab7c54618935d74b7d2b70421253018f5594 on top of 1.1.3 does not help.
So further testing showed another regression
wine-1.1.2-632-gb917bda with reverted SDO's patch --GOOD wine-1.1.2-633-gfd0e601 --BAD (fd0e60180a1979e3dd8730bd4922556a73353ea6)
fd0e60180a1979e3dd8730bd4922556a73353ea6 is first bad commit commit fd0e60180a1979e3dd8730bd4922556a73353ea6 Author: Roderick Colenbrander thunderbird2k@gmx.net Date: Thu Aug 21 20:51:18 2008 +0000
wined3d: Fix window rewrite regression.
:040000 040000 4a91a1dc05bd7ac7c504f692816aa7feb0136907 d68dc0add2d65ff87f465ebb4852e3aba67ac5ee M dlls
Reverting these TWO patches on top of 1.1.3 make Diablo's D2VidTst.exe happy again. But to end up this bug report here would be second mistake in a row.
So playing with 1.1.34 showed, that it's enough to revert just ONE patch - Roderick's patch.
Can't test further because in 1.1.35 there were some code movement to swapchain.c and that is too much for "hello word!" programmer like me ;) You can easily test it with Diablo 2 Demo.
--private keyword: bisected
http://bugs.winehq.org/show_bug.cgi?id=17503
Wylda wylda@volny.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |thunderbird2k@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=17503
Stefan Dösinger stefandoesinger@gmx.at changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |stefandoesinger@gmx.at
--- Comment #14 from Stefan Dösinger stefandoesinger@gmx.at 2010-01-02 07:38:01 --- I suspect this is a sort of "duplicate" of bug 21025. It may not be caused by the same patch, but I suspect sending proper window signals from ddraw will fix both bugs.
http://bugs.winehq.org/show_bug.cgi?id=17503
--- Comment #15 from Wylda wylda@volny.cz 2010-01-02 07:53:00 ---
(In reply to comment #14)
I suspect this is a sort of "duplicate" of bug 21025.
Hi Stefan, of course i don't want to argue nor be excessively wise, but 1.1.34+reverted fd0e60180a1979e3dd8730bd4922556a73353ea6 (1.5 year old commit!) makes that problem go away.
Mentioned bug 21025 is recent and showed up _after_ 1.1.34.
But bug 17215 suffers from the same Roderick's commit.
http://bugs.winehq.org/show_bug.cgi?id=17503
--- Comment #16 from Wylda wylda@volny.cz 2010-01-05 16:29:45 ---
Still not fixed in wine-1.1.35-439-g2f529c3 (relevant part comment #13).
http://bugs.winehq.org/show_bug.cgi?id=17503
--- Comment #17 from Wylda wylda@volny.cz 2010-01-08 18:05:41 ---
This bisected regression is still not fixed in wine-1.1.36 (relevant part comment #13).
http://bugs.winehq.org/show_bug.cgi?id=17503
gfacek@gmx.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gfacek@gmx.de
http://bugs.winehq.org/show_bug.cgi?id=17503
Randy cinco_flare@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |cinco_flare@hotmail.com
--- Comment #18 from Randy cinco_flare@hotmail.com 2010-02-21 21:40:28 --- I have this problem though I found a workaround. Someone made a Glide3-to-OpenGL wrapper specifically for Diablo: Lord of destruction. I downloaded the files and placed them in the game directory. I ran the video test and it detected the glide. The game runs like the direct 3d mode in that it allows perspective. It does lag for me but that could be the way I have the wrapper configured, I'm still toying with it. I'd still like to see Direct 3d work though. It might not lag as much and the wrapper might not work for everyone. Using - Kubuntu Karmic - Wine 1.1.39 - Nvidia GeForce GTX 260.
http://bugs.winehq.org/show_bug.cgi?id=17503
--- Comment #19 from Wylda wylda@volny.cz 2010-02-27 14:40:02 ---
This bisected regression is still not fixed in wine-1.1.39-163-g583f0f0 (relevant part comment #13).
Roderick, this is your friendly reminder :)) telling you, that commit fd0e60180a1979e3dd8730bd4922556a73353ea6 broke Diablo2's 3D ability. (Reverting this commit on top of 1.1.34 makes Diablo2 able to detect and play in 3D).
http://bugs.winehq.org/show_bug.cgi?id=17503
--- Comment #20 from Wylda wylda@volny.cz 2010-03-06 08:08:46 ---
This bisected regression is still not fixed in wine-1.1.40.
http://bugs.winehq.org/show_bug.cgi?id=17503
--- Comment #21 from Wylda wylda@volny.cz 2010-03-17 19:47:35 ---
This bisected regression is still not fixed in wine-1.1.40-224-g0498534.
http://bugs.winehq.org/show_bug.cgi?id=17503
--- Comment #22 from Henri Verbeet hverbeet@gmail.com 2010-03-18 11:59:02 --- Does this still happen with current git? 0838d0ab6491bdc0fb32d0b8715fbb57088b926a or 914c8cb8ea1e5cbcfa18558961185dd94313b26d might have some impact on this.
http://bugs.winehq.org/show_bug.cgi?id=17503
--- Comment #23 from Wylda wylda@volny.cz 2010-03-18 13:00:19 --- (In reply to comment #22)
Does this still happen with current git? 0838d0ab6491bdc0fb32d0b8715fbb57088b926a or 914c8cb8ea1e5cbcfa18558961185dd94313b26d might have some impact on this.
Hi Henri, unfortunately no. Still does not detect 3D. If it helps, you can download Diablo 2 Shareware (Spawn) which also includes D2VidTst.exe utility.
BTW: Today i noticed that that wine testsuite is broken in d3d9. Yesterday's version is OK. With today's version, when it comes to D3D9, it probably vomits 4x crash windows ("Send microsoft/Don't send"), but these windows are hidden - you see them just on the windows tray.
http://bugs.winehq.org/show_bug.cgi?id=17503
--- Comment #24 from Henri Verbeet hverbeet@gmail.com 2010-03-18 13:22:42 --- (In reply to comment #23)
BTW: Today i noticed that that wine testsuite is broken in d3d9. Yesterday's version is OK. With today's version, when it comes to D3D9, it probably vomits 4x crash windows ("Send microsoft/Don't send"), but these windows are hidden - you see them just on the windows tray.
I guess a62e5a46786f7f56deacec9c7c76279e9fb41d32? Looking at the test reports, what's odd is that pretty much the same test succeeds without problem for d3d8. Is this specific to running the test through winetest? (E.g. does running d3d9_crosstest.exe directly work?)
http://bugs.winehq.org/show_bug.cgi?id=17503
--- Comment #25 from Wylda wylda@volny.cz 2010-03-19 14:59:38 ---
This bisected regression is still not fixed in wine-1.1.41.
http://bugs.winehq.org/show_bug.cgi?id=17503
--- Comment #26 from Wylda wylda@volny.cz 2010-03-30 17:14:56 ---
This bisected regression is still not fixed in wine-1.1.41-339-gc38d565.
http://bugs.winehq.org/show_bug.cgi?id=17503
--- Comment #27 from Wylda wylda@volny.cz 2010-04-09 05:22:53 ---
This bisected regression is still not fixed in wine-1.1.42-146-g1c02a90.
@3d guys: I see you move piece of code from file to file now, but what about fixing things which your previous work ruined, instead of that? This is broken nearly two years :(
http://bugs.winehq.org/show_bug.cgi?id=17503
--- Comment #28 from Henri Verbeet hverbeet@gmail.com 2010-04-09 05:35:55 --- (In reply to comment #27)
This bisected regression is still not fixed in wine-1.1.42-146-g1c02a90.
@3d guys: I see you move piece of code from file to file now, but what about fixing things which your previous work ruined, instead of that? This is broken nearly two years :(
I'll try to take a look at this over the weekend. I would like people to take responsibility for their own regressions though.
http://bugs.winehq.org/show_bug.cgi?id=17503
--- Comment #29 from Henri Verbeet hverbeet@gmail.com 2010-04-11 09:44:40 --- Created an attachment (id=27330) --> (http://bugs.winehq.org/attachment.cgi?id=27330) patch
How does this patch work?
http://bugs.winehq.org/show_bug.cgi?id=17503
--- Comment #30 from Wylda wylda@volny.cz 2010-04-11 11:51:44 --- (In reply to comment #29)
Created an attachment (id=27330)
--> (http://bugs.winehq.org/attachment.cgi?id=27330) [details]
How does this patch work?
As usually Henri, as usually... Patch works perfectly! :-D I immediately gave it free ride on Blizzard's battle.net
Many thanks!
http://bugs.winehq.org/show_bug.cgi?id=17503
jakub.januszkiewicz@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub.januszkiewicz@gmail.c | |om
http://bugs.winehq.org/show_bug.cgi?id=17503
--- Comment #31 from Henri Verbeet hverbeet@gmail.com 2010-04-12 12:21:33 --- Should be fixed by 3255b21456622769c783db8350d70fab38b04005.
http://bugs.winehq.org/show_bug.cgi?id=17503
--- Comment #32 from Wylda wylda@volny.cz 2010-04-13 19:30:10 --- (In reply to comment #31)
Should be fixed by 3255b21456622769c783db8350d70fab38b04005.
Confirming, FIXED in wine-1.1.42-260-ge35f54e.
Particular commit (wine-1.1.42-207-g3255b21): http://source.winehq.org/git/wine.git/?a=commit;h=3255b21456622769c783db8350...
Thank you Henri!
http://bugs.winehq.org/show_bug.cgi?id=17503
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #33 from Austin English austinenglish@gmail.com 2010-04-13 19:50:01 --- Fixed.
http://bugs.winehq.org/show_bug.cgi?id=17503
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #34 from Alexandre Julliard julliard@winehq.org 2010-04-16 13:02:35 --- Closing bugs fixed in 1.1.43.
http://bugs.winehq.org/show_bug.cgi?id=17503
quasi-anonymous user from bugmenot.com winehqbugs@bugmenot.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winehqbugs@bugmenot.com
--- Comment #35 from quasi-anonymous user from bugmenot.com winehqbugs@bugmenot.com 2010-04-22 17:19:16 --- Doesn't work for me. Ubuntu Lucid 64-bit, fglrx ATI, Diablo 2 LOD 1.13c wine 1.43
http://bugs.winehq.org/show_bug.cgi?id=17503
--- Comment #36 from jakub.januszkiewicz@gmail.com 2010-04-22 18:01:36 --- Doesn't work for me, either. Gentoo Linux i686, Wine 1.1.43, xf86-video-ati 6.13.0. Kernel is 2.6.33, using KMS. The card is Radeon HD 3200.
I also run the latest (1.13) D2 LOD patch.
http://bugs.winehq.org/show_bug.cgi?id=17503
--- Comment #37 from Henri Verbeet hverbeet@gmail.com 2010-04-23 11:26:53 --- Is that because of this specific regression, or a different bug?
http://bugs.winehq.org/show_bug.cgi?id=17503
--- Comment #38 from jakub.januszkiewicz@gmail.com 2010-04-23 15:51:01 --- How can I verify this?
http://bugs.winehq.org/show_bug.cgi?id=17503
--- Comment #39 from quasi-anonymous user from bugmenot.com winehqbugs@bugmenot.com 2010-04-24 05:46:40 --- For me it is like Comment #3
http://bugs.winehq.org/show_bug.cgi?id=17503
phorsyon@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |phorsyon@gmx.net
--- Comment #40 from phorsyon@gmx.net 2010-04-24 07:43:01 --- (In reply to comment #35)
Doesn't work for me. Ubuntu Lucid 64-bit, fglrx ATI, Diablo 2 LOD 1.13c wine 1.43
On my system (64Bit, nvidia-195.36-15, wine-1.1.43) I had to re-run the D2VidTst.exe to re-enable perspective in the game. Did you try to the video test?
http://bugs.winehq.org/show_bug.cgi?id=17503
--- Comment #41 from quasi-anonymous user from bugmenot.com winehqbugs@bugmenot.com 2010-04-24 10:05:22 --- @comment #40 sure, i did so.
http://bugs.winehq.org/show_bug.cgi?id=17503
--- Comment #42 from Randy cinco_flare@hotmail.com 2010-04-24 22:34:33 ---
From comment 18: Works for me too. I took out the wrapper I was using and ran
the vid test. It found the Direct3D and the game plays fine.
http://bugs.winehq.org/show_bug.cgi?id=17503
--- Comment #43 from quasi-anonymous user from bugmenot.com winehqbugs@bugmenot.com 2010-05-02 14:35:19 --- Created an attachment (id=27676) --> (http://bugs.winehq.org/attachment.cgi?id=27676) Errorlog, Ubuntu 10.04 64-bit, fglrx, wine 1.1.43
After formatting and making a new Installation of Ubuntu 10.04 amd64 with wine 1.1.43, fglrx from ubuntu-repo: d2vidtst.exe crashes. I attached an errorlog
http://bugs.winehq.org/show_bug.cgi?id=17503
--- Comment #44 from quasi-anonymous user from bugmenot.com winehqbugs@bugmenot.com 2010-05-10 09:04:39 --- In 1.1.44 it works for me!!!
http://bugs.winehq.org/show_bug.cgi?id=17503
--- Comment #45 from jakub.januszkiewicz@gmail.com 2010-08-11 17:31:55 --- (In reply to comment #37)
Is that because of this specific regression, or a different bug?
That must have been the latter, because it's working for me now with Wine 1.3.0.
http://bugs.winehq.org/show_bug.cgi?id=17503
Wylda wylda@volny.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |3255b21456622769c783db8350d | |70fab38b04005 Regression SHA1| |fd0e60180a1979e3dd8730bd492 | |2556a73353ea6