Merge fork main 8dd30ab: writes through one view of a page are seen at its other views

The fork's guard over every view of a physical page is kept on our own block
bits, known holes, kernel writes and changing blocks; what both had, ours.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
localandClaude Opus 5.5 committed 2026-11-25 00:38:57 -06:00
commit c45d109380
23 files changed
+4164 -221

No files matched your search

+27
View File
@@ -200,6 +200,33 @@ pub fn shader_opt() -> u32 {
*PASSES.get_or_init(|| parse_shader_opt(std::env::var("VICTORY_SHADER_OPT").ok().as_deref()))
}
/// Everything a translation depends on besides the container: the
/// translator's own source (hashed at build time), the value of every
/// `VICTORY_*` switch it reads, the host facts the device hands it (widest
/// wave, view heap limit) and the settings above. The shader cache keys on
/// this instead of on the whole executable, so a rebuild that leaves the
/// translator alone keeps its translations. Call it after the device is made.
pub fn translation_fingerprint() -> Vec<u8> {
let mut out = Vec::new();
out.extend_from_slice(env!("VICTORY_SHADER_SOURCE_HASH").as_bytes());
out.push(u8::from(cfg!(feature = "diagnostics")));
out.push(u8::from(cfg!(debug_assertions)));
for name in env!("VICTORY_SHADER_SWITCHES").split(',').filter(|n| !n.is_empty()) {
out.extend_from_slice(name.as_bytes());
out.push(b'=');
if let Some(value) = std::env::var_os(name) {
out.extend_from_slice(value.as_encoded_bytes());
}
out.push(0);
}
out.extend_from_slice(&lower::host_max_wave().to_le_bytes());
out.extend_from_slice(&shader::view_heap_limit().to_le_bytes());
out.extend_from_slice(&loop_limit().to_le_bytes());
out.push(group_sync());
out.extend_from_slice(&shader_opt().to_le_bytes());
out
}
/// `VICTORY_SHADER_OPT`'s value; every pass when it is unset or
/// unreadable. Pure, for testing.
fn parse_shader_opt(value: Option<&str>) -> u32 {