Port NVIDIA Wave32 lowering, smooth movie-plane uploads, XMA audio fixes, and 32GB RAM residency budgets

This commit is contained in:
codec_d committed 2026-11-25 15:31:19 -08:00
1 parent 45e90f4de8
commit 3bcc96f9bb
11 files changed
+463 -110

No files matched your search

@@ -201,6 +201,7 @@ pub(super) fn copied_read(copies: &[Writer], runs: &[&HostList]) -> bool {
.iter()
.any(|w| w.from < *at + *len && *at < w.to && w.shadow.as_ref().is_none_or(|s| !Arc::ptr_eq(s, shadow))),
Step::Host(_, (from, to)) => copies.iter().any(|w| w.from < *to && *from < w.to),
Step::Plane((at, len), _) => copies.iter().any(|w| w.from < at.saturating_add(*len) && *at < w.to),
_ => false,
})
})
@@ -440,6 +441,11 @@ fn does_of(written: &[(usize, usize)], runs: &[&HostList]) -> (Vec<Does>, Vec<(u
asked: touches(written, at, at + len),
}
}
&Step::Plane((at, len), _) => Does::Read {
from: at,
to: at.saturating_add(len),
asked: touches(written, at, at.saturating_add(len)),
},
&Step::Host(_, (from, to)) if from < to => Does::Read { from, to, asked: false },
Step::Refresh(shadow, at, len) => Does::Refresh {
shadow: Arc::as_ptr(shadow) as usize,
+1
View File
@@ -119,6 +119,7 @@ pub(super) fn read_by(runs: &[&HostList], mut ranges: Vec<(usize, usize)>) -> bo
let (at, len) = staging.memory();
touches(&ranges, at, at + len)
}
&Step::Plane((at, len), _) => touches(&ranges, at, at.saturating_add(len)),
Step::Host(_, (from, to)) => touches(&ranges, *from, *to),
Step::Placed(p) => p.from.is_some() && touches(&ranges, p.src, p.src + p.len),
_ => false,