Skip to content

linux: VK_ERROR_INCOMPATIBLE_DRIVER error message should be more clear about potential solutions #458

@samusz

Description

@samusz

` 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 !

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingos/linux

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions