Skip to content

Export fails on hybrid graphics windows device unless .exe is manually set to high performance in system settings #408

Description

@zzswanny

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status
    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions