[BUG] Vulkan: driver name of a previous device is concatenated on multi-GPU systems
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
src/detection/vulkan/vulkan.c から始め、既存の上書きに関するコメントとともに detectVulkan と applyDriverName を読みます。複数の GPU があるシステムで fastfetch -s vulkan --pipe -l none を使って再現し、表示されるドライバー名が API バージョンが最も高いデバイスのものだけであり、以前のデバイス名と連結されていないことを確認します。
索引モデルが issue の本文から書いたものです。
説明
- 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)
- 主要言語
- C
- スター
- 24.7k
- フォーク
- 895
- 平均マージ
- 22時間 43分
- マージ済み PR(30日)
- 20
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
fastfetch-cli/fastfetch のほかの issue
-
logo request
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
fastfetch-cli/fastfetch#2607 ·
メンテナーはふだん 1 日以内に返信
-
logo request
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
fastfetch-cli/fastfetch#2590 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
fastfetch-cli/fastfetch#2587 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
logo request
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
fastfetch-cli/fastfetch#2568 ·
メンテナーはふだん 1 日以内に返信
-
[LOGO] EnderOSオープンlogo request
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
fastfetch-cli/fastfetch#2556 ·
メンテナーはふだん 1 日以内に返信
fastfetch-cli/fastfetch の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
BasedHardware/omi#19711 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
microsoft/ebpf-for-windows#5604 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
trezor/trezor-firmware#7985 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 2 日以内に返信