https://bugs.winehq.org/show_bug.cgi?id=36828
Bug ID: 36828 Summary: Multiple DirectX11 games need D3D11CreateDevice implementation with D3D_FEATURE_LEVEL_11_x support (Sniper Elite 3) Product: Wine Version: 1.7.21 Hardware: x86 OS: Linux Status: NEW Severity: normal Priority: P2 Component: directx-d3d Assignee: wine-bugs@winehq.org Reporter: focht@gmx.net
Hello folks,
a collector bug to capture all games that require/request D3D_FEATURE_LEVEL_11_x support through 'D3D11CreateDevice'.
Bug 34008 is about D3D_FEATURE_LEVEL_10_x support
'Sniper Elite 3' requires DirectX 11, it complains with 'Failed to initialise D3D11; Error Code 0' message box.
--- snip --- ... fixme:d3d11:D3D11CreateDevice stub: adapter (nil), driver_type D3D_DRIVER_TYPE_HARDWARE, swrast (nil), flags 0, feature_levels 0x33fd10, levels 0x3, sdk_version 7, device 0xd712f4, feature_level (nil), context 0xd712f8 55 return E_OUTOFMEMORY;
Wine-dbg>bt Backtrace: =>0 0x7edfd01b D3D11CreateDevice+0xb4(adapter=(nil), driver_type=D3D_DRIVER_TYPE_HARDWARE, swrast=(nil), flags=0, feature_levels=0x33fd10, levels=0x3, sdk_version=0x7, device=0xd712f4, feature_level=(nil), context=0xd712f8) [/home/focht/projects/wine/wine.repo/src/dlls/d3d11/d3d11_main.c:55] in d3d11 (0x0033fcd4) 1 0x0040cd00 in sniperelite3 (+0xccff) (0x0033fd20) 2 0x00958919 in sniperelite3 (+0x558918) (0x0033fd2c) 3 0x009f7429 in sniperelite3 (+0x5f7428) (0x0033fd54) 4 0x00937a07 in sniperelite3 (+0x537a06) (0x0033fd70) 5 0x00631ef1 in sniperelite3 (+0x231ef0) (0x0033fd8c) 6 0x00a1d9c1 in sniperelite3 (+0x61d9c0) (0x0033fe20) 7 0x7b863ddc call_process_entry+0xb() in kernel32 (0x0033fe38) ... Wine-dbg>p *feature_levels D3D_FEATURE_LEVEL_11_0 --- snip ---
Interestingly, the call site looks like it's able to pass D3D_FEATURE_LEVEL_10_x too but currently there is no way to influence this from command line (the global variable responsible for this is only read).
Maybe there will be a command line option with a later game update, that allows to force the game into 'DirectX10' feature level.
Regards