Merge fork main c96b4f2

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
localandClaude Opus 5.5 committed 2026-11-24 19:56:57 -06:00
commit d9a31188be
8 files changed
+755 -74

No files matched your search

+30 -3
View File
@@ -1853,7 +1853,10 @@ pub(crate) fn relay() -> bool {
/// both wait for everything.
fn relay_exact() -> bool {
static ON: OnceLock<bool> = OnceLock::new();
*ON.get_or_init(|| relay() && std::env::var_os("VICTORY_RELAY").is_some_and(|v| v == "2"))
// Stage 2 unless `VICTORY_RELAY=1` asks for the first one (the default
// since the walls of the first room were found drawn in every run with
// this set and in fewer than half without it).
*ON.get_or_init(|| relay() && std::env::var_os("VICTORY_RELAY").is_none_or(|v| v == "2"))
}
/// Whether the pieces the relay fetches from the card's memory come over the
@@ -1964,7 +1967,10 @@ mod relay_tests {
}
/// The most host lists in the air before the flights are settled
/// (`VICTORY_LATE_WAIT_LISTS`, 128; 32 settled the flights three times a
/// (`VICTORY_LATE_WAIT_LISTS`, 256; `=128` is the value before: with the
/// relay it stopped the submitting thread twice a frame for 92-103 ms in
/// all while the card stood idle 64-113 ms a frame, runs 158, 159 and 162;
/// 32 settled the flights three times a
/// frame in run 92 and 64 still 1.3-1.7 times in run 99, with 12,919 tables
/// asked and none refused; watch "tables asked, N refused"): their dynamic
/// descriptor slots, upload
@@ -1973,7 +1979,7 @@ mod relay_tests {
fn late_most() -> usize {
static MOST: OnceLock<usize> = OnceLock::new();
*MOST.get_or_init(|| {
std::env::var("VICTORY_LATE_WAIT_LISTS").ok().and_then(|v| v.trim().parse().ok()).unwrap_or(128).max(1)
std::env::var("VICTORY_LATE_WAIT_LISTS").ok().and_then(|v| v.trim().parse().ok()).unwrap_or(256).max(1)
})
}
@@ -2944,6 +2950,27 @@ impl Host {
})
}
/// Whether the host GPU supports the depth bounds test; logged once.
pub(crate) fn depth_bounds(&self) -> bool {
static BOUNDS: OnceLock<bool> = OnceLock::new();
*BOUNDS.get_or_init(|| {
let mut options = D3D12_FEATURE_DATA_D3D12_OPTIONS2::default();
// SAFETY: writes `options` of the given size.
let ok = unsafe {
self.device
.CheckFeatureSupport(
D3D12_FEATURE_D3D12_OPTIONS2,
(&raw mut options).cast(),
size_of_val(&options) as u32,
)
.is_ok()
};
let supported = ok && options.DepthBoundsTestSupported.as_bool();
tracing::info!(supported, "host depth bounds support");
supported
})
}
/// A new list, open for recording.
pub(crate) fn new_list(&self) -> windows::core::Result<HostList> {
#[cfg(feature = "diagnostics")]