[BUG] Vulkan: driver name of a previous device is concatenated on multi-GPU systems
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 1/5
- Tiempo estimado
- Menos de una hora
- Aptitud para principiantes
- 88/100
Línea de trabajo
Comienza en src/detection/vulkan/vulkan.c, leyendo detectVulkan y applyDriverName junto con el comentario existente sobre la sobrescritura. Reproduce el problema con fastfetch -s vulkan --pipe -l none en un sistema con varias GPU y, a continuación, verifica que el nombre del controlador mostrado sea únicamente el del dispositivo con la versión de API más alta y no esté concatenado con el nombre de un dispositivo anterior.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
- I have checked the FAQ but the issue is not covered
Description
On a system with two Vulkan devices, the Vulkan module prints the driver names of both devices glued together:
$ fastfetch -s vulkan --pipe -l none
Vulkan 1.4.354 - NVIDIA [615.71.09]radv [Mesa 26.2.2-arch1.1]
Expected: radv [Mesa 26.2.2-arch1.1], the driver of the device with the highest API version.
In detectVulkan (src/detection/vulkan/vulkan.c), the comment says the driver name should be overwritten whenever a device with a higher API version is found:
// If the device api version is higher than the current highest device api version, overwrite it
// In this case, also use the current device driver name as the shown driver name
However, applyDriverName only appends to result with ffStrbufAppendS and never clears it first. The NVIDIA device is enumerated first and sets the name. The RADV device comes second with a higher API version, and its name is appended to the NVIDIA one instead of replacing it.
As far as I can tell this has been the case since the Vulkan module was added. It only shows up when the device with the highest API version is not the first one enumerated.
A PR with the fix follows: it clears the buffer at the start of applyDriverName.
Version used: fastfetch 2.68.1 (Arch package); also reproduced on dev @ 9801d89 built from source
Bug prevalence: Always
Regression: No
Installation: Package manager
Package manager: pacman
System information
OS Arch Linux (rolling), kernel 6.18.52-1-lts, x86_64
GPU 1 AMD Raphael [Integrated] (Vulkan driver: radv, Mesa 26.2.2)
GPU 2 NVIDIA GeForce RTX 5060 [Discrete] (Vulkan driver: NVIDIA 615.71.09, nvidia-open)
- Lenguaje dominante
- C
- Estrellas
- 24.7k
- Forks
- 895
- Merge medio
- 22 h 43 min
- PR fusionados (30 d)
- 20
Preparar el entorno
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de fastfetch-cli/fastfetch
-
[LOGO] Updated FreeBSD logoAbiertologo request
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
fastfetch-cli/fastfetch#2607 ·
Los mantenedores suelen responder en 1 día
-
[LOGO] Add Vylen Linux logoAbiertologo request
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
fastfetch-cli/fastfetch#2590 ·
Los mantenedores suelen responder en 1 día
-
[BUG] pkgsrc detection on macOSAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
fastfetch-cli/fastfetch#2587 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
logo request
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
fastfetch-cli/fastfetch#2568 ·
Los mantenedores suelen responder en 1 día
-
[LOGO] EnderOSAbiertologo request
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
fastfetch-cli/fastfetch#2556 ·
Los mantenedores suelen responder en 1 día
Todos los issues de fastfetch-cli/fastfetch
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100
BasedHardware/omi#19711 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
microsoft/ebpf-for-windows#5604 ·
Los mantenedores suelen responder en 3 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
trezor/trezor-firmware#7985 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 1 día