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

Aperta
#857 18 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cpp, python

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Python
Stelle
14.9k
Fork
1.2k
Merge medio
1h 58m
PR unite (30g)
40

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ItsNotRexed/Leonida

Tutte le issue di ItsNotRexed/Leonida

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.