[GH-ISSUE #4599] Block flicker on Intel Iris Xe (Alder Lake, Gen12) on Mesa ANV; HORIZON_FLAT_DRAWS=1 fixes it (same symptom as #3529) #1390

Closed
opened 2026-11-02 15:46:36 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @lzofseven on GitHub (Oct 30, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4599

Version: Horizon Nightly 2026-10-30 · 1da354b (launcher 0.2.29)
OS: Debian GNU/Linux 13 (trixie), kernel 6.12.94, x86_64
GPU: Intel Iris Xe Graphics (Alder Lake-UP3 GT2), PCI 8086:46a8
Driver: Mesa 25.0.7 (ANV), Vulkan 1.4.305. The log shows Horizon renderer: Intel(R) Iris(R) Xe Graphics (ADL GT2) (Vulkan, IntegratedGpu).

What happened

Terrain sections and blocks flicker in game on this machine. Starting the game with HORIZON_FLAT_DRAWS=1 made the block flicker go away for the player who tested it. Without the variable it flickers.

Why this looks like #3529 / #3936

#3936 (merged today) turns on the flat-draw pipeline automatically for Intel Gen11 (Ice Lake) on Vulkan, because of the ANV first_instance problem in multi_draw_indexed_indirect with instance-step vertex attributes. is_broken_intel_vulkan() in crates/horizon-client-render/src/gfx/flat.rs only matches ICL, Ice Lake, or device ids 0x8a50..=0x8a71. This GPU is Gen12 (device 0x46a8) on the same Mesa ANV driver, so the workaround does not switch on here, and the flicker is the same symptom #3529 describes. I did not check the driver code, I only noticed that the symptom matches and the forced flag fixes it.

Suggestion

Consider extending the detection to Intel Gen12 on Vulkan (Alder Lake/Tiger Lake ids such as 0x46xx and 0x9a40..=0x9a78) so players do not need the environment variable. This is confirmed only on 8086:46a8; I have not tested other Gen12 parts.

Caveats

  • The result is the player's own observation after one session, not a before/after capture or frame measurement.
  • Fix tried: HORIZON_FLAT_DRAWS=1 set when launching the game, nothing else changed.

This issue was written and filed by Claude Code (an AI assistant), at the request of the player, from their GitHub account lzofseven. The player confirmed the result described above.

Originally created by @lzofseven on GitHub (Oct 30, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4599 **Version:** Horizon Nightly 2026-10-30 · 1da354b (launcher 0.2.29) **OS:** Debian GNU/Linux 13 (trixie), kernel 6.12.94, x86_64 **GPU:** Intel Iris Xe Graphics (Alder Lake-UP3 GT2), PCI `8086:46a8` **Driver:** Mesa 25.0.7 (ANV), Vulkan 1.4.305. The log shows `Horizon renderer: Intel(R) Iris(R) Xe Graphics (ADL GT2) (Vulkan, IntegratedGpu)`. ## What happened Terrain sections and blocks flicker in game on this machine. Starting the game with `HORIZON_FLAT_DRAWS=1` made the block flicker go away for the player who tested it. Without the variable it flickers. ## Why this looks like #3529 / #3936 #3936 (merged today) turns on the flat-draw pipeline automatically for Intel Gen11 (Ice Lake) on Vulkan, because of the ANV `first_instance` problem in `multi_draw_indexed_indirect` with instance-step vertex attributes. `is_broken_intel_vulkan()` in `crates/horizon-client-render/src/gfx/flat.rs` only matches `ICL`, `Ice Lake`, or device ids `0x8a50..=0x8a71`. This GPU is Gen12 (device `0x46a8`) on the same Mesa ANV driver, so the workaround does not switch on here, and the flicker is the same symptom #3529 describes. I did not check the driver code, I only noticed that the symptom matches and the forced flag fixes it. ## Suggestion Consider extending the detection to Intel Gen12 on Vulkan (Alder Lake/Tiger Lake ids such as `0x46xx` and `0x9a40..=0x9a78`) so players do not need the environment variable. This is confirmed only on `8086:46a8`; I have not tested other Gen12 parts. ## Caveats - The result is the player's own observation after one session, not a before/after capture or frame measurement. - Fix tried: `HORIZON_FLAT_DRAWS=1` set when launching the game, nothing else changed. <sub>This issue was written and filed by Claude Code (an AI assistant), at the request of the player, from their GitHub account `lzofseven`. The player confirmed the result described above.</sub>
Author
Owner

@abit-foggy commented on GitHub (Oct 31, 2026):

I authored #3936 -- picking this up now to extend the Mesa ANV flat-draw detection in flat.rs to Intel Gen12 (Alder Lake / Tiger Lake / Rocket Lake / Raptor Lake).

<!-- gh-comment-id:6547398054 --> @abit-foggy commented on GitHub (Oct 31, 2026): I authored #3936 -- picking this up now to extend the Mesa ANV flat-draw detection in `flat.rs` to Intel Gen12 (Alder Lake / Tiger Lake / Rocket Lake / Raptor Lake).
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#1390
No description provided.