https://bugs.winehq.org/show_bug.cgi?id=39754
Bug ID: 39754 Summary: Just cause 2 needs DXGI_FORMAT_R8G8B8A8_TYPELESS Product: Wine Version: 1.8-rc3 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-d3d Assignee: wine-bugs@winehq.org Reporter: wine@karolherbst.de Distribution: ---
starting "Just cause 2" triggers an error box with the hr code 8876086c
here is the related debug output with WINEDEBUG=relay,d3d,d3d_texture
trace:d3d_texture:wined3d_texture_init texture 0x3cc83b8, texture_ops 0x7df270b4, layer_count 1, level_count 1, resource_type WINED3D_RTYPE_TEXTURE, format WINED3DFMT_R8G8B8A8_TYPELESS, multisample_type 0x2, multisample_quality 0, usage WINED3DUSAGE_RENDERTARGET, pool WINED3D_POOL_DEFAULT, width 1024, height 768, depth 1, surface_flags 0, device 0x3c9d270, parent 0x3cc8360, parent_ops 0x7bd7dcec, resource_ops 0x7df27098. warn:d3d:resource_init Format WINED3DFMT_R8G8B8A8_TYPELESS cannot be used for render targets. warn:d3d:resource_init Format WINED3DFMT_R8G8B8A8_TYPELESS cannot be used for render targets. warn:d3d:resource_init Format WINED3DFMT_R8G8B8A8_TYPELESS cannot be used for render targets. warn:d3d:resource_init Did not find a suitable GL resource type, resource type, d3d type 3. warn:d3d_texture:wined3d_texture_init Failed to initialize resource, returning 0x8876086c warn:d3d_texture:texture_init Failed to initialize texture, returning 0x8876086c. 0041:Call ntdll.RtlFreeHeap(00130000,00000000,03cc83b8) ret=7debc824 0041:Ret ntdll.RtlFreeHeap() retval=00000001 ret=7debc824 warn:d3d_texture:wined3d_texture_create Failed to initialize texture, returning 0x8876086c. 0041:Ret wined3d.wined3d_texture_create() retval=8876086c ret=7bd56280
it seems like wine needs to handle DXGI_FORMAT_R8G8B8A8_TYPELESS for this to work.