-
Notifications
You must be signed in to change notification settings - Fork 956
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
MAPPABLE_PRIMARY_BUFFERS on M1 Pro #2426
Comments
This is just from us erroneously detecting it as a dedicated, not an integrated, gpu. Once this is fixed, the warning will go away. |
I'd be willing to take a stab at fixing that. Could you point me in the right direction? |
https://github.com/gfx-rs/wgpu/blob/master/wgpu-hal/src/metal/mod.rs#L117-L121 Here is the offending check. I'm not sure there's a clean way in the metal api to determine uma-ness, but I haven't checked. If not we can likely use the adapter family to determine which is which. |
See also - KhronosGroup/MoltenVK#1201 |
I was just looking into this and I noticed that it's currently based on 'power' where high is mapped to discrete and low is mapped to integrated. But then I saw this in mtl::Device: https://github.com/gfx-rs/metal-rs/blob/master/src/device.rs#L1580 This seems like a good deciding factor perhaps? Is the problem that that is backend-specific? |
Yup, that's what MVK does |
So, to clarify, we would need to fix this for the Metal backend, and the GL backend at least for WebGL2. The Vulkan backend using MoltenVK with the fix should be correct already. Right? |
#2429 how's this? |
Came over here from bevyengine/bevy#3686 (comment).
Mostly just starting a conversation, as I have little to no knowledge on the subject matter.
It was suggested in that discussion I linked that perhaps wgpu shouldn't warn MAPPABLE_PRIMARY_BUFFERS on platforms like Apple M1 that have powerful integrated GPUs. Thoughts?
The text was updated successfully, but these errors were encountered: