[GH-ISSUE #4059] Linux, Mesa hasvk (Ivy Bridge/Haswell): Vulkan exists and works, but Horizon hides it and falls back to OpenGL (or says there is no driver) #1183

Closed
opened 2026-11-02 15:44:54 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @oscargzss on GitHub (Oct 29, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4059

Originally assigned to: @oscargzss on GitHub.

What happens. On Arch Linux (KDE Wayland), Intel HD Graphics 4000 (Ivy Bridge, 8086:0166, Mesa 26.2.5, kernel 7.2.11), Horizon never uses Vulkan and logs that there is no Vulkan adapter:

Horizon renderer: trying OpenGL (Vulkan: No suitable graphics adapter found; noop not requested, vulkan found no adapters, metal not requested, dx12 not requested, gl not requested, webgpu not requested)

Vulkan is there. vulkaninfo --summary lists GPU0 Intel(R) HD Graphics 4000 (IVB GT2), apiVersion 1.2.354, driverVersion 26.2.5, conformanceVersion = 0.0.0.0, with MESA-INTEL: warning: Ivy Bridge Vulkan support is incomplete. With WGPU_ALLOW_UNDERLYING_NONCOMPLIANT_ADAPTER=1 the game draws on it:

Horizon renderer: Intel(R) HD Graphics 4000 (IVB GT2) (Vulkan, IntegratedGpu)
Horizon: first frame after 2421 ms

and the village benchmark at render distance 8, 960x540, gives 122.0 and 126.3 avg FPS with 15.6-15.8 1% low.

Why. wgpu_hal::vulkan hides any adapter whose driver reports conformanceVersion.major == 0 ("Adapter is not Vulkan compliant, hiding adapter") unless InstanceFlags::ALLOW_UNDERLYING_NONCOMPLIANT_ADAPTER is set, and Mesa reports 0.0.0.0 for hasvk. Horizon's instance comes from InstanceDescriptor::with_env(), so the only escape is an environment variable the player has to know.

What a player sees today. On v0.2.66 the game refuses to start: No Vulkan or OpenGL graphics driver found (the OpenGL retry ends in gl not compatible with provided surface, the surfaceless-EGL case WindowDisplay now covers on main). Built from main (bd665f2) it starts, but on crocus OpenGL 4.2 rather than on Vulkan: same machine, interleaved runs of the village benchmark at render distance 8 (a browser was open, so load_avg was 5.2-8.5 on 4 threads; read the direction, not the absolute numbers): Vulkan 42.8 and 43.7 avg FPS (1% low 18.0, 20.3), OpenGL 31.1 and 16.1 (1% low 11.0, 4.0).

Proposal. In open_device, when a backend offers no adapter at all, ask that backend once more with the non-conformant adapters shown, and log which adapter it took; every machine where a backend already gives an adapter stays exactly as it is. That way a Gen7 Intel GPU plays on the Vulkan driver it has instead of a slower fallback, and a player whose OpenGL is also missing gets the game instead of "no graphics driver".

Pull request follows.

Originally created by @oscargzss on GitHub (Oct 29, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4059 Originally assigned to: @oscargzss on GitHub. **What happens.** On Arch Linux (KDE Wayland), Intel HD Graphics 4000 (Ivy Bridge, `8086:0166`, Mesa 26.2.5, kernel 7.2.11), Horizon never uses Vulkan and logs that there is no Vulkan adapter: ``` Horizon renderer: trying OpenGL (Vulkan: No suitable graphics adapter found; noop not requested, vulkan found no adapters, metal not requested, dx12 not requested, gl not requested, webgpu not requested) ``` Vulkan is there. `vulkaninfo --summary` lists GPU0 `Intel(R) HD Graphics 4000 (IVB GT2)`, apiVersion 1.2.354, driverVersion 26.2.5, `conformanceVersion = 0.0.0.0`, with `MESA-INTEL: warning: Ivy Bridge Vulkan support is incomplete`. With `WGPU_ALLOW_UNDERLYING_NONCOMPLIANT_ADAPTER=1` the game draws on it: ``` Horizon renderer: Intel(R) HD Graphics 4000 (IVB GT2) (Vulkan, IntegratedGpu) Horizon: first frame after 2421 ms ``` and the village benchmark at render distance 8, 960x540, gives 122.0 and 126.3 avg FPS with 15.6-15.8 1% low. **Why.** `wgpu_hal::vulkan` hides any adapter whose driver reports `conformanceVersion.major == 0` ("Adapter is not Vulkan compliant, hiding adapter") unless `InstanceFlags::ALLOW_UNDERLYING_NONCOMPLIANT_ADAPTER` is set, and Mesa reports `0.0.0.0` for hasvk. Horizon's instance comes from `InstanceDescriptor::with_env()`, so the only escape is an environment variable the player has to know. **What a player sees today.** On v0.2.66 the game refuses to start: `No Vulkan or OpenGL graphics driver found` (the OpenGL retry ends in `gl not compatible with provided surface`, the surfaceless-EGL case `WindowDisplay` now covers on main). Built from main (bd665f2) it starts, but on crocus OpenGL 4.2 rather than on Vulkan: same machine, interleaved runs of the village benchmark at render distance 8 (a browser was open, so load_avg was 5.2-8.5 on 4 threads; read the direction, not the absolute numbers): Vulkan 42.8 and 43.7 avg FPS (1% low 18.0, 20.3), OpenGL 31.1 and 16.1 (1% low 11.0, 4.0). **Proposal.** In `open_device`, when a backend offers no adapter at all, ask that backend once more with the non-conformant adapters shown, and log which adapter it took; every machine where a backend already gives an adapter stays exactly as it is. That way a Gen7 Intel GPU plays on the Vulkan driver it has instead of a slower fallback, and a player whose OpenGL is also missing gets the game instead of "no graphics driver". Pull request follows.
Author
Owner

@oscargzss commented on GitHub (Oct 29, 2026):

/claim

<!-- gh-comment-id:6510743012 --> @oscargzss commented on GitHub (Oct 29, 2026): /claim
Author
Owner

@oscargzss commented on GitHub (Oct 29, 2026):

Opened by oscargzss's AI agent (pi, deepseek-ai/DeepSeek-V4.1-Flash-1017), not by oscargzss personally. The pull request with the change is #4064.

<!-- gh-comment-id:6510838980 --> @oscargzss commented on GitHub (Oct 29, 2026): Opened by oscargzss's AI agent (pi, deepseek-ai/DeepSeek-V4.1-Flash-1017), not by oscargzss personally. The pull request with the change is #4064.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#1183
No description provided.