Skip to content

Add migration to backfill Mesa Vulkan drivers for pre-vulkan.sh installs#6199

Open
sridhar-3009 wants to merge 1 commit into
basecamp:masterfrom
sridhar-3009:fix/6089-vulkan-migration
Open

Add migration to backfill Mesa Vulkan drivers for pre-vulkan.sh installs#6199
sridhar-3009 wants to merge 1 commit into
basecamp:masterfrom
sridhar-3009:fix/6089-vulkan-migration

Conversation

@sridhar-3009

Copy link
Copy Markdown

Problem

install/config/hardware/vulkan.sh was added on 2026-02-20 but ships no
corresponding migration. Systems installed before that date never received
their Mesa Vulkan ICD. On Intel+NVIDIA Optimus laptops the effect is
concrete: only the NVIDIA Vulkan device is present, causing cross-presentation
stalls in mpv (Vulkan path) and similar GPU-selection bugs.

Reported in #6089.

Fix

Add a migration that replays the same GPU vendor detection and
omarchy-pkg-add calls as vulkan.sh. omarchy-pkg-add is idempotent,
so systems that already received the driver (installed after 2026-02-20, or
on NVIDIA-only machines) are unaffected.

# migrations/1783625095.sh
declare -A VULKAN_DRIVERS=(
  [Intel]=vulkan-intel
  [AMD]=vulkan-radeon
  [Apple]=vulkan-asahi
)
...

No changes to install scripts or existing behaviour.

install/config/hardware/vulkan.sh was added on 2026-02-20 but ships no
corresponding migration, so systems installed before that date never
received their Mesa Vulkan ICD. On Intel+NVIDIA Optimus laptops this
left only the NVIDIA Vulkan device present, causing cross-presentation
stalls in mpv (Vulkan path) and similar GPU-selection bugs.

Add a migration that replays the same GPU detection and `omarchy-pkg-add`
calls as vulkan.sh. `omarchy-pkg-add` is idempotent, so systems that
already received the driver (installed after 2026-02-20) are unaffected.

Fixes basecamp#6089.
Copilot AI review requested due to automatic review settings July 9, 2026 19:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a migration to backfill Mesa Vulkan ICD packages on systems installed before install/config/hardware/vulkan.sh existed, ensuring Vulkan devices are correctly available for Intel/AMD/Asahi GPUs on older installs.

Tip

If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.

Changes:

  • Add a new migration that detects GPU vendors via lspci and installs the corresponding Mesa Vulkan package(s) using omarchy-pkg-add.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread migrations/1783625095.sh
PACKAGES=()

for vendor in "${!VULKAN_DRIVERS[@]}"; do
if lspci | grep -iE "(VGA|Display).*$vendor" > /dev/null; then
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants