Name unsupported hardware SGPR inputs in shader diagnostics #2440
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!2440
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2440/head"
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?
@DoubleD17 on GitHub · 2026-11-25 13:33 UTC · original
DoubleD17:port/fxceless-941→main· +129 −6 · 5 files · 1 commits · closed without mergingWhen the original translator rejects a hardware SGPR input, the diagnostic omits the register. Report the register when attribution is clear, keep the consumer offset and failure category, and keep the generic message at ambiguous joins. The adaptation preserves the original's pixel SGPR initialization and primitive-ordered pixel shading rules. Synthetic CPU tests on Windows x64 with Rust 1.98.1 MSVC passed 3 of 3 on
46dd398, covering s5 and s7 at the same consumer, both input orders at a dynamic join, and identical DXIL for the dead-read control. The existing POPS control passed, preserving rasterizer-ordered output and identifying s10 in the refusal outside ordered mode. The diagnostics CLI compiled and its grouping was checked by code review. The tests cover host diagnostics and synthetic translation. Adapted from fxceless/victory-fork #941.AI-assisted.
@oni-swr on GitHub · 2026-11-25 13:50 UTC · original
Verification — head
46dd398ff87600aa66a1b103a6ce4ba611bd872fEnvironment: Windows 11 Pro 10.0.26200, rustc/cargo 1.98.1, DXC/dxil 1.8.2502.11 (Windows Kits 10.0.26100.0 x64).
origin/main=940d32f69b22265690a0b5a15d6ded572ba33baf; the PR is one commit set on top of it (merge-base = main), so the exact head was tested with no merge needed.cargo test -p victory-shader --lib: 250 passed, 0 failed, 3 ignored. New testshardware_sgpr_input_refusal_names_the_register_at_the_export(s5/s7 named),..._at_a_dynamic_join_stays_genericand..._read_without_a_consumer_still_translatesall ran and passed.cargo clippy -p victory-shader -p victory --all-targets -- -D warnings: clean.cargo xtask policy: ok.emit::valu_testsetc.) iterate over a hardware adapter and WARP and ignoreVICTORY_D3D12_WARP, so this run was not WARP-only; they passed on both.emit/lower.rslike #2438 but in different hunks.Read the full diff first: no process, network or filesystem code beyond what the PR describes; no game data, dumps, shader names or retail hashes involved.
Verified by Claude Code (Claude Sonnet 5.5), an AI assistant; this is a test report, not a code review or approval.
@Marvisak on GitHub · 2026-11-25 16:01 UTC · original
Automated triage for the maintainers.
Merge candidate. This changes diagnostics only. When the lowering in
crates/victory-shader/src/emit/lower.rsrefuses a program for reading an SGPR the host has no value for, the error now names the register (newShaderError::UnsupportedHardwareSgprInput). At a join of two such inputs it stays the generic "a hardware SGPR input".victory translatekeeps grouping these under the same reason, with the register added to the example. I checked that only theemitstage can produce the new variant, so the otherShaderError::Unsupportedarms inapps/victory/src/translate.rsare unaffected, and that the POPS collision-id test insynthetic_tests.rsstill covers the ordered/unordered split. CI (check) passes.Style note for the maintainer: the register travels as a string (
"hardware SGPR input s<n>") throughVal::Missingand is parsed back inunsupportedwith anexpect. That works, but a typed reason would be cleaner if the maintainer prefers it. This is a recommendation to look, not an approval.Generated by Claude Code
@Marvisak on GitHub · 2026-11-25 22:09 UTC · original
Automated triage for the maintainers, second look (a review against current
main, with builds and tests where they could change the verdict).Closing because no title program reaches this refusal on
main(hardware SGPR inputs already read as defined values there), so the message it improves is never shown. It also adds a public error variant and a string round trip that panics on a malformed reason.If this is mistaken, reply here with what was missed and it will be looked at again. Thank you for the contribution.
Pull request closed