Shader clean-up passes; a test that needs a card skips without one

- Clean-up passes over each translated module (VICTORY_SHADER_OPT bits: dead
  code, folding, reuse, branch facts, loads within a block, wave64 first-lane
  exchange), part of the shader cache key. About 43 % fewer host instructions
  over the pack; about 20 ms less GPU time per frame on the test machine.
- translate: a census of the emitted code.
- Checked with plain game runs of this tree on the test machine.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
fxcelessandClaude Fable 5.2 committed 2026-11-24 15:13:27 -05:00
1 parent 7b0f736d0b
commit 16849898f3
10 files changed
+2495 -16

No files matched your search

@@ -251,6 +251,11 @@ fn run_cases_on(
}
ran += 1;
}
if ran == 0 && devices.iter().all(|&(_, warp)| !warp) {
// A case for the hardware adapter alone, on a machine without one.
eprintln!("no SM 6.6 hardware device; a hardware-only case not run");
return;
}
assert!(ran > 0, "no SM 6.6 device available ({devices:?})");
}