Train Sim World® 7 (4678800)
まだ誰も着手していません。
- #10322 @londospark による — マージされずにクローズ
評価
調査の方向性
Read the D3D12 texture translation path in vrclient_translate_texture_d3d12() and compare its existing format cases with the BGRA8 UNORM formats described here. The issue says these formats map to Vulkan BGRA8 UNORM and SRGB; verify the mapping against the existing R8G8B8A8 cases and the linked pull request. Done means both BGRA8 cases are handled and D3D12 submission no longer reaches the native client untranslated.
索引モデルが issue の本文から書いたものです。
説明
vrclient_translate_texture_d3d12() has no mapping for DXGI_FORMAT_B8G8R8A8_UNORM (0x57). A D3D12 app that submits a BGRA8 UNORM eye texture through IVRCompositor::Submit gets the untranslated D3D12 texture passed on to the native client, which faults, and the process dies on an assertion in vrclient_main.c.
This is the UNORM sibling of #8338 (0x5a, B8G8R8A8_TYPELESS), which ab78280b fixed by mapping only the TYPELESS format.
Proton version: Proton Experimental experimental-11.0-20261014
Game: Train Sim World 7 (4678800), with UEVR nightly 01143 injected, -dx12 (vkd3d-proton), OpenVR runtime, SteamVR build 25998080
System: RTX 5080, NVIDIA 615.78.08 (open kernel module), kernel 7.2.8, Arch
Symptoms
The first VR frame crashes with a Wine assertion dialog:
Assertion failed!
Program: S:\steamapps\common\Train Sim World 7\WindowsNoEditor\TS2Prototype\Binaries\Win64\TrainSimWorld.exe
File: ../src-vrclient/vrclient_main.c
Line: 747
Expression: "!status"
UEVR logs that its eye render target is width: 2644, height: 2644, format: 87 (DXGI_FORMAT_B8G8R8A8_UNORM).
Proton log (PROTON_LOG=1), around the crash
err:vrclient:vrclient_translate_texture_d3d12 Unsupported DXGI format 0x57.
trace:seh:handle_syscall_fault code=c0000005 flags=0 addr=0x7f9d02da2b8f ...
warn:seh:handle_syscall_fault backtrace: --- Exception 0xc0000005 at 0x7f9d02da2b8f: .../lib/wine/x86_64-unix/winevulkan.so ...
err:vulkan:vkCreateCommandPool Exception 0xc0000005 in Unix call.
warn:seh:handle_syscall_fault backtrace: --- Exception 0xc0000005 at 0x7f9a6a7f9fc4: .../lib/wine/x86_64-unix/vrclient_x64.so + 0x3dfc4.
err:msvcrt:_wassert (L"!status",L"../src-vrclient/vrclient_main.c",747)
Cause
The switch in vrclient_translate_texture_d3d12() only knows R8G8B8A8_UNORM_SRGB, R8G8B8A8_UNORM and B8G8R8A8_TYPELESS. Anything else hits default:, which logs the error and returns *texture unchanged, so a TextureType_DirectX12 handle reaches the native vrclient, and that crashes.
B8G8R8A8_UNORM and B8G8R8A8_UNORM_SRGB map directly to VK_FORMAT_B8G8R8A8_UNORM and VK_FORMAT_B8G8R8A8_SRGB, like the R8G8B8A8 pair. I'll open a PR that adds those two cases.
Workaround
Submitting through OpenXR instead (UEVR's OpenXR runtime) avoids this path, because wineopenxr already handles the B8G8R8A8 formats. D3D11 (-dx11, DXVK) through OpenVR is also unaffected.
- 主要言語
- C++
- スター
- 33.4k
- フォーク
- 1.8k
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ValveSoftware/Proton のほかの issue
-
Mixed-case DriverStore/FileRepository path for igdext64.dll duplicates Wine's driverstore folder and breaks Steam's "Move install folder"対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ValveSoftware/Proton#10270 · コメント 1 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
ValveSoftware/Proton#10167 ·
-
Game compatibility - Unofficial
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
ValveSoftware/Proton#10105 · リアクション 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
ValveSoftware/Proton#10098 · リアクション 2 件 ·
-
Game compatibility - Unofficial
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
ValveSoftware/Proton#9612 ·
ValveSoftware/Proton の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
deepseek-ai/DeepGEMM#529 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
compiler-explorer/compiler-explorer#9710 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ucb-bar/libgemmini#10 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
`test_controlled_TermSequenceBox_logging` and `test_symbolic_ops` fail when another test runs firstオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Quantinuum/tket#2282 ·
メンテナーはふだん 1 日以内に返信