Repository navigation
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
A red/green and the full suite on a card, since the description has neither. Windows 11, MSVC toolchain 1.98.1. Head
A note on Not checked: the game, and AMD hardware. GPUs tested: one NVIDIA desktop card. AI-assisted: yes (Claude Code). |
Claimed in the coordination issue as: D3D12-SHADER-DETERMINISTIC-EMIT (the claim of the original author, #2570 (comment))
What and why
Carry of #2872 (kirigayakazima), in conflict with
mainsince both sides appended a test at the end of the same module ind3d12/crates/leonida-shader/src/emit/bitcode/opt.rs. This branch ismainmerged with the head of #2872, so the author's commit is kept. My only change is the merge: both tests stay.The change itself is #2872's:
chains()builds its per-block plans intree.orderinstead of iterating aHashMap, and the loop counters inlower.rsuse aBTreeMap, so the emitted instruction IDs no longer depend on the run (chains_emits_deterministic_instruction_ids_across_blockspins it).Tested
Windows 11, no GPU, no game files, on current
mainplus this branch:cargo test -p leonida-shader --lib: 421 passed, 0 failed, 5 ignored.cargo clippy --locked -p leonida-shader -- -D warnings: clean.GPUs tested: n/a (translator unit tests only)
AI-assisted: yes (Claude Code)
Checklist
mainand merges cleanly.docs/design.md. (n/a: no new rule, an ordering fix)Supersedes #2872 once merged; the original stays open until a maintainer decides.
AI-assisted (Claude Code)
🤖 Generated with Claude Code