gfx-rs / wgpu

A cross-platform, safe, pure-Rust graphics API.
https://wgpu.rs
Apache License 2.0
11.97k stars 870 forks source link

panic in wgpu 0.18.0 when AMDVLK 2023.Q4.3 on Radeon RX 7900 XTX #5021

Closed jokeyrhyme closed 7 months ago

jokeyrhyme commented 7 months ago

launching cosmic-term or AMD_VULKAN_ICD=AMDVLK cosmic-term results in the following error:

wl_drm@53: error 1: Format not advertised by wl_drm
warning: queue 0x563961aec090 destroyed while proxies still attached:
[2024-01-07T20:34:57Z ERROR wgpu_hal::vulkan::adapter] get_physical_device_surface_capabilities: An unknown error has occurred, due to an implementation or application bug
thread 'main' panicked at $HOME/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.18.0/src/backend/direct.rs:778:18:
Error in Surface::configure: Validation Error
Caused by:
Surface does not support the adapter's queue family
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

all of these do work, however:

I do not expect this to be addressed in wgpu as this is highly likely to be an AMDVLK bug, just noting this here in case someone else runs into the same issue

MoSal commented 7 months ago

Just out of curiosity, since Wayland appears to be involved, does this issue manifest in X11?

jokeyrhyme commented 7 months ago

Ah, excellent question

I could not reproduce this panic in sway, GNOME wayland, or GNOME x11, so it's likely specific to the early-in-development compositor that I happened to be playing with at the time

I'd previously encountered an earlier bug in AMDVLK that was breaking wgpu so I incorrectly assumed it was another occurrence

Cheers!