Browse Source
* win32: let GraphicsAdapterSelectionCallback see unfiltered adapters on ARM64 The ARM64 Adreno blocklist in AngleWin32EglDisplay removed every Adreno adapter from the list before it was handed to GraphicsAdapterSelectionCallback, so an application had no way to opt back into hardware acceleration and no indication that WARP (the Microsoft Basic Render Driver) was being forced. Stop mutating the adapter list. The blocklist now only moves the *default* selection to the first non-Adreno adapter when no callback is supplied, and logs a warning about the CPU-usage impact and the available workarounds. When a callback is present it receives the full, unfiltered adapter list and its choice is used as-is. As a side effect this also removes a latent IndexOutOfRange: the old code could empty the list when every enumerated adapter was Adreno. Refs #21689 * Update src/Windows/Avalonia.Win32/OpenGl/Angle/AngleWin32EglDisplay.cs Co-authored-by: Max Katz <maxkatz6@outlook.com> --------- Co-authored-by: nickna <nick@nassiri.xyz> Co-authored-by: Max Katz <maxkatz6@outlook.com>pull/21710/head
committed by
GitHub
1 changed files with 20 additions and 10 deletions
Loading…
Reference in new issue