Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[BUG] Vulkan: driver name of a previous device is concatenated on multi-GPU systems

クローズ 初心者向け
#2,619 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
88/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
c
領域
cli

調査の方向性

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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

fastfetch-cli/fastfetch のほかの issue

fastfetch-cli/fastfetch の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。