http://bugs.winehq.org/show_bug.cgi?id=22762
Summary: Battlefield Bad Company 2 tries to use DX10, fails Product: Wine Version: 1.1.44 Platform: x86 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: directx-d3d AssignedTo: wine-bugs@winehq.org ReportedBy: dank@kegel.com
As described in http://appdb.winehq.org/objectManager.php?sClass=version&iId=19520 you have to tell bfbc2 to use directx9, or it will use dx10 and just sit there. It's supposed to be autodetecting, so maybe our dx10 shouldn't advertise itself yet?
http://bugs.winehq.org/show_bug.cgi?id=22762
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |austinenglish@gmail.com
--- Comment #1 from Austin English austinenglish@gmail.com 2010-05-29 20:26:20 --- FWIW, on my windows 7 install, it automatically chose directx9 (even though nvidia shows my card supports directx10): http://www.nvidia.com/object/product_geforce_9800_gtx_plus_us.html
http://bugs.winehq.org/show_bug.cgi?id=22762
mossieur mossieurbugs@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mossieurbugs@hotmail.com
--- Comment #2 from mossieur mossieurbugs@hotmail.com 2010-10-03 20:44:50 CDT --- still happens with 1.3.4
The workaround, as Dan Kegel mentioned, is to go in .wine/drive_c/users/username/My Documents/BFBC2Folder, open settings.ini and set the value of DxVersion to 9
http://bugs.winehq.org/show_bug.cgi?id=22762
--- Comment #3 from mossieur mossieurbugs@hotmail.com 2010-10-03 20:48:48 CDT --- Created an attachment (id=31101) --> (http://bugs.winehq.org/attachment.cgi?id=31101) BFBC2Game.exe terminal output for dx10 hang
http://bugs.winehq.org/show_bug.cgi?id=22762
--- Comment #4 from butraxz@gmail.com 2013-08-05 12:28:48 CDT --- This ticket has not been updated for over 900 days. Development recommends to check the status on your bug every release or two and let to be known if the bug is still present. If not, mark it fixed.
Is this still an issue with 1.7.0 or higher ?
http://bugs.winehq.org/show_bug.cgi?id=22762
Andrey Gusev andrey.goosev@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |andrey.goosev@gmail.com
--- Comment #5 from Andrey Gusev andrey.goosev@gmail.com 2013-11-08 06:12:17 CST --- Still present in 1.7.5
http://bugs.winehq.org/show_bug.cgi?id=22762
John the.ideals@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |the.ideals@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=22762
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net
--- Comment #6 from Anastasius Focht focht@gmx.net --- Hello folks,
please avoid those generic "doesn't work with DX10" bugs, this isn't helpful.
Provide an up-to-date log to select an actual stub or resolve this as dupe of already existing dx10 bugs.
Regards
https://bugs.winehq.org/show_bug.cgi?id=22762
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #31101|0 |1 is obsolete| |
--- Comment #7 from Austin English austinenglish@gmail.com --- Created attachment 49074 --> https://bugs.winehq.org/attachment.cgi?id=49074 terminal output in wine-1.7.22
In wine-1.7.22, the application no longer hangs, but exits without any dialog. Changing DxVersion to 9 in settings.ini still works around it.
https://bugs.winehq.org/show_bug.cgi?id=22762
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Battlefield Bad Company 2 |Multiple DirectX10 games |tries to use DX10, fails |need Texture2D | |DXGI_FORMAT_R24G8_TYPELESS | |format support for stencil | |operations (Battlefield Bad | |Company 2)
--- Comment #8 from Anastasius Focht focht@gmx.net --- Hello folks,
I'm refining the summary here to target a specific problem not covered by existing DX10/11 bugs.
--- snip --- $ pwd /home/focht/.wine/drive_c/Program Files/Electronic Arts/Battlefield Bad Company 2
$ WINEDEBUG=+tid,+seh,+relay,+d3d,+dxgi,+d3d10core wine ./BFBC2Game.exe
log.txt 2>&1
... 0030:trace:d3d10core:d3d10_device_CreateRenderTargetView Created rendertarget view 0x1a68c8. ... 0030:fixme:d3d10core:d3d10_device_CreateTexture2D iface 0x16d148, desc 0x221f2c8, data (nil), texture 0x6f77017c partial stub! ... 0030:trace:dxgi:dxgi_device_QueryInterface iface 0x16d130, riid {3e1ff30b-c951-48c3-b010-0fb49f3dca71}, object 0x221f16c 0030:trace:dxgi:dxgi_device_AddRef 0x16d130 increasing refcount to 4 0030:fixme:dxgi:dxgi_device_create_surface iface 0x16d130, desc 0x221f170, usage 0, shared_resource (nil), outer 0x1a6910, surface 0x1a6918 partial stub! ... 0030:trace:dxgi:dxgi_device_create_surface Created IDXGISurface 0x1a6958 0030:trace:dxgi:dxgi_device_Release 0x16d130 decreasing refcount to 3 0030:Call wined3d.wined3d_texture_create(00178070,0221f184,00000001,00000000,001a6910,7c4f9dd4,001a691c) ret=7c4e22d1 ... 0030:fixme:d3d:wined3d_get_format Can't find format WINED3DFMT_R24G8_TYPELESS (0x47) in the format lookup table ... 0030:Ret wined3d.wined3d_texture_create() retval=8876086c ret=7c4e22d1 0030:warn:d3d10core:d3d10_texture2d_init Failed to create wined3d texture, hr 0x8876086c. 0030:trace:dxgi:dxgi_surface_inner_Release 0x1a6958 decreasing refcount to 0. ... 0030:warn:d3d10core:d3d10_device_CreateTexture2D Failed to initialize texture, hr 0x8876086c. ... 0030:fixme:d3d10core:d3d10_device_CreateShaderResourceView1 iface 0x16d148, resource (nil), desc 0x221f2b0, view 0x6f770180 stub! 0030:trace:d3d10core:d3d10_device_CreateDepthStencilView iface 0x16d148, resource (nil), desc 0x221f32c, view 0x2eb58cc. 0030:Call ntdll.RtlAllocateHeap(00110000,00000008,00000024) ret=7c4d8db8 0030:Ret ntdll.RtlAllocateHeap() retval=001a6910 ret=7c4d8db8 0030:trace:seh:raise_exception code=c0000005 flags=0 addr=0x7c4e57e4 ip=7c4e57e4 tid=0030 0030:trace:seh:raise_exception info[0]=00000000 0030:trace:seh:raise_exception info[1]=00000000 0030:trace:seh:raise_exception eax=00000000 ebx=7c4fa000 ecx=00000000 edx=00000000 esi=0221f2f4 edi=02eb58cc 0030:trace:seh:raise_exception ebp=0221f278 esp=0221f250 cs=0023 ds=002b es=002b fs=0063 gs=006b flags=00210202 0030:trace:seh:call_stack_handlers calling handler at 0xb05098 code=c0000005 flags=0 0030:Call msvcr80._except_handler3(0221f1f8,0221fd5c,0221ef2c,0221edbc) ret=7bc859b9 0030:trace:seh:_except_handler3 exception c0000005 flags=0 at 0x7c4e57e4 handler=0xb05098 0x221ef2c 0x221edbc semi-stub 0030:trace:seh:_except_handler3 level 0 prev -1 filter 0x401e69 0030:Call msvcr80.vsprintf_s(0221ca2c,00000200,013d45c8 "Thread tried to access an invalid memory address (Address: 0x%08x, Operation: %s)",0221c72c) ret=01cd854a 0030:Ret msvcr80.vsprintf_s() retval=00000057 ret=01cd854a 0030:Call KERNEL32.lstrcmpA(013d4c7c "dbghelp.dll",003361dc "launcher_interface.dll") ret=003320e2 0030:Ret KERNEL32.lstrcmpA() retval=ffffffff ret=003320e2 0030:Call KERNEL32.LoadLibraryA(013d4c7c "dbghelp.dll") ret=003320fa 0030:Ret KERNEL32.LoadLibraryA() retval=7e350000 ret=003320fa --- snip ---
$ wine --version wine-1.7.22-109-g35dd553
Regards
https://bugs.winehq.org/show_bug.cgi?id=22762
mrdeathjr28@yahoo.es changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mrdeathjr28@yahoo.es
https://bugs.winehq.org/show_bug.cgi?id=22762
Adam Bolte abolte@systemsaviour.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |abolte@systemsaviour.com
https://bugs.winehq.org/show_bug.cgi?id=22762
--- Comment #9 from Adam Bolte abolte@systemsaviour.com --- Seems this bug was encountered after some progress was made over at bug 37200 ("Warhammer 40k: Kill Team (Steam version) does not start").
https://bugs.winehq.org/show_bug.cgi?id=22762
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |leslie_alistair@hotmail.com
https://bugs.winehq.org/show_bug.cgi?id=22762
Józef Kucia joseph.kucia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |zentarim@rambler.ru
--- Comment #10 from Józef Kucia joseph.kucia@gmail.com --- *** Bug 39963 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=22762
Józef Kucia joseph.kucia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |joseph.kucia@gmail.com Summary|Multiple DirectX10 games |Multiple DirectX10 games |need Texture2D |need Texture2D |DXGI_FORMAT_R24G8_TYPELESS |DXGI_FORMAT_R24G8_TYPELESS |format support for stencil |format support for stencil |operations (Battlefield Bad |operations (Battlefield Bad |Company 2) |Company 2, Warhammer 40k: | |Kill Team)
https://bugs.winehq.org/show_bug.cgi?id=22762
Józef Kucia joseph.kucia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Fixed by SHA1| |8a5aabce9a9099a06cbbe90ac34 | |467df8e06dd59 Status|NEW |RESOLVED
--- Comment #11 from Józef Kucia joseph.kucia@gmail.com --- http://source.winehq.org/git/wine.git/commitdiff/8a5aabce9a9099a06cbbe90ac34...
https://bugs.winehq.org/show_bug.cgi?id=22762
--- Comment #12 from mrdeathjr28@yahoo.es --- (In reply to Józef Kucia from comment #11)
http://source.winehq.org/git/wine.git/commitdiff/ 8a5aabce9a9099a06cbbe90ac34467df8e06dd59
Hi test and works (windows version to imitate set on windows 7) now on DX10 (battlefield bad company 2 configurator used) however still remains graphic glitches and other issue is needed disable in winecfg: d3d10_1 and d3d11
System Specs Used in Test
Nvidia Drivers 364.15 (run package from nvidia drivers homepage) Xubuntu 16.04 64Bit - Kernel 4.4.0-16 generic (ubuntu mainline) - P-State: Performance CPU: INTEL Pentium G3258 (Haswell 22nm) 4.1Ghz + Artic Cooling Alpine 11 Plus MEM: 8GB DDR3 1333 (2x4) Patriot value (128 bit dual channel: 21.3 gb/s) GPU: Zotac Nvidia Geforce GT630 (GK208 28nm: 384 Shaders / 8 ROPS) Zone Edition Passive Cooling 2GB DDR3 1800Mhz 64Bit (14.4Gb/s) BOARD: MSI H81M E33
Gameplay Video
https://www.youtube.com/watch?v=T8ILp8j3XLM
https://bugs.winehq.org/show_bug.cgi?id=22762
--- Comment #13 from mrdeathjr28@yahoo.es --- Almost forget in wine direct3d register entries have enabled this
MaxShaderModelGS set on 4
MaxShaderModelPS set on 4
MaxShaderModelVS set on 4
https://bugs.winehq.org/show_bug.cgi?id=22762
super_man@post.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |super_man@post.com
--- Comment #14 from super_man@post.com --- Is that truly dx10 or is it still using some dx9 related code? I thought its not possible to run dx10 games yet.
https://bugs.winehq.org/show_bug.cgi?id=22762
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #15 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.9.8.