The host device was removed seconds into the world because a shader read a descriptor of the wrong kind: empty slots held a null 2D texture view where the shader expected a buffer, which gave a garbage heap index and a read far past the view heap. Null descriptors now have the kind the shader expects (raw buffer, constant buffer, or a texture of the title's own dimension). The world then ran to a 240 s time limit with no removal. Also: - Host lists hold the textures, pipelines, root signatures and heaps they name, and heap slots hold the resource they view (the title releases objects before submitting lists that use them). - The device-removed report places the fault against the host descriptor heaps and names our own uploads; VICTORY_D3D12_GBV turns on GPU-based validation, VICTORY_DUMP_TARGETS works. - Indirect execution (draw, indexed draw, dispatch, mesh dispatch): the world draws most of its geometry this way. Arguments are clamped and charged to a per-list budget by a small compute pass first, so garbage cannot hang the GPU. Off by default (VICTORY_INDIRECT=1): with it on the title's own GPU watchdog ends the run about 30 s into the world. - Shader-written ranges are copied back once per submission and only where they differ; refreshes beside them copy only stale pages. The frame-rate line counts copy-backs and dropped draws. Not working yet: the world's picture is black (indirect draws off, and hundreds of draws per frame have no translated shader). Co-Authored-By: Claude Fable 5.2 <[email protected]>
59 lines
1.6 KiB
Rust
59 lines
1.6 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(windows)]
|
|
mod host;
|
|
#[cfg(windows)]
|
|
mod indirect;
|
|
pub mod list;
|
|
pub mod object;
|
|
pub mod pipeline;
|
|
#[cfg(windows)]
|
|
mod primitive;
|
|
pub mod query;
|
|
pub mod queue;
|
|
pub mod resource;
|
|
pub mod root;
|
|
#[cfg(windows)]
|
|
mod sampler;
|
|
#[cfg(windows)]
|
|
pub mod shader_cache;
|
|
#[cfg(windows)]
|
|
mod shadow;
|
|
pub mod signature;
|
|
#[cfg(windows)]
|
|
mod texture;
|
|
#[cfg(windows)]
|
|
mod watch;
|
|
|
|
#[cfg(windows)]
|
|
pub use host::on_failure;
|
|
#[cfg(windows)]
|
|
pub use watch::{title_memory_remapped, writing as kernel_will_write};
|