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

Identify Apple M1 GPU as integrated #2429

Merged
merged 2 commits into from
Jan 28, 2022

Conversation

superdump
Copy link
Contributor

@superdump superdump commented Jan 28, 2022

Connections

Description
The Apple M1 line of GPUs use a unified memory architecture that implies they are integrated but wgpu currently uses whether they are low power (Metal backend), or name-based heuristics (GL backend) which classify them as discrete, which seems incorrect.

Testing
I ran a few native examples (so only tested the Metal backend) and checked the adapter info to see that it had changed to IntegratedGpu.

wgpu-hal/src/metal/mod.rs Outdated Show resolved Hide resolved
Fall back to current low_power implies integrated GPU for older OSes.
@kvark
Copy link
Member

kvark commented Jan 28, 2022

This isn't how I saw this being done, but it's good. Maybe even better than I wanted :)

@kvark kvark merged commit 766c6cd into gfx-rs:master Jan 28, 2022
@kvark kvark added the PR: needs back-porting PR with a fix that needs to land on crates label Jan 28, 2022
@cwfitzgerald cwfitzgerald removed the PR: needs back-porting PR with a fix that needs to land on crates label Feb 9, 2023
cwfitzgerald pushed a commit that referenced this pull request Oct 25, 2023
* Properly test `-Zminimal-versions`

* Fix minimal version requirement
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MAPPABLE_PRIMARY_BUFFERS on M1 Pro
3 participants