Repository navigation
fix(graphics): pick working Vulkan drivers on AMD and Intel and fall back to OpenGL without one - #155
Merged
Merged
Conversation
…back to OpenGL without one - Fix VK_LOADER_DRIVERS_DISABLE syntax (comma globs) so lavapipe is really filtered; a user-pinned VK_DRIVER_FILES list is left alone. - Pin ANV and hasvk together on Intel, accept AMDVLK, skip GPUs bound to vfio-pci and similar, and search XDG data dirs and /run/opengl-driver. - With no pinned driver, probe devices in a forked child (5 s cap) and switch to OpenGL when there is no hardware Vulkan device. - Gate ANV_SYS_MEM_LIMIT and the Mesa submit thread on Intel, and keep Mesa's device selector for pinned AMD/Intel ICDs. - Read the clipboard outside the text editor lock and drop the paste if focus moved meanwhile. - Retry the initial Wayland sync and continue instead of quitting.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the Vulkan driver pick on AMD and Intel and a couple of freeze paths.
VK_LOADER_DRIVERS_DISABLEwas colon-joined, which the loader never matched, so lavapipe was never filtered out. It now uses comma globs. A user-pinnedVK_DRIVER_FILESis left as given./run/opengl-driver(NixOS).ANV_SYS_MEM_LIMITandMESA_VK_ENABLE_SUBMIT_THREADare Intel-only now, andNODEVICE_SELECTis no longer set for a pinned AMD/Intel ICD soDRI_PRIMEworks.NVIDIA with the
nvidiadriver behaves the same, except the two Intel-only variables are no longer set.Full suite passes under xvfb. Not tested on real AMD or Intel hardware yet, so it needs someone on those to try it.