Skip to content

fix(render): match Mesa powervr_mesa_icd Vulkan manifest prefix - #2631

Merged
Hona merged 1 commit into
devfrom
fix/powervr-mesa-icd-prefix
Nov 27, 2026
Merged

Hona merged 1 commit into
devfrom
fix/powervr-mesa-icd-prefix

Conversation

@Hona

@Hona Hona commented Nov 27, 2026

Copy link
Copy Markdown
Member

Summary

Match Mesa's powervr_mesa_icd Vulkan ICD manifest prefix alongside powervr_icd for the Linux powervr DRM kernel driver.

Addresses #700 (follow-on report from @purian23).

Root Cause

crates/rune/src/render/vulkan_icd.rs mapped "powervr" solely to ["powervr_icd"], whereas Mesa's src/imagination/vulkan/meson.build installs powervr_mesa_icd.<arch>.json. Because manifest_matches_prefixes uses starts_with, no candidate library was found on PowerVR systems and Rune fell back to loading every installed Vulkan ICD.

Audit of Other Mesa ICD Prefixes

Verified all remaining entries in icd_prefixes against upstream Mesa src/*/vulkan/meson.build:

  • intel_icd, intel_hasvk_icd (intel/vulkan, intel/vulkan_hasvk) — matches
  • radeon_icd (amd/vulkan) — matches (alongside amd_icd, amd_pro_icd)
  • nouveau_icd (nouveau/vulkan) — matches
  • freedreno_icd (freedreno/vulkan) — matches
  • panfrost_icd (panfrost/vulkan) — matches
  • broadcom_icd (broadcom/vulkan) — matches
  • asahi_icd (asahi/vulkan) — matches
  • virtio_icd (virtio/vulkan) — matches
  • powervr_mesa_icd (imagination/vulkan) — fixed here (keeping powervr_icd alongside it)

Verification

  • Added scan_discovers_powervr_mesa_and_generic_icd_manifests and updated kernel_driver_table_maps_known_drivers_and_rejects_unknown in crates/rune/src/render/vulkan_icd_tests.rs; verified both fail before the fix and pass after.
  • Ran cargo test -p rune --lib vulkan_icd (14 passed, 0 failed) and cargo check -p rune --lib.
  • Not run on real Linux PowerVR hardware.

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.

1 participant