buzz
buzz copied to clipboard
webkit_rendering: disable dmabuf renderer for AMD GPUs
Summary
AMD Radeon devices (PCI vendor 0x1002) trigger the same WebKitGTK dmabuf blank-screen crash as NVIDIA on some compositor/kernel combinations. This was reported in #3656 by a user on CachyOS + Hyprland with a Radeon Vega Mobile GPU.
- Generalise the existing
nvidia_gpu(drm_root)helper intogpu_vendor(drm_root, vendor_id)so vendor detection is reusable without duplication - Add
AMD_PCI_VENDOR = "0x1002"constant - Add an AMD GPU signal alongside the existing NVIDIA and AppImage signals
- Update the "no match" log message to mention both vendor families
- Add two new test cases: AMD-only machine triggers the workaround, AMD+Intel hybrid also triggers it
The --safe-rendering escape hatch and all user-environment-override logic are unchanged.
Test plan
- [x]
cargo fmt --manifest-path desktop/src-tauri/Cargo.toml -- --checkpasses - [x]
cargo clippy --manifest-path desktop/src-tauri/Cargo.toml --libpasses with no warnings - [x]
cargo check --manifest-path desktop/src-tauri/Cargo.toml --libcompiles cleanly - [ ]
just desktop-tauri-testpasses (requires Linux build environment with opus; macOS CI will cover this)
Fixes #3656