[BUG] Vulkan: driver name of a previous device is concatenated on multi-GPU systems
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức phù hợp với người mới
- 88/100
Hướng nghiên cứu
Bắt đầu trong src/detection/vulkan/vulkan.c, đọc detectVulkan và applyDriverName cùng với chú thích hiện có về việc ghi đè. Tái hiện vấn đề bằng fastfetch -s vulkan --pipe -l none trên hệ thống có nhiều GPU, sau đó xác minh rằng tên driver được hiển thị chỉ là tên của thiết bị có phiên bản API cao nhất và không bị nối với tên của thiết bị trước đó.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
- 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)
- Ngôn ngữ chính
- C
- Star
- 24.7k
- Fork
- 895
- Merge trung bình
- 22 giờ 43 phút
- Pull request đã merge (30 ngày)
- 20
Chuẩn bị môi trường
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của fastfetch-cli/fastfetch
-
[LOGO] Updated FreeBSD logoĐang mởlogo request
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
fastfetch-cli/fastfetch#2607 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[LOGO] Add Vylen Linux logoĐang mởlogo request
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
fastfetch-cli/fastfetch#2590 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG] pkgsrc detection on macOSĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
fastfetch-cli/fastfetch#2587 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
logo request
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
fastfetch-cli/fastfetch#2568 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[LOGO] EnderOSĐang mởlogo request
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
fastfetch-cli/fastfetch#2556 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của fastfetch-cli/fastfetch
Issue tương tự
-
bug needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
netdata/netdata#24062 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
BasedHardware/omi#19463 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
EchoTools/nevr-runtime#30 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
riscv-software-src/riscv-isa-sim#2448 ·
Maintainer thường phản hồi trong vòng 2 ngày