Linux Chromium with a hardware GPU is refused `SoftwareGpu` when `SystemInfo.getInfo` leaves `deviceString` empty
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 78/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- linux, nixos, rust
- Ambito
- performance
Direzione di ricerca
Il bug si trova in Chromium::gpu() in src/target/chromium.rs, che conserva solo le voci di gpu.devices con deviceString non vuoto e poi chiama is_software_gpu sulla prima. Leggi questo filtro e il controllo devices.first().is_none_or(...), quindi riproduci il bug usando il JSON della issue come fixture. È completato quando un adattatore hardware con device string vuote non viene più segnalato come software e i renderer software continuano a essere segnalati.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
On Linux, Chromium::gpu() (src/target/chromium.rs) treats a hardware-rendered page as software. Every frame and GPU metric is then refused with SoftwareGpu: ; compositing enabled.
gpu() keeps only gpu.devices entries with a non-empty deviceString. Chromium on this machine reports both adapters with an empty deviceString and vendorString. The list ends up empty, and devices.first().is_none_or(...) marks the GPU as software, even though glRenderer names a hardware adapter and gpu_compositing is enabled:
{
"glRenderer": "ANGLE (Intel, Mesa Intel(R) UHD Graphics (CML GT2), OpenGL ES 3.2 Mesa 26.2.6)",
"devices": [
{ "vendorId": 32902, "deviceId": 39876, "vendorString": "", "deviceString": "", "driverVendor": "Mesa", "driverVersion": "26.2.6" },
{ "vendorId": 4318, "deviceId": 9504, "vendorString": "", "deviceString": "", "driverVendor": "Mesa", "driverVersion": "26.2.6" }
],
"featureStatus": { "gpu_compositing": "enabled", "opengl": "enabled_on", "rasterization": "enabled" }
}
- Setup: strobe 0.36.0, NixOS 26.11, Intel UHD (CML GT2) plus NVIDIA in PRIME offload mode, Mesa 26.2.6, Hyprland.
- Browsers: the same result with nixpkgs Chromium 157 and Google Chrome, with and without
--disable-gpu-sandbox. - Calibration (
strobe up) reports "the GPU draws in software", andstrobe statusreports "frames unchecked (the GPU draws in software)".
Possible fix: when no device has a deviceString, use glRenderer as the adapter name, so is_software_gpu checks the renderer instead of an empty list.
- Lingua principale
- Rust
- Stelle
- 179
- Fork
- 11
- Merge medio
- 43m
- PR unite (30g)
- 6
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Issue simili
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Top-right curve point in Color Grading cannot be dragged on macOS (scrollbar intercepts click)Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 69/100
storytold/filmcraft#5386 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement in-progress
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100