Diagnostics: find, reproduce and skip pipelines the host's compiler c… #1972
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!1972
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1972"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@J-DB0 on GitHub · 2026-11-25 02:01 UTC · original
J-DB0:prebuild-compiler-crashes→main· +73 −6 · 5 files · 1 commits · openThe problem
On an AMD RX 9070 XT (RDNA 4), 61 of the shader pack's compute pipelines crash AMD's shader compiler when they are made: the process ends with
0xC0000005inamdxc64.dllat+0x85fd0f(driver 32.0.32015.7029). Updating to Adrenalin 26.11.2 (32.0.32029.2010) does not change it: all 61 still crash.So
translate --cache --pipelinesdies at the first of them and the warm-up never finishes, and a run would die the same way making one.They are the
CS_RaytracingResolveprograms of theped_standardmaterials: every*_muv*material in all three variants (b1139868, ae7b7f3c, f21e9178), plusgarment_2lyr(b1139868, ae7b7f3c),skin(b1139868) andskin_tattoo_bake(b1139868). Their neighbours in the pack make fine. In the pack they are compute records 805, 806, 834-842, 846-893, 897 and 900.The 61 shader hashes
What this changes (diagnostics builds)
VICTORY_PREBUILD_TRACE=1: the pre-build prints each pipeline's shader hashes before making it, so the pipeline being made when the compiler crashes is printed last (alone with--jobs 1).VICTORY_SKIP_PIPELINESnow holds for the pre-build too: a pipeline containing a listed shader is not made, where before only its draws and dispatches were left out.VICTORY_TRANSLATE_ONLY=<hash>,...:translatetakes only the listed containers and labels them with their hash. With--pipelinesa crash reproduces in seconds; with--listandVICTORY_EMIT_DUMPtheir DXIL is saved before the pipeline is made.The README's diagnostics table documents all three.
Results
VICTORY_SKIP_PIPELINES, the pre-build completes (28,164 in the pack: 21,880 made, 5,117 already in the library) and the world of the first mission runs (about 0.77 s per frame, with the defects the README describes).VICTORY_TRANSLATE_ONLYand--pipelines, each of the 61 crashes the compiler on its own, in a process of its own; neighbours make fine.Not the validation errors
On current
main,translate --validate(dxil.dll 10.0.26100) rejects all 61, and 11 of 22 neighbours that make fine, with "Function uses features incompatible with the shader stage (cs)" (implicit-derivative samples in compute at validator 1.6). I tried both open fixes for that on this GPU:mainmain+ #1237 (gradients from the quad)main+ #1065 (validator 1.8)The two fix rows were run with driver 32.0.32015.7029;
maincrashes the same with both drivers.Both fix the validation; neither stops the crash, so the compiler fault is something else in these programs.
Checks
cargo clippy --workspace --all-targets --all-features --locked -- -D warningsis clean. Tested on Windows 11, Core i5-14600KF, RX 9070 XT.@DesertGamer on GitHub · 2026-11-25 02:19 UTC · original
VIctory V2: community PRs, merged and tested
Open PRs sitting in the queue? V2 pulls them into one build, screens each one (binaries, build scripts, hooks, new deps) and runs tests after every batch.
Where it stands today: launches, runs the menu at 30 fps, plays the intro video, reaches the start screen and loads the world (~50 s). Entering the world is the current blocker: rendering fails with a GPU "device removed" error (tracked in issue #1).
⚠️ Entering the world on a real GPU can hang it and make Windows reset the driver. Try it at your own risk.
Not playable yet, but every batch of merged fixes moves it closer. If you have a PR that's stuck, or a GPU to test on, I'd love your help:
https://DesertGamer/VIctory-V2
Unofficial community fork of Marvisak/VIctory, GPL-3.0.
@BaggyALPHA on GitHub · 2026-11-25 06:10 UTC · original
Pointer in case it helps, since your blocker is that creation itself kills the process:
VICTORY_SKIP_PIPELINESon currentmaindoes not prevent a pipeline from being made — I measured this today on an RTX 3080, where a skipped program is still translated and still created and only its draws and dispatches are dropped. So onmainthe switch cannot gettranslate --cache --pipelinespast a pipeline whose creation crashes the compiler.#1320 is the open pull request that moves the skip to creation time, and I verified on the same card that with it the program is never translated and never made (results). It needs a rebase onto
940d32fplus one fix for three call sitesmainhas since added; the resolution is in that comment. With it your 61 hashes should be skippable in one go rather than one crash at a time.AI-assisted (Claude Code); the measurement is from the runs described in the linked comment.
@Marvisak on GitHub · 2026-11-25 08:26 UTC · original · edited 2026-11-25 22:19 UTC
Automated triage for the maintainers.
Needs rebase. This PR no longer merges cleanly into
main(conflicts inREADME.mdandcrates/victory-gpu/src/pipeline.rs). It will be reviewed again once it is rebased.From the earlier needs-work note, still open: drop the creation-time
VICTORY_SKIP_PIPELINEScheck (skip_making) that overlaps #1320, keeping the trace and translate-only switches.Generated by Claude Code
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.