GPU: the "shader does not translate" warning names where its value was made #1578
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!1578
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@ThomasSAMP on GitHub · 2026-11-24 19:26 UTC · original
ThomasSAMP:shader/runtime-refusal-origin→main· +315 −44 · 5 files · 2 commits · openDepends 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
@Marvisak on GitHub · 2026-11-25 01:31 UTC · original
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
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.