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

v0.20.1 can't find right adapter for my old computer. #5819

Closed
alexniver opened this issue Jun 15, 2024 · 4 comments
Closed

v0.20.1 can't find right adapter for my old computer. #5819

alexniver opened this issue Jun 15, 2024 · 4 comments

Comments

@alexniver
Copy link

Description
I have a very old computer with DiscreteGpu and IntegratedGpu.

on v0.20.1, wgpu only use IntegratedGpu
on v0.18.0, wgpu use DiscreteGpu, this is right
on v0.19 wgpu can't find adapter #5164 , this issue is fixed for me

Repro steps
on v0.18.0

cargo run --bin hello-triangle

output

AdapterInfo { name: "AMD Radeon R5 M435 (RADV HAINAN)", vendor: 4098, device: 26213, device_type: DiscreteGpu, driver: "radv", driver_info: "Mesa 24.1.1-arch1.1", backend: Vulkan }

on v0.20.1, run

WGPU_POWER_PREF=high cargo run hello_triangle

output

AdapterInfo { name: "Mesa Intel(R) HD Graphics 620 (KBL GT2)", vendor: 32902, device: 0, device_type: IntegratedGpu, driver: "OpenGL", driver_info: "4.6 (Compatibility Profile) Mesa 24.1.1-arch1.1", backend: Gl }

Expected vs observed behavior
wgpu should always use discrete gpu.

Platform
os: archlinux
wgpu version: v0.20.1

@Wumpf
Copy link
Member

Wumpf commented Jun 15, 2024

@alexniver can you post a dump of wgpu-info --verbose? might be helpful to understand why it wouldn't pick your amd gpu
also a RUST_LOG=trace of the portion on hello_triangle that shows the adapter selection

@alexniver
Copy link
Author

@alexniver can you post a dump of wgpu-info --verbose? might be helpful to understand why it wouldn't pick your amd gpu also a RUST_LOG=trace of the portion on hello_triangle that shows the adapter selection

v0.20.1 run cargo run --bin wgpu-info --verbose

WARNING: radv is not a conformant Vulkan implementation, testing use only.
Adapter 0:
	         Backend: Gl
	            Name: Mesa Intel(R) HD Graphics 620 (KBL GT2)
	        VendorID: 0x8086
	        DeviceID: 0x0
	            Type: IntegratedGpu
	          Driver: OpenGL
	      DriverInfo: 4.6 (Compatibility Profile) Mesa 24.1.1-arch1.1
	WebGPU Compliant: false

v0.18.0 run cargo run --bin wgpu-info --verbose
v0.18.0_wgpu_info.txt

v0.20.1 run RUST_LOG=trace cargo run hello_triangle
v0.20.1_trace_info.txt

v0.18.0 run RUST_LOG=trace cargo run --bin hello-triangle
v0.18.0_trace_info.txt

@cwfitzgerald
Copy link
Member

That warning from mesa is exactly why it's not letting your and card through. Radv isn't conformant on your amd card, and we filter out all non-conformant implementations by default, falling back in opengl, where we can't actually pick which adapter we get.

@alexniver
Copy link
Author

That warning from mesa is exactly why it's not letting your and card through. Radv isn't conformant on your amd card, and we filter out all non-conformant implementations by default, falling back in opengl, where we can't actually pick which adapter we get.

oh, I know, so this is not a issue, I will close.

@github-project-automation github-project-automation bot moved this from Todo to Done in WebGPU for Firefox Jun 15, 2024
@teoxoy teoxoy closed this as not planned Won't fix, can't repro, duplicate, stale Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

4 participants