With device-removed data on, every buffer, texture and texture block stands in a book with its address (a texture's is the base in its first descriptor) and stays with the time it went. A device loss prints who has and had the faulting address, newest first, and every slot of the view heap whose descriptor reaches it, with what our books say of the slot. VICTORY_BOOK=0: not kept. VICTORY_SLOT_CHECK=1 walks the view heap (2^22 slots, 3.8 s a round) and says which slots name memory that is gone. Run crash-5 (opening, -Walk, 260 s): 1.7 million descriptors a round, 105,352 things alive, 27,342 gone, none of the slots named anything gone or unknown in any round. Co-Authored-By: Claude Opus 5.5 <[email protected]>
94 lines
2.5 KiB
Rust
94 lines
2.5 KiB
Rust
//! D3D12.X on host D3D12.
|
|
//!
|
|
//! D3D12.X records commands from code inlined into the title, which writes
|
|
//! packets into the command list while its put pointer is below a limit and
|
|
//! calls the list's method otherwise. Our lists keep the limits at zero, so
|
|
//! every command arrives here as a call, to be run on host D3D12. The
|
|
//! title's GPU addresses are CPU addresses (console memory is unified).
|
|
//!
|
|
//! [`device`] is the device object titles create, [`dxgi`] its adapter side,
|
|
//! [`resource`] heaps and resources, [`fence`] fences, [`queue`] command
|
|
//! queues, [`list`] command allocators and lists, [`descriptor`]
|
|
//! descriptor heaps, [`root`] root signatures, [`query`] query heaps,
|
|
//! [`signature`] command signatures, [`pipeline`] pipeline states,
|
|
//! [`frame`] frame pacing, [`object`] what all console graphics objects
|
|
//! share, [`console`] which console model the title sees. Planned:
|
|
//! `present` (swap chain).
|
|
|
|
#[cfg(all(windows, feature = "diagnostics"))]
|
|
mod capture;
|
|
pub mod console;
|
|
#[cfg(all(windows, feature = "diagnostics"))]
|
|
mod copystat;
|
|
pub mod descriptor;
|
|
pub mod device;
|
|
#[cfg(windows)]
|
|
mod draw;
|
|
pub mod dxgi;
|
|
pub mod fence;
|
|
pub mod frame;
|
|
#[cfg(all(windows, feature = "diagnostics"))]
|
|
mod book;
|
|
#[cfg(windows)]
|
|
mod host;
|
|
#[cfg(windows)]
|
|
mod indirect;
|
|
#[cfg(windows)]
|
|
mod inplace;
|
|
#[cfg(windows)]
|
|
mod land;
|
|
pub mod list;
|
|
pub mod object;
|
|
pub mod pipeline;
|
|
#[cfg(windows)]
|
|
mod picked;
|
|
#[cfg(windows)]
|
|
mod pool;
|
|
#[cfg(windows)]
|
|
mod primitive;
|
|
pub mod query;
|
|
pub mod queue;
|
|
#[cfg(all(windows, feature = "diagnostics"))]
|
|
pub mod replay;
|
|
pub mod resource;
|
|
pub mod root;
|
|
#[cfg(windows)]
|
|
mod safecopy;
|
|
#[cfg(windows)]
|
|
mod sampler;
|
|
#[cfg(windows)]
|
|
pub mod shader_cache;
|
|
#[cfg(windows)]
|
|
mod memory;
|
|
#[cfg(windows)]
|
|
mod shadow;
|
|
#[cfg(windows)]
|
|
mod tiles;
|
|
pub mod signature;
|
|
mod switch;
|
|
#[cfg(windows)]
|
|
mod tdr;
|
|
#[cfg(windows)]
|
|
mod texture;
|
|
#[cfg(windows)]
|
|
mod upload;
|
|
#[cfg(windows)]
|
|
mod watch;
|
|
|
|
#[cfg(windows)]
|
|
pub use host::on_failure;
|
|
|
|
/// What the frame is at (`copystat::phase`), for the sampling profiler.
|
|
#[cfg(all(windows, feature = "diagnostics"))]
|
|
pub fn frame_phase() -> u32 {
|
|
copystat::phase()
|
|
}
|
|
#[cfg(windows)]
|
|
pub use inplace::{title_memory_freeing, title_memory_section, title_memory_section_gone, title_memory_view};
|
|
#[cfg(windows)]
|
|
pub use watch::{
|
|
kernel_writing, title_memory_allocated, title_memory_freed, title_memory_reading, title_memory_remapped,
|
|
title_memory_remapping, title_memory_splitting, title_memory_unmapping, title_memory_written,
|
|
writing as kernel_will_write,
|
|
};
|