AMD Windows driver crashes creating lds_fuzz wave64 programs translated with --wave64-emulate

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

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
cpp, python

調査の方向性

Start by reproducing with tools/lds_fuzz.py --programs 1 --seed 1 --wave 64 --emulate, then run runtime/build/vk_pipeline_check.exe on the generated spirv directory to confirm the crash during compute pipeline creation. Compare the emulated and native wave64 SPIR-V for the ds_* LDS operations, and minimise which op triggers the access violation. Done means either a translator change that avoids the crash on the AMD driver with the output still matching, or a clear finding that it is a driver bug.

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

説明

On an AMD RDNA2 iGPU under the AMD Windows driver, vk_compute_test and vk_pipeline_check crash with an access violation (exit 0xC0000005) for most wave64 lds_fuzz.py programs translated with --wave64-emulate. Found while running TEST-71; counts in #166.

Setup: AMD Radeon(TM) Graphics, Ryzen 7 9800X3D iGPU (RDNA2, PCI 1002:13C0), AMD proprietary driver 2026.04.17 (32.0.21042.62), Vulkan 1.4.315, subgroup 32..64. Windows 11 Home 10.0.26300. Main dedd75c, MSVC 14.44, llvm-mc 21.1.8, Vulkan SDK 1.4.363.0. VK_LOADER_DRIVERS_SELECT=*amd*, VK_LOADER_LAYERS_DISABLE=~implicit~.

Repro (no game files):

python -I tools/lds_fuzz.py --programs 1 --seed 1 --wave 64 --emulate --work <dir>
runtime\build\vk_pipeline_check.exe <dir>\spirv

Both crash every time (vk_pipeline_check stops after "checking 1 shaders", exit -1073741819), so the crash is in compute pipeline creation, inside the driver, before any dispatch.

What I checked:

  • Seed 1, 100 programs: 58 of the 100 emulated wave64 programs crash; the other 42 run and match. Programs 0, 1 and 2 crash on every rerun.
  • The same programs pass on the same GPU without --emulate (native wave64), and pass with --emulate on an RTX 5070 (617.42).
  • The crashing SPIR-V passes spirv-val --target-env vulkan1.3. Program 0 uses only Shader, Int64 and PhysicalStorageBufferAddresses, LocalSize 64 1 1; its ds ops are ds_cmpst_rtn_b32, ds_max_rtn_i32, ds_read_b32, ds_read_i8_d16_hi, ds_read2st64_b32, ds_sub_rtn_u32, ds_swizzle_b32, ds_write_b32, ds_write2_b32, ds_wrxchg_rtn_b32.
  • valu_fuzz.py --emulate (f16 and mem) runs fine on this GPU, 200/200 each, so it looks specific to the LDS emulation path.

Not checked: other AMD Windows driver versions, a discrete RDNA2 card, or which op triggers it (I haven't minimised the program). Possibly a driver compiler bug, but the translator might be able to avoid it.

AI-assisted: found and written up with Claude Code. Synthetic programs only, no game data.

主要言語
Python
スター
14.9k
フォーク
1.2k
平均マージ
1時間 58分
マージ済み PR(30日)
40

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

ItsNotRexed/Leonida のほかの issue

ItsNotRexed/Leonida の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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