I created a VM by hyper-v and passthrought a GTX1660s into the VM by DDA(Discrete Device Assignment). The host system and VM system are both WIN10 21H2 version.
It's work well, Dxdiag shows the gpu is OK.
When I capture the desktop by DXGI in the VM, the function AcquireNextFrame() always return DXGI_ERROR_ACCESS_LOST.
Interesting! I find that if I play a video on the desktop, I can catch the desktop everytime. But when I minize the vedio and let the desktop be statics , the DXGI_ERROR_ACCESS_LOST will make my catching fail.
How can I stably capture the desktop by DXGI?