Repository navigation
make_game pipelines: skip every module that crashes AMD's RDNA1/RDNA2 driver (in-flight report on driver entry, no fixed retry cap) - #6934
Conversation
…ters the driver The report was written right away only for modules over --large-module-bytes; smaller ones waited for the 5 s watchdog. On AMD's RDNA1/RDNA2 Windows driver (32.0.21045.29003) the ped pixel shaders of ItsNotRexed#857/ItsNotRexed#3746 crash it within a second, so the report stayed empty and make_game.py's pipelines stage stopped with "no module could be named as the cause" instead of skipping them. Writing the snapshot on every entry names them (checked on an RX 6900 XT, alone and with 8 threads). AI-assisted (Claude Code). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… alone Each restart skips at least one more module confirmed to crash alone, so a range can never loop; the fixed limit of 5 only stopped the stage when one batch held more crashers than that. On AMD's RDNA2 Windows driver a batch of 500 holds about 37 ped pixel shaders that crash it (ItsNotRexed#857), and the stage ended with "still crashed after 5 retries". The limit is now the larger of 5 and the range's size. AI-assisted (Claude Code). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…, and a range restarts once per crashing module AI-assisted (Claude Code). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
shayderrr
left a comment
There was a problem hiding this comment.
Summary
runtime/test/vk_pipeline_check.cpp now rewrites the --inflight-file snapshot on every module entry into the driver (module creation and each pipeline path), removing the if (isolated) guard that named only large modules. make_game.py pipelines() computes retries = max(PIPELINE_CRASH_RETRIES, count or 0), so a range restarts once per crasher. tests/test_make_game_pipelines.py replaces the fixed-retry test with a 12-crashers-in-20 case; docs/pipeline_check.md updated.
Why merge
Lets pipeline generation get past AMD RDNA1/RDNA2 driver crashes on small ped pixel shaders that previously died before the 5 s watchdog named them.
Verdict: Approve
Summary
Why mergeLets pipeline generation get past AMD RDNA1/RDNA2 driver crashes on small ped pixel shaders that previously died before the 5 s watchdog named them. Verdict: Approve |
For #857 / #3746. The pipelines stage's skip-on-crash recovery couldn't get past AMD's RDNA1/RDNA2 Windows driver crash (
amdvlk64.dll+0x7e4316on the game's ped pixel shaders). It stopped in two ways, both seen on an RX 6900 XT (gfx1030, AMD 26.11.2 / 32.0.21045.29003, Windows 11) withmake_game.py --stages pipelines. AI-assisted (Claude Code).What and why
vk_pipeline_checkrewrote--inflight-fileright away only for modules over--large-module-bytes(4 MiB). Smaller ones were named only by the 5 s watchdog. The ped shaders are 0.35-1.35 MiB and crash the driver in under a second, so the report stayed empty. The probe then had nothing to confirm, and the stage stopped. Checked directly:vk_pipeline_check <spirv> <cache> --jobs 1 --start N --count 1 --inflight-file Fon$PS_PedAlphaPrepass_2c8dfe7e_Wrappedexits 0xC0000005 with no report; with--large-module-bytes 1the report names it.PIPELINE_CRASH_RETRIES(about 37PS_PedAlphaPrepass*variants in one batch). Each restart skips at least one more module that crashed alone, so a range can't loop. The fixed limit only cut the stage short.Changes
runtime/test/vk_pipeline_check.cpp: the in-flight snapshot is written every time a module enters the driver (module creation and each pipeline path), not only for large modules. The header comment says so.make_game.py: a range may restartmax(PIPELINE_CRASH_RETRIES, count)times.tests/test_make_game_pipelines.py:test_more_crashers_than_retries_in_one_range_are_all_skipped(12 crashers in one range of 20, all skipped, one checker pass each). It fails onmain.test_the_retries_stopis removed: its premise, a cap of 5 on distinct confirmed crashers, is what this changes.docs/pipeline_check.md: the crash-recovery section.Tested
RX 6900 XT, AMD driver 26.11.2, Windows 11, MSVC Build Tools 2022:
--jobs 1 --count 1) and in a batch of 40 on 8 threads:main's checker leaves no report in either case. This branch's checker names the crasher (and the other modules in flight).PS_PedTextured_Eight_Alpha72,PS_StudioPedTextured_Eight72,PS_PedAlphaPrepass68,PS_PedAlphaPrepass_Decals68,PS_PedAlphaTransmission12), and kept checking through index 9,117 of 26,503 (up to 37 crashers in one batch of 500). It then stopped because the PC bluescreened under the load (0x154, also a0x0Aon an earlier run on this driver; 16 GB RAM), so this is a partial run. Before this change the same stage stopped at the first crasher, index 2,052, with "no module could be named", and after the in-flight fix alone at the first dense batch with "still crashed after 5 retries".tests/test_make_game_pipelines.py(13),tests/test_make_game_pipeline_batches.py,tests/test_vk_pipeline_check_index.py, alltests/test_make_game_*.py,tests/test_docs_*.py,compileall: OK.#5255 (
--module-timeout) touches the samemake_game.pyfunction; the two conflict textually but not in purpose.No game data, keys or decryption.
🤖 Generated with Claude Code