victory warm: each pipeline without a host pipeline is told, with why (#1881) #1923
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1923"
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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by kibagami-nc on 2026-11-29T02:51:54Z.
Rebased on main (
cec481f4). Main's new pieces are kept:fill_library's own use ofknown::makecounts a made pipeline when no reason comes back.Shader.mirror: kept beside the changedtranslatedfield.victory warmends withN made in X s (27 have no host pipeline, …). Its processes' stderr goes to null, so that count says how many have no host pipeline but not which, or why. In #1881 a user took the 27 for an error, and @Jesper-Andersson asked for the key and the reason of each.Now each one is told when its process reports it, the way one that ended its process already is:
Change
known::makenow reports why there is no host pipeline, instead of whether there is one. The reason is one of:refusedwith its shaders;Shaderkeeps the translator's error beside the translation (translated: OnceLock<Result<Translated, String>>, read throughShader::refusal).translated()is unchanged for its callers. The diagnostics'make::missingreads the error throughrefusaltoo.made <n> <ms> 0 <why>, and the parent takes the rest of the line.Nothing changes in what is made, kept or counted.
Tests
why_a_pipeline_has_none_names_the_shader_and_the_reason(known.rs):refused [vertex …, pixel …];cargo test -p victory-gpu --locked --lib: 914 passed, the new test among them. Two others fail on main itself:every_switch_of_the_translator_is_in_the_key(VICTORY_SCALAR_SPLITSis no longer read by the translator) andrecords_copied_as_bytes_are_made_at_the_next_sync, which passes when run again.pipeline/host.rsbuilds aShaderby hand; it now setsOk(Translated).cargo test -p victory --locked: 79, 1 and 2 passed.cargo clippy -p victory-gpu -p victory --all-targets: nothing in the changed lines.Not tried here on a full
victory warmrun. The new protocol runs between a parent and a child of the same executable.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by tyr0nsur on 2026-12-01T13:30:02Z.
Code review location:
crates/victory-gpu/src/pipeline/known.rs; line 364#4896 is a concrete case for this branch. Its two preload logs contain the same 227 mesh and 17 graphics shader keys refused with
0x8007000E. Its laterwarm --usedlogs only show the aggregate failures. This fallback would identify the entries asrefused, but would still leave the failing D3D12 stage and HRESULT in the worker's discarded stderr.Could the summary preserve the stage and HRESULT when host creation reports them? The generic fallback still makes sense when there is no D3D12 error. A smaller alternative is to point users to
VICTORY_LOG_FILEwithVICTORY_LOG_SYNC=1for driver details. I verified that both parent and child log to that file in a synthetic Windows test with the same stderr and stdout setup.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.