buzz icon indicating copy to clipboard operation
buzz copied to clipboard

webkit_rendering: disable dmabuf renderer for AMD GPUs

Open Christian-Sidak opened this issue 4 months ago • 0 comments

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 into gpu_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 -- --check passes
  • [x] cargo clippy --manifest-path desktop/src-tauri/Cargo.toml --lib passes with no warnings
  • [x] cargo check --manifest-path desktop/src-tauri/Cargo.toml --lib compiles cleanly
  • [ ] just desktop-tauri-test passes (requires Linux build environment with opus; macOS CI will cover this)

Fixes #3656

Christian-Sidak avatar Jul 30 '26 05:07 Christian-Sidak