Merge VIctory-7900XTX (0a43566) with RTX 5090 fidelity & 32 GB RAM optimizations: two-plane compose, fallback heaps, TablePlan, residency guard, 256 MiB DirectStorage, and WaitOnAddress fence wakes
This commit is contained in:
1 parent
aebe5a0622
commit
f5847e6248
13 files changed
+974
-129
No files matched your search
@@ -227,11 +227,20 @@ extern "system" fn create_queue(
|
||||
)
|
||||
}
|
||||
|
||||
/// The title asks for 32 MiB and stops if this fails.
|
||||
/// The title asks for 32 MiB and stops if this fails. Give PC worker threads
|
||||
/// enough staging headroom (default 256 MiB) so multi-MB RPF chunks don't
|
||||
/// starve the remaining cores.
|
||||
extern "system" fn set_staging_buffer_size(_: Factory, size: u32) -> HRESULT {
|
||||
tracing::info!(size, "dstorage: staging buffer size");
|
||||
static FLOOR_MB: std::sync::OnceLock<u64> = std::sync::OnceLock::new();
|
||||
let floor = *FLOOR_MB.get_or_init(|| {
|
||||
std::env::var("VICTORY_DSTORAGE_STAGING_MB")
|
||||
.ok()
|
||||
.and_then(|v| v.trim().parse::<u64>().ok())
|
||||
.unwrap_or(256)
|
||||
}) << 20;
|
||||
tracing::info!(size, floor, "dstorage: staging buffer size");
|
||||
if let Some(scheduler) = scheduler() {
|
||||
scheduler.lock().staging = u64::from(size);
|
||||
scheduler.lock().staging = u64::from(size).max(floor);
|
||||
}
|
||||
S_OK
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user