GPU: Optimus/hybrid-graphics laptop with Intel iGPU
Symptom: D3D11: The handle is invalid (0x80070006)
Root cause: FFmpeg's av_hwdevice_ctx_create in decoder.rs (both try_hwaccel and create_shared_hw_device) passes ptr::null() for device selection, so on hybrid-GPU systems it can land on a different physical adapter than wgpu's PowerPreference::HighPerformance-selected GPU — NT shared handles then fail because they only work within the same adapter
Confirmed workaround: forcing the exe to "High performance" GPU in Windows Graphics Settings
Suggested fix direction: match FFmpeg's device selection to wgpu's chosen adapter via DXGI LUID lookup
GPU: Optimus/hybrid-graphics laptop with Intel iGPU
Symptom:
D3D11: The handle is invalid (0x80070006)Root cause: FFmpeg's
av_hwdevice_ctx_createin decoder.rs (bothtry_hwaccelandcreate_shared_hw_device) passesptr::null()for device selection, so on hybrid-GPU systems it can land on a different physical adapter than wgpu'sPowerPreference::HighPerformance-selected GPU — NT shared handles then fail because they only work within the same adapterConfirmed workaround: forcing the exe to "High performance" GPU in Windows Graphics Settings
Suggested fix direction: match FFmpeg's device selection to wgpu's chosen adapter via DXGI LUID lookup