-
-
Notifications
You must be signed in to change notification settings - Fork 142
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
linux: VK_ERROR_INCOMPATIBLE_DRIVER error message should be more clear about potential solutions #458
Comments
your GPU is very old and doesn't support Vulkan API |
The gamemode error is just a warning message, it's not the issue/cause here. Though I agree we should make that more silent / look less concerning. Can you try running with |
Filed #459 for silencing the gamemode warning. |
Yes, As requested
Best |
Ah, that's annoying, sorry - I was hoping that would just work. Can you try this, too?
|
for reference here is my glxinfo output
|
Hmm, that's quite strange. It looks like it's still trying to use Vulkan. This could either be a bug in Mach, or you might have a slightly older version of Mach before I renamed the env var. Try this just to be on the safe side:
Then run:
Does that work? |
Nope, still fails somehow 😞 ps Sorry for the delay. Here the output with the exports
|
Similar issue here:
|
@grav try to install vulkan drivers. e.g. on Arch linux i fixed this with |
@alichraghi Thanks, that worked! I also run Arch, and needed to install |
Added some details to #591, although it might make sense to promote it to the README. |
Glad you got this working, will improve error message soon. Renamed issue to reflect that. |
` zig build run-example-triangle
error: Gamemode error error.RequestFailed -> dlopen failed - libgamemode.so: cannot open shared object file: No such file or directory
Warning: libGLX_nvidia.so.0: cannot open shared object file: No such file or directory
Error: vkCreateInstance failed with VK_ERROR_INCOMPATIBLE_DRIVER
at CheckVkSuccessImpl (/home/runner/work/mach-gpu-dawn/mach-gpu-dawn/libs/dawn/src/dawn/native/vulkan/VulkanError.cpp:88)
at CreateVkInstance (/home/runner/work/mach-gpu-dawn/mach-gpu-dawn/libs/dawn/src/dawn/native/vulkan/BackendVk.cpp:387)
at Initialize (/home/runner/work/mach-gpu-dawn/mach-gpu-dawn/libs/dawn/src/dawn/native/vulkan/BackendVk.cpp:273)
at Create (/home/runner/work/mach-gpu-dawn/mach-gpu-dawn/libs/dawn/src/dawn/native/vulkan/BackendVk.cpp:203)
at operator() (/home/runner/work/mach-gpu-dawn/mach-gpu-dawn/libs/dawn/src/dawn/native/vulkan/BackendVk.cpp:462)
Error: EGL version (1.4) must be at least 1.5
at Create (/home/runner/work/mach-gpu-dawn/mach-gpu-dawn/libs/dawn/src/dawn/native/opengl/ContextEGL.cpp:42)
mach: found Null backend on CPU adapter: Null backend, `
The error is the same with other examples.
Strangely, at first build I had just a black frame with frame numbers in stderr.
hardware Laptop lenovo x220 proc : Intel(R) Core(TM) i5-2410M CPU @ 2.30GHz OS mxlinux : Debian GNU/Linux 11 (bullseye)
drivers
└> lspci -vnn | grep VGA -A 12 00:02.0 VGA compatible controller [0300]: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller [8086:0116] (rev 09) (prog-if 00 [VGA controller]) Subsystem: Lenovo 2nd Generation Core Processor Family Integrated Graphics Controller [17aa:21da] Flags: bus master, fast devsel, latency 0, IRQ 26 Memory at f0000000 (64-bit, non-prefetchable) [size=4M] Memory at e0000000 (64-bit, prefetchable) [size=256M] I/O ports at 5000 [size=64] Expansion ROM at 000c0000 [virtual] [disabled] [size=128K] Capabilities: <access denied> Kernel driver in use: i915 Kernel modules: i915
Any idea how to correct this ?
Best !
The text was updated successfully, but these errors were encountered: