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.
When using D3D11on12, when using Desktop Duplication, calling
IDXGIOutputDuplication::AcquireNextFrame
results inDXGI_ERROR_ACCESS_LOST
.Tracing this as far as I can it seems to be caused by
CGraphicsCommandQueue::AcquireKeyedMutex
which callsD3DKMTAcquireKeyedMutex2
which returns0x80
(WAIT_ABANDONED
)Note, this code is functioning perfectly on DX11 directly.