Skip to content

Cannot find vulkan adapter on Mesa 25 + RADV #7336

Closed as not planned
Closed as not planned
@matteodev8

Description

@matteodev8

Description
After upgrading to Mesa 25 from Mesa 24 today, I am experiences issues with my bevy app. It errors on launch with wgpu complaining about surface configuration failed: incompatible window kind and Device::create_render_pipeline error: Internal error in ShaderStages(VERTEX | FRAGMENT) shader:

Repro steps

  1. use Mesa 25.0.1
  2. run project

Expected vs observed behavior
Should open the window

Crashes

Extra materials

2025-03-14T15:15:11.165679Z  INFO bevy_render::renderer: AdapterInfo { name: "AMD Radeon RX 7800 XT (radeonsi, navi32, LLVM 19.1.7, DRM 3.61, 6.13.6-arch1-1)", vendor: 4098, device: 0, device_type: Other, driver: "", driver_info: "4.6 (Core Profile) Mesa 25.0.1-arch1.2", backend: Gl }
2025-03-14T15:15:11.224144Z  WARN bevy_pbr::ssao: ScreenSpaceAmbientOcclusionPlugin not loaded. GPU lacks support: TextureFormat::R16Float does not support TextureUsages::STORAGE_BINDING.
2025-03-14T15:15:11.224481Z  INFO bevy_winit::system: Creating new window "App" (0v1#4294967296)
2025-03-14T15:15:11.224506Z  INFO winit::platform_impl::linux::x11::window: Guessed window scale factor: 1
2025-03-14T15:15:11.236518Z ERROR wgpu_core::device::global: surface configuration failed: incompatible window kind

thread 'main' panicked at /home/matteo/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/wgpu-23.0.1/src/backend/wgpu_core.rs:719:18:
Error in Surface::configure: Validation Error

Caused by:
  Invalid surface

note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Encountered a panic in system `bevy_render::view::window::create_surfaces`!
2025-03-14T15:15:11.250487Z ERROR wgpu_core::device::global: Device::create_render_pipeline error: Internal error in ShaderStages(VERTEX | FRAGMENT) shader:
2025-03-14T15:15:11.250502Z ERROR wgpu::backend::wgpu_core: Shader translation error for stage ShaderStages(VERTEX | FRAGMENT):
2025-03-14T15:15:11.250505Z ERROR wgpu::backend::wgpu_core: Please report it to https://github.com/gfx-rs/wgpu
2025-03-14T15:15:11.250510Z ERROR wgpu::backend::wgpu_core: Handling wgpu errors as fatal by default

thread 'Async Compute Task Pool (0)' panicked at /home/matteo/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/wgpu-23.0.1/src/backend/wgpu_core.rs:1102:18:
wgpu error: Validation Error

Caused by:
  In Device::create_render_pipeline, label = 'sprite_pipeline'
    Internal error in ShaderStages(VERTEX | FRAGMENT) shader:

Platform
OS: Arch Linux (KDE Plasma 6)
Rust: 1.85.0
Mesa: 1:25.0.1-2 (Pacman)
Vulkan Driver: RADV
GPU: Radeon RX 7800 XT
Wgpu: 23.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    backend: vulkanIssues with Vulkanexternal: driver-bugA driver is causing the bug, though we may still want to work around itplatform: linuxLinux Specific Issues

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions