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 df7b68f167
commit d7823e8a38
10 files changed
+2495 -16

No files matched your search

+2
View File
@@ -73,6 +73,8 @@ fn build() -> &'static [u8; 32] {
}
bytes.push(0);
}
// And which clean-up passes ran over the translated code.
bytes.extend_from_slice(&victory_shader::emit::shader_opt().to_le_bytes());
*blake3::hash(&bytes).as_bytes()
}
Err(e) => {