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

Avoid Adreno DXGI adapter on Win-ARM devices #13538

Merged
merged 2 commits into from
Dec 1, 2023

Conversation

maxkatz6
Copy link
Member

@maxkatz6 maxkatz6 commented Nov 8, 2023

Screenshot 2023-11-08 005935

What does the pull request do?

Ignoring Adreno DXGI adapter seems to fix Avalonia running on win-arm devices. On my arm device, the second adapter to be used is Microsoft Basic Renderer which doesn't have these issues. I would expect it to be slower, but I don't really want to solve these problems right now.
While it's probably not the best solution, an application still is feature complete (like, winui composition works fine).

Fixed issues

Fixes #10405

@Gillibald
Copy link
Contributor

So this is a driver issue in the end?

.First().adapter.CloneReference();
.OrderByDescending(x =>
// Put adreno in lower priority - it's broken in Avalonia.
x.name.Contains("adreno") ? -1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checking for nvidia/amd gpus is probably unwanted there

@maxkatz6 maxkatz6 requested review from a team and removed request for kekekeks December 1, 2023 04:23
@jmacato jmacato added this pull request to the merge queue Dec 1, 2023
Merged via the queue into master with commit ba5dd3b Dec 1, 2023
7 checks passed
@jmacato jmacato deleted the avoid-adreno-adapter-on-win-arm branch December 1, 2023 04:58
maxkatz6 added a commit that referenced this pull request Dec 5, 2023
* Avoid adreno DXGI adapter on Win-ARM devices

* Update src/Windows/Avalonia.Win32/OpenGl/Angle/AngleWin32EglDisplay.cs
@maxkatz6 maxkatz6 added backported-11.0.x and removed backport-candidate-11.0.x Consider this PR for backporting to 11.0 branch labels Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants