Repository navigation
Conversation
|
Independent CPU-only check of the offline translation change at I generated 23 synthetic containers with two compute code bodies. The base skipped 21 duplicates and emitted 2 shaders. The PR skips 6 duplicates, emits 14 shaders, and surfaces all 3 intentional truncated-signature errors that the base skipped. This covers changes to each of ISG1, OSG1, PSG1 and PSV0, plus exact repeats, part reordering, changes to an unrelated PRIV part, and distinct code. The short code hashes stayed stable. For each revision, one serial run and eight 8-worker runs produced the same multiset of emitted bytes. Both compute controls emitted byte-identical DXIL across revisions. The Linux harness includes the original translation and scanner modules with the Windows-only paths stubbed. It also passed the PR's new unit test. The untouched CLI passed Windows MSVC cross-target Verification assisted by Codex. |
Problem
victory translatecurrently deduplicates containers using only the DXIL part. Shader emission also reads the input, output and per-primitive signatures (ISG1,OSG1,PSG1) and pipeline validation info (PSV0). Two containers can share DXIL while requiring different emission or validation results. The scan currently skips the second container as a duplicate.Fix
Include the parts consumed by the emitter in the deduplication key. Exact repeats and containers that only differ in unrelated parts still share one translation. The short code hash displayed in diagnostic output stays the same.
Validation
cargo test --locked -p victoryandgit diff --checkpassed.AI-assisted change. Validation used synthetic containers without game files.