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:
1 parent
7b0f736d0b
commit
16849898f3
10 files changed
+2495
-16
No files matched your search
@@ -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) => {
|
||||
|
||||
Reference in new issue
Block a user