Launcher refuses vkd3d-proton next to a game under Proton, where it is the game's Direct3D 12

オープン
#50 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
cpp, linux
領域
backend

調査の方向性

Read the DXVK/vkd3d-proton rule in wg_core/coexist.cpp and the coexist-core-tests synthetic game fixture described in the issue. The proposed change is already implemented on a fork (commit 376ad4f), so first check whether that work is being submitted as a pull request before duplicating it. Done means tests expect Inform for vkd3d-proton under Wine and Refuse outside Wine, while DXVK remains refused.

索引モデルが issue の本文から書いたものです。

説明

area: launcher area: linux game-compatibility

What happens

The coexistence check refuses a game with vkd3d-proton (or DXVK) in its folder. That's right on Windows, where it would replace Windows' Direct3D 12.

Under Proton, vkd3d-proton is the game's Direct3D 12. Until a Proton release ships dxil-spirv PR #362, a self-built vkd3d-proton placed next to the game exe is the only way Model M and RR run on Linux. Proton loads d3d12/d3d12core as native, so the game picks those two DLLs from its folder. So today the launcher refuses exactly the setup Linux players need.

Suggested change (a policy choice, so yours to make)

Under Wine only, report vkd3d-proton next to the game as a note instead of a refusal. Keep refusing DXVK, and keep refusing vkd3d-proton on Windows.

// wg_core/coexist.cpp, in the DXVK / vkd3d-proton rule
if (!f.empty() && t == Tool::Vkd3d && UnderWine())
    add(t, Decision::Inform, wstring(ToolName(t)) + L" as " + f[0], f, fpOf(t)->evidence,
        L"Under Wine (Proton) vkd3d-proton is the game's Direct3D 12. Left alone; Model M needs a vkd3d-proton whose "
        L"dxil-spirv has pull request #362 (AMD's matrix instructions as WrongGPU uses them).");
else if (!f.empty())
    add(t, Decision::Refuse, ...);   // unchanged

How it was tested

  • coexist-core-tests with a synthetic game fixture: Game.exe plus a d3d12.dll that contains a vkd3d-proton marker string.
    • Under GE-Proton 11-11's Wine it expects Inform; outside Wine it expects Refuse.
    • The check failed with the Wine branch taken out.
  • A launcher install into a generated test game with vkd3d-proton next to it went through under proton run.
  • Not run on Windows.

The change with its tests is in PR #105: commit 1afe78b, which needs only 677af52 (UnderWine()).

Related: #10.

主要言語
C++
スター
12
フォーク
2
平均マージ
3時間 10分
マージ済み PR(30日)
171

環境構築

はじめの一歩

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

phantoslayer21/wronggpu のほかの issue

phantoslayer21/wronggpu の issue をすべて見る

似ている issue

C++ の issue をもっと見る

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

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