microsoft / D3D11On12

The Direct3D11-On-12 mapping layer
MIT License
274 stars 33 forks source link

IDXGIOutputDuplication::AcquireNextFrame - DXGI_ERROR_ACCESS_LOST #45

Open gnif opened 10 months ago

gnif commented 10 months ago

When using D3D11on12, when using Desktop Duplication, calling IDXGIOutputDuplication::AcquireNextFrame results in DXGI_ERROR_ACCESS_LOST.

Tracing this as far as I can it seems to be caused by CGraphicsCommandQueue::AcquireKeyedMutex which calls D3DKMTAcquireKeyedMutex2 which returns 0x80 (WAIT_ABANDONED)

Note, this code is functioning perfectly on DX11 directly.