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:
codec_d committed 2026-11-25 14:43:52 -08:00
1 parent aebe5a0622
commit f5847e6248
13 files changed
+974 -129

No files matched your search

+19 -6
View File
@@ -391,8 +391,12 @@ enum Job {
Joined(usize, Vec<crate::list::Detached>, Vec<usize>, Vec<usize>, Vec<(usize, u64)>),
/// A signal of the queue's.
Signal(usize, u64),
/// A frame is shown: the texture and the state its lists leave it in.
Present(Option<(std::sync::Arc<crate::resource::HostTexture>, u32)>, super::Shown),
/// A frame is shown: the base texture (and optional overlay plane) and the states their lists leave them in.
Present(
Option<(std::sync::Arc<crate::resource::HostTexture>, u32)>,
Option<(std::sync::Arc<crate::resource::HostTexture>, u32)>,
super::Shown,
),
}
// SAFETY: D3D12 objects are free-threaded; a job is touched by whoever put it
@@ -569,12 +573,16 @@ impl Work for Job {
crate::fence::set(fence as This, value);
}
}
Job::Present(texture, shown) => {
Job::Present(texture, overlay, shown) => {
if let Some((texture, state)) = texture {
// (Where its lists were not translated when the title
// presented: the state they left it in.)
let state = if state == u32::MAX { texture.state.load(Relaxed) } else { state };
super::show(&texture.texture, state, shown);
let over = overlay.as_ref().map(|(ov, ov_state)| {
let st = if *ov_state == u32::MAX { ov.state.load(Relaxed) } else { *ov_state };
(&ov.texture, st)
});
super::show_planes(&texture.texture, state, over, shown);
}
QUEUED.fetch_sub(1, Relaxed);
}
@@ -811,10 +819,15 @@ pub(super) fn wait(this: This, fence: This, value: u64) {
/// A present on queue `this` of `texture`, in the state the lists recorded so
/// far leave it in.
pub(super) fn present(this: This, texture: Option<(std::sync::Arc<crate::resource::HostTexture>, u32)>, shown: super::Shown) {
pub(super) fn present(
this: This,
texture: Option<(std::sync::Arc<crate::resource::HostTexture>, u32)>,
overlay: Option<(std::sync::Arc<crate::resource::HostTexture>, u32)>,
shown: super::Shown,
) {
QUEUED.fetch_add(1, Relaxed);
STATS[PRESENTS].fetch_add(1, Relaxed);
LANE.push(this as usize, [Job::Present(texture, shown)]);
LANE.push(this as usize, [Job::Present(texture, overlay, shown)]);
let began = Instant::now();
let _waiting = crate::timeline::span("a present waits for the one before it to be sent");
LANE.wait_presents(frames_most());