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

Make GLES DeviceType unknown by default #2647

Merged
merged 2 commits into from
May 12, 2022
Merged

Make GLES DeviceType unknown by default #2647

merged 2 commits into from
May 12, 2022

Conversation

PolyMeilex
Copy link
Contributor

@PolyMeilex PolyMeilex commented May 8, 2022

I just found out that my integrated GPU is not on wgp-hal list.

Thanks to that I realized that when I request HighPerformance adapter GLES one will always be selected instead of Vulkan one, because Vulkan reports IntegratedGpu properly, so it gets filtered out in favor of GLES DiscreteGpu(that in reality is not discrete).

I could just add it to the list, but I don't think that's the right solution, it's an endless fight, and we will never have all integrated gpus on the list no matter what.

So I think the right solution is to just admit that we don't know what is the device type. So DeviceType::Other should be used, maybe the name does not fit the case well, but it directly maps to WGPUAdapterType_Unknown in webgpu-native so I think it's right to use it for this.

PolyMeilex added 2 commits May 8, 2022 02:03
Renoir is codename for AMD series of mainstream mobile and desktop APUs based on the Zen 2 CPU and Vega GPU microarchitectures succeeding Picasso.
@kvark kvark enabled auto-merge (rebase) May 12, 2022 03:23
@kvark kvark merged commit 8e62ca0 into gfx-rs:master May 12, 2022
@PolyMeilex PolyMeilex deleted the gles-non-discrete branch May 12, 2022 10:28
@PolyMeilex
Copy link
Contributor Author

Thanks 👍

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.

2 participants