GPU: the "shader does not translate" warning names where its value was made #1577
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1578"
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 Marvisak/VIctory. Originally posted by ThomasSAMP on 2026-11-24T19:26:17Z.
Depends on: #1425 (this branch is stacked on it; the diff to review is the last commit,
8631598).What
When the runtime cannot translate a shader, it logs it once with
shader does not translate; its pipelines' draws are dropped ... error=, and testers rank dropped draws from that line (#293, #1317). For a refusal that comes from a missing value, the error names only the instruction that needed the value. #1425 found the instruction that made it, but only forvictory translate. This brings that origin to the runtime:emit::translate_tracedreturns aRefusal(from #1425) instead of aShaderError.Refusalnow implementsDisplay: the error, then(made by <instruction> at <offset>)when there is an origin.shader_cache::host_shadertranslates through it, so the warning reads, for example,... a cross-lane operation outside compute is not supported (made by v_writelane_b32 at 0x52c).emit::translate,ShaderErrorand the shader cache's encoding are unchanged. Translation errors are not stored in the cache, so no cache entry changes.Tests
emit::tests::a_refusal_says_where_its_missing_value_was_made. A synthetic compute program reads ans_memtimetimestamp and branches on it. It goes throughemit_traced, and the test checks that the origin iss_memtime at 0x0, that the refusal is at the branch (0xc), and that the text is the error followed by(made by s_memtime at 0x0). It also checks that without an origin the text is the error's own. Like #604's test, it tolerates timestamps lowering one day.cargo clippy --workspace --all-targets --locked -- -D warnings, with and without--all-features: clean.cargo test --workspace --locked: 345 passed, 0 failed, 6 ignored.cargo xtask policy: 154 files ok.git diff --check: clean.frame::tests::waits_end_on_ticks_and_count_framesfailed consistently while the machine was fully loaded (a CPU-bound job on every core: ticks[10, 12, 13, 14]). It passed once the load was gone. It counts real 5 ms ticks, so it looks timing-sensitive rather than broken.No game data in the diff or the tests.
AI-assisted: written with Claude Code (Claude Opus 5.5) and reviewed by me.
🤖 Generated with Claude Code
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T01:31:22Z.
Automated triage for the maintainers.
Needs rebase. This pull request conflicts with
main(conflicting:crates/victory-gpu/src/shader_cache.rs,crates/victory-shader/src/emit/lower.rs,crates/victory-shader/src/emit/mod.rs). It will be reviewed once it is rebased onto the currentmain.Generated by Claude Code
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.