microsoft / WPFDXInterop

Repo for WPF DX Interop support
MIT License
307 stars 98 forks source link

Support switchable graphics with AMD graphics card #32

Open holgerschm opened 7 years ago

holgerschm commented 7 years ago

On a laptop with AMD switchable graphics the high perfomance mode does not work with the Direct3D11Image.

dotMorten commented 6 years ago

I'm fairly certain we're seeing the same thing with our similar DX interop library. Can you explain what you mean by "does not work"? Error, nothing renders, crash, stack trace, any DX debug outputs indicating any issues etc?

gdestigter commented 6 years ago

We are facing this issue with the following configuration:

When running the sample with switchable graphics set to 'High Performance`, the app displays the background image from the XAML stack but anything from the DirectX stack doesn't display at all (no spinning cube). With the switchable graphics set to 'Power Saving', we see the sample run as expected (cube and background image are rendered and animated). Also, the sample runs as expected (in both switchable graphics modes) on the same machine running Windows 10. So this appears to only be an issue in Windows 7.

Also, in our Windows 7 tests, enumerating the DirectX adapters with IDXGIFactory::EnumAdapters never returns the AMD adapter (only the onboard Intel adapter is returned).

oysteinkrog commented 6 years ago

From my research this seems to be a longstanding AMD driver issue. No known workaround, but it might be possible to detect and warn the user.