Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to find adapter on Dx12 #2437

Closed
madmaxio opened this issue Jan 29, 2022 · 4 comments
Closed

Failed to find adapter on Dx12 #2437

madmaxio opened this issue Jan 29, 2022 · 4 comments
Labels
area: ecosystem Help the connected projects grow and prosper type: question Further information is requested

Comments

@madmaxio
Copy link

I have vmware based virtual machine with win 10/ Dx12 driver, wgpu can't find any adapter both native and on the web. Also I have dx-diag output.

[2022-01-29T19:52:12Z WARN  wgpu_hal::dx12::instance] Unable to enable D3D12 debug interface: 0x887A002D
[2022-01-29T19:52:12Z WARN  wgpu_hal::dx12::instance] Unable to enable DXGI debug interface: 0x887A002D
[2022-01-29T19:52:12Z INFO  wgpu_hal::dx12::instance] Failed to cast DXGI to 1.6: 0x80004002
[2022-01-29T19:52:12Z WARN  wgpu_hal::dx12::adapter] Device creation failed: 0x887A0004
[2022-01-29T19:52:12Z WARN  wgpu_hal::dx12::adapter] Device creation failed: 0x887A0004
thread 'main' panicked at 'Failed to find an appropriate adapter',src\main.rs:58:10
@kvark kvark added type: bug Something isn't working and removed type: bug Something isn't working labels Jan 31, 2022
@kvark
Copy link
Member

kvark commented Jan 31, 2022

Your DX12 doesn't support even Feature Level 11_0. We can't reasonably run on it, sorry!
Updating your OS may help.
Getting DX11 in #2443 would also solve this.

@kvark kvark added area: ecosystem Help the connected projects grow and prosper type: question Further information is requested labels Jan 31, 2022
@madmaxio
Copy link
Author

This means wgpu works fine with DX12, but I need latest update for DX12?

@CatCode79
Copy link
Contributor

CatCode79 commented Jan 31, 2022

(just some random thoughs, I don't know if they gonna works)

Updating drivers is almost always a good idea, but in this case I think the problem is more particular and related to virtualization.
I haven't used a vmware machine in a long time, but I think you can proceed with these attempts:

  • in case you do not already do a search of all the adapters to get a clear idea if even if the wgpu does not find an adapter at least someone visible you have it on the vmware (poll_all method here)
  • i have no idea how vmware can communicate with the gpu, but it might have a software layer, in this case it might be an idea to play with the force_fallback_adapter option

@madmaxio
Copy link
Author

I see drivers are pretty old, will try to update them to make things clear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: ecosystem Help the connected projects grow and prosper type: question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants