https://bugs.winehq.org/show_bug.cgi?id=51523
Bug ID: 51523 Summary: Batman Arkham Knight - crashes on unimplemented functions cuD3D11GetDevice and cuGraphicsD3D11RegisterResource Product: Wine-staging Version: 6.13 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: cybermax@dexter.no CC: leslie_alistair@hotmail.com, z.figura12@gmail.com Distribution: ---
Created attachment 70364 --> https://bugs.winehq.org/attachment.cgi?id=70364 Implement cuD3D11GetDevice and cuGraphicsD3D11RegisterResource
I am attaching a patch that will implement a semi-stub for cuD3D11GetDevice and cuGraphicsD3D11RegisterResource in wine-staging.
Since wine does not have the nvapi/nvcuda libraries included this patch can currently ONLY be used for WINE-STAGING.
I tested this with: wine-staging-6.13 Steamclient run from wineprefix nVidia PhysX software 9.19 (latest). Batman Arkham Knight
Using the winetricks PhysX version - 9.14 - is too old to implement Interactive smoke/fog.
The included patch makes you able to enable "Interactive smoke/fog" and "Interactive paper debris".
Currently wine implementation of D3D11 is not working too well, even tho the smoke/paper worked fine. Using this together with DXVK and DXVK-NVAPI makes this work pretty good.
I have also tested this with Steam/Proton, but this requires an additional patch for the lib to load libcuda.so.1 instead of libcuda.so (Due to steam runtime-soldier). I will leave that patch out for now, as it might not be appropriate for wine-staging (although would still work).