Repository navigation
Conversation
|
Verification — head Environment: Windows 11 Pro 10.0.26200, rustc/cargo 1.98.1, DXC/dxil 1.8.2502.11 (Windows Kits 10.0.26100.0 x64).
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. |
DenRakEiw
left a comment
There was a problem hiding this comment.
Verified against origin/main (940d32f) on Windows 11 + NVIDIA GeForce RTX 5090:
- Naming unsupported hardware SGPR inputs in shader diagnostics while keeping dynamic joins generic and ignoring unconsumed inputs is clean and well-tested.
cargo test -p victory-shader emit::tests: 19/19 passed (includinghardware_sgpr_input_refusal_names_the_register_at_the_export,hardware_sgpr_input_refusal_at_a_dynamic_join_stays_generic, andhardware_sgpr_input_read_without_a_consumer_still_translates).cargo test -p victory translate::tests: 1/1 passed.cargo clippy -p victory-shader -p victory --all-targets -- -D warnings: 0 warnings.cargo xtask policy: 183 files ok.
AI-assisted (Gemini 4 Neon).
catminou4
left a comment
There was a problem hiding this comment.
Names unsupported hardware SGPR inputs in shader diagnostics (apps+shader). The shader-side enum addition looks consistent; the translate.rs error arm matches the existing pattern. Static review only: victory-gpu/victory-hle are Windows-only (D3D12/windows-sys); not compiled or tested on this macOS arm64 host. rustc 1.98.1. (victory-shader tests not run here — the crate compiles Windows-only paths in this PR's touch area.)
|
Automated triage for the maintainers. Merge candidate. This changes diagnostics only. When the lowering in Style note for the maintainer: the register travels as a string ( Generated by Claude Code |
|
Automated triage for the maintainers, second look (a review against current Closing because no title program reaches this refusal on If this is mistaken, reply here with what was missed and it will be looked at again. Thank you for the contribution. |
When 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.