Starting point for work-in-process to support WINE_D3D_CONFIG=csmt=0x1 cross-device multi-thread safety for UnityPlayer.dll that fixes video playback for some games. WINE_D3D_CONFIG=csmt=0x2,renderer=vulkan is required for starting point patch which minimally supports Get/OpenSharedResource() for D3D11_CREATE_DEVICE_VIDEO_SUPPORT for UnityPlayer.dll and allows videos to play. https://bugs.winehq.org/show_bug.cgi?id=50277#c42 renderer=gl crashes regardless of Get/OpenSharedResource() so context sharing across devices for gl may need fixes in addition to wined3d multi-thread safety to support WINE_D3D_CONFIG=csmt=0x1. MR-11398 should be overridden by this merge request when ready which may be much less immediate: https://gitlab.winehq.org/wine/wine/-/merge_requests/11398 -- v9: dxgi: Support GetSharedHandle() for UnityPlayer.dll https://gitlab.winehq.org/wine/wine/-/merge_requests/11404